Fix crashes with vector drawables on older Android versions
This commit is contained in:
parent
05adde552d
commit
a07e4c69b6
7 changed files with 17 additions and 13 deletions
|
@ -25,7 +25,7 @@
|
||||||
android:layout_gravity="bottom|end"
|
android:layout_gravity="bottom|end"
|
||||||
android:layout_margin="@dimen/fab_margin"
|
android:layout_margin="@dimen/fab_margin"
|
||||||
android:scaleType="fitCenter"
|
android:scaleType="fitCenter"
|
||||||
android:src="@drawable/ic_add_white_24dp"
|
app:srcCompat="@drawable/ic_add_white_24dp"
|
||||||
app:backgroundTint="@color/colorPrimary"
|
app:backgroundTint="@color/colorPrimary"
|
||||||
app:layout_anchor="@id/recycler"
|
app:layout_anchor="@id/recycler"
|
||||||
app:layout_anchorGravity="bottom|right|end"
|
app:layout_anchorGravity="bottom|right|end"
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<android.support.v4.widget.SwipeRefreshLayout
|
<android.support.v4.widget.SwipeRefreshLayout
|
||||||
|
@ -95,7 +96,7 @@
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:background="?android:selectableItemBackground"
|
android:background="?android:selectableItemBackground"
|
||||||
android:src="@drawable/ic_play_arrow_white_36dp"
|
app:srcCompat="@drawable/ic_play_arrow_white_36dp"
|
||||||
android:title="@string/action_next_unread"/>
|
android:title="@string/action_next_unread"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
|
@ -244,7 +244,7 @@
|
||||||
android:layout_width="@dimen/fab_size"
|
android:layout_width="@dimen/fab_size"
|
||||||
android:layout_height="@dimen/fab_size"
|
android:layout_height="@dimen/fab_size"
|
||||||
android:layout_margin="@dimen/fab_margin"
|
android:layout_margin="@dimen/fab_margin"
|
||||||
android:src="@drawable/ic_bookmark_border_white_24dp"
|
app:srcCompat="@drawable/ic_bookmark_border_white_24dp"
|
||||||
app:backgroundTint="@color/colorPrimary"
|
app:backgroundTint="@color/colorPrimary"
|
||||||
app:layout_anchor="@id/top_view"
|
app:layout_anchor="@id/top_view"
|
||||||
app:layout_anchorGravity="bottom|right|end"/>
|
app:layout_anchorGravity="bottom|right|end"/>
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="?android:attr/listPreferredItemHeight"
|
android:layout_height="?android:attr/listPreferredItemHeight"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:background="@drawable/selector_chapter_light">
|
android:background="@drawable/selector_chapter_light">
|
||||||
|
|
||||||
|
|
||||||
|
@ -94,8 +95,8 @@
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
android:background="?android:selectableItemBackground"
|
android:background="?android:selectableItemBackground"
|
||||||
android:src="@drawable/ic_more_horiz_black_24dp"
|
app:srcCompat="@drawable/ic_more_horiz_black_24dp"/>
|
||||||
/>
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="?android:attr/listPreferredItemHeightLarge"
|
android:layout_height="?android:attr/listPreferredItemHeightLarge"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:paddingTop="8dp"
|
android:paddingTop="8dp"
|
||||||
android:paddingBottom="8dp"
|
android:paddingBottom="8dp"
|
||||||
android:background="@drawable/selector_chapter_light">
|
android:background="@drawable/selector_chapter_light">
|
||||||
|
@ -32,7 +33,7 @@
|
||||||
android:layout_centerInParent="true"
|
android:layout_centerInParent="true"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:src="@drawable/ic_reorder_grey_24dp"/>
|
app:srcCompat="@drawable/ic_reorder_grey_24dp"/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/title"
|
android:id="@+id/title"
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="?android:attr/listPreferredItemHeight"
|
android:layout_height="?android:attr/listPreferredItemHeight"
|
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||||
android:background="@drawable/selector_chapter_light">
|
android:background="@drawable/selector_chapter_light">
|
||||||
|
|
||||||
|
|
||||||
|
@ -89,8 +90,8 @@
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
android:background="?android:selectableItemBackground"
|
android:background="?android:selectableItemBackground"
|
||||||
android:src="@drawable/ic_more_horiz_black_24dp"
|
app:srcCompat="@drawable/ic_more_horiz_black_24dp"/>
|
||||||
/>
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:id="@+id/lock_orientation"
|
android:id="@+id/lock_orientation"
|
||||||
android:src="@drawable/ic_screen_rotation_white_24dp"
|
app:srcCompat="@drawable/ic_screen_rotation_white_24dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:background="?android:selectableItemBackground" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:id="@+id/reader_zoom_selector"
|
android:id="@+id/reader_zoom_selector"
|
||||||
android:src="@drawable/ic_crop_original_white_24dp"
|
app:srcCompat="@drawable/ic_crop_original_white_24dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:background="?android:selectableItemBackground"/>
|
android:background="?android:selectableItemBackground"/>
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:id="@+id/reader_scale_type_selector"
|
android:id="@+id/reader_scale_type_selector"
|
||||||
android:src="@drawable/ic_zoom_out_map_white_24dp"
|
app:srcCompat="@drawable/ic_zoom_out_map_white_24dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:background="?android:selectableItemBackground" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:id="@+id/reader_selector"
|
android:id="@+id/reader_selector"
|
||||||
android:src="@drawable/ic_view_carousel_white_24dp"
|
app:srcCompat="@drawable/ic_view_carousel_white_24dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:background="?android:selectableItemBackground" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:id="@+id/reader_extra_settings"
|
android:id="@+id/reader_extra_settings"
|
||||||
android:src="@drawable/ic_more_vert_white_24dp"
|
app:srcCompat="@drawable/ic_more_vert_white_24dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:background="?android:selectableItemBackground" />
|
android:background="?android:selectableItemBackground" />
|
||||||
|
|
||||||
|
|
Reference in a new issue