android:clipChildren为false即可,默认为true
来源:互联网 发布:mac qq远程 外置 编辑:程序博客网 时间:2024/05/21 07:05
一、效果图
看到这个图时你可以先想想如果是你,你怎么实现这个效果。马上想到用RelativeLayout?NO,NO,NO,,,
二、实现代码
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipChildren="false"
android:orientation="vertical" >
<android.support.v4.view.ViewPager
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1.0" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dip"
android:background="#B0C4DE"
android:orientation="horizontal" >
<ImageView
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:scaleType="fitCenter"
android:src="@drawable/ic_launcher" />
<ImageView
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:scaleType="fitCenter"
android:src="@drawable/ic_launcher" />
<ImageView
android:layout_width="0dip"
android:layout_height="64dip"
android:layout_gravity="bottom"
android:layout_weight="1.0"
android:scaleType="fitCenter"
android:src="@drawable/ic_launcher" />
<ImageView
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:scaleType="fitCenter"
android:src="@drawable/ic_launcher" />
<ImageView
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:scaleType="fitCenter"
android:src="@drawable/ic_launcher" />
</LinearLayout>
</LinearLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipChildren="false"
android:orientation="vertical" >
<android.support.v4.view.ViewPager
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="0dip"
android:layout_weight="1.0" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="48dip"
android:background="#B0C4DE"
android:orientation="horizontal" >
<ImageView
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:scaleType="fitCenter"
android:src="@drawable/ic_launcher" />
<ImageView
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:scaleType="fitCenter"
android:src="@drawable/ic_launcher" />
<ImageView
android:layout_width="0dip"
android:layout_height="64dip"
android:layout_gravity="bottom"
android:layout_weight="1.0"
android:scaleType="fitCenter"
android:src="@drawable/ic_launcher" />
<ImageView
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:scaleType="fitCenter"
android:src="@drawable/ic_launcher" />
<ImageView
android:layout_width="0dip"
android:layout_height="fill_parent"
android:layout_weight="1.0"
android:scaleType="fitCenter"
android:src="@drawable/ic_launcher" />
</LinearLayout>
</LinearLayout>
0 0
- android:clipChildren为false即可,默认为true
- ajax 异步请求 async:true;// true为异步,默认异步,false为同步
- logger的父logger的additivity设置为false,默认的情况下为true。
- ajax同步异步 async默认为true 异步 async:false, //同步
- [android] setOnTouchEvent 设置返回值为true 和 false的区别
- Console.WriteLine(7.88 + 5.00 - 12.88); 结果为True还是False?
- mysql_query() ,注意返回值可能为true或false
- setOnTouchEvent 设置返回值为true 和 false的区别
- cout将bool直接输出为true和false
- 对request.getSession(false)以及参数为true的理解
- Ajax请求中的async设置为false/true的区别
- setOnTouchEvent 设置返回值为true 和 false的区别
- js中Boolean值为false和true的情况:
- setOnTouchEvent 设置返回值为true 和 false的区别
- 对request.getSession(false)以及参数为true的理解
- if{}中值为true 或者false时候的判断
- 小程序中disabled为false和true
- Android开发使用XML文件定义ImageView的在selected为true和false状态下显示不同的图像
- BroadcastReceiver学习例程
- Windows安装easy_install出错: 'ascii' codec can't decode byte
- OC中类的三大特性:封装、继承和多态
- 建筑与软件
- hiho 第二十三周 Dijkstra
- android:clipChildren为false即可,默认为true
- 学习路线,转载马士兵
- 【MongoDB】MongoDB之遗漏知识点
- 字符统计2
- 雷军自曝小米成功诀窍:你也能学会
- ios面试题(转载备用)
- 微软2015校园招聘 技术类职位在线笔试-题目1 : Browser Caching
- uva--10131Is Bigger Smarter? +dp
- BCB对如何操作ini文件?