Home » Posts » Plugin » Output Environments » Android » Using Android UI View
Using Android UI View
Last updated on September 24, 2020 XD, PSD, AI and INDD layers to Android UI with clean and clear code becomes simple. Translate your XD, PSD, AI and INDD layers to Android UI with advanced support for text, images and shapes.
NOTE: In v127 we use layout_marginTop
and layout_marginLeft
for positions.
Example Image Element
1
2
3
4
5
6
7
| <ImageView android:id="@+id/index_button_bg"
android:src="@drawable/index_button_bg"
android:contentDescription="@string/ek_img_content"
android:layout_marginLeft="927dp"
android:layout_marginTop="1311dp"
android:layout_width="143dp"
android:layout_height="51dp" /> |
Example Text Element
1
2
3
4
5
6
7
8
9
10
11
| <TextView android:id="@+id/page_title"
android:fontFamily="ArialMT"
android:textStyle="bold"
android:textSize="72sp"
android:textColor="@color/page_title_color"
android:layout_marginLeft="98dp"
android:layout_marginTop="131dp"
android:layout_width="888dp"
android:layout_height="188dp"
android:text="@string/page_title_string"
/> |
Example Shape Element
1
2
3
4
5
6
| <View android:id="@+id/thumbnail"
android:background="@drawable/thumbnail_shape"
android:layout_marginLeft="132dp"
android:layout_marginTop="1253dp"
android:layout_width="165dp"
android:layout_height="165dp" /> |
Customize the Android UI 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
| <TextView android:id="@+id/page_title"
android:fontFamily="ArialMT"
android:textStyle="bold"
android:textSize="72sp"
android:shadowRadius="2"
android:shadowColor="#000000"
android:shadowDx="3"
android:shadowDy="4"
android:textColor="@color/page_title_color"
android:layout_marginLeft="98dp"
android:layout_marginTop="131dp"
android:layout_width="888dp"
android:layout_height="188dp"
android:text="@string/page_title_string"
/> |
Example Inline Content
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| <!--
res/drawable/header_bg_copy_3.xml
<shape xmlns:android="//schemas.android.com/apk/res/android"
android:shape="rectangle" >
<solid android:color="@color/header_bg_copy_3_color" />
</shape>
-->
<View android:id="@+id/header_bg_copy_3"
android:background="@drawable/header_bg_copy_3_shape"
android:layout_marginLeft="116dp"
android:layout_marginTop="-47dp"
android:layout_width="445dp"
android:layout_height="229dp" /> |
LOGIN NOW: Get instant access to our free Online Training - click here.