说我有
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/editText2"
android:text="Save" />
在某些时候我可能需要添加一些自定义属性,像这样
<Button
...................................
my-attribute = "value"
...................................
android:text="Save" />
我试图这样做,但我当然会遇到一些错误。我来自html5世界..
有命名约定还是什么?
还有另一种(正确的)方法吗?