Loading...

Using Android Styles View

XD, PSD, AI and INDD layers to Android Styles with clean and clear code becomes simple. Translate your XD, PSD, AI and INDD layers to Android Styles with advanced support for text, images and shapes.

Example Image Element

1
2
3
4
5
6
7
8
9
10
11
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="vector_smart_object">
        <item name="android:src">@drawable/vector_smart_object</item>
        <item name="android:contentDescription">@string/ek_img_content</item>
        <item name="android:layout_marginLeft">-505dp</item>
        <item name="android:layout_marginTop">86dp</item>
        <item name="android:layout_width">2134dp</item>
        <item name="android:layout_height">769dp</item>
    </style>
</resources>

Example Text Element

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="right_col">
        <item name="android:fontFamily">ArialMT</item>
        <item name="android:textStyle">bold</item>
        <item name="android:layout_gravity">center_horizontal|center</item>
        <item name="android:gravity">center</item>
        <item name="android:textSize">68sp</item>
        <item name="android:textColor">@color/right_col_color</item>
        <item name="android:layout_marginLeft">209dp</item>
        <item name="android:layout_marginTop">917dp</item>
        <item name="android:layout_width">778dp</item>
        <item name="android:layout_height">90dp</item>
    </style>
</resources>

Example Shape Element

1
2
3
4
5
6
7
8
9
10
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="base">
        <item name="android:background">@drawable/base_shape</item>
        <item name="android:layout_marginLeft">636dp</item>
        <item name="android:layout_marginTop">2925dp</item>
        <item name="android:layout_width">423dp</item>
        <item name="android:layout_height">178dp</item>
    </style>
</resources>

Customize the Android Styles View to include additional information with the XD, PSD, AI and INDD layer such as effects, advanced text rendering and more.

Example Layer Effects

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="right_col">
        <item name="android:fontFamily">ArialMT</item>
        <item name="android:textStyle">bold</item>
        <item name="android:layout_gravity">center_horizontal|center</item>
        <item name="android:gravity">center</item>
        <item name="android:textSize">68sp</item>
        <item name="android:shadowRadius">2</item>
        <item name="android:shadowColor">#000000</item>
        <item name="android:shadowDx">1</item>
        <item name="android:shadowDy">2</item>
        <item name="android:textColor">@color/right_col_color</item>
        <item name="android:layout_marginLeft">209dp</item>
        <item name="android:layout_marginTop">917dp</item>
        <item name="android:layout_width">778dp</item>
        <item name="android:layout_height">90dp</item>
    </style>
</resources>

Example Inline Content

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- 
res/drawable/header_bg_copy_3.xml
 
<!-- header_bg_copy_3 from your PSD file. -->
<shape xmlns:android="//schemas.android.com/apk/res/android"
    android:shape="rectangle" >
    <solid android:color="@color/header_bg_copy_3_color" />
</shape>
 
 -->
 
    <style name="header_bg_copy_3">
        <item name="android:background">@drawable/header_bg_copy_3_shape</item>
        <item name="android:layout_marginLeft">-475dp</item>
        <item name="android:layout_marginTop">59dp</item>
        <item name="android:layout_width">2150dp</item>
        <item name="android:layout_height">798dp</item>
    </style>
</resources>

LOGIN NOW: Get instant access to our free Online Training - click here.

02. Using The Plugin

03. Layer Support

04. Basic Exports

05. Layer Tags

06. Optimization Tips

07. Complete Exports

DOWNLOAD NOW
🚀 Start saving time and money!