Padded all systems bars and reduced mainactivity bottom padding
This commit is contained in:
@@ -146,7 +146,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
|
|
||||||
ViewCompat.setOnApplyWindowInsetsListener(window.decorView) { v: View, insets: WindowInsetsCompat ->
|
ViewCompat.setOnApplyWindowInsetsListener(window.decorView) { v: View, insets: WindowInsetsCompat ->
|
||||||
val systemBars: Insets = insets.getInsets(WindowInsetsCompat.Type.systemBars())
|
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
|
WindowInsetsCompat.CONSUMED
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -296,7 +296,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
android:paddingBottom="6dp"
|
||||||
android:layout_alignParentBottom="true" >
|
android:layout_alignParentBottom="true" >
|
||||||
|
|
||||||
<Space
|
<Space
|
||||||
|
|||||||
Reference in New Issue
Block a user