Google recently released Android studio, which is a fascinating and hateful thing for cainiao who are learning Android. It is easier to use than eclipse, however, it is really uncomfortable for these cainiao to get familiar with a new software, but since they have caught up with this bus, it is good to get started early ~ I recently used it for practice and delayed blog updates. Next I will start with my topic!
1. favorite_listitem.
2. Feedback: This file provides feedback in system settings. The following figure is provided:
This time, the relative layout of relativelayout is used. It is estimated that the box is placed in the center of the mobile phone, followed by a <scrollview> label, and a scroll bar is added. To be honest, I think this is a superfluous addition, scroll bars are not required. The Android: scrollbars = "NONE" attribute is used to hide the scroll bars .... Is this intentional? Otherwise, Android: scrollbars = "NONE" does not display the scroll bar, but it can be rolled, I found that the blue box can be moved up or down, which is the role.
Android: layout_centerinparent = "true" attribute, completely centered relative to the parent element.
android:paddingTop="14.0dip" android:paddingLeft="14.0dip" android:paddingRight="14.0dip"
This piece of code is naturally the size of the box, and the problem comes again. Since it is completely centered over the parent element, why do we need to specify the control distance? Isn't linearlayout completely usable? I have carefully considered that the text below must be in the box, so linear layout is unavailable, which should be the main reason.
Android: layout_margintop: the distance from the previous file. Many controls are used here. For example, the following controls control the distance between each other.
The following are two texts: "feedback" and "Welcome to provide valuable comments and suggestions". The following is a text editing box for Android: autolink = "Web | email" attribute, the program can actively identify web links and e-mail. There is also an Android: hint attribute, prompting information, as shown in the figure. There is a button next to it. There is an image at the bottom, which defines the close button in the upper right corner.
3. frame_active: enter this page in my space. If not, first:
In a linearlayout, linearlayout is used to represent the top part. The top part is very simple. Five buttons are written with different names, which can be done directly with the same background.
The content is a little troublesome,
<net.oschina.app.widget.PullToRefreshListView android:id="@+id/frame_listview_active" style="@style/widget_listview"/><net.oschina.app.widget.PullToRefreshListView android:id="@+id/frame_listview_message" style="@style/widget_listview" android:divider="@null"android:visibility="gone"/>
Reference the content in other packages. One is the form name and the other is information.
4. frame_news: from consulting to this page, you can see that the figure is the same as the previous one.
5. frame_question: enter from the Q & A, and the rest are the same as above.
6. frame_tweet: Move in, and the rest are the same as above.
7. frame_software: Open-source software from the menu, found that the code and the first few slightly added content, made a "open-source software library" header, I suddenly found that there were headers in the front of my mobile phone. They were "information", "Q & A", "moving", and "My Space". Why didn't I write code before? The answer is: the version is different, which is really annoying. The version must be synchronized next time, and the rest of the content will continue to be the same as above.
8. friend_listitem: The name of this Code is a friend list. However, I did not find such a column, but it is similar in my documents.
Linearlayout layout. Below are user portraits, gender images, user names, and friends.
The user name has an Android: ellipsize = "end" attribute, meaning that the ellipsis is at the end.
Android studio is really easy to use. I strongly recommend that you synchronize the version of your mobile phone with your computer in the next article. This is really inconvenient.
OK, not to be continued ~