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

為了賬號安全,請及時綁定郵箱和手機立即綁定

為什么我最后兩行就是對不齊

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

? ? android:layout_width="match_parent"

? ? android:layout_height="match_parent"

? ? android:orientation="vertical" >


? ? <EditText

? ? ? ? android:id="@+id/editText1"

? ? ? ? android:layout_width="fill_parent"

? ? ? ? android:layout_height="60dp"

? ? ? ? android:ems="10"?

? ? ? ? android:background="@drawable/while_bg"

? ? ? ? android:editable="false"

? ? ? ? android:gravity="right|bottom"

? ? ? ??

? ? ? ? >

</EditText>

<LinearLayout?

? ? android:layout_width="fill_parent"

? ? android:layout_height="wrap_content"

? ? android:layout_marginTop="20dp"

? ? android:orientation="horizontal"

android:gravity="center"

? ? >


? ?<Button

? ? ? ?android:id="@+id/btn_cleal"

? ? ? ?android:layout_width="60dp"

? ? ? ?android:layout_height="60dp"

? ? ? ?android:text="@string/two"

? ? ? ?android:gravity="right|bottom"

? ? ? ?android:textSize="20sp" />

? ? <Button

? ? ? ? android:id="@+id/btn_del"

? ? ? ? android:layout_width="60dp"

? ? ? ? android:layout_height="60dp"

? ? ? ? android:layout_marginLeft="10dp"

? ? ? ? android:text="@string/three"

? ? ? ? android:gravity="right|bottom"

? ? ? ? android:textSize="20sp" />


? ? <Button

? ? ? ? android:id="@+id/btn_divide"

? ? ? ? android:layout_width="60dp"

? ? ? ? android:layout_height="60dp"

? ? ? ? android:layout_marginLeft="10dp"

? ? ? ? android:text="@string/four"

? ? ? ? android:gravity="right|bottom"

? ? ? ? android:textSize="20sp" />


? ? <Button

? ? ? ? android:id="@+id/btn_multiply"

? ? ? ? android:layout_width="60dp"

? ? ? ? android:layout_height="60dp"

? ? ? ? android:layout_marginLeft="10dp"

? ? ? ? android:text="@string/five"

? ? ? ? android:gravity="right|bottom"

? ? ? ? android:textSize="20sp" />


</LinearLayout>

<LinearLayout?

? ? android:layout_width="fill_parent"

? ? android:layout_height="wrap_content"

? ? android:layout_marginTop="10dp"

? ? android:orientation="horizontal"

android:gravity="center"

? ? >


? ?<Button

? ? ? ?android:id="@+id/btn_7"

? ? ? ?android:layout_width="60dp"

? ? ? ?android:layout_height="60dp"

? ? ? ?android:text="7"

? ? ? ?android:gravity="right|bottom"

? ? ? ?android:textSize="20sp" />

? ? <Button

? ? ? ? android:id="@+id/btn_8"

? ? ? ? android:layout_width="60dp"

? ? ? ? android:layout_height="60dp"

? ? ? ? android:layout_marginLeft="10dp"

? ? ? ? android:text="8"

? ? ? ? android:gravity="right|bottom"

? ? ? ? android:textSize="20sp" />


? ? <Button

? ? ? ? android:id="@+id/btn_9"

? ? ? ? android:layout_width="60dp"

? ? ? ? android:layout_height="60dp"

? ? ? ? android:layout_marginLeft="10dp"

? ? ? ? android:text="9"

? ? ? ? android:gravity="right|bottom"

? ? ? ? android:textSize="20sp" />


? ? <Button

? ? ? ? android:id="@+id/btn_jian"

? ? ? ? android:layout_width="60dp"

? ? ? ? android:layout_height="60dp"

? ? ? ? android:layout_marginLeft="10dp"

? ? ? ? android:text="-"

? ? ? ? android:gravity="right|bottom"

? ? ? ? android:textSize="20sp" />


</LinearLayout>

<LinearLayout?

? ? android:layout_width="fill_parent"

? ? android:layout_height="wrap_content"

? ? android:layout_marginTop="10dp"

? ? android:orientation="horizontal"

android:gravity="center"

? ? >


? ?<Button

? ? ? ?android:id="@+id/btn_4"

? ? ? ?android:layout_width="60dp"

? ? ? ?android:layout_height="60dp"

? ? ? ?android:text="4"

? ? ? ?android:gravity="right|bottom"

? ? ? ?android:textSize="20sp" />

? ? <Button

? ? ? ? android:id="@+id/btn_5"

? ? ? ? android:layout_width="60dp"

? ? ? ? android:layout_height="60dp"

? ? ? ? android:layout_marginLeft="10dp"

? ? ? ? android:text="5"

? ? ? ? android:gravity="right|bottom"

? ? ? ? android:textSize="20sp" />


? ? <Button

? ? ? ? android:id="@+id/btn_6"

? ? ? ? android:layout_width="60dp"

? ? ? ? android:layout_height="60dp"

? ? ? ? android:layout_marginLeft="10dp"

? ? ? ? android:text="6"

? ? ? ? android:gravity="right|bottom"

? ? ? ? android:textSize="20sp" />


? ? <Button

? ? ? ? android:id="@+id/btn_jia"

? ? ? ? android:layout_width="60dp"

? ? ? ? android:layout_height="60dp"

? ? ? ? android:layout_marginLeft="10dp"

? ? ? ? android:text="+"

? ? ? ? android:gravity="right|bottom"

? ? ? ? android:textSize="20sp" />


</LinearLayout>

<LinearLayout?

? ? ? ?android:gravity="center_horizontal"

? ? ? ?android:layout_width="fill_parent"

? ? ? ?android:layout_height="wrap_content"

? ? ? ?android:layout_marginTop="10dp"

? ? ? ?android:orientation="horizontal">

? ? ? ? ? ?

? ? <LinearLayout

? ? ? ? android:layout_width="wrap_content"

? ? ? ? android:layout_height="wrap_content"

? ? ? ? android:layout_marginTop="5dp"

? ? ? ? android:gravity="center_horizontal"

? ? ? ??

? ? ? ? android:orientation="vertical" >


? ? ? ? <LinearLayout

? ? ? ? ? ? android:layout_width="match_parent"

? ? ? ? ? ? android:layout_height="wrap_content"

? ? ? ? ? ? android:orientation="horizontal" >


? ? ? ? ? ? <Button

? ? ? ? ? ? ? ? android:id="@+id/but_1"

? ? ? ? ? ? ? ? android:layout_width="60dp"

? ? ? ? ? ? ? ? android:layout_height="60dp"

? ? ? ? ? ? ? ? android:layout_marginLeft="10dp"

? ? ? ? ? ? ? ? android:gravity="right|bottom"

? ? ? ? ? ? ? ? android:text="1"

? ? ? ? ? ? ? ? android:textSize="20dp" />


? ? ? ? ? ? <Button

? ? ? ? ? ? ? ? android:id="@+id/but_2"

? ? ? ? ? ? ? ? android:layout_width="60dp"

? ? ? ? ? ? ? ? android:layout_height="60dp"

? ? ? ? ? ? ? ? android:layout_marginLeft="10dp"

? ? ? ? ? ? ? ? android:gravity="right|bottom"

? ? ? ? ? ? ? ? android:text="2"

? ? ? ? ? ? ? ? android:textSize="20dp" />


? ? ? ? ? ? <Button

? ? ? ? ? ? ? ? android:id="@+id/but_3"

? ? ? ? ? ? ? ? android:layout_width="60dp"

? ? ? ? ? ? ? ? android:layout_height="60dp"

? ? ? ? ? ? ? ? android:layout_marginLeft="10dp"

? ? ? ? ? ? ? ? android:gravity="right|bottom"

? ? ? ? ? ? ? ? android:text="3"

? ? ? ? ? ? ? ? android:textSize="20dp" />

? ? ? ? </LinearLayout>


? ? ? ?<LinearLayout android:layout_width="wrap_content"

? ? ? ? ? ?android:layout_height="wrap_content"

? ? ? ? ? ?android:orientation="horizontal" >

? ? ? ? ? ?<Button?

? ? ? ? ? ?android:id="@+id/but_0"

? ? ? ? ? ?android:layout_width="130dp"

? ? ? ? ? ?android:layout_height="60dp"

? ? ? ? ? ?android:text="0"

? ? ? ? ? ?android:layout_marginLeft="10dp"

? ? ? ? ? ?android:textSize="20dp" ? ?

? ? ? ? ? ? android:gravity="right|bottom"

? ? ? ? ? ? ? ?/>

? ? ? ? ? ? ? ?<Button?

? ? ? ? ? ?android:id="@+id/but_dian"

? ? ? ? ? ?android:layout_width="60dp"

? ? ? ? ? ?android:layout_height="60dp"

? ? ? ? ? ?android:text="."

? ? ? ? ? ?android:layout_marginLeft="10dp"

? ? ? ? ? ?android:textSize="20dp" ? ?

? ? ? ? ? ? android:gravity="right|bottom"

? ? ? ? ? ? ? ?/>

? ? ? ?</LinearLayout>

? ? ?</LinearLayout>


? ? <Button

? ? ? ? android:id="@+id/deng"

? ? ? ? android:layout_width="60dp"

? ? ? ? android:layout_height="130dp"

? ? ? ? android:gravity="right|bottom"

? ? ? ? android:text="="

? ? ? ? android:textSize="20dp" />


? ?</LinearLayout>

</LinearLayout>

http://img1.sycdn.imooc.com//59f1eb280001639207020610.jpg

正在回答

1 回答

我直接在科室圖里面拉效果

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消
Android攻城獅的第一門課(入門篇)
  • 參與學習       312493    人
  • 解答問題       4931    個

想快速掌握Android應用開發基礎,選擇學習這門課程就對了。

進入課程

為什么我最后兩行就是對不齊

我要回答 關注問題
微信客服

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

幫助反饋 APP下載

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

公眾號

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