mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-26 14:57:38 +03:00
Fix multiselection styling
This commit is contained in:
parent
484fdd5cf3
commit
e8b4a75778
4 changed files with 27 additions and 5 deletions
|
@ -0,0 +1,19 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><!-- Selector is used for Background Colors in List Items -->
|
||||
<ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="@color/bg_highlighted">
|
||||
<!-- :selected -->
|
||||
<item>
|
||||
<selector>
|
||||
<item android:state_selected="true">
|
||||
<color android:color="@color/bg_highlighted" />
|
||||
</item>
|
||||
|
||||
<item android:state_activated="true">
|
||||
<color android:color="@color/bg_highlighted" />
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<color android:color="@android:color/transparent" />
|
||||
</item>
|
||||
</selector>
|
||||
</item>
|
||||
</ripple>
|
|
@ -1,8 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><!-- Selector is used for Background Colors in List Items -->
|
||||
<ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="@color/bg_highlighted">
|
||||
<!-- :selected -->
|
||||
|
||||
|
||||
<item>
|
||||
<selector>
|
||||
<item android:state_selected="true">
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><!-- Selector is used for Background Colors in List Items -->
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- :selected -->
|
||||
<item android:drawable="@color/bg_highlighted" android:state_selected="true" />
|
||||
<item android:drawable="@android:color/transparent" />
|
||||
</selector>
|
|
@ -8,12 +8,13 @@
|
|||
android:focusable="true">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/wrapper"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/grid_item_background_selector"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="@dimen/spacer_1x">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -57,7 +58,6 @@
|
|||
android:layout_marginBottom="@dimen/spacer_1x"
|
||||
android:textAppearance="?attr/textAppearanceHeadline5"
|
||||
android:textColor="@color/fg_default"
|
||||
android:textIsSelectable="true"
|
||||
android:theme="@style/textViewStyle"
|
||||
tools:maxLength="50"
|
||||
tools:text="@tools:sample/lorem/random" />
|
||||
|
@ -102,7 +102,6 @@
|
|||
android:layout_marginBottom="@dimen/spacer_1x"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||
android:textColor="@color/fg_default"
|
||||
android:textIsSelectable="true"
|
||||
android:theme="@style/textViewStyle"
|
||||
tools:maxLength="200"
|
||||
tools:text="@tools:sample/lorem/random" />
|
||||
|
|
Loading…
Reference in a new issue