1.布局实现:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_horizont...
分类:
移动开发 时间:
2015-03-14 17:06:09
阅读次数:
1416
(1)项目布局文件
activity_main.xml<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent...
分类:
移动开发 时间:
2015-03-13 16:43:45
阅读次数:
251
一、创建一个新的项目
activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
andr...
分类:
Web程序 时间:
2015-03-13 14:27:46
阅读次数:
278
1、主页面布局文件
activity_main.xml(只有2个button按钮)
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_paren...
分类:
其他好文 时间:
2015-03-13 00:31:33
阅读次数:
156
1、activity_welcome.xml(界面刚加载进入欢迎界面的布局)
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ll_welcome_root"
android:layout_width="fill_parent"
andr...
分类:
其他好文 时间:
2015-03-12 22:38:00
阅读次数:
234
————————————案例结构很复杂一步步来————————————
1、activity_main.xml(首先看启动界面布局文件,里面有2个button)
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
...
分类:
其他好文 时间:
2015-03-12 20:54:18
阅读次数:
186
activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vert...
分类:
移动开发 时间:
2015-03-12 20:53:25
阅读次数:
182
做IM项目是遇到了一个问题就是让那个个未读消息显示在他的父类外面,类似微信的未读消息数显式布局,弄了好久都不知道怎么搞,用其它方法因为要达到适配的原因所以放弃了最后老大告诉我加一个;
代码如下:
<LinearLayout
android:id="@+id/msg_item_layout"
android:layout_width="fill_parent"
...
分类:
微信 时间:
2015-03-10 14:00:56
阅读次数:
275
直接在你的layout文件的开头加一个FrameLayout ,里面放一个ImageView,因为只有android:src可以设置android:scaleType,android:background是无法设置的,我的代码:
android:layout_width="fill_parent"
android:layout_height="fill_parent">...
分类:
移动开发 时间:
2015-03-09 22:31:10
阅读次数:
343
main.xml代码如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertica...
分类:
移动开发 时间:
2015-03-09 12:59:05
阅读次数:
202