forked from organicmaps/organicmaps
[android] resources refactoring.
This commit is contained in:
parent
c160315151
commit
9ccfbd0da9
9 changed files with 69 additions and 94 deletions
|
@ -2,28 +2,12 @@
|
|||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<!-- "background shadow" -->
|
||||
<item>
|
||||
<shape android:shape="rectangle" >
|
||||
<gradient
|
||||
android:angle="270"
|
||||
android:startColor="#44000000"
|
||||
android:endColor="#66000000"
|
||||
android:type="linear" />
|
||||
|
||||
<corners android:radius="3dp" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item android:drawable="@drawable/shadow"/>
|
||||
<item
|
||||
android:bottom="2dp"
|
||||
android:bottom="1dp"
|
||||
android:left="1dp"
|
||||
android:right="1dp"
|
||||
android:top="1dp">
|
||||
<shape android:shape="rectangle" >
|
||||
<solid android:color="#333" />
|
||||
|
||||
<corners android:radius="3dp" />
|
||||
</shape>
|
||||
</item>
|
||||
android:top="1dp"
|
||||
android:drawable="@drawable/gray"/>
|
||||
|
||||
</layer-list>
|
|
@ -1,40 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<!-- "background shadow" -->
|
||||
<item>
|
||||
<shape android:shape="rectangle" >
|
||||
<gradient android:angle="270"
|
||||
android:startColor="#44000000"
|
||||
android:endColor="#66000000"
|
||||
android:type="linear"
|
||||
/>
|
||||
<corners android:radius="3dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:drawable="@drawable/shadow"/>
|
||||
|
||||
<item
|
||||
android:bottom="2dp"
|
||||
android:left="1dp"
|
||||
android:right="1dp"
|
||||
android:top="1dp">
|
||||
<shape android:shape="rectangle" >
|
||||
<solid android:color="#333" />
|
||||
android:top="1dp"
|
||||
android:drawable="@drawable/gray"/>
|
||||
|
||||
<stroke
|
||||
android:width="1dp"
|
||||
android:color="#40040404" />
|
||||
|
||||
<corners android:radius="3dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<shape android:shape="rectangle" >
|
||||
<solid android:color="#80FFFFFF" />
|
||||
|
||||
<corners android:radius="3dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
<item android:drawable="@drawable/overflow"/>
|
||||
|
||||
</layer-list>
|
|
@ -2,28 +2,13 @@
|
|||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<!-- "background shadow" -->
|
||||
<item>
|
||||
<shape android:shape="rectangle" >
|
||||
<gradient
|
||||
android:angle="270"
|
||||
android:startColor="#44000000"
|
||||
android:endColor="#66000000"
|
||||
android:type="linear" />
|
||||
<item android:drawable="@drawable/shadow"/>
|
||||
|
||||
<corners android:radius="3dp" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:bottom="2dp"
|
||||
<item
|
||||
android:bottom="1dp"
|
||||
android:left="1dp"
|
||||
android:right="1dp"
|
||||
android:top="1dp">
|
||||
<shape android:shape="rectangle" >
|
||||
<solid android:color="#66CC33" />
|
||||
|
||||
<corners android:radius="3dp" />
|
||||
</shape>
|
||||
</item>
|
||||
android:top="1dp"
|
||||
android:drawable="@drawable/green"/>
|
||||
|
||||
</layer-list>
|
|
@ -2,34 +2,15 @@
|
|||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<!-- "background shadow" -->
|
||||
<item>
|
||||
<shape android:shape="rectangle" >
|
||||
<gradient
|
||||
android:angle="270"
|
||||
android:startColor="#44000000"
|
||||
android:endColor="#66000000"
|
||||
android:type="linear" />
|
||||
|
||||
<corners android:radius="3dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:drawable="@drawable/shadow"/>
|
||||
|
||||
<item
|
||||
android:bottom="2dp"
|
||||
android:left="1dp"
|
||||
android:right="1dp"
|
||||
android:top="1dp">
|
||||
<shape android:shape="rectangle" >
|
||||
<solid android:color="#66CC33" />
|
||||
android:top="1dp"
|
||||
android:drawable="@drawable/green"/>
|
||||
|
||||
<corners android:radius="3dp" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<shape android:shape="rectangle" >
|
||||
<solid android:color="#80FFFFFF" />
|
||||
</shape>
|
||||
</item>
|
||||
<item android:drawable="@drawable/overflow"/>
|
||||
|
||||
</layer-list>
|
13
api/android/lib/res/drawable/gray.xml
Normal file
13
api/android/lib/res/drawable/gray.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle" >
|
||||
|
||||
|
||||
<gradient android:type="linear"
|
||||
android:angle="90"
|
||||
android:startColor="#D00099CC"
|
||||
android:centerColor="#D033B5E5"
|
||||
android:endColor="#D00099CC"/>
|
||||
|
||||
<corners android:radius="4dp" />
|
||||
</shape>
|
15
api/android/lib/res/drawable/green.xml
Normal file
15
api/android/lib/res/drawable/green.xml
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle" >
|
||||
<!--
|
||||
<solid android:color="#66CC33" /> -->
|
||||
|
||||
<gradient android:type="linear"
|
||||
android:angle="90"
|
||||
android:startColor="#D066CC33"
|
||||
android:centerColor="#D099CC00"
|
||||
android:endColor="#D066CC33"/>
|
||||
|
||||
|
||||
<corners android:radius="4dp" />
|
||||
</shape>
|
6
api/android/lib/res/drawable/overflow.xml
Normal file
6
api/android/lib/res/drawable/overflow.xml
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle" >
|
||||
<solid android:color="#80FFFFFF" />
|
||||
<corners android:radius="3dp" />
|
||||
</shape>
|
13
api/android/lib/res/drawable/shadow.xml
Normal file
13
api/android/lib/res/drawable/shadow.xml
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle" >
|
||||
<gradient
|
||||
android:angle="-90"
|
||||
android:centerX="50%"
|
||||
android:centerY="50%"
|
||||
android:gradientRadius="400"
|
||||
android:startColor="#44000000"
|
||||
android:endColor="#88000000"
|
||||
android:type="linear" />
|
||||
<corners android:radius="4dp" />
|
||||
</shape>
|
|
@ -55,7 +55,8 @@
|
|||
android:background="@drawable/btn_gray_selector"
|
||||
android:padding="6dp"
|
||||
android:text="@string/down_lite"
|
||||
android:textColor="@android:color/white" />
|
||||
android:textColor="@android:color/white"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_pro"
|
||||
|
@ -67,7 +68,8 @@
|
|||
android:background="@drawable/btn_green_selector"
|
||||
android:padding="6dp"
|
||||
android:text="@string/down_pro"
|
||||
android:textColor="@android:color/white" />
|
||||
android:textColor="@android:color/white"
|
||||
android:textStyle="bold"/>
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
Loading…
Add table
Reference in a new issue