android:屏幕自适应问题
来源:互联网 发布:mysql 删除表结构 编辑:程序博客网 时间:2024/04/23 20:30
demo下载:http://www.eoeandroid.com/forum.php?mod=attachment&aid=NjE0Njh8ZTIyZDA2M2N8MTMzODgyOTQxN3w1NzAwOTV8MTczOTcz
<?xml version="1.0" encoding="utf-8"?>
<resources><!-- 全屏幕拉伸-->
<style name="layout_full">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
</style>
<!-- 固定自身大小-->
<style name="layout_wrap">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<!-- 横向分布-->
<style name="layout_horizontal" parent="layout_full">
<item name="android:layout_width">0px</item>
</style>
<!-- 纵向分布-->
<style name="layout_vertical" parent="layout_full">
<item name="android:layout_height">0px</item>
</style>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/layout_full"
android:orientation="vertical">
<LinearLayout
style="@style/layout_vertical"
android:layout_weight="1"
android:orientation="horizontal">
<View
style="@style/layout_horizontal"
android:background="#aa0000"
android:layout_weight="1"/>
<View
style="@style/layout_horizontal"
android:background="#00aa00"
android:layout_weight="4"/>
<View
style="@style/layout_horizontal"
android:background="#0000aa"
android:layout_weight="3"/>
<View
style="@style/layout_horizontal"
android:background="#aaaaaa"
android:layout_weight="2"/>
</LinearLayout>
<LinearLayout
style="@style/layout_vertical"
android:layout_weight="2"
android:orientation="vertical">
<View
style="@style/layout_vertical"
android:background="#ffffff"
android:layout_weight="4"/>
<View
style="@style/layout_vertical"
android:background="#aa0000"
android:layout_weight="3"/>
<View
style="@style/layout_vertical"
android:background="#00aa00"
android:layout_weight="2"/>
<View
style="@style/layout_vertical"
android:background="#0000aa"
android:layout_weight="1"/>
</LinearLayout>
</LinearLayout>
- android 屏幕自适应问题
- android:屏幕自适应问题
- Android屏幕自适应的问题
- Android图片自适应不同分辨率屏幕问题
- 关于android 的屏幕自适应问题
- Android 屏幕自适应问题和9切图
- Android 解决屏幕上自适应问题
- Android图片自适应不同分辨率屏幕问题
- android 应用开发屏幕自适应问题
- 网页屏幕自适应问题
- android屏幕自适应研究
- [Android]屏幕自适应布局
- android 屏幕自适应
- android屏幕自适应研究
- android:屏幕自适应
- android屏幕自适应
- android 自适应屏幕
- android屏幕自适应
- ExtJS 对象访问技巧总结(-)
- MTK Android 环境搭配
- 很实用的linux运维常用命令及知识! 2
- innerText和innerHTML区别
- debug_new
- android:屏幕自适应问题
- php多文件上传
- !!javascript 作用域链的原理和原型链
- truncate与delete
- Sunplus SPHE1500/1510高清DVB方案的强大功能
- 过了四年的程序员的生活,梦想是什么?
- C++ API函数功能目录大全
- android属性文件 build.prop system.prop相关
- split函数的用法(Linux里AWK中split函数的用法)