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 shape_predictor_68_face_landmarks.dat
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制