Loading...

Using Android Styles View

Photoshop layers to Android Styles with clean and clear code becomes simple with Layer Kit – Android Styles View. Translate your PSD layers to Android Styles with advanced support for text, images and shapes.

Get Layer Kit Pro to add layer effects, imaging options and more with Android Styles View.

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>

Pro Features

Using Layer Kit Pro, you can customize the Android Styles View to include additional information with the PSD 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="http://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: You need to login so your progress is tracked with Online Training - click here.

Products For Web Professionals


web_templates_2

Web-Templates 2.0

webmaster_pack

Webmaster

webmaster_pack

Webmaster (6 Months)

Need a custom solution?

Try our Shop!

Using the Plugin

Layer Support

Layer Tags

How To Guides

Optimization Tips

Help Us Improve


We aim to keep our content relevant with useful information, examples, samples and links. Tell us what you think!

I found the content:

Helpful
Confusing
Outdated
Broken Links
Bad Spelling
Too Short
Too Long

This page needs:

Nothing
Better Content
Links
Examples
Videos

Free Download


Cheat Sheet

A full sample of our support for text, shapes, images and effects.

Start Your 14 Day Free Trial

New users get instant access to the 14 Day Free Trial with all features enabled, and Free Online Training. We guarantee your first conversion will 100% work - we work with you to ensure this, contact us or check our FAQs for assistance.

Connect With Us

Top
Lightning Storm version v17.0216.05 releasedLearn More