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=& ...
随机推荐
- C#中的序列化与反序列化
眼看XX鸟的课程关于C#的知识点就要学完了,翻看网络中流传的教程还是发现了一个课程中没有讲到的知识点:序列化与反序列化 无奈还是了解一下并操作一番,以备后用吧 介绍:就是将对象信息转化为二进制信息以便 ...
- oracle中 connect by prior 递归算法 -- 理解
oracle中 connect by prior 递归算法 -- 理解 http://blog.163.com/xxciof/blog/static/7978132720095193113752/ ...
- gc内存回收机制
判断哪些对象可回收 GC是通过对象是否存活来决定是否进行回收,判断对象是否存活主要有两种算法:引用计数算法.可达性分析算法 引用计数算法 引用计数的算法原理是给对象添加一个引用计数器,每被引用一次计数 ...
- 武汉科技大学ACM:1004: 零起点学算法36——3n+1问题
Problem Description 任给一个正整数n,如果n为偶数,就将它变为n/2,如果为奇数,则将它乘3加1(即3n+1).不断重复这样的运算,经过有限步后,一定可以得到1 . Input 输 ...
- Interview Algorithm
约瑟夫环: #include <stdio.h> #include <stdlib.h> #include <string.h> int find(int *arr ...
- MetInfo操作笔记
1.去版权(前台) 文件路径:templates/模板名称/foot.php <div class="powered_by_metinfo">Powered by &l ...
- jquery1.9学习笔记 之选择器(基本元素一)
所有选择器("*") 描述:选择所有元素 注意:大多数情况下,这个选择器极其的慢,尤其是在作用于自身时. 例子: 查找文档中的每个元素.然后追加一个<script>或& ...
- python 的文件操作。
20.文件操作: 1.打开文件: f = open('db','r') 只读 ; f = open('db','w') 只写 ...
- MVC3.0,路由设置实现伪静态IIS中404错误
C# code? 1 2 3 4 5 routes.MapRoute("NewQueryTest.asp", "NewQueryTest ...
- 修改apk显示或隐藏桌面图标
反编译CM设置,打开AndroidManifest.xml,搜索“DEFAULT”,把他替换为"LAUNCHER",然后回编译,回编译之后签名在用RE放到system\app下该权 ...