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=& ...
随机推荐
- canvas 下载
function saveFile(data, filename){ var save_link = document.createElementNS('http://www.w3.org/1999/ ...
- 你确定你是一个合格的.Net开发人员吗?
做.net开发已有近5年时间,自认掌握的知识比较全面.最近部门需要招人,今天抽空在网上看了一下,发现我了解的还是不够多啊.下面是我大致的罗列了一下作为一名.Net开发人员所需要掌握的只是.看看你是不是 ...
- SQL Server 和CLR集成
通过在 Microsoft SQL Server 中托管 CLR(称为 CLR 集成),可以在托管代码中编写存储过程.触发器.用户定义函数.用户定义类型和用户定义聚合函数. 因为托管代码在执行之前会编 ...
- 第一次启动MySQL时报错
[root@localhost~]#/usr/local/webserver/mysql/bin/mysql_install_db --basedir=/usr/local/webserver/mys ...
- PHP中的定界符格式
<?php //nowdoc(单引号定界符) //ABC可以是任合内容,放在单引号中 $c=<<<'ABC' 这里可以是任合内容 我是历的苛夺基 本原则叶落归根在运 输费艰难田 ...
- javascript sort()与reverse()
javascript 中提供了两个对数据进行排序的方法,即sort()和reverse() 在理解的时候犯了一个非常低级的错误,现记录如下: reverse()不包括排序的功能,只是把原来的数组反转. ...
- Spring4.0学习笔记(1) —— 基础知识
1.基本定义 IOC: 其思想是反转资源获取的方向,传统的资源查找方式要求组件向容器发起请求查找资源,作为回应,容器适时的返回资源,而应用了 IOC之后,容器主动将资源推送给它所管理的组件,组件索要做 ...
- phpEXCEL操作全解
phpExcel中文帮助手册,列举了各种属性,以及常用的操作方法,难得是每一个都用实例加以说明,希望对大家有所帮助. phpExcel中文帮助手册,不可多得的好文章,供大家学习参考. 1.设置exce ...
- C#泛型理解(转)
[译]C# 理解泛型 PDF 浏览:http://www.tracefact.net/document/generics-in-csharp.pdf源码下载:http://www.tracefact ...
- 向null地址copy数据和不断改变指针指向
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<string. ...