问题
How To Align Right Order Total Values Like Below Images.
Thanks.
回答1:
Please try below links
link1
link2
回答2:
You should use Custom Dialog for this pupose.
Check this url
回答3:
For each row use the following style in xml.
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal">
<TextView
android:text="Label"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"/>
<TextView
android:text="Value"
android:gravity="right"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"/>
</LinearLayout>
You can use the height width of the linear layout as your wish
来源:https://stackoverflow.com/questions/6450699/android-alert-dialog-text-align