zoukankan      html  css  js  c++  java
  • RadioGroup和Radiobutton

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
       android:orientation="vertical" >
    <RadioGroup 
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        
        >
        <RadioButton 
            android:id="@+id/r1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="资讯"
            android:layout_weight="1"
            
            android:button="@null"
             android:gravity="center"
          android:textSize="25dp"
            />
        <RadioButton 
            android:id="@+id/r2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="热点"
            android:layout_weight="1"
            android:button="@null"
           android:textSize="25dp"
             android:gravity="center"
            />
        <RadioButton 
            android:id="@+id/r3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="博客"
            android:layout_weight="1"
            android:button="@null"
             android:gravity="center"
            android:textSize="25dp"
            
            />
         <RadioButton 
             android:id="@+id/r4"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:text="推荐"
             android:button="@null" 
             android:gravity="center"
             android:textSize="25dp"
             android:layout_weight="1"
             />
        
    </RadioGroup>
    
    </LinearLayout>
  • 相关阅读:
    04 UUID
    MD5加密算法(信息摘要算法)、Base64算法
    03 MD5加密、Base64处理
    MVC分层思想、SSM编程架构
    1网络编程基本概念
    Tomcat闪退的解决办法
    win10下的jdk1.8安装
    枚举练习
    1000元买物品分配
    win10解决vc++6.0不兼容问题方法
  • 原文地址:https://www.cnblogs.com/1426837364qqcom/p/5356881.html
Copyright © 2011-2022 走看看