Skip to content Skip to sidebar Skip to footer

My Android Application Layout Does Not Fit Well On Different Devices?

Here are snapshots of what my application looks like It fits on some devices and not on others: As you can see, horizontally it fits really well no matter what. How can I make su

Solution 1:

keep layout:weight =1 for all buttons and set the layout width for table row fill_parent

Solution 2:

Based on your other post, since you have different layouts, in the code you can determine orientation with the following code:

intorientation= getResources().getConfiguration().orientation
if(orientation == Configuration.ORIENTATION_LANDSCAPE)//landscape code...else//portrait code...

I posted in both threads for you.

Post a Comment for "My Android Application Layout Does Not Fit Well On Different Devices?"