<RadioGroup |
android:gravity= "center" |
android:orientation= "horizontal" |
android:layout_width= "fill_parent" |
android:layout_height= "wrap_content" |
> |
<RadioButton |
android:id= "@+id/btn_0" |
android:layout_width= "fill_parent" |
android:layout_height= "wrap_content" |
android:text= "最新信息" |
android:textSize= "17.0sp" |
android:textColor= "@android:color/black" |
android:gravity= "center" |
android:layout_weight= "1" |
android:checked= "true" |
/> |
<RadioButton |
android:id= "@+id/btn_1" |
android:layout_width= "fill_parent" |
android:layout_height= "wrap_content" |
android:text= "在线专家" |
android:textSize= "17.0sp" |
android:textColor= "@android:color/black" |
android:gravity= "center" |
android:layout_weight= "1" |
/> |
<RadioButton |
android:id= "@+id/btn_2" |
android:layout_width= "fill_parent" |
android:layout_height= "wrap_content" |
android:text= "预约服务" |
android:textSize= "17.0sp" |
android:textColor= "@android:color/black" |
android:gravity= "center" |
android:layout_weight= "1" |
/> |
</RadioGroup> |
android:onclick 添加事件 |
初级程序员
by: 浅唱 发表于:2017-09-12 10:09:53 顶(0) | 踩(0) 回复
顶
回复评论