1

次のようなものがあるとします。

public class MyExcellentView extends View{
  //etc. etc.

}

xml では、次のように使用します。

<com.my.package.MyExcellentView
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"
 myCustomAttribute="100"
/>

myCustomAttribute内にアクセスする方法はありますMyExcellentViewか?

4

1 に答える 1