屏幕适配
来源:互联网 发布:php数据库教程 编辑:程序博客网 时间:2024/06/14 10:42
一 效果图
二 主要代码
320x240
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" > <TextView android:id="@+id/textView1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/name" /> <Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_below="@+id/textView1" android:layout_marginTop="85dp" android:text="@string/button" /> <EditText android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_below="@+id/textView1" android:layout_marginTop="22dp" android:ems="10" /></RelativeLayout>480x320
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" ><LinearLayout android:layout_width="fill_parent" android:layout_height="match_parent" android:orientation="horizontal" > <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/button" /> <TextView android:layout_width="80dp" android:layout_height="wrap_content" android:text="@string/name" /> <EditText android:layout_width="fill_parent" android:layout_height="wrap_content" /></LinearLayout></RelativeLayout>
0 0
- 【Android 屏幕适配】 屏幕适配
- Android 屏幕适配--屏幕旋转
- COCOS2DX屏幕显示与屏幕适配
- Android屏幕适配-----屏幕尺寸
- Android屏幕尺寸单位/屏幕适配
- 屏幕适配
- 【Android】屏幕适配
- android屏幕适配
- android屏幕适配
- android 屏幕适配
- Android屏幕适配
- Android屏幕适配
- Android屏幕适配
- Android屏幕适配
- android 屏幕适配
- 屏幕适配
- Android屏幕适配
- Android屏幕适配
- sessionFactory工厂
- 在Windows7上通过Dao安装Tensorflow-(综合已有资料和自己调试经验的总结)
- Java EE微信开发入门一+环境搭配(JDK+MyEclipse+Tomcat)
- Java HashMap实现原理2——HashMap详解
- Netty ChannelOption 参数含义
- 屏幕适配
- 初学Hadoop之安装配置Hadoop
- 初始化与清理
- poj2705
- 前端开发工具vue.js开发实践总结
- 阅读郭林《第一行代码》的笔记——第8章 丰富你的程序,运用手机多媒体
- list数组遍历
- 被忽视的另一个vmlinux
- 修改配置文件 遇到的莫名的小bug