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

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

獲取不到自定義Button的屬性值

獲取不到自定義的屬性,檢查了好幾遍和老師都是一樣的代碼,藍瘦

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
? ?xmlns:android="http://schemas.android.com/apk/res/android"
? ?xmlns:tools="http://schemas.android.com/tools"
? ?xmlns:custome="http://schemas.android.com/apk/res-auto"
? ?android:layout_width="match_parent"
? ?android:layout_height="match_parent"
? ?tools:context="com.immoc.app.MainActivity">

? ?<com.immoc.app.TopBar
? ? ? ?android:layout_width="match_parent"
? ? ? ?android:layout_height="60dp"
? ? ? ?custome:leftText="Back"
? ? ? ?custome:rightText="More"
? ? ? ?custome:title2="Title"
? ? ? ?/>

</RelativeLayout>

正在回答

舉報

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

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

進入課程

獲取不到自定義Button的屬性值

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

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

幫助反饋 APP下載

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

公眾號

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