Reputation: 1549
I have already developed an android app and is ready for 3.7 inch hdpi phone .But I want the app to work on all types of devices tablets and phones . I have previously developed apps onlyy for fixed sizes . Now I wanted to know for which sizes I should set the layouts differently.(I want the most commonly used sizes)?Please help.
Upvotes: 0
Views: 109
Reputation: 7636
Place all the layouts
with android:layout_width="fill_Parent"/"wrap_content"
and android:layout_height="fill_Parent"/"wrap_content"
(ofcourse, based on your requirement). Dont hard-code any one of the layout
parameters and place the below tag in Manifest
file:
<supports-screens android:largeScreens="true"
android:normalScreens="true" android:smallScreens="true"
android:resizeable="true" android:anyDensity="true" />
Upvotes: 3