优化
This commit is contained in:
@@ -200,10 +200,10 @@ class BookSourceEditActivity :
|
|||||||
setEditEntities(tab?.position)
|
setEditEntities(tab?.position)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
ViewCompat.setOnApplyWindowInsetsListener(binding.root) { _, windowInsets ->
|
ViewCompat.setOnApplyWindowInsetsListener(binding.recyclerView) { _, windowInsets ->
|
||||||
val typeMask = WindowInsetsCompat.Type.navigationBars() or WindowInsetsCompat.Type.ime()
|
val typeMask = WindowInsetsCompat.Type.navigationBars() or WindowInsetsCompat.Type.ime()
|
||||||
val insets = windowInsets.getInsets(typeMask)
|
val insets = windowInsets.getInsets(typeMask)
|
||||||
binding.root.bottomPadding = insets.bottom
|
binding.recyclerView.bottomPadding = insets.bottom
|
||||||
softKeyboardTool.initialPadding = insets.bottom
|
softKeyboardTool.initialPadding = insets.bottom
|
||||||
windowInsets
|
windowInsets
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,6 +86,7 @@
|
|||||||
android:id="@+id/recycler_view"
|
android:id="@+id/recycler_view"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:clipToPadding="false"
|
||||||
tools:listitem="@layout/item_source_edit" />
|
tools:listitem="@layout/item_source_edit" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
Reference in New Issue
Block a user