Basic layout of android controls and layout of android controls
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
Actual DPI and system identifier of Android devices-ldpi/mdpi/hdpi/xhdpi/xxhdpi/xxxhdpi and ldpimdpi1. The actual DPI of the device and the system identifier DPI
2. DPI values allowed by drawable
The legal name of the drawable file is as follows:
Use findViewByMe in Android to improve component search efficiency and PV component Conversion Efficiency1. Lead
Android beginners generally add the setContentView method to the onCreate method when writing android Activity to load layout, and use
Gesture events, html5 gesture events
1. Basic Gesture eventsThere are three main methods:DispatchTouchEvent: determines whether the event needs to be issued. If "true" is returned, it is delivered to the lower-level view. If "false" is returned, it
GestureDetector and gesturedetector
Because it is not easy to determine the real idea of user gestures in onTouchEvent, Android provides the GestureDetector detector to help us identify gestures. With the help of GestureDetector, you can identify
ViewPager combines unlimited view sliding and viewpagerview sliding
Use viewPager to slide infinitely. The implementation here is in the adapter. Of course, you can also use the sliding listener in the external header..
Import android. support. v4.
ConstraintLayout-dependent error: cocould not find *****, Failed to resolve: *****, constraintlayout
ConstraintLayoutConstrained Layout: one of the new features added in AndroidStudio2.2. You can first take a look at the new Android features in
KeyEvent mechanism (button), keyevent mechanism button
How does Android respond to button operations on mobile phones?
KeyEvent mechanism (buttons)
1. Understanding of Button operations
① Basic types of operationsDown: press your fingerUp: move
MotionEvent mechanism (touch screen) and motionevent Mechanism
How does Android respond to touch operations on a certain view?
MotionEvent mechanism (touch screen)
1. Basic operation types:Down: press your fingerMove: move your finger on the
Old man desktop === colorful desktop, Old Man Desktop
Recently, I started the transformation of an old man's desktop. The following is a simple list of mainstream old man's desktops on the market. The data used is on 360 mobile assistants.
1. Ruyi'
How does android change the format of some texts in the editText control? androidedittext
When we use the editText control, we will encounter this problem, that is, when I input, when I choose to make the text rough, the text I input will become
Difference between FragmentStatePagerAdapter and FragmentPagerAdapter, fragmentpageradapter
1. If Fragment is loaded in ViewPager, the provided Adpater can inherit from the specific: FragmentStatePagerAdapter or FragmentPagerAdapter
2.
Learning notes: pull-down refreshed view and graph rotation, learning notes View
1. View displayed only in the drop-down list
Pull_to_refresh_header.xml
android:id="@+id/pull_to_refresh_view"
Android cancels EditText to automatically obtain the default focus behavior, androidedittext
Recently, when a new contact = in the address book enters a page, EditText automatically obtains the focus by default, which is very depressing. How can I
Android advanced components ----- grid view, Android ----- Grid
Grid view A planning container commonly used by Android. The view itself is divided into a matrix of rows and columns. cells are placed with their own components and content, usually
Android Service and AndroidService
Service in Android
Service Introduction:
A Service is designed to perform operations that take a long time in the background.Because Android allows the Service to run in the background or even after the Activity is
In Android, Handler and CountDownTimer are used to implement a pop-up page with countdown and countdownview countdown.
In the previous blog post "Handler usage in Android", Handler's usage and implementation principles are derived from 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