"normal" or "high" density screen.For simplicity, Android categorizes the density of all actual screen densities at four kinds of generalization: low, Medium, High, extra. Direction (Orientation)The screen orientation viewed from the user's perspective. This refers to horizontal screen (landscape) or vertical
Start Page Use this as a background imageThere is also a picture copyright.pngAll right, let's do it now.Start, black screen white screen change this picture look, haha ~Launcheractivity interface installed after start-upAdjust to Mainactivity interfaceIn this way, originally wanted to give GIF animation, with the film Down, AO ao do not know how to send to the
. HARDKEYBOARDHIDDEN_YES ){
// When the physical keyboard is closed, add additional processing code here
}
}
Do not forget to add import android. content. res. Configuration to the java file.
In this way, when the screen direction changes, the display interface of the application will also change, rather than be destroyed!
There is also a property in the Activi
1. Setting the screen orientationWhen the orientation of the screen is specified (not screen_orientation_unspecified), the screen does not rotate itself activelyThere are 2 ways to control the screen orientation: 1.1 Change androidmanifest.xml added to the activity of Androi
The cocos2d-x is compiled onto iOS. The default is a horizontal screen, to change to http://Vertical screen. Different iOS version numbers. Methods can also be differentOn The iOS7, perhaps we set the screen. But it may change on the IOS6. Here 's What I'm doing for you.Rep
Himi original, you are welcome to reprint, please note clearly! Thank you.
Address: http://blog.csdn.net/xiaominghimi/archive/2010/12/29/6104731.aspx
Let's first explain the bugs we need to improve in touch screen event processing! Then we will show you how to disable switching between landscape and landscape screens! And what is the switching process in android OS.
First look at a piece of code:
··· ·
some Android software needs to display a splash screen at startup, can be a picture or some set what, there is also a good thing is that the opportunity to load data in the background. There are generally two ways to create a splash screen:1, create an activity, display the splash screen, and then start the main activi
http://2960629.blog.51cto.com/2950629/701227Method One: Configure in Androidmanifest.xmlIf you do not want the software to switch between the two screens, the simplest way is to find in the project Androidmanifest.xml you specify the activity in addition to the Android:screenorientation attribute, he has the following parameters:"Unspecified": The default value is determined by the system to determine the direction of the display. The decision strategy is related to the device, so different devi
Method One: Configure in Androidmanifest.xmlIf you do not want the software to switch between the two screens, the simplest way is to find in the project Androidmanifest.xml you specify the activity in addition to the Android:screenorientation attribute, he has the following parameters:"Unspecified": The default value is determined by the system to determine the direction of the display. The decision strategy is related to the device, so different devices will have different display directions.
Android open-source QR code recognition project zxing landscape screen changed to vertical screen recognition solution, androidzxing
I found a lot of methods on the Internet, but there was a problem in the end. After debugging for several hours, I finally solved the problem of portrait screen recognition perfectly.
Fir
In Android to let a program's interface always maintain a direction, not with the mobile phone rotation and change the way: As long as the androidmanifest.xml inside the configuration can be.
The android:screenorientation= "Landscape" attribute can be added to the configuration of Androidmanifest.xml activity (which requires an activity that prohibits steering) (landscape is horizontal, Portrait is longitu
current page is being slid @Override Public void onpagescrolled(intPositionfloatArg1,intARG2) {//arg0: The current page, and the page you clicked to swipe //arg1: Percentage of current page offset //arg2: The pixel position of the current page offset}//Called when a new page is selected @Override Public void onpageselected(intPosition) {//Set bottom dot check stateSetcurdot (position); } }}Code p
Mobile phone wallpaper General friends do not use the system brought by the wallpaper to do the background, we will generally choose beautiful scenery, beauty, handsome or their own photos and photos and couples to do the background, then this background how to change? specifically as follows.
1. Under the standby page, long press the main screen page blank.2. Click on the "wallpaper" option (this is the d
that was added from Android 2.3 (API level 9).DPI is the abbreviation for "dot per inch" and the number of pixels per inch.General screen: LDPI is 120,mdpi is 160,hdpi is 240,xhdpi is 320.Third, how to achieve adaptive screen size?1) Interface layout aspectIt is necessary to prepare 5 sets of layouts according to the size of the physical size, layout (put some c
Android Screen Toggle Summary (Android data)Android screen to solve the problem should be two:I. Layout issues Two. Reload the problem1. Layout problem: If you do not want the software to switch between the screen, the simplest wa
).XLarge is the category that was added from Android 2.3 (API level 9).DPI is the abbreviation for "dot per inch" and the number of pixels per inch.General screen: LDPI is 120,mdpi is 160,hdpi is 240,xhdpi is 320.Third, how to achieve adaptive screen size?1) Interface layout aspectIt is necessary to prepare 5 sets of layouts according to the size of the physical
slice is the same, the picture is more blurry on a higher-pixel device because the picture is only 320 pixels wide, but the pixel width he is drawing is 480 pixels.You can change the density of the target screen by using the Target-densitydpi window property in your Web page. His attribute values are as follows:DEVICE-DPI uses the device's own dpi as the target pixel, and no scaling occurs by default.HIGH-
Android uses code to change the layout of controls. android Layout
In many cases, the layout in xml cannot meet our requirements, and we need to control the layout of controls in code.Control the layout according to different conditions. First, let's take a look at some units in Android
Dip: device independent pixels (
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.