Learning to develop Android for a year, think about this year's efforts, and indeed harvest a lot. Also found a better job. Today you are ready to share a project that was previously practiced in the beginner stage. Through this project I really found the development of the feeling of Android software, and gradually entered the formal development of Android. This
drawing process of friends, please refer to my article "you learn the framework of the Celtics brother" activity interface display full resolution.SummarizeUntil now, we finally know why the Jane book Android client is stuck, and we summarize
Due to the multi-tab design, resulting in a serious interface layout, not the system layout, there are more than 14 layers
Due to unreasonable interface, the partial layout is redrawn seriously
Recently I made an android music player. I personally felt that the most difficult part was "playing back" and "playing list", but I finally found the implementation method. Different people may implement different methods. Here I will share some of my implementation methods for the "playlist" module. "playing back" will be introduced in the next blog, I hope you can share some of your ideas.
Summary of various wonderful issues in android-list view
For list view, everyone must love and hate it. Based on the list view layout, as long as you are creative, you can write a variety of list views with good performance and cool interfaces. Therefore, you may encounter
effect of outer spacing. How to do not set the offset, the previous layer is completely blocked behind the layer, so you can not see the subsequent layer effect. For example, the above example, the tab background in the white background set Android:bottom to see a little red background. So what happens if the offset is set to a negative value? After verification, the offset of the excess will be truncated to see, do not believe you can try it yourself. Sometimes it's useful, like when I want to
The list selection box (Spinner) provided by Android is equivalent to the selection dropdown box for web-side user registration, such as registering for a selected province city. If it is a list selection boxThe list selection for the drop-down list can be specified by the A
Referenceleft , but the following words can not pull over. Tried all kinds of methods.Finally, inadvertently add a Backgroud attribute to RadioButton: android: id= "@+id/rball" android: layout_width= "match_parent" android: Layout_ height= "Wrap_content" android: background=
How does the tab background effect, and the shaded rounded rectangle, be implemented? Most people will let the artist cut the chart, with a point nine to do the background. But what if we only provide one picture? For example, the middle of the tab background red bottom of the pixel height of 4px, then, the display on the MDPI device will meet the expectations, on the HDPI device will be a little bit thinner, display on the XHDPI device will be more fine, the xxhdpi on the display is fine, It is
This article reproduced: http://blog.csdn.net/aminfo/article/details/7847761The first step: the first piece of material, the following materials are placed in the Res/drawable directory:The second step: on the animation animation-list frame layout file, there are 2, one is to display the animation sequentially, one is the reverse display animation, the file is stored in the Res/drawable directorySequential display of animation files: Animation1.xmlXML
Use of ExpandableListView in android development to implement a list similar to QQ friends
Due to work needs, I briefly studied ExpandableListView today and made a Demo similar to the QQ list to share with you.As follows:
Let's take a look at the main layout file:
VcD4NCjxwcmUgY2xhc3M9 "brush: java;">
Here we do not use the default s
Android App Development-Wizards CSDN Blog client's get comment listThe previous blog introduces the specific content of the blog's Business logic implementation, this blog introduces the wizard csdn blog client's last feature. Get a list of comments, the implementation of this feature is not the same as the previous to get the article list and article specific co
In Android, the Spinner is the automatically displayed style of the drop-down menu and AutoCompleteTextView. It is equivalent to the The Spinner Widget drop-down menu and AutoCompleteTextView provided in Android are very easy to use and style is also applicable,However, we can change the style of the drop-down menu by defining xml.Create an xml file in the layout directory with the name (activity_main.xml )
From the previous lessons, we can see that ListView is used to display a long list and occupy the entire screen (ListActivity ). However, sometimes you may need other similar views, so that you do not have to fill the entire screen. In this case, you should use the Spinner control. The Spinner displays a piece of information in the list at a time and allows you to select.
The following describes how to use
the list Loads
Progressbar = new progressbar (this );
Progressbar. setlayoutparams (New layoutparams (layoutparams. wrap_content,
Layoutparams. wrap_content, gravity. Center ));
Progressbar. setindeterminate (true );
Getlistview (). setemptyview (progressbar );
// Must add the progress bar to the root of the layout
Viewgroup root = (viewgroup) findviewbyid (Android. R. Id. content );
Root. addview (progres
Stickylistheaders library, by copying src/com/handmark/pulltorefresh/ Library/pulltorefreshlistview.java class, New Pulltorefreshpinnedsectionlistview.java class;2. Modify the Createlistview () method in the Pulltorefreshpinnedsectionlistview class, commenting the following code [Java]View Plaincopyprint?
if (VERSION. Sdk_int >= version_codes. Gingerbread) {
LV = new InternalListViewSDK9 (context, attrs);
} else {
LV = new Internallistview (context, attrs);
//}
Add
label so that when the user returns again, you will be able to open the appropriate Options tab. At the moment of saving, you can use the Getselectednavigationindex () method to query the current Selection tab. This method returns the index position of the selected option label.Warning: It is critical to save the required state for each fragment, because when the user switches between fragment objects with option labels, it will see what the fragment looks like when it leaves.Note: In some case
This article describes how to obtain the list of system applications in Android.
The Android system provides many service management classes, including ActivityManager, PowerManager (power management), and AudioManager (audio management. In addition, a PackageManger management class is provided to manage application packages. With this, we can get the applicatio
(new string[size]);2. The array is converted into a list. Call the Aslist method of arrays.Aslistpublic static This method also provides a convenient way to create a fixed-length list that is initialized to contain multiple elements:List stooges = arrays.aslist ("Larry", "Moe", "Curly");Parameters:A-an array of supported lists.Return:Specifies the list view of t
same attributes (such as int i), there is the same method (such as void f ()),The A.I is called the I in the listA.F () is called the F () in ArrayList;---------------------------------------------------------------The key to the problem:Why use list List = new ArrayList () instead of ArrayList alist = new ArrayList ()?The problem is that the list has more than
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.