获取不到自定义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>