在320*480 的屏幕是这样子的 http://hi.csdn.net/space-9942144-do-album-picid-943888-goto-down.html
在240*320的屏幕是这样子的 http://hi.csdn.net/space-9942144-do-album-picid-943887-goto-up.htmlt
上面两个是图片链接,发现一个问题就是两个的edittext没有对好,在240*320就失准了,编辑框我是采用先p好图
,然后自己把编辑框控件对应上P好的图的编辑框,然后设为透明。
xml文件如下:<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/o3"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TVB体"
android:textSize="20sp"
android:textColor="#996600"
android:layout_gravity="center"
android:layout_marginTop="11dp"
android:background="#00ffffff">
</TextView>
<EditText
android:layout_width="153dp"
android:layout_height="40dp"
android:layout_marginLeft="142dp"
android:layout_marginTop="4dp"
android:id="@+id/tvb_input1"
android:textColor="#996600"
android:background="#00ffffff"
/>
<EditText
android:layout_width="153dp"
android:layout_height="40dp"
android:layout_marginLeft="142dp"
android:layout_marginTop="12dp"
android:id="@+id/tvb_input2"
android:textColor="#996600"
android:background="#00ffffff"
/>
<EditText
android:layout_width="150dp"
android:layout_height="40dp"
android:layout_marginLeft="145dp"
android:layout_marginTop="12dp"
android:textColor="#996600"
android:id="@+id/tvb_input3"
android:background="#00ffffff"
/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_marginTop="20dp"
android:layout_height="wrap_content"
>
<Button
android:layout_width="120dp"
android:layout_height="40dp"
android:layout_marginLeft="42dp"
android:background="#00ffffff"
android:id="@+id/tvb_submit"
/>
<Button
android:layout_width="120dp"
android:layout_height="40dp"
android:layout_marginLeft="8dp"
android:id="@+id/tvb_share"
android:background="#00ffffff"
/>
</LinearLayout>
<EditText
android:layout_width="250dp"
android:layout_height="160dp"
android:layout_marginLeft="40dp"
android:layout_marginTop="20dp"
android:id="@+id/tvb_show"
android:textColor="#996600"
android:background="#00ffffff"
/>
</LinearLayout>
求各位大牛帮帮忙
在240*320的屏幕是这样子的 http://hi.csdn.net/space-9942144-do-album-picid-943887-goto-up.htmlt
上面两个是图片链接,发现一个问题就是两个的edittext没有对好,在240*320就失准了,编辑框我是采用先p好图
,然后自己把编辑框控件对应上P好的图的编辑框,然后设为透明。
xml文件如下:<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/o3"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TVB体"
android:textSize="20sp"
android:textColor="#996600"
android:layout_gravity="center"
android:layout_marginTop="11dp"
android:background="#00ffffff">
</TextView>
<EditText
android:layout_width="153dp"
android:layout_height="40dp"
android:layout_marginLeft="142dp"
android:layout_marginTop="4dp"
android:id="@+id/tvb_input1"
android:textColor="#996600"
android:background="#00ffffff"
/>
<EditText
android:layout_width="153dp"
android:layout_height="40dp"
android:layout_marginLeft="142dp"
android:layout_marginTop="12dp"
android:id="@+id/tvb_input2"
android:textColor="#996600"
android:background="#00ffffff"
/>
<EditText
android:layout_width="150dp"
android:layout_height="40dp"
android:layout_marginLeft="145dp"
android:layout_marginTop="12dp"
android:textColor="#996600"
android:id="@+id/tvb_input3"
android:background="#00ffffff"
/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_marginTop="20dp"
android:layout_height="wrap_content"
>
<Button
android:layout_width="120dp"
android:layout_height="40dp"
android:layout_marginLeft="42dp"
android:background="#00ffffff"
android:id="@+id/tvb_submit"
/>
<Button
android:layout_width="120dp"
android:layout_height="40dp"
android:layout_marginLeft="8dp"
android:id="@+id/tvb_share"
android:background="#00ffffff"
/>
</LinearLayout>
<EditText
android:layout_width="250dp"
android:layout_height="160dp"
android:layout_marginLeft="40dp"
android:layout_marginTop="20dp"
android:id="@+id/tvb_show"
android:textColor="#996600"
android:background="#00ffffff"
/>
</LinearLayout>
求各位大牛帮帮忙
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货