File tree Expand file tree Collapse file tree 2 files changed +25
-3
lines changed
java/io/compactd/player/ui/activities Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ public abstract class SlidingMusicActivity extends AppCompatActivity implements
5454 private FrameLayout layoutContainer ;
5555 private FrameLayout fragment ;
5656 private int statusBarColor ;
57+ private FrameLayout statusBarDummy ;
5758
5859
5960 @ Override
@@ -73,6 +74,12 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
7374 trackTitle = findViewById (R .id .track_title );
7475 layoutContainer = findViewById (R .id .layout_container );
7576 fragment = findViewById (R .id .player_container );
77+ statusBarDummy = findViewById (R .id .status_bar_dummy );
78+
79+ int resourceId = getResources ().getIdentifier ("status_bar_height" , "dimen" , "android" );
80+ if (resourceId > 0 ) {
81+ statusBarDummy .getLayoutParams ().height = getResources ().getDimensionPixelSize (resourceId );
82+ }
7683
7784 panelLayout .addPanelSlideListener (this );
7885
Original file line number Diff line number Diff line change 1212 sothree : umanoShadowHeight =" 4dp" >
1313
1414 <!-- MAIN CONTENT -->
15- < FrameLayout
16- android : id = " @+id/sliding_content "
15+
16+ < LinearLayout
1717 android : layout_width =" match_parent"
1818 android : layout_height =" match_parent"
19- android : orientation =" vertical" />
19+ android : orientation =" vertical" >
20+
21+ <FrameLayout
22+ android : id =" @+id/status_bar_dummy"
23+ android : layout_width =" match_parent"
24+ android : layout_height =" 68dp"
25+ android : background =" @color/colorPrimaryDark" >
26+
27+ </FrameLayout >
28+
29+ <FrameLayout
30+ android : id =" @+id/sliding_content"
31+ android : layout_width =" match_parent"
32+ android : layout_height =" match_parent"
33+ android : orientation =" vertical" />
34+ </LinearLayout >
2035
2136 <!-- SLIDING LAYOUT -->
2237 <FrameLayout
You can’t perform that action at this time.
0 commit comments