I have dialog with NumberPicker security questions. The long texts are cut off. How to solve this issue?
This is layout's content for dialog
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="10dp">
<NumberPicker
android:id="@+id/numberPicker"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="10dp" />
<com.aperto.ext.edekaapp.ui.CustomFontButton
android:id="@+id/reg_fields_number_dialog_button"
style="@style/BlueButton.Big"
android:layout_width="match_parent"
android:paddingBottom="10dp"
android:paddingTop="10dp"
android:text="@string/reg_fields_number_dialog_button_text" />
</LinearLayout>
I had the same problem. I managed to fix it by giving the NumberPicker
a large layout_margin
.
After adding this line:
android:layout_margin="60dp"
my number picker no longer truncates the text and it appears to have no layout issues.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With