An excellent mobile application needs to have its own unique and unified style, usually the UI designer will design the overall style, interface elements and control interaction according to the product requirements and the characteristics of the people who use them. While the original Android controls provide developers with the most basic building blocks, the custom use of the controls is necessary if you want to accurately convey a unified visual and interactive experience.
This article explains how the Android custom control works by using a simple example created from a Java daemon.
<linearlayout xmlns:android= "Http://schemas.android.com/apk/res/android"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"android:gravity= "Center"android:orientation= "vertical" > <!--Display a button----<ImageView Android:id= "@+id/icon_part"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"android:layout_gravity= "Center"/> <TextView Android:id= "@+id/text_part"Android:layout_width= "Wrap_content"Android:layout_height= "Wrap_content"android:layout_gravity= "Center"Android:textcolor= "#fff"/></linearlayout>