A ListView of Common Android UI components (ii)--Customizing the ListView
In this article, we show that the ListView selects multiple items and implements the filtering function ~
1. Add the following code to the Strings.xml file located under the Res/values folder:
2, modify the previous article in the Basicview5.java file code, the rev
Length_short showthe View or text notification for a short period of time.Static ToastMaketext (context context, int resId, int duration)Make a standard toast, the just contains a text view with the text from a resource.Static ToastMaketext (Context context, charsequence text, int duration)Make a standard toast, that just contains a text view.voidShow ()Show The View for the specified duration.Display with Simpleadapter combined with a ListViewRun effectSource Code activitylist 2 . JavaPackage
); Super.handlemessage (msg); } }3. Modify the text of the main thread through Message Queuing: classMyHandler extends handler{@Override Public voidhandlemessage (Message msg) {System. out. println ("This is a message from MyHandler:"+Thread.CurrentThread (). GetName ()); String s=(String) msg.obj; Textview.settext (s); Super.handlemessage (msg); }} classButtonlistener implements view.onclicklistener{@Override Public voidOnClick (view view) {thread thread=NewNetworkthread
layout file: Main.xml
XML version= "1.0" encoding="Utf-8"?>
linearlayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Here is TextView, you can display some textual information here. "
/>
linearlayout>
Autocompletetextview Auto-complete input box implementation input prompt list for selectionGridView Grid ListExpandablelistview Collapsible List ComponentSpinner drop-down list selection boxGallery Gallery A picture set for sliding operationsAdapterviewflipper Implement picture CarouselStackView Stacked ViewProgressBar progress barSeekBar Drag BarRatingbar Star rating BarViewanimator display animation when switching between viewImageswitcher Text switcherImageView Image SwitcherFour common dialo
"Android threading Mechanism"For performance reasons,Android UI operations are not thread-safe, which means that if there are multiple threads concurrently manipulating the UI component, it can cause thread safety issues. To solve this problem , Android has a simple rule : o
Amazeui (sister UI) is a very good domestic front-end UI, now to introduce the Amazeui CSS components, JS plug-ins and Web components of the difference.CSS components, as the name implies, only use CSS rendering of components, and
localization, need to introduce angular-locale_zh-cn.js file2. Once the correct script is introduced, you need to specify the dependent module in the module, namely:Angular.module (' MyModule ', [' ui.bootstrap ']);3. The font icon used by bootstrap has two files, with the suffix woff and woff2. By default, IIS does not support these two file types, so you need to add a MIME type, as follows:system. WebServer> staticcontent> Removefileextension= ". Woff"/> MimeMapfileextension= ".
-collapse= "isCollapsed"collapsed= "coled ()"collapsing= "coling ()"expanded= "exped ()"Expanding= "exping ()"> Divclass= "well well-lg">Some ContentDiv> Div> Div> Body> HTML>The properties that a collapsed control can use Are:(1) Uib-collapse. The default is FALSE. indicates whether the control is closed(2) Collapsed. The function that is called after the component is Closed.(3) Collapsing. the function called before the component is closed. if a rejected promise is retu
No-transition
False
When set to False, a scrolling animation is turned on
No-wrap
False
When set to False, the picture loops through the
Template-url
Uib/template/carousel/carousel.html
The default template
The properties that the Uib-slide directive can use are:
Property name
Default value
Note
Actual
Sets an object that will be bound to the scope of the scroll page
-placement
Top
The location of the prompt box. The values that can be set include: Top,top-left,top-right,bottom,bottom-left,bottom-right,left,left-top,left-bottom,right,right-top, Right-bottom
Popover-popup-close-delay
0
Delay time before closing the cue box
Popover-popup-delay
0
Delay time before displaying the prompt box
Popover-trigger
MouseEnter
To display a trigger event for a prompt box
Popover
Reprint please indicate this article from Jflex blog http://blog.csdn.net/jflex/article/details/46476599, please respect others ' hard work results, thank you!Native to Android UI-(1), Introduction to Android UI and common properties and phenomena Introduction: Android
Android thread --- communication between the UI thread and the non-UI thread, android --- uiRecently, I learned about the thread and used a morning to finally develop the communication between the main and sub-threads. After the main thread sendMessage, The subthread calls handleMessage to obtain the Message you sent.
Four major components of Android development: Service (detailed description) and four major components of android
Four components of Android development-Service
I. Service
Introduction
A Service is one of the four main
One post learns to develop four main components for Android and four major components for android
From: http://www.cnblogs.com/pepcod/archive/2013/02/11/2937403.html
This article focuses on four major components of Android develop
[Android Notes] use and implementation of the pull-down and refresh components and Android notes drop-down ComponentsIf you need to implement pull-down refresh in a project, you can choose from the following options:1. Use the open-source library Android-pullToRefresh.2. Use SwipeRefreshLayout provided by the support.
UI thread and Android single-thread model principles
When the application starts, the system createsMain thread).
This main thread is responsible for distributing events (including drawing events) to the UI components. In this main thread, your applications and AndroidUI components
Introduction to the basic components of the android-Android Application (5): four main components of androidActivity
Activity is the most basic module. We become an activity. An activity is usually a single screen. Every activity is implemented as an independent class and inherits the base class of the activity. Disp
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.