sky_flying對滴 2015-10-26 06:42 采纳率: 0%
浏览 1650
已采纳

安卓新手页面画不出来,求大神指教

我想知道安卓有没有像java中的div一样的东西
我在画页面,用的表格布局,有一列要放两个按钮,可是不知道怎么弄,
因为是新手,也不太懂,我画出来的样子:
图片说明
可是我需要的是这个样子:
图片说明
只要把那两个按钮放一起就可以了。
那一行我的代码:
android:id="@+id/send_notice_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="#CDCDCD"
android:stretchColumns="1" >

            <TextView
                android:id="@+id/notice_type"
                android:gravity="right"
                android:padding="5dip"
                android:text="通知类型:" />
            <Button
                android:id="@+id/meeting_notice"
                android:layout_height="match_parent"
                android:background="@drawable/boder"
                android:text="会议通知"
                android:textSize="15dip" />
            <Button
                android:id="@+id/leave_notice"
                android:layout_height="match_parent"
                android:background="@drawable/boder"
                android:text="放假通知"
                android:textSize="15dip" />

        </TableRow>
    </TableLayout>
    现在只是要画出页面。
  • 写回答

4条回答 默认 最新

  • 「已注销」 2015-10-26 08:15
    关注

    使用一个LinearLayout包着两个按钮,方向为水平方向,同时固定LinearLayout的亮度
    将两个按钮按比例排列,比例1:1

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

报告相同问题?

悬赏问题

  • ¥15 rs485的上拉下拉,不会对a-b<-200mv有影响吗,就是接受时,对判断逻辑0有影响吗
  • ¥15 使用phpstudy在云服务器上搭建个人网站
  • ¥15 应该如何判断含间隙的曲柄摇杆机构,轴与轴承是否发生了碰撞?
  • ¥15 vue3+express部署到nginx
  • ¥20 搭建pt1000三线制高精度测温电路
  • ¥15 使用Jdk8自带的算法,和Jdk11自带的加密结果会一样吗,不一样的话有什么解决方案,Jdk不能升级的情况
  • ¥15 画两个图 python或R
  • ¥15 在线请求openmv与pixhawk 实现实时目标跟踪的具体通讯方法
  • ¥15 八路抢答器设计出现故障
  • ¥15 opencv 无法读取视频