UI improvements and fixes for older Android versions
This commit is contained in:
12
app/src/main/res/drawable/bg_item_selectable.xml
Normal file
12
app/src/main/res/drawable/bg_item_selectable.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/bg_item_selected_state"
|
||||
android:state_pressed="true"
|
||||
android:state_selected="true"
|
||||
android:state_activated="true"
|
||||
android:state_active="true"
|
||||
android:state_checked="true"
|
||||
android:state_focused="true"
|
||||
android:state_single="true"/>
|
||||
<item android:drawable="@drawable/bg_item_normal_state" />
|
||||
</selector>
|
||||
@@ -1,21 +1,13 @@
|
||||
<?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_item_selected_state"/>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/colorAccent" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:left="4dp">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/colorAccentLight" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
|
||||
8
app/src/main/res/drawable/bg_white.xml
Normal file
8
app/src/main/res/drawable/bg_white.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="@color/md_white_1000" />
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
||||
Reference in New Issue
Block a user