[android] resources refactoring.

This commit is contained in:
Dmitry Kunin 2013-07-05 13:36:45 +03:00 committed by Alex Zolotarev
parent c160315151
commit 9ccfbd0da9
9 changed files with 69 additions and 94 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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>

View 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>

View 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>

View 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>

View 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>

View file

@ -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>