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

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

這個怎么可以錯呢 檢查好幾遍了

http://img1.sycdn.imooc.com//5774a9b40001468804860187.jpg

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

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

? ? android:layout_width="match_parent"

? ? android:layout_height="wrap_content"

? ? android:background="#000000"

? ? android:paddingBottom="10dp"

? ? android:paddingTop="10dp" >


? ? <TextView

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

? ? ? ? android:layout_width="wrap_content"

? ? ? ? android:layout_height="wrap_content"

? ? ? ? android:layout_alignParentLeft="true"

? ? ? ? android:layout_centerVertical="true"

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

? ? ? ? android:text="返回"

? ? ? ? android:textColor="#ffffff"

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


? ? <TextView

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

? ? ? ? android:layout_width="wrap_content"

? ? ? ? android:layout_height="wrap_content"

? ? ? ? android:layout_centerVertical="true"

? ? ? ? android:text="布局優化"

? ? ? ? android:textColor="#ffffff"

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


? ? <TextView

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

? ? ? ? android:layout_width="wrap_content"

? ? ? ? android:layout_height="wrap_content"

? ? ? ? android:layout_alignParentRight="true"

? ? ? ? android:layout_centerVertical="true"

? ? ? ? android:layout_marginRight="10dp"

? ? ? ? android:text="功能"

? ? ? ? android:textColor="#ffffff"

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


</RelativeLayout>


正在回答

1 回答

提示第一個TestView的id名稱不能為return,改了一下沒有報錯

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

舉報

0/150
提交
取消
Android攻城獅的第二門課(第1季)
  • 參與學習       111145    人
  • 解答問題       1560    個

本課程由淺入深地帶您學會Android的常用控件的開發和使用

進入課程

這個怎么可以錯呢 檢查好幾遍了

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

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

幫助反饋 APP下載

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

公眾號

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