1、画线
[img]
http://pic002.cnblogs.com/images/2010/122963/2010122216290992.png
[/img]
如果是LinearLayout布局,必须要在<View/>的属性里面指定宽和高两个属性,否则就会出错,如果是TableLayout布局,只需要指定高这个属性就可以了
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/textView01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:autoLink="all"
android:text="博客:http://www.baidu.com" />
<TextView
android:id="@+id/myTextView01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/str_textview01" />
<View
android:layout_width="fill_parent"
android:layout_height="2dip"
android:background="#FF909090" />
<TextView
android:id="@+id/myTextView02"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/str_textview02" />
<View
android:layout_width="fill_parent"
android:layout_height="2dip" />
</LinearLayout>
原文
http://www.cnblogs.com/snowdrop/articles/1914010.html
2、边框
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<solid android:color="#FFFFFF" />
<stroke
android:width="1dp"
android:color="#000000" />
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
android:top="1dp" />
</shape>
<LinearLayout
android:id="@+id/completed_wrap"
android:layout_width="33dip"
android:layout_height="wrap_content"
android:background="@drawable/border"
android:gravity="center"
android:orientation="horizontal" >
</LinearLayout>
原文 [url]http://blog.csdn.net/hlily2005/article/details/6005969[/url]
分享到:
相关推荐
Android 开发 Camera拍照出现竖线,与硬件 cache 相关
本例代码使用了Python的PyQt5、matplotlib和Dataframe画图,并在图中添加了一条随鼠标移动的虚线,之后经过计算在画图的线上标注出了鼠标在当时x轴停留时的数据,本例只是一个简单的例子,自己可以根据功能修改
word2021文章开头左侧多出一条竖线怎么解决?.docx
往常我们画一条横线直接用标签即可,当画一条竖线的时候发现找不到标签。在网上查找了一下资料,大致推荐用js来做。小弟比较偏执想用纯css来做,最终找到了解决方法,下面我就来分享一下我的做法。 在两个子div...
电脑显示器有一条竖线应该怎么办?.docx
STM32 实现12864液晶屏显示汉字和图片,且可在任意位置画点、横线、竖线、斜线。其中所有程序全部由自己编写,且所有功能可全部实现。
微信录音 ,录音动画,播放动画
仿5.0系统波纹动画效果。可向下兼容到2.2,效果很好!
某个时段点画竖线.mq4
24种粉色彩条竖线Photoshop填充素材下载 解压缩后,双击即可
asp.net 页面画线 web 页面画线 网页画线
android binder流程图
android listview 固定列头 标题头 列头可以随意定义 列头也可以左右拖动,很好的例子。
(2)图像上有竖线、竖带或横线、横带,或屏上局部区域有竖线、竖带或横线、横带;(3)图像上有干扰条纹或干扰点。 (1)液晶屏损坏在液晶彩电中,逻辑板输出的时序信号经TAB排线送给液晶屏内部的行、列驱动电路...
KChart-android ...支持各种画线,包括直线、竖线和斜线,在刷新数据时画线功能依然能够使用 画线时能够快速定位蜡烛的顶点与底点,同时支持黄金分割线的画法 指标 移动平均线 MACD 布林带 示例:
eclipse 左对齐竖线 plugin,不会安装联系 wechat throup,要准备红包呀!
小程序竖线节点,分割线节点效果,类似时间戳节点效果开发,view ,cover-view 组合开发
css 任意两个点连接成一条线,没有使用到canvas。纯css实现。这个只是一个demo。您可以参考
eclipse竖线生成插件 很好意插件本来测试过很好用,附件里面有使用文档 ,不能使用的注意下 那个text打钩后,还需要进入里面去勾选