Screen resolution

I study Android and Phonegap development mainly from these two sources:

http://news.softpedia.com/news/How-to-Run-Android-Applications-on-Ubuntu-115152.shtml

http://wiki.phonegap.com/w/page/30862722/phonegap-android-eclipse-quickstart

I have a Samsung Galaxy Tab.

What puzzles me, though:

  • What screen size do I use in development to cover the largest number of Android phones and tablets here in Q4 2010? Do you recommend WVGA800 for 480x800 screen?
  • How do most Android apps resize correctly in my 7-inch Samsung Galaxy tab, although it has high resolution? What are developers doing to achieve this? I mean, can you make your applications somehow extensible and fonts? In addition, Google discovers that the application is designed for a smaller screen and therefore it handles resizing for the Galaxy Tab? And do I need to change something in AndroidManifest.xml?
  • I used the default HVGA value in the emulator and it was fast. When I switched to WVGA800, it became much slower. Why is this?
+3
source share
2 answers

Android ( PhoneGap, , ):

  • 320x480 480x800. Galaxy Tab (. Samsung ).

  • Android ( ) . MATCH_PARENT ( FILL_PARENT) WRAP_CONTENT, , , , . "DP" ( ), ( 2dp 2px HVGA, 3px WVGA-). SP, , .

    . , LinearLayout , (, TextView EditTextView). WRAP_CONTENT , , , layout_weight = "1" EditTextView, , . , Galaxy.

  • , . Android.

, , PhoneGap WebApp, Android Web Apps .

( , ):

, AndroidManifest , , :

<supports-screens
  android:smallScreens="true"
  android:normalScreens="true"
  android:largeScreens="true"
  android:xlargeScreens="true"
  android:anyDensity="true" />

CSS , em ..

+8

, :

<supports-screens 
android:smallScreens="true"                   
android:normalScreens="true"                   
android:largeScreens="true"                   
android:anyDensity="true" />
<uses-sdk android:minSdkVersion="4"></uses-sdk>
+1

Source: https://habr.com/ru/post/1781133/


All Articles