androidアプリを開発しているのですが複数回利用するSpinnerとRadioButton項目をまとめておき
それを5回ほど繰り返して表示したいのですがそういった事は可能でしょうか?
繰り返し表示したい項目まとめレイアウト <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/_layout" android:layout_width="match_parent" android:layout_height="200dp" android:paddingLeft="16dp" android:paddingRight="16dp" android:orientation="vertical"> <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent"> <Spinner android:id="@+id/spinner" android:layout_width="163dp" android:layout_height="35dp" android:layout_alignParentEnd="true" android:layout_alignParentTop="true" android:layout_marginEnd="14dp" android:layout_marginTop="24dp" /> <RadioGroup android:id="@+id/radiog" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="50dp" android:orientation="horizontal"> <RadioButton android:id="@+id/radio1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawableBottom="@drawable/ic_menu_camera" android:text="" /> ... </RadioGroup> </RelativeLayout> </LinearLayout>
http://android-dev-talk.blogspot.jp/2012/06/xmladdview.html
ここのサンプルが解決に結びついた
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/12/25 02:23
2017/12/25 05:35
2017/12/25 06:11 編集
2017/12/25 06:42
2017/12/25 07:52