Android设置上下边框或者左右边框
<?xml version="1.0" encoding="utf-8"?>
<com.sunskyjun.fwproject.widgts.BounceScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/activity_user_center_bounceScrollView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/divider2"
android:fillViewport="true"
android:orientation="vertical"
android:scrollbars="none" > <LinearLayout
android:id="@+id/activity_user_center_lytUserCenter"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" > <LinearLayout
android:id="@+id/activity_user_center_lytUsername"
android:layout_width="match_parent"
android:layout_height="75dp"
android:layout_marginLeft="-1dp"
android:layout_marginRight="-1dp"
android:layout_marginTop="15dp"
android:background="@drawable/bg_item_border"
android:gravity="center"
android:orientation="horizontal"
android:padding="10dp" > <ImageView
android:id="@+id/activity_user_center_imgAvatar"
android:layout_width="55dp"
android:layout_height="55dp"
android:src="@drawable/user_center_avatar" /> <TextView
android:id="@+id/activity_user_center_txtUsername"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical|left"
android:paddingLeft="10dp"
android:textColor="@color/bg_activity_category_search_cancel"
android:textSize="15sp" />
</LinearLayout> <LinearLayout
android:id="@+id/activity_user_center_lytFavorite"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginLeft="-1dp"
android:layout_marginRight="-1dp"
android:layout_marginTop="15dp"
android:background="@drawable/bg_item_border"
android:orientation="horizontal"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:gravity="center"> <ImageView
android:layout_width="22dp"
android:layout_height="22dp"
android:scaleType="centerCrop"
android:src="@drawable/user_center_favorite" /> <TextView
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:gravity="center_vertical|left"
android:paddingLeft="10dp"
android:text="@string/user_center_favorite"
android:textColor="@color/bg_activity_category_search_cancel"
android:textSize="13sp" /> <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="centerCrop"
android:src="@drawable/fragment_product_detail_entry_combo_collapse" />
</LinearLayout> <LinearLayout
android:id="@+id/activity_user_center_lytSetting"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginLeft="-1dp"
android:layout_marginRight="-1dp"
android:layout_marginTop="10dp"
android:background="@drawable/bg_item_border"
android:orientation="horizontal"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:gravity="center"> <ImageView
android:layout_width="22dp"
android:layout_height="22dp"
android:scaleType="centerCrop"
android:src="@drawable/user_center_setting" /> <TextView
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:gravity="center_vertical|left"
android:paddingLeft="10dp"
android:text="@string/user_center_setting"
android:textColor="@color/bg_activity_category_search_cancel"
android:textSize="13sp" /> <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="centerCrop"
android:src="@drawable/fragment_product_detail_entry_combo_collapse" />
</LinearLayout> <LinearLayout
android:id="@+id/activity_user_center_lytFeedback"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginLeft="-1dp"
android:layout_marginRight="-1dp"
android:layout_marginTop="10dp"
android:background="@drawable/bg_item_border"
android:orientation="horizontal"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:gravity="center"> <ImageView
android:layout_width="22dp"
android:layout_height="22dp"
android:scaleType="centerCrop"
android:src="@drawable/user_center_feedback" /> <TextView
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:gravity="center_vertical|left"
android:paddingLeft="10dp"
android:text="@string/user_center_feedback"
android:textColor="@color/bg_activity_category_search_cancel"
android:textSize="13sp" /> <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="centerCrop"
android:src="@drawable/fragment_product_detail_entry_combo_collapse" />
</LinearLayout> <LinearLayout
android:id="@+id/activity_user_center_lytEvaluate"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginLeft="-1dp"
android:layout_marginRight="-1dp"
android:layout_marginTop="-2dp"
android:background="@drawable/bg_item_border"
android:orientation="horizontal"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:gravity="center"> <ImageView
android:layout_width="22dp"
android:layout_height="22dp"
android:scaleType="centerCrop"
android:src="@drawable/user_center_evaluate" /> <TextView
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:gravity="center_vertical|left"
android:paddingLeft="10dp"
android:text="@string/user_center_evaluate"
android:textColor="@color/bg_activity_category_search_cancel"
android:textSize="13sp" /> <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="centerCrop"
android:src="@drawable/fragment_product_detail_entry_combo_collapse" />
</LinearLayout> <LinearLayout
android:id="@+id/activity_user_center_lytShare"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginLeft="-1dp"
android:layout_marginRight="-1dp"
android:layout_marginTop="-2dp"
android:background="@drawable/bg_item_border"
android:orientation="horizontal"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:gravity="center"> <ImageView
android:layout_width="22dp"
android:layout_height="22dp"
android:scaleType="centerCrop"
android:src="@drawable/user_center_share" /> <TextView
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:gravity="center_vertical|left"
android:paddingLeft="10dp"
android:text="@string/user_center_share"
android:textColor="@color/bg_activity_category_search_cancel"
android:textSize="13sp" /> <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="centerCrop"
android:src="@drawable/fragment_product_detail_entry_combo_collapse" />
</LinearLayout> <LinearLayout
android:id="@+id/activity_user_center_lytAbout"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginLeft="-1dp"
android:layout_marginRight="-1dp"
android:layout_marginTop="-2dp"
android:background="@drawable/bg_item_border"
android:orientation="horizontal"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:gravity="center"> <ImageView
android:layout_width="22dp"
android:layout_height="22dp"
android:scaleType="centerCrop"
android:src="@drawable/user_center_about" /> <TextView
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:gravity="center_vertical|left"
android:paddingLeft="10dp"
android:text="@string/user_center_about"
android:textColor="@color/bg_activity_category_search_cancel"
android:textSize="13sp" /> <ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="centerCrop"
android:src="@drawable/fragment_product_detail_entry_combo_collapse" />
</LinearLayout> </LinearLayout> </com.sunskyjun.fwproject.widgts.BounceScrollView>
Android设置上下边框或者左右边框的更多相关文章
- [webkit移动开发笔记]之如何去除android上a标签产生的边框(转)
转载地址:http://www.cnblogs.com/PeunZhang/archive/2013/02/28/2907708.html 去年年底,做完最后一个项目就可以开开心心回家,可是在测试阶段 ...
- [webkit移动开发笔记]之如何去除android上a标签产生的边框
去年年底,做完最后一个项目就可以开开心心回家,可是在测试阶段,发现了不少bug,为了不影响回家时间,加班加点也要解决这些问题,这里算是工作回忆,也算是工作的一点小总结. 在ios4+和android2 ...
- IOS8 设置TableView Separatorinset 分割线从边框顶端开始
IOS8 设置TableView Separatorinset 分割线从边框顶端开始 在ios8上 [TableViewsetSeparatorInset:UIEdgeInsetsMake(0,0 ...
- 用NPOI创建Excel、合并单元格、设置单元格样式、边框的方法
本篇文章小编为大家介绍,用NPOI创建Excel.合并单元格.设置单元格样式.边框的方法.需要的朋友参考下 今天在做项目中,遇到使用代码生成具有一定样式的Excel,找了很多资料,最后终于解决了,Ex ...
- 去除Android打开软件出现的红边框
/********************************************************************** * 去除Android打开软件出现的红边框 * 说明: ...
- C#-WebForm-设置div边框为内边框:box-sizing:border-box;
设置div边框为内边框:box-sizing:border-box;
- css边框样式、边框配色、边框阴影、边框圆角、图片边框
边框样式 点线式边框 破折线式边框 直线式边框 双线式边框 槽线式边框 脊线式边框 内嵌效果的边框 突起效果的边框 <div style="width: 300px; height: ...
- Panel添加边框颜色和边框粗细调整
Panel控件添加边框颜色 C# WinForm窗体控件Panel修改边框颜色以及边框宽度方法 - JiYF - 博客园 (cnblogs.com) 1.新建一个用户控件的项目,如下: 2.添加一个P ...
- Xamarin Android设置界面提示类型错误
Xamarin Android设置界面提示类型错误 错误信息:Integer types not allow (at ‘padding’ with value ’10’)Android界面属性的长度和 ...
- Android 设置进度条背景
Android 设置进度条背景 直接上代码 <ProgressBar android:id="@+id/progressBar" android:layout_width=& ...
随机推荐
- 9、第九节课jquery选择器jq2,20151007
1.表单选择器 2.not 里面不能加其他标签 $div p:not(not:disable) 错误的 $div p:not(:disable) 正确的 3.选择设置相应属性的标签项 $(&quo ...
- OD: DEP - Ret2Libc via VirtualProtect() & VirtualAlloc()
一,通过 VirutalProtect() 修改内存属性绕过 DEP DEP 的四种工作模式中,OptOut 和 AlwaysOn 下所有进程默认都开启 DEP 保护,这里如果一个程序自身需要从堆栈中 ...
- codesmith的使用
新建一个C#模版. model类的模版代码如下: <%-- Name: 模型层代码生成模版 Author: XX Description: 根据数据库的内容生成模型层代码 Version: V1 ...
- 关于ISAPI和CGI限制,这个要设为允许
否则程序就报这个错误,注意,设置允许时不是在添加的网站上设置,而是在根iis,选择后右侧出现关于ISAPI和CGI限制,进去后选择相应版本,设置为允许就可以了
- jQuery三种事件绑定方式.bind(),.live(),.delegate()
.bind(), .live(), 和 .delegate()之间的区别并不明显.但是理解它们的不同之处有助于写出更简洁的代码,并防止我们的交互程序中出现没有预料到的bug. 基础 DOM树 首先,图 ...
- PHP与memcache和memcached以及安装使用
老规则,在作者寒冰讲之前我们要来明确memcache与memcached这两个东西到底是什么? 说法一: 两个不同版本的php的memcached的客户端 new memcache是pecl扩展库版本 ...
- E10后,导致VS2010调试时报错“未能将脚本调试器附加到计算机..."
以管理员身份打开CMD,运行:regsvr32.exe "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VS7Debug\msdbg2. ...
- IPTV中的EPG前端优化
先看一下IPTV相关情况: l 目前TPTV市场情况 a) 截止今年2月,全国IPTV总用户数达3630.2万,我国移动互联网用户规模接近9亿,人均月接入量近300M,8M宽带达半数,光纤近4成. 图 ...
- CSS中的盒子模型详解
很多人对盒子模型搞晕头了,下面通过一个简单的代码来分析盒子模型的结构! 为了方便方便观看!在第一个div中画了一个表格,并将其尺寸设置成与div内容大小一样!且设置body的margin和paddin ...
- 常用hash函数
常用的哈希函数 通用的哈希函数库有下面这些混合了加法和一位操作的字符串哈希算法.下面的这些算法在用法和功能方面各有不同,但是都可以作为学习哈希算法的实现的例子. 1.RS 从Robert S ...