TextView添加图片本文地址:http://blog.csdn.net/caroline_wendyAndroid UI设计时,经常需要在文字周围添加图片。比较简单的方法是直接使用Layout把View组合到一起:<ImageView
android:layout_width=“wrap_content"
android:layout_height="wrap_conten...
分类:
移动开发 时间:
2015-02-10 09:17:33
阅读次数:
195
用于构建复杂的Dialog显示界面
main.xml代码如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:o...
分类:
其他好文 时间:
2015-02-08 12:59:35
阅读次数:
195
main.xml代码如下:
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/myscroll...
分类:
其他好文 时间:
2015-02-07 11:49:55
阅读次数:
143
main.xml代码:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"...
分类:
移动开发 时间:
2015-02-06 13:21:22
阅读次数:
211
popuWindowXml布局<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="wrap_content"android:layout_height="wrap_content"android:background="@drawable/local_popup_bg"android:..
1,xml布局<TabHostxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:id="@android:id/tabhost"android:layout_height="match_parent"><LinearLayoutandroid:la..
分类:
其他好文 时间:
2015-02-06 07:08:36
阅读次数:
158
首先在AndroidMainifest中添加上网权限
布局文件activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match...
分类:
移动开发 时间:
2015-02-05 16:25:57
阅读次数:
173
以对话框的形式弹出日期设置: 首先在xml中创建一个EditText输入框: android:id="@+id/et_time" android:layout_width="wrap_content" android:layout_height="wrap_content" //设置输...
分类:
移动开发 时间:
2015-02-05 10:49:03
阅读次数:
228
2.1xml布局<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"><GridViewandroid:id="@+id/gv"android:numColumns..
分类:
其他好文 时间:
2015-02-05 07:12:20
阅读次数:
127
1,xml布局<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="wrap_content"android:layout_height="wrap_content"android:background="@drawable/local_popup_bg"android:orientat..