• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Create Screen Size Independent Android Applications

nive

Lurker
Hi All,

I am working on android 2.2, I developed an application which is having an Image View and a button view.
In HVGA both the image and button are visible, but in QVGA I could see only the image. Rest of the buttons that are present under the image view is not visible.

How do I manage multi-screen resolutions in Android ?
Is there any thing like maintaining Aspect Ratio of the image to adjust the size as well maintain clarity.

I tried placing the buttons above the image view and it worked properly for HVGA and QVGA.
Please let me know how can I handle the situation by placing the buttons below the image view.

I have done it in relative layout

Image width and height is fill_parent and wrap_content
Button width and height is wrap_content and wrap_content.

Thnks,
nive
 
Welcome to Android Forums! :) This is the wrong place to post this query. I will move your post to the right one for you! :)
 
well , as that you are using fill_parent , wrap_contents
I can't say exactly what's the problem , but try changing the way of the layout to relatively and use dip instead of px
i.e
android:layout_width="163dip"
not
android:layout_width="163px"
 
I don't know if this is exactly what you're looking for, but I've been developing apps for the enTourage eDGe and I just add this into the manifest:

Code:
      <supports-screens
          android:largeScreens="true"
          android:normalScreens="true"
          android:smallScreens="true"
          android:anyDensity="true" />
 
Back
Top Bottom