开发者

multiple spinner but one in xml

开发者 https://www.devze.com 2023-02-04 11:55 出处:网络
Hi please look at my xml file, very straight and simple, one textView and one Spinner <TextView android:id=\"@+id/TextViewContactNamesTexting\"

Hi please look at my xml file, very straight and simple, one textView and one Spinner

                <TextView android:id="@+id/TextViewContactNamesTexting"
                android:layout_height="wrap_content" android:layout_gravity="center_vertical"
                android:text="name" android:layout_width="fill_parent"
                android:textColor="@color/font" android:textSize="15sp"></TextView>

            <Spinner android:layout_height="wrap_content"
                android:layout_width="fill_parent" android:layout_marginLeft="10px"
                android:id="@+id/SpinnerNumTexting"></Spinner>

in run time I would like to generate as many as I want depending on an arrayList. I attach the picture which explains my thought better. any suggestion? I know how to fill the spinner appropriately, just stuck on generating 开发者_运维知识库more than one :(

thanks in advance...

multiple spinner but one in xml


Use a ListView, with a SimpleAdapter. A quick Google search will turn up a number of tutorials on using a SimpleAdapter.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号