Beautiful Android Interface

Source: Internet
Author: User
<span id="Label3"><p>1. Modify the interface background</p><p>1.1 Modifying the background color</p><p>1.1.1 Method One: Call the system color resource android:background= "@android: color/background_black"</p><p>1.1.2 Method Two: Set the color value android:background= "#ff0000"</p><p>1.1.3 Method three: Create a Color.xml resource file under the Res/values/directory android:background= "@color/green"</p><p>1.1.4 method Four: Set the Tv.setbackgroundcolor method in Java code</p><p>1.2 Modifying the background image</p><p>1.2. Import local image 1android:background= "@drawable/ic_launcher"</p><p></p><p>2. Hyperlink function text label</p><p>2.1 In the XML file, set the properties of the TextView</p><p>android:autolink= "web"//link Network</p><p>android:text= "www.baidu.com"//link Address</p><p></p><p>The Autolink property value can have the following options</p><p>None: No matching link type</p><p>Web: Match URL address, Click to open Browser</p><p>Email: Match email address, Click to open Mailbox email</p><p>Phone: Match phone number, Click to open the Dial-up interface</p><p>Map: Match maps address, Click to open Map options</p><p>All: Select the appropriate one in the Web,email,phone,map</p><p>HTML styles displayed in 3.TextView</p><p>String str= "html statement";</p><p>Tv.settext (html.fromhtml (str)) in Java code;</p><p></p><p></p><p></p><p>    </p><p>Beautiful Android Interface</p></span>

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.