mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Fixed contacts list cell clipping
This commit is contained in:
parent
3698e1673e
commit
7ab7136a5b
3 changed files with 11 additions and 6 deletions
|
|
@ -136,6 +136,7 @@ class ContactsListFragment : AbstractMainFragment() {
|
|||
|
||||
binding.contactsList.setHasFixedSize(true)
|
||||
binding.contactsList.layoutManager = LinearLayoutManager(requireContext())
|
||||
binding.contactsList.outlineProvider = outlineProvider
|
||||
|
||||
binding.favouritesContactsList.setHasFixedSize(true)
|
||||
val favouritesLayoutManager = LinearLayoutManager(requireContext())
|
||||
|
|
@ -145,6 +146,10 @@ class ContactsListFragment : AbstractMainFragment() {
|
|||
configureAdapter(adapter)
|
||||
configureAdapter(favouritesAdapter)
|
||||
|
||||
listViewModel.isListFiltered.observe(viewLifecycleOwner) { filtered ->
|
||||
binding.contactsList.clipToOutline = filtered
|
||||
}
|
||||
|
||||
listViewModel.contactsList.observe(
|
||||
viewLifecycleOwner
|
||||
) {
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@
|
|||
android:onContextClick="@{onLongClickListener}"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="4dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:paddingStart="4dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:paddingTop="5dp"
|
||||
android:paddingBottom="5dp"
|
||||
android:background="@drawable/primary_cell_background">
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@
|
|||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:text="@string/contacts_list_favourites_title"
|
||||
android:drawableEnd="@{viewModel.showFavourites ? @drawable/caret_up : @drawable/caret_down, default=@drawable/caret_up}"
|
||||
android:drawableTint="?attr/color_main2_600" />
|
||||
|
|
@ -89,8 +90,7 @@
|
|||
android:id="@+id/favourites_contacts_list"
|
||||
android:visibility="@{viewModel.showFavourites && !viewModel.isListFiltered && viewModel.favouritesList.size() > 0 ? View.VISIBLE : View.GONE}"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp" />
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
style="@style/section_header_style"
|
||||
|
|
@ -102,6 +102,7 @@
|
|||
android:layout_marginStart="16dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:layout_marginTop="16dp"
|
||||
android:layout_marginBottom="4dp"
|
||||
android:text="@string/contacts_list_all_contacts_title" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
|
|
@ -121,8 +122,7 @@
|
|||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
||||
android:id="@+id/contactsListSwipeRefresh"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="4dp">
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/contactsList"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue