Android Custom user Controls Simple example (i)

Source: Internet
Author: User

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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.