Android学习日记
chengye233
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Android基本布局-RelativeLayout
相对布局可以让空间以相对位置的形式出现在布局的任意位置控件与父布局对齐<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:原创 2017-04-22 21:35:26 · 206 阅读 · 0 评论 -
Android基本布局-FrameLayout
帧布局将所有控件放在布局左上角<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_pa原创 2017-04-23 21:12:18 · 262 阅读 · 0 评论 -
引入布局
为减少代码量,可以引用已经写好的布局和相应的活动这里创建一个title布局被引用<!--title.xml--> <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_原创 2017-04-25 22:16:04 · 458 阅读 · 0 评论 -
ListView
以上下滑动的形式显示多项同类型内容效果如下(图片资源来自网络)可以通过滑动的方式浏览图片代码如下<ListView android:id="@+id/list_view" android:layout_width="match_parent" android:layout_height="match_parent" />在主活动创建一个原创 2017-04-26 22:11:13 · 255 阅读 · 0 评论
分享