亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

寫計算器的時候,button按鈕沒有顯示?

寫計算器的時候,button按鈕沒有顯示?

盧亮 2016-09-18 00:43:45
<LinearLayout?xmlns:android="http://schemas.android.com/apk/res/android" ????xmlns:tools="http://schemas.android.com/tools" ????android:layout_width="match_parent" ????android:layout_height="match_parent" ????android:paddingBottom="@dimen/activity_vertical_margin" ????android:paddingLeft="@dimen/activity_horizontal_margin" ????android:paddingRight="@dimen/activity_horizontal_margin" ????android:paddingTop="@dimen/activity_vertical_margin" ????tools:context=".MainActivity"?> ????<EditText? ????????android:id="@+id/et_input" ????????android:layout_width="match_parent" ????????android:layout_height="60dp" android:editable="false"?????? android:background="@drawable/white_bg" android:gravity="right|bottom" ????????/> ? <LinearLayout? ? ????android:layout_width="fill_parent" ???? android:layout_height="wrap_content" ???? android:layout_marginTop="20dp" ? ????android:orientation="horizontal" ???? android:gravity="center_horizontal" ? ????> ? ????<Button? ? ????????android:id="@+id/bt_clear" ? ????????android:layout_width="60dp" ? ????????android:layout_height="60dp" ? ????????android:text="C" ? ????????android:textSize="20sp" ? ????????android:gravity="right|bottom" ? ????????/> ? ?????<Button? ? ????????android:id="@+id/bt_del" ? ????????android:layout_width="60dp" ? ????????android:layout_height="60dp" ? ????????android:text="DEl" ? ????????android:layout_marginLeft="10dp" ? ????????android:textSize="20sp" ? ????????android:gravity="right|bottom" ? ????????/> ??<Button? ? ????????android:id="@+id/bt_divide" ? ????????android:layout_width="60dp" ? ????????android:layout_height="60dp" ? ????????android:text="÷" ? ????????android:layout_marginLeft="10dp" ? ????????android:textSize="20sp" ? ????????android:gravity="right|bottom" ? ????????/> ?<Button? ? ????????android:id="@+id/bt_multiply" ? ????????android:layout_width="60dp" ? ????????android:layout_height="60dp" ? ????????android:text="×" ? ????????android:layout_marginLeft="10dp" ? ????????android:textSize="20sp" ? ????????android:gravity="right|bottom" ? ????????/> ? ???? ? </LinearLayout> </LinearLayout>
查看完整描述

1 回答

已采納
?
慕后端3352169

TA貢獻9條經驗 獲得超3個贊

第一個線性布局沒設置android:orientation="vertical"垂直分布

查看完整回答
2 反對 回復 2016-09-18
  • 1 回答
  • 0 關注
  • 1209 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號