1、新建share.xml布局文件
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_p...
分类:
移动开发 时间:
2015-07-29 16:00:05
阅读次数:
196
activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:lay...
分类:
其他好文 时间:
2015-07-29 01:06:54
阅读次数:
203
一:ViewPager和导航点的实现:
主布局为guide.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
...
分类:
移动开发 时间:
2015-07-28 21:05:57
阅读次数:
135
setBackgroundDrawable 是在安卓旧API里面的,不过需要做低版本兼容用到设置背景,如果控件是TextView,使用setBackgroundDrawable的话,在华为机型里面会发现一个问题,就是Padding <TextView
android:layout_width="wrap_content"
android:layout...
分类:
移动开发 时间:
2015-07-28 11:00:53
阅读次数:
147
Spinner即下拉菜单。在android中实现Spinner组件需要以下三个步骤:1.在XML文件中定义标签Spinner<Spinner
android:id="@+id/spinner"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>2.在Str...
分类:
其他好文 时间:
2015-07-28 00:53:53
阅读次数:
110
关于xml中margin和padding的内容,在刚接触xml的时候会有些混淆和模糊,在此进行总结,希望能帮助到有需要的人。
2.xml中margin和padding
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin...
分类:
移动开发 时间:
2015-07-27 19:12:32
阅读次数:
116
实现如下图所示的二级列表效果
首先是在布局文件中,布局两个ListView,代码如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="...
分类:
移动开发 时间:
2015-07-26 12:48:06
阅读次数:
177
1.头部布局文件top.xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="@drawable/tit...
分类:
微信 时间:
2015-07-24 14:23:24
阅读次数:
337
1.头部布局文件top.xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="@drawable/tit...
分类:
微信 时间:
2015-07-24 14:22:10
阅读次数:
236
问题描述出错代码如下:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"...
分类:
其他好文 时间:
2015-07-24 10:54:11
阅读次数:
108