cen_Yh 2017-01-16 09:23 采纳率: 100%
浏览 1493
已采纳

android仿微信布局怎么弄

请教一下安卓开发仿微信的UI布局大概是怎么布局的?谢谢。在网上查了很多资料,感觉有点乱。

  • 写回答

7条回答 默认 最新

  • 导演字母 2017-01-16 13:06
    关注

    我做的是上面Fragment ,下面是RadioLayout,具体代码:
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".MainActivity" >

     <FrameLayout
         android:id="@+id/frame"
        android:layout_width="fill_parent"
         android:layout_weight="1"
        android:layout_height="0dp"/>
    
     <RadioGroup 
         android:id="@+id/Rg"
         android:layout_width="fill_parent"
         android:layout_height="40px"
         android:orientation="horizontal"
         android:background="#000000">
         <RadioButton 
             android:button="@null"
             android:id="@+id/rb1"
             android:text="微信"
             android:gravity="center_horizontal|bottom"
             android:layout_weight="1"
             android:layout_width="0dp"
             android:textColor="#ffffff"
             android:textSize="20sp"
             android:layout_height="fill_parent"/>
         <RadioButton 
             android:gravity="center_horizontal|bottom"
    
              android:button="@null"
             android:id="@+id/rb2"
             android:text="通讯录"
             android:layout_weight="1"
             android:layout_width="0dp"
             android:textColor="#ffffff"
             android:textSize="20sp"
             android:layout_height="fill_parent"/>
         <RadioButton
             android:gravity="center_horizontal|bottom"
    
              android:button="@null"
             android:id="@+id/rb3" 
             android:text="发现"
             android:layout_weight="1"
             android:layout_width="0dp"
             android:textColor="#ffffff"
             android:textSize="20sp"
             android:layout_height="fill_parent"/>
         <RadioButton
             android:gravity="center_horizontal|bottom" 
              android:button="@null"
             android:id="@+id/rb4"
             android:text="我"
             android:layout_weight="1"
             android:layout_width="0dp"
             android:textColor="#ffffff"
             android:textSize="20sp"
             android:layout_height="fill_parent"/>
     </RadioGroup>
    

    
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(6条)

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器