button with ripple for files and instance picker

This commit is contained in:
sk 2023-05-27 01:13:32 +02:00
parent 274bca84d9
commit f933bdbc53
4 changed files with 4 additions and 8 deletions

View File

@ -124,6 +124,7 @@ public class CustomWelcomeFragment extends InstanceCatalogFragment {
super.onViewCreated(view, savedInstanceState); super.onViewCreated(view, savedInstanceState);
view.setBackgroundColor(UiUtils.getThemeColor(getActivity(), R.attr.colorWindowBackground)); view.setBackgroundColor(UiUtils.getThemeColor(getActivity(), R.attr.colorWindowBackground));
list.setItemAnimator(new BetterItemAnimator()); list.setItemAnimator(new BetterItemAnimator());
((UsableRecyclerView) list).setSelector(null);
} }
@Override @Override

View File

@ -2,10 +2,5 @@
<ripple <ripple
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?android:attr/colorControlHighlight"> android:color="?android:attr/colorControlHighlight">
<item> <item android:drawable="@drawable/bg_search_field" />
<shape>
<solid android:color="?colorSearchField"/>
<corners android:radius="6dp"/>
</shape>
</item>
</ripple> </ripple>

View File

@ -16,7 +16,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginHorizontal="16dp" android:layout_marginHorizontal="16dp"
android:layout_marginVertical="4dp" android:layout_marginVertical="4dp"
android:background="@drawable/bg_search_field" android:background="@drawable/bg_search_button"
android:paddingVertical="12dp" android:paddingVertical="12dp"
android:orientation="horizontal"> android:orientation="horizontal">

View File

@ -8,7 +8,7 @@
<FrameLayout <FrameLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="@drawable/bg_search_field"> android:background="@drawable/bg_search_button">
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"