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=& ...
随机推荐
- Dragger代码实现
转自:http://www.apkbus.com/blog-705730-60436.html 在工程中引入Dagger 如果想使用Dagger的话,需要添加两个函数库: dependencies { ...
- Eclipse搭建struts2环境
搭建struts2环境 大的方面分为三步: 1. 加入jar包 2. 在web.xml中配置struts2 3. 添加struts2的配置文件struts.xml 下面是详细步骤: 1. 新建一个Dy ...
- myeclipse插件安装
MyEclipse插件安装 安装1: HELP->MuEclipse Configuration Center.切换到SoftWare选项卡. 点击 add site 打开对话框,在对话框中na ...
- [每日一题] OCP1z0-047 :2013-07-24 子查询――外查询与内查询的执行顺序
一.Oracle的子查询分为两类分别是嵌套子查询和非嵌套子查询.所谓嵌套子查询是指,子查询是一个独立的查询不与外部查询相关,子查询将被先执行,而且只被执行一次,子查询执行完成后,再执行外部的查询,外部 ...
- Mysql 5.6 Cmake 编译安装
MySQL编译安装 环境: OS: CentOS 6.6x64 mini mysql: mysql-5.6.251. mysql 下载: http://dev.mysql.com/downloads/ ...
- DEVICE_OBJECT结构参数
typedef struct DECLSPEC_ALIGN(MEMORY_ALLOCATION_ALIGNMENT) _DEVICE_OBJECT { CSHORT Type; USHORT Size ...
- START WITH CONNECT BY PRIOR 链表查询
使用场景:排序 设计思路,id为主键,index为顺序,index存前一个节点的id,当然,按照这个思路可以实现双向链表的(preindex存前一个节点,nextindex存下一个节点) 这样的话排序 ...
- IOS NSUserDefaults 讲解 用法
IOS NSUserDefaults 讲解 用法 NSUserDefaults适合存储轻量级的本地数据,比如要保存一个登陆界面的数据,用户名.密码之类的,个人觉得使用NSUserDefaults ...
- Javascript Promise 学习(上)
Promise 就是处理异步的一个规范方法 a();b();alert("a");如果a() 里面有一个ajax 或者settimeout 那么alert("a" ...
- 布置第一个JBOSS服务器
还是要通过实践慢慢积累感觉.. SERVLET的制作,JAVAC的编译... package com.manning.jbia.intro; import java.io.IOException; i ...