I’ve created custom dialog (from xml file), like below:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:minWidth="280dip">
<Spinner android:layout_width="fill_parent"
android:layout_height="wrap_content" android:id="@+id/subscription_quality"
android:prompt="@string/subscription_quality_prompt">
</Spinner>
</LinearLayout>
Now spinner width is equal to the width of the dialog (“fill_parent“).
I would like to add indents on the left and right, but looks like paddingLeft and paddingRight has no effect.
Ok, found two solutions:
layout_heightto fixed value260dip
layout_marginLeft/Right.