layout - How To Create Screen Size Independent Android Applications -


I am working on Android 2.2, I have developed an application that has an image view and a button view. Both images and buttons appear in HVGA, but in QVGA I could only see the image. The remaining buttons below the image view are not visible.

How do I manage multi-screen resolutions in Android?

I tried to keep the button above the image and it worked well for HVGA and QVGA. Please let me know how I can control the situation by placing buttons below the image view.

I have done this in a relative layout

The width and height of the image is the width of the fill_parent and wrap_content buttons, and the height is the rap_compression and the wrap-content.

If you do not have enough space, then your picture is on a smaller screen and the layout Use another folder with a different version of and like:

  res / layout / my_layout.xml // Layout small density for normal / screen size / layout < / Small screen size size for / pre> 

-small / my_layout.xml // layout for the icon image / you scroll all screen in the scrollview Can

You can find enough information about dealing with here


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -