我想添加一些在 xml 资源文件的 ImageButton 中找不到的额外数据,并能够通过代码读取它
就这样
<ImageButton
android:id="@+id/imageButton1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@null"
app:angle="0"
app:titletext="imageButton1"/>
我在哪里可以将这些数据定义为可访问且不会导致 XML 错误
提前致谢