<RelativeLayout 
xmlns:android="http://schemas.android.com/apk/res/android";
    android:id="@+id/mainlayout"
    android:layout_width="fill_parent"
    android:layout_height="450dp"
    android:background="#f8f9fe" >

    <LinearLayout
        android:id="@+id/linearLayout1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical" >

        <LinearLayout
            android:id="@+id/extremelysorry"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="20dp"
            android:layout_marginTop="30dp"
            android:background="@drawable/pressicon"
            android:orientation="vertical" >

            <TextView
                android:id="@+id/extremelysorry1"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="1dp"
                android:padding="5dip"
                android:text="  &quot;We are extremely sorry, request your 
valuable comment , somebody will get back to you shortly&quot;."
                android:textColor="#FFFFFF"
                android:textSize="20dip"
                android:textStyle="bold" />
        </LinearLayout>

        <LinearLayout
            android:id="@+id/layout_name"
            android:layout_width="fill_parent"
            android:layout_height="35dp"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="20dp"
            android:layout_marginTop="20dp"
            android:background="@drawable/pressicon"
            android:orientation="vertical" >

            <TextView
                android:id="@+id/signetno"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="1dp"
                android:padding="5dip"
                android:text=" Please enter your Loyalty Card 
No/Name,Mobile No/Name,Email ID"
                android:textColor="#FFFFFF"
                android:textSize="20dip"
                android:textStyle="bold" />
        </LinearLayout>

        <LinearLayout
            android:id="@+id/LinearLayout03"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginLeft="70dp"
            android:orientation="vertical" android:layout_marginTop="30dp">

            <LinearLayout
                android:id="@+id/LinearLayout02"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="5dp" >

                <LinearLayout
                    android:layout_width="250dp"
                    android:layout_height="wrap_content"
                    android:background="@drawable/labelbg" >

                    <TextView
                        android:id="@+id/loyaltyLable"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="7dp"
                        android:layout_marginTop="3dp"
                        android:padding="5dp"
                        android:text="Membership Card No."
                        android:textColor="#FFFFFF"
                        android:textSize="20dp" />
                </LinearLayout>

                <EditText
                    android:id="@+id/ed_cardno"
                    android:layout_width="wrap_content"
                    android:layout_height="30dp"
                    android:layout_marginLeft="50dp"
                    android:layout_weight="1"
                    android:background="@drawable/textbox_n"
                    android:ems="10"
                    android:hint="Touch here to enter"
                    android:imeOptions="actionDone|flagNoExtractUi"
                    android:inputType="number"
                    android:paddingLeft="5dp"
                    android:singleLine="true"
                    android:textSize="20dp" />
            </LinearLayout>

            <LinearLayout
                android:id="@+id/layout_age"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:paddingTop="5dp" >

                <LinearLayout
                    android:layout_width="250dp"
                    android:layout_height="wrap_content"
                    android:background="@drawable/labelbg" >

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="7dp"
                        android:layout_marginTop="3dp"
                        android:padding="5dp"
                        android:text="Name"
                        android:textColor="#FFFFFF"
                        android:textSize="20dp" />
                </LinearLayout>

                <EditText
                    android:id="@+id/ed_name"
                    android:layout_width="wrap_content"
                    android:layout_height="30dp"
                    android:layout_marginLeft="50dp"
                    android:layout_weight="1"
                    android:autoText="true"
                    android:background="@drawable/textbox_n"
                    android:ems="10"
                    android:hint="Touch here to enter"
                    android:imeOptions="actionDone|flagNoExtractUi"
                    android:paddingLeft="5dp"
                    android:singleLine="true"
                    android:textSize="20dp" />
            </LinearLayout>

            <LinearLayout
                android:id="@+id/layout_emailid"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:paddingTop="5dp" >

                <LinearLayout
                    android:layout_width="250dp"
                    android:layout_height="wrap_content"
                    android:background="@drawable/labelbg" >

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="7dp"
                        android:layout_marginTop="3dp"
                        android:padding="5dp"
                        android:text="Mobile No"
                        android:textColor="#FFFFFF"
                        android:textSize="20dp" />
                </LinearLayout>

                <EditText
                    android:id="@+id/ed_mobileno"
                    android:layout_width="wrap_content"
                    android:layout_height="30dp"
                    android:layout_marginLeft="50dp"
                    android:layout_weight="1"
                    android:background="@drawable/textbox_n"
                    android:ems="10"
                    android:hint="10digit Mobile number"
                    android:imeOptions="actionDone|flagNoExtractUi"
                    android:numeric="integer"
                    android:paddingLeft="5dp"
                    android:phoneNumber="true"
                    android:singleLine="true"
                    android:textSize="20dp" />
            </LinearLayout>

            <LinearLayout
                android:id="@+id/layout_cardno"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:paddingTop="5dp" >

                <LinearLayout
                    android:layout_width="250dp"
                    android:layout_height="wrap_content"
                    android:background="@drawable/labelbg" >

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginLeft="7dp"
                        android:layout_marginTop="3dp"
                        android:padding="5dp"
                        android:text="Email ID"
                        android:textColor="#FFFFFF"
                        android:textSize="20dp" />
                </LinearLayout>

                <EditText
                    android:id="@+id/ed_emailid"
                    android:layout_width="wrap_content"
                    android:layout_height="30dp"
                    android:layout_marginLeft="50dp"
                    android:layout_weight="1"
                    android:background="@drawable/textbox_n"
                    android:ems="10"
                    android:hint="Touch here to enter"
                     android:imeOptions="actionDone|flagNoExtractUi"
                    android:inputType="textEmailAddress"
                    android:paddingLeft="5dp"
                    android:singleLine="true"
                    android:textSize="20dp" />
            </LinearLayout>
       
            <LinearLayout
                android:id="@+id/layout_comeagain"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:paddingTop="5dp" >
            </LinearLayout>

            <LinearLayout
                android:id="@+id/LinearLayout01"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" >

                <!-- <Button
                    android:id="@+id/back"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:background="@drawable/back1"
                    android:textColor="#ff29549f" /> -->
                    
                    <Button
                    android:id="@+id/back"
                    android:layout_width="250dp"
                    android:layout_height="wrap_content"
                    android:focusable="true"
                    android:background="@drawable/back_button"
                    android:textColor="#ff29549f" />

                <!-- <Button
                    android:id="@+id/comment_next"   
                    android:layout_width="wrap_content"
                    android:layout_height="37dp"
                    android:layout_marginLeft="180dp"
                    android:background="@drawable/next"
                    android:focusable="true"
                    android:textColor="#ff29549f" /> -->
                    
                    <Button
                    android:id="@+id/comment_next"
                    android:layout_width="wrap_content"
                    android:layout_height="37dp"
                    android:layout_marginLeft="420dp"
                    android:background="@drawable/next_button"
                    android:focusable="true"
                    android:textColor="#ff29549f" />

                <Chronometer
                    android:id="@+id/start_quiz_time1"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_weight="3.19"
                    android:textSize="15sp"
                    android:visibility="invisible" />
            </LinearLayout>
        </LinearLayout>

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="20dp"
            android:layout_marginTop="30dp"
            android:background="@drawable/pressicon"
            android:orientation="vertical" >

            <TextView
                android:id="@+id/manadatory"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="1dp"
                android:padding="5dip"
                android:text="  *Mandatory: The information is confidential 
&amp; will not be used for commercial purposes"
                android:textColor="#FFFFFF"
                android:textSize="20dip" />
        </LinearLayout>
    </LinearLayout>
    <!-- </RelativeLayout> -->

</RelativeLayout>


Hi,

This is my code but this does not support multiple screen.Widgets get 
displaced.How to

make this code as if i run this to any tablet this looks same on every 
tablet having

different screen sizes and density.

Please help me ASAP.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to