为了账号安全,请及时绑定邮箱和手机立即绑定

获取不到自定义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模板设计
  • 参与学习       76061    人
  • 解答问题       223    个

快来学习如何在Android中自定义View,本次课程一定会让你获益匪浅

进入课程

获取不到自定义Button的属性值

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信