Android警报对话框文本对齐
如何对齐右顺序总值,如下图所示 谢谢。请尝试下面的链接Android警报对话框文本对齐,android,dialog,alert,Android,Dialog,Alert,如何对齐右顺序总值,如下图所示 谢谢。请尝试下面的链接 对于每一行,使用以下xml样式 <LinearLayout android:id="@+id/linearLayout1" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal"> <TextView andro
对于每一行,使用以下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>
您可以根据需要使用线性布局的高度和宽度请添加布局xml。这将更容易为您提供有关您可以做什么的提示。没有Xml布局,只有AlertDialog。