Androidプログラミングは初めてなので、これがどのように機能するのかわかりません。たとえば、すべての myButtons
とTextViews
が属性を持つことになっているandroid:layout_marginTop="10dip"
場合、すべての単一コンポーネントに対して定義するよりも簡単な方法でこれを行うにはどうすればよいですか。
<Button
android:id="..."
...
android:layout_marginTop="10dip">
<TextView
android:id="..."
...
android:layout_marginTop="10dip">
<TextView
android:id="..."
...
android:layout_marginTop="10dip">
...
で使用できるさまざまなタグのドキュメントはどこにありますmain.xml
か? 助けてくれてありがとう!