![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
layout
文章平均质量分 58
h529820165
这个作者很懒,什么都没留下…
展开
-
attrs format
1. reference:参考某一资源ID。 (1)属性定义: <declare-styleable name = "名称"> <attr name = "background" format = "reference" /> </declare-styleable&..原创 2011-12-14 13:13:04 · 55 阅读 · 0 评论 -
include / merge
使用<include /> 标签来重用layout代码如果在一个项目中需要用到相同的布局设计,可以通过<include /> 标签来重用layout代码,该标签在android开发文档中没有相关的介绍。在android主屏程序中 用到了这个标签:<com.android.launcher.Workspace android:id="@+id/workspace"...原创 2011-12-19 16:36:56 · 118 阅读 · 0 评论 -
tabhost/tabwidget/framelayout ----acitivity
tabhost: 整个框架,是个容器,用来放置标签tabwidget: 一个标签framelayout: tab的内容1.Acitivity<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/re...原创 2011-12-19 20:13:28 · 123 阅读 · 0 评论 -
tabhost/tabwidget/framelayout ----Tabacitivity
<?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent原创 2011-12-19 20:25:30 · 84 阅读 · 0 评论 -
android ------权重
With layout_weight you can specify a size ratio between multiple views. E.g. you have a MapView and a table which should show some additional information to the map. The map should use 3/4 of the scre...原创 2011-12-19 20:50:43 · 100 阅读 · 0 评论 -
style
Android提供了许多可视的组件。通过自定义样式和主题,可以避免用这些组件开发的应用看上去千篇一律。样式和主题都是通过预定义一系列属性值来形成统一的显示风格。区别是,样式只能应用于某种类型的View;而主题刚好相反,它不能应用于特定的View,而只能作用于一个或多个Activity,或是整个应用。以下结合具体例子说明如何定义样式和主题:1.定义样式和主题 在工程中res/values/下添...原创 2012-01-13 12:42:36 · 79 阅读 · 0 评论 -
bitmap tileMode
android中达到类似于windows桌面背景的平铺的效果,定义一个bitmap对象,在xml中和代码中均可,设置其tileMode为repeat。在drawable文件夹下建立如下文件tilebg.xml: <?xml version ="1.0" encoding ="utf-8" ?> <bitmap xmlns:android ="http://schemas...原创 2012-01-18 19:23:59 · 605 阅读 · 0 评论 -
不常使用的属性
drawSelectorOnTop:When set to true, the selector will be drawn over the selected item. Otherwise the selector is drawn behind the selected item. The default value is false. android:drawSelectorO...原创 2012-01-18 19:52:08 · 129 阅读 · 0 评论 -
R.style / styleable / attr
styleable表示属性public ListView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); TypedArray a = context.obtainStyledAttributes(attrs, ...原创 2012-01-29 14:22:32 · 141 阅读 · 0 评论