Recently things have been very busy, a new project to rush out, but many functions have to redo, has been writing code, Debug. Today, because a new program to use fragment to do, although the previous use of fragment, but did not study carefully,
Effect chart
train of thought: is to set the number of GridLayout first, and then put a certain number of custom Calendar button control, the last implementation of the calendar logic can be.
Steps:
First step: Customize the Calendar control
TextView in Android is one of the most complex controls in the entire framework, responsible for most of the work of displaying text in Android, and many of the controls in Framwork are directly or indirectly inherited from TextView, such as button,
0, about the registered account is needless to say.
1, the creation of applications, access to Appkey
0. Create Application
1, fill in the information
2. Get Appkey
2, integration
0. Create a new project first
1, here mainly introduces
According to the EditText search box ListView Dynamic display of data is based on demand, feel that the things involved may be more interesting, so start to write a write, I hope to help you a bit.
First, let's analyze the whole process:
1, create
A lot of times we're sensitive. Google follows a large number of MVC architectures when designing Android, allowing it to be independent of writing public code, artwork, and concrete logic developers. How do you implement a formatted string in the
Recently, the customer update system found that the previous project in the call to the camera, Flash returned, very strange, later found that Android 6.0 after the need for program authorization camera permissions, the default will give a hint, let
I saw an iOS component Pendulumview on the Internet and realized the animation effect of the pendulum. Because the native progress bar is really not good-looking, you want to be able to customize the view to achieve this effect, can later be used to
Effect Preview
Source code Transfer Gate: Https://github.com/yanzhenjie/CircleTextProgressbar
Realization and principle
We've seen it in many apps, such as app welcome page countdown, download file countdown, etc.
Analysis of the principle,
Why does Android have to be resolution and screen fit
The biggest reason is fragmentation, because Android's open source measures and the individual manufacturers ' own subtle changes, the result becomes this kind of
There are so many screen
"Introduction"
The order in which we usually write ListView is this:• Data sets that need to be displayed list• Write a ListView for this dataset• Write a adapter for this listview, usually inherited from Baseadapter• Write a Viewholder class
Lambda is the 11th Greek letter, uppercase λ, lowercase λ, amount, digress ... Lambda expressions are one of the new features of JAVA8:
Lambda expression
Function-Type interface
Streaming API
Default method
The new date
Time
CardView with ImageView display Circular Chart effect chart:
Just looking at the custom View knowledge point, suddenly remembered that if the width is CardView equal, CardView set the radius of the fillet is half the width of the height, is not a
ListView control is quite complex, but also in the project should be regarded as more commonly used, so wrote a small demo to say, mainly the use of custom adapter, added a lot of judgment and so on ... let's look at the effect of the implementation!
Key words:android decode WEBP sample
When I knock down the keyboard when there is a deep sense of shame, see the Android 4.0 support WEBP format image, so I am looking for the provision of what kind of api,nnd, obstinately did not find, then hold a
Android positioning generally has four methods, these four ways are: GPS positioning, WiFi Dingzhun, base station positioning, AGPS positioning, &NBSP (1) Android GPS: Requires GPS hardware support, direct and satellite
1 The idea of solving bugs:
Step1: When bugs are found (excluding extremely low contingency, single sex, development tools cause)
Step2: Based on experience to judge the recurrence of a bug, multiple tests, until the precise positioning of the bug
Here is the result chart (each state is represented by an emoticon):
One, the main page layout file is as follows:
It's a linecharview custom View , and it's a app:xx View variety of attributes.
In values the Attrs file, add
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.