Padded all systems bars and reduced mainactivity bottom padding

This commit is contained in:
Juha Heinanen
2024-12-15 00:39:38 +02:00
parent 91d1d14bf8
commit 04462f4fa9
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ class MainActivity : AppCompatActivity() {
ViewCompat.setOnApplyWindowInsetsListener(window.decorView) { v: View, insets: WindowInsetsCompat ->
val systemBars: Insets = insets.getInsets(WindowInsetsCompat.Type.systemBars())
v.setPadding(0, systemBars.top, 0, systemBars.bottom)
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
WindowInsetsCompat.CONSUMED
}

View File

@ -296,7 +296,7 @@
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingBottom="6dp"
android:layout_alignParentBottom="true" >
<Space