mirror of
https://github.com/kuba2k2/NavLib.git
synced 2025-01-18 06:16:43 -06:00
Fullscreen & navbar transparent - change defaults. Add switch info.
This commit is contained in:
parent
adb45d8e7e
commit
749fbbe437
@ -34,10 +34,10 @@ class MainActivity : AppCompatActivity() {
|
|||||||
|
|
||||||
setContentView(R.layout.sample_nav_view)
|
setContentView(R.layout.sample_nav_view)
|
||||||
|
|
||||||
appFullscreen.isChecked = getSharedPreferences("prefs", Context.MODE_PRIVATE).getBoolean("appFullscreen", false)
|
appFullscreen.isChecked = getSharedPreferences("prefs", Context.MODE_PRIVATE).getBoolean("appFullscreen", true)
|
||||||
statusBarDarker.isChecked = getSharedPreferences("prefs", Context.MODE_PRIVATE).getBoolean("statusBarDarker", false)
|
statusBarDarker.isChecked = getSharedPreferences("prefs", Context.MODE_PRIVATE).getBoolean("statusBarDarker", false)
|
||||||
statusBarTranslucent.isChecked = getSharedPreferences("prefs", Context.MODE_PRIVATE).getBoolean("statusBarTranslucent", false)
|
statusBarTranslucent.isChecked = getSharedPreferences("prefs", Context.MODE_PRIVATE).getBoolean("statusBarTranslucent", false)
|
||||||
navigationBarTransparent.isChecked = getSharedPreferences("prefs", Context.MODE_PRIVATE).getBoolean("navigationBarTransparent", true)
|
navigationBarTransparent.isChecked = getSharedPreferences("prefs", Context.MODE_PRIVATE).getBoolean("navigationBarTransparent", false)
|
||||||
|
|
||||||
statusBarColor.check(when (getSharedPreferences("prefs", Context.MODE_PRIVATE).getString("statusBarColor", "colorBackground")) {
|
statusBarColor.check(when (getSharedPreferences("prefs", Context.MODE_PRIVATE).getString("statusBarColor", "colorBackground")) {
|
||||||
"colorPrimaryDark" -> R.id.colorPrimaryDark
|
"colorPrimaryDark" -> R.id.colorPrimaryDark
|
||||||
|
@ -140,7 +140,7 @@
|
|||||||
android:id="@+id/appFullscreen"
|
android:id="@+id/appFullscreen"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:checked="false"
|
android:checked="true"
|
||||||
android:text="App is fullscreen" />
|
android:text="App is fullscreen" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@ -292,11 +292,16 @@
|
|||||||
android:checked="false"
|
android:checked="false"
|
||||||
android:text="SB color mode - translucent (not transparent)" />
|
android:text="SB color mode - translucent (not transparent)" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="(used for Huawei with EMUI Lollipop)"/>
|
||||||
|
|
||||||
<com.google.android.material.switchmaterial.SwitchMaterial
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
||||||
android:id="@+id/navigationBarTransparent"
|
android:id="@+id/navigationBarTransparent"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:checked="true"
|
android:checked="false"
|
||||||
android:text="Nav bar fully transparent" />
|
android:text="Nav bar fully transparent" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user