devin_lxs 2015-08-31 10:34 采纳率: 33.3%
浏览 1478

Android Activity UI布局问题

图片说明

有一个button显示后,图片就会变形。这种怎么解决?求帮助、bottom_bar_back和bottom_bar_home大小不能改变。怎么才能实现不变形?

android:id="@+id/layout_persona_tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:layout_marginRight="0px"
android:layout_marginTop="10px"
android:background="@drawable/bottom_bar_bg" >
android:id="@+id/bottom_bar_back"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/bottom_bar_back" />
android:id="@+id/btn_persona_home"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/btn_home_normal" />

    <ImageButton
        android:id="@+id/btn_persona_company"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="15px"
      android:layout_weight="1"
        android:background="@drawable/btn_company_normal"
        android:src="@null" />

    <ImageButton
        android:id="@+id/btn_persona_edit"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="15px"
       android:layout_weight="1"
        android:background="@drawable/btn_edit_normal"
        android:src="@null" />

    <ImageButton
        android:id="@+id/btn_persona_del"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="15px"
        android:layout_weight="1"
        android:background="@drawable/btn_del_normal"
        android:src="@null" />

    <ImageButton
        android:id="@+id/btn_persona_delall"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="15px"
         android:layout_weight="1"
        android:background="@drawable/btn_delall_normal"
        android:src="@null" />


      <ImageButton
        android:id="@+id/bottom_bar_home"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="15px"
        android:background="@drawable/bottom_bar_home"
        android:src="@null" />
</LinearLayout>
  • 写回答

6条回答 默认 最新

  • 繁花与夏叶之年 2015-08-31 13:51
    关注

    marginright=0px 应该没什么用

    评论

报告相同问题?

悬赏问题

  • ¥15 安装svn网络有问题怎么办
  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 latex怎么处理论文引理引用参考文献