0
こんにちは私は2つのテキストボックスと1つのボタンimage.butを入力した後、レイアウト全体の背景イメージを設定するxmlファイルを持っています。データをサブミットするために、私は全体レイアウトのscroolを設定したいが、スクロールを設定すると、全体のレイアウトではなく背面のスクロールしかないのですべてのUIが歪んでいるので、scroolable全体のレイアウトを作る方法my xmlはpls以下私のコードに全体レイアウトでスクロールを設定します。
おかげ
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center"
android:background="@drawable/user_id_bg2" >
<EditText
android:inputType="text|textNoSuggestions"
android:text=""
android:id="@+id/editText1"
android:singleLine="true"
android:hint="Enter Your User Id"
android:layout_marginTop="85dip"
android:layout_marginLeft="20dip"
android:layout_marginRight="20dip"
android:layout_height="40dip"
android:layout_width="fill_parent">
</EditText>
<EditText
android:inputType="text|textNoSuggestions"
android:password="true"
android:singleLine="true"
android:hint="Enter Your Password"
android:layout_marginTop="125dip"
android:layout_marginLeft="20dip"
android:layout_marginRight="20dip"
android:id="@+id/editText2"
android:imeOptions="actionDone"
android:layout_height="40dip"
android:layout_width="fill_parent"/>
<ImageView
android:id="@+id/buttonimg"
android:layout_below="@id/editText2"
android:layout_marginLeft="237dip"
android:layout_width="wrap_content"
android:layout_height="40dip"
android:background="@drawable/go_button"
/>
私は、スクロールビューにすべてをかけるならば、背景画像がスクロールされている私はscrollviewを持っていレイアウトの背景を設定 – shyam
試みを、スクロールせずにそれを見せたい、それはそれを下にスクロールせずに全体を来ていないことを意味し唯一の子供とその中のすべてのもの? – Martyn