File tree Expand file tree Collapse file tree 7 files changed +13
-8
lines changed
java/com/launium/mcping/ui Expand file tree Collapse file tree 7 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,6 @@ abstract class AbstractActivity : AppCompatActivity() {
1010
1111 override fun onCreate (savedInstanceState : Bundle ? ) {
1212 super .onCreate(savedInstanceState)
13-
14- val colorSurfaceContainer =
15- getAttrColor(com.google.android.material.R .attr.colorSurfaceContainer)
16- window.statusBarColor = colorSurfaceContainer
17- window.navigationBarColor = colorSurfaceContainer
1813 }
1914
2015 fun setupHomeButton () {
Original file line number Diff line number Diff line change 22<LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
33 android : layout_width =" match_parent"
44 android : layout_height =" match_parent"
5- android : padding =" 8dp"
6- android : orientation =" vertical" >
5+ android : fitsSystemWindows =" true"
6+ android : orientation =" vertical"
7+ android : padding =" 8dp" >
78
89 <com .google.android.material.card.MaterialCardView
910 android : layout_width =" match_parent"
Original file line number Diff line number Diff line change 33 xmlns : app =" http://schemas.android.com/apk/res-auto"
44 android : id =" @+id/container"
55 android : layout_width =" match_parent"
6- android : layout_height =" match_parent" >
6+ android : layout_height =" match_parent"
7+ android : fitsSystemWindows =" true" >
78
89 <LinearLayout
910 android : layout_width =" match_parent"
Original file line number Diff line number Diff line change 33 xmlns : tools =" http://schemas.android.com/tools"
44 android : layout_width =" match_parent"
55 android : layout_height =" match_parent"
6+ android : fitsSystemWindows =" true"
67 tools : context =" .ui.home.PlayerListActivity" >
78
89 <androidx .recyclerview.widget.RecyclerView
Original file line number Diff line number Diff line change 1414 android : id =" @+id/container"
1515 android : layout_width =" match_parent"
1616 android : layout_height =" match_parent"
17+ android : clipToPadding =" false"
1718 android : padding =" 16dp" />
1819
1920 </androidx .swiperefreshlayout.widget.SwipeRefreshLayout>
Original file line number Diff line number Diff line change 2424 android : id =" @+id/container"
2525 android : layout_width =" match_parent"
2626 android : layout_height =" match_parent"
27+ android : clipToPadding =" false"
2728 android : padding =" 16dp" />
2829
2930 </androidx .swiperefreshlayout.widget.SwipeRefreshLayout>
Original file line number Diff line number Diff line change 11<resources xmlns : tools =" http://schemas.android.com/tools" >
22 <!-- Base application theme. -->
33 <style name =" Theme.MCPing" parent =" Theme.Material3.DynamicColors.Light" >
4+ <item name =" android:navigationBarColor" tools : targetApi =" o" >
5+ ?attr/colorSurfaceContainer
6+ </item >
7+ <item name =" android:statusBarColor" tools : targetApi =" m" >?attr/colorSurfaceContainer</item >
48 <item name =" android:windowLightStatusBar" tools : targetApi =" m" >true</item >
9+ <item name =" android:windowLightNavigationBar" tools : targetApi =" o_mr1" >true</item >
510 </style >
611</resources >
You can’t perform that action at this time.
0 commit comments