Fixed layout issue
This commit is contained in:
parent
1c226a6a5b
commit
cc4c16e970
25
app/src/main/res/drawable-anydpi-v21/bg_swipe_item_left.xml
Normal file
25
app/src/main/res/drawable-anydpi-v21/bg_swipe_item_left.xml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2015 Haruki Hasegawa
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
-->
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item>
|
||||||
|
<color android:color="@color/bg_swipe_item_trash"/>
|
||||||
|
</item>
|
||||||
|
<item
|
||||||
|
android:drawable="@drawable/ic_item_swipe_trash"
|
||||||
|
android:gravity="right|center_vertical"
|
||||||
|
android:right="16dp"/>
|
||||||
|
</layer-list>
|
25
app/src/main/res/drawable-anydpi-v21/bg_swipe_item_right.xml
Normal file
25
app/src/main/res/drawable-anydpi-v21/bg_swipe_item_right.xml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!--
|
||||||
|
Copyright (C) 2015 Haruki Hasegawa
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
-->
|
||||||
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item>
|
||||||
|
<color android:color="@color/bg_swipe_item_archive"/>
|
||||||
|
</item>
|
||||||
|
<item
|
||||||
|
android:drawable="@drawable/ic_item_swipe_archive"
|
||||||
|
android:gravity="left|center_vertical"
|
||||||
|
android:left="16dp"/>
|
||||||
|
</layer-list>
|
@ -18,10 +18,9 @@
|
|||||||
<item>
|
<item>
|
||||||
<color android:color="@color/bg_swipe_item_trash"/>
|
<color android:color="@color/bg_swipe_item_trash"/>
|
||||||
</item>
|
</item>
|
||||||
<item
|
<item android:right="16dp">
|
||||||
android:drawable="@drawable/ic_item_swipe_trash"
|
<bitmap
|
||||||
android:gravity="right|center_vertical"
|
android:gravity="right|center_vertical"
|
||||||
android:width="24dp"
|
android:src="@drawable/ic_item_swipe_trash"/>
|
||||||
android:height="24dp"
|
</item>
|
||||||
android:right="16dp"/>
|
|
||||||
</layer-list>
|
</layer-list>
|
||||||
|
@ -18,8 +18,9 @@
|
|||||||
<item>
|
<item>
|
||||||
<color android:color="@color/bg_swipe_item_archive"/>
|
<color android:color="@color/bg_swipe_item_archive"/>
|
||||||
</item>
|
</item>
|
||||||
<item
|
<item android:left="16dp">
|
||||||
android:drawable="@drawable/ic_item_swipe_archive"
|
<bitmap
|
||||||
android:gravity="left|center_vertical"
|
android:gravity="left|center_vertical"
|
||||||
android:left="16dp"/>
|
android:src="@drawable/ic_item_swipe_archive"/>
|
||||||
|
</item>
|
||||||
</layer-list>
|
</layer-list>
|
||||||
|
Loading…
Reference in New Issue
Block a user