Common properties for a TextView control
Property name
Describe
Android:autolink
Sets whether the text appears as a clickable link when the text is a URL link/email/phone number/map. Optional value
Android docs don't know why not write android.graphics.Region.Op the details of this enumeration
Found an article on the Internet, write down the memo:
INTERSECT takes the intersection of the two, the default way
Difference first time different
Android.app.Activity
Activity is the user's main and only way of dealing with it. Basically all activity is with the user, you can create a window through Setcontentview (View). Activity is often displayed in a full window pattern, and there are
In addition to being able to create and use files at run time, you can also place files in the package at design time so that they can be used at runtime. For example, you want to pack some help files into a program that you can show them when they
Several previous articles described the main three ways to store data in Android applications: Sharedpreferences, internal storage, and external SD card storage. What kind of way do you use it in your application? Here are some suggestions:
1. If
As you've seen in the previous section, Preferenceactivity This class allows users to create and modify preference information at run time. If you want to use these preference information, you need to use the Sharedpreferences class.
1. Continue to
We can also create another fragment of--dialogfragment. As the name suggests, Dialogfragment is a fragment floating above the activity. Dialogfragment comes in handy when the user's feedback is needed. Similar to using listfragment, you need to
Use an example to summarize the basic use of ListView.
1. A new project: Listviewdemo.
2. Code in the Main.xml.
3. Code in the Strings.xml.
hello world, basicviews5activity!
ListView is a view that can be extended in depth. When doing a project, it is necessary to extend the ListView to show the data. Next, you'll show how to select multiple objects in the ListView and how to use the ListView Filter feature.
1. Use the
Using Timepicker, you can allow users to select events for the day, including a 24-hour system and a am/pm. The following example will show how to use Timepicker.
1. Create a project: BasicViews4.
2. Code in the Main.xml.
Autocompletetextview and EditText are very similar, in fact, Autocompletetextview is the EditText subclass. With Autocompletetextview, a message pops up automatically when the user is typing. The following example shows how to use
Users can interact with your UI in two levels, one at the activity level and the other in the view level. At the activity level, the activity class exposes some of the methods that you can rewrite. There are some common methods that you can rewrite
So far, in all the chapters, the UI we've seen is implemented through XML. As mentioned before, in addition to using XML, you can use code to implement the UI interface. This approach is useful, such as your UI needs to be generated at runtime. For
In addition to displaying the title of the application icon and activity on the left side of the Actionbar, additional items can be displayed on the Actionbar. These added items are called "Action items." These items are shortcuts to some of the
Using Absolutelayout, you can specify the exact location of the child view in it. Observe the code in the following main.xml:
Here is the effect chart, using the Android:layout_x and Android_y
Viii. Specifying a callback function
The content of this section is critical. Regardless of how complex or "cool" the Linux drivers are, it is important to allow user-space applications to interact with kernel-space drivers. The most common way to
LinearLayout organizes views into one row or column. A child view can be arranged vertically or horizontally. To see how LinearLayout works, consider the typical mail.xml file first.
In Main.xnl, you can see that
We already know that an activity invokes another activity by using the intent object. In order to be able to respond to other activity, you also need to configure elements in Androidmanifest.xml, specifying both action and category. For example:
In the previous article, I worked with you to implement the group navigation and extrusion animation features similar to the Android contact, but since the article is called the Android contact Full effect implementation, there is no quick scrolling
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