The second update of Material design! This time, two controls Collapsingtoolbarlayout&&cardview
1, Collapsingtoolbarlayout
After 5.0, the app for folding has appeared, and Google introduced the control in the design of material in the previous
The effect is as follows, the finger on the phone to the left or right to achieve the corresponding page switch.
First look at the Activity_main.xml file, very simple, mainly three titles TextView and Viewpager
Let's see what the mainactivity
I. OverviewAndroid Cheetah Cleanup Master's memory opening ring ratio is very good, so the counter compiled Cheetah Master of the app, the original is there are two pictures, so think about the idea, using the top and bottom two pictures, rotate the
Android program, encountered the most error, one of the null pointer problem, empty pointer said: Good solution! is difficult to solve.
Well solved is said: Obvious null pointer problem, no instantiation class, control or ID wrong. A null pointer
Before the blog said the map embedding and positioning, today to say on the map to show some of what we want. There is a markers (tag) on the map, but it only shows an oval icon, which is generally not in line with our needs, so we need to customize
Recently in the project has a lot of drop-down box, in order to realize the convenience of using the Android spinner, but the spinner style does not meet the requirements, and then learn the custom spinner. Here's the whole step:
1. Get the picture
In the process of app development, inevitably will encounter loading webview, generally we will be fixed webview can not slide around but can slide up and down, sometimes the interface is loaded out of his format with the original page, then it will
The previous article said that you can use Scrollby and scrollto to move view, where a problem arises, adding a view in the upper-left corner of the screen (0,0) where he calls
Scrollto ( -300,-300), will immediately jump over, appear very abrupt,
In the Andorid many application development all need to record the user login information, uses the static variable handset shutdown User State Purge, the solution is uses the sharedpreferences to store the Android user information.
Introduction of
Unlike Actionbar, toolbar is more like a general view element, can be placed anywhere in the view tree system, can be applied to animations, can be scrolled along with ScrollView, and can interact with other view in the layout. Of course, you can
Whether it is a computer or mobile phone and other electronic devices, in the input password will always need to do some restrictions, such as can not enter a space, can not enter the illegal characters of exotic flowers, can not enter less than a
When we use Viewholder, the Child view control objects for each item are placed in Viewholder, and when the Convertview object is first created, The child view Control object Findviewbyid of the item is instantiated and saved to the Viewholder
In writing code to use the dialog box, many times we need to build the layout of the dialog box, that is, to customize the dialog, and then run out of effect, often the size of the dialog box is out of proportion, location is also the default center,
First, look at the picture:
When you slide up and down the area marked with the red frame, change the height of the ListView,
Start
1, to obtain ListView Layoutparams:
Layoutparams params= listview.getlayoutparams ();
2, for
Always used imageloader this frame to load the picture, feel the configuration is very troublesome, feel the use of Picasso this framework.
What is Picasso I will not say more, we can go to the official website to see,
Learning content: Example One, using the stringrequest implementation to get the string response of the server ... , What exactly are the requests that are implemented in Android volley that we need to use in development ... Volley realize
When we use a computer or a mobile phone, we often encounter a progress bar, such as the following figure:
Today I'm going to show you how to make simple and beautiful color gradient progress bars.
First I created a new
The project needs to display more than one picture in the ListView, using the GridView, but if the use of ordinary gridview,item just show a part, beyond the first line will not be able to show, this is very silent, So we have to inherit the
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