按钮选项(单选、多选)

在做问卷调查的时候往往会让参与者选择合适的答案,优势是单选有时是多选(圆形选项框)

格式: <RadioGroup //组合框,将选项放进这里那么只能单选,如果不放进这个组合框则可以多选
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            >
            <RadioButton
                android:id="@+id/shuai"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="帅"
                android:textColor="#996600"
                android:textSize="15sp"
                />
                <RadioButton
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="很帅"
                android:textColor="#996600"
                android:textSize="15sp"
                />
                <RadioButton
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="非常帅"
                android:textColor="#996600"
                android:textSize="15sp"
                />
               
        </RadioGroup>

 

QQ登录框有记住密码和自动登录两个按钮选项(正方形选项框)

格式:<CheckBox/>

posted @ 2017-06-02 10:52  西红柿里没有番茄  阅读(198)  评论(0)    收藏  举报