Talking about how android can adapt to both pad and mobile phone, and talking about how android can adapt to pad at the same time
Precautions and skills
Some time ago, the company wanted to create an android app and adapt it to pad
Previous precautions and TipsSome time ago the company to do an Android app, but also to adapt to the pad and mobile phone. At first I thought it was impossible to achieve, because the app we saw on the market was two versions, mobile and pad, respectively. Because the size of the phone and screen is too different, it is generally not said that an app is compatib
) wvga854* (480x854)
Table 1
3.3 Mobile phone size distribution (http://developer.android.com/resources/dashboard/screens.html), as shown in Figure 3, is currently mainly based on the resolution of 800*480 and 854* 480 of mobile phone users are mostly
Figure 3
From the above screen size distribution, in fact, the mobile phone only consider 3-4 5 inches between the density of 1 and 1.5 of the cell phone
4 UI Design
From a development perspective, the application will p
Previous precautions and TipsA time ago the company wanted to do an Android app. At the same time to adapt to the pad and mobile phone. Just started to think that this is impossible to achieve, because we see in the market app are two version number, respectively, mobile and pad version.Because the size of the phone and screen is too large, it is generally not sa
Scenario: Running on the virtual machine is normal, but to my real machine decryption failed, appeared pad block corrupted, is said to be version reason: My machine is Xiaomi 3 latest version of Android 4.2The code that is having the problem:private static byte[] Getrawkey (byte[] seed) throws Exception {Keygenerator KGen = keygenerator.getinstance ("AES");//securerandom sr = securerandom.getinstance ("sha1
In October June 1, aoyou released the Maxthonpad version of aoyou browser. This is a browser developed by aoyou for tablets on the Android system following the PC desktop browser and mobile browser.
Highlight 1: The interface experience is highly consistent with that of tablet users
This proud Web browser pad has been specially optimized for tablet computers of the 10-inch and 7-inch sizes. In addition,
QQ Game Hall of the landlord game is a classic chess game, because it is very entertaining, young and old, all the year round are very popular with players, the player group is very large, this type of popular chess game, in the design of the advantage is not required to teach the players like the guidance, the rules of the game are familiar, need to do is to create the main players A comfortable game environment, so that players can be free to play a happy game.
The design required this time i
Many Android Developers or websites may question how to differentiate UA between Android phone and Android pad. It is true that this problem is very difficult. I was also troubled for a while, and later found a solution in stackoverflow.
Answer:
Mobile android has "mobile" i
://developer.android.com/resources/dashboard/screens.html) 3 shows, the current is mainly to the resolution of 800*480 and 854*480 mobile phone users mostly
Figure 3
From the above screen size distribution, we can only consider mobile phones with a density of 1 and 1.5 between 3-inches.
4. uidesign
From the perspective of development, the application provides three sets of UI layout files based on the screen of three types of Android phones, but thre
Switch to design mode in Android-Memo modeDefinedThe definition of the memo design pattern is to entrust the State records and management of the object to the outside world to maintain its own closeness.Compare the official definitionThe memo pattern (Memento pattern), also known as snapshot mode (Snapshot pattern) or
Onsaveinstancestate () and onrestoreinstancestate () to restore activity status in Android,Is this sort of a memo model?1. Definition:The internal state of the object is captured without destroying the package, and the state is saved outside the object, so that the later saved state can be restored later;1. Function:Memo mode, which is suitable for classes that are complex in function but need to maintain a
It is easy to forget the concept of the frame layer, and write a memo to make a note of the focus of understanding and the doubts encountered.Context: With Android first contact with a class, the use of very very wide, in all places to use, such as Toast, Dialog, New TextView (), GetResource (), and so on, often have a parameter is the context. At the beginning of the object is very confused, translation ca
Android property animation memo nineoldOccasionally, animations are used for project development. It is too troublesome to copy the previous code every time, but I can't remember it, so I have to write it here.
ObjectAnimator. ofFloat (view, "translationX", 0, 50,-50, 0 ). setDuration (duration ). start (); // shift ObjectAnimator. ofFloat (view, "translationY", 0, 50,-50, 0 ). setDuration (duration ). star
ten, column-1 from + One 2101from2100 to columns.The old driver developed by Android is estimated to be familiar with the above log, the first two is to get the data of the specified column index is wrong, very good solution.The third one has a nod big, research down found with Wal has a great relationship, there is no perfect solution?Cursorwindow default size is 2MB, stupid way of course is to change this a little, but the palliative does not cur
Defined in the style as follows:
If you want the entire app to be the same, you can change the Androidmanifest.xml and refer to the style on application:
If you just want to act on an activity, then change the theme of one of the actions.
The above is a small set to introduce Android through the style to remove the app's head and Interface Full screen (memo), hope to help everyone, if you
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.