2 回答

守著一只汪
TA貢獻(xiàn)1872條經(jīng)驗(yàn) 獲得超4個(gè)贊
如下是個(gè)例子:
<TextView
android:id="@+id/dialog_message"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:layout_marginTop="30dp"
android:layout_marginBottom="70dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:textSize="24sp" />
你需要加入例子中類似這樣的兩句:
android:layout_width="match_parent"
android:layout_height="match_parent"
添加回答
舉報(bào)
0/150
提交
取消