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

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

我的main中一直提示錯誤

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

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

? ? xmlns:custom="http://schemas.android.com/apk/res/com.example.topbardemo1"

? ? ?xmlns:tools="http://schemas.android.com/tools"

? ? android:layout_width="match_parent"

? ? android:layout_height="match_parent"?

? ? android:padding="5dp"

? ? tools:context=".MainActivity">

? ??

<com.example.topbardemo1.TopBar

? ? andriod:id="@+id/topBar"

? ? android:layout_width="match_parent"

? ? android:layout_height="40dp"

? ? ?custom:leftBackground="@drawable/blue_button"

? ? ? ? custom:leftText="Back"

? ? ? ? custom:leftTextColor="#FFFFFF"

? ? ? ? custom:rightBackground="@drawable/blue_button"

? ? ? ? ?custom:rightText="More"

? ? ? ? custom:rightTextColor="#FFFFFF"

? ? ? ? custon:title="Title"

? ? ? ? custom:titleTextColor="#123412"

? ? ? ? custom:titleTextSize="10sp"

? ? ></com.example.topbardemo1.TopBar>

?



</RelativeLayout>

一直在<com.example.topbardemo1.TopBar ?這行提示error: Error parsing XML: unbound prefix,但是路徑我沒寫錯啊,我用的eclipse

正在回答

3 回答

你把你完整的代碼貼出來,我幫你看下


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

我的手在

? custom:rightTextColor="#FFFFFF"

? ? ? ? custon:title="Title"

? ? ? ? custom:titleTextColor="#123412"

?? custon:title="Title"這行當n寫錯,應該是m才對。。。

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

我是報

發現多個注釋這一行:
——錯誤:沒有發現資源標識符的屬性“titleTextSize”包
“com.example.tapbar”
——錯誤:沒有發現資源標識符的屬性“rightTcxtColor”包
“com.example.tapbar”

同樣沒有找出來!!!!

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

舉報

0/150
提交
取消
Android UI模板設計
  • 參與學習       76030    人
  • 解答問題       233    個

快來學習如何在Android中自定義View,本次課程一定會讓你獲益匪淺

進入課程

我的main中一直提示錯誤

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

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

幫助反饋 APP下載

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

公眾號

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