I want to add some centered elements to a LinearLayout(like textViews or buttons). If I use android:layout_width="fill_parent" the button can be too big on a large screen like a tablet. So I am thinking to limit the width on larger screens.
I use this
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical" >
<LinearLayout android:orientation="vertical"
android:layout_width="310dp"
android:layout_height="fill_parent"
android:paddingBottom ="60dp"
android:paddingTop ="10dp"
android:paddingLeft ="5dp"
android:paddingRight ="5dp"
android:id="@+id/linear_id"
>
...............
</LinearLayout>
</LinearLayout>
From what I see the smallest screen size for Android is 320dp This layout will be displayed ok on any small screen or do you think I could have problems on some devices? I have set the width to 310dp and the total padding is 10dp so in total it should be 320dp.
Thanks