Making Android Layout Scrollable - android

I am developing an Android App inside Visual Studio and I cant figure out how to make it scroll.
I am posting my AXML pastebin link!
AXML file
Thank you

Put your xml stuff inside a ScrollView. You should also change the android:layout_height of your root LinearLayout to wrap_content.
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#f0ffa0"
android:scrollIndicators="right"
android:scrollbarStyle="insideOverlay"
android:scrollbars="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<LinearLayout
android:id="#+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="65.3dp"
android:background="#aecc0a"
android:orientation="horizontal">
<ImageButton
android:id="#+id/imageButton1"
android:layout_width="48.3dp"
android:layout_height="41.0dp"
android:layout_marginLeft="10dp"
android:layout_marginTop="15dp"
android:adjustViewBounds="true"
android:background="#aecc0a"
android:clickable="true"
android:hapticFeedbackEnabled="true"
android:scaleType="fitStart"
android:src="#drawable/backbutton"/>
<TextView
android:id="#+id/loginLabel1"
android:layout_width="62.0dp"
android:layout_height="24.0dp"
android:layout_marginLeft="98dp"
android:layout_marginTop="25dp"
android:text="LOGIN"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#000000"
android:textSize="20dp"
android:textStyle="bold"/>
<ImageView
android:id="#+id/imageView1"
android:layout_width="54.7dp"
android:layout_height="42.7dp"
android:layout_marginLeft="80dp"
android:layout_marginRight="10dp"
android:layout_marginTop="15dp"
android:src="#drawable/loginicon2"/>
</LinearLayout>
<Button
android:id="#+id/button1"
android:layout_width="match_parent"
android:layout_height="3.0dp"
android:layout_marginBottom="0dp"
android:background="#414347"
android:clickable="false"
android:text="Button"/>
<TextView
android:id="#+id/loginlabel3"
android:layout_width="258.3dp"
android:layout_height="wrap_content"
android:layout_marginLeft="60dp"
android:layout_marginTop="20dp"
android:text="ENTER YOUR DETAILS"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#000000"
android:textSize="25dp"
android:textStyle="bold"/>
<Button
android:id="#+id/button1"
android:layout_width="310dp"
android:layout_height="3.0dp"
android:layout_marginBottom="0dp"
android:layout_marginLeft="25dp"
android:layout_marginTop="10dp"
android:background="#414347"
android:clickable="false"
android:text="Button"/>
<TextView
android:id="#+id/loginLabel1"
android:layout_width="148.3dp"
android:layout_height="wrap_content"
android:layout_marginLeft="120dp"
android:layout_marginTop="50dp"
android:text="CUSTOMER ID"
android:textAlignment="center"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#000000"
android:textSize="20dp"
android:textStyle="bold"
android:typeface="serif"/>
<EditText
android:id="#+id/loginCustID"
android:layout_width="144.0dp"
android:layout_height="37.0dp"
android:layout_marginLeft="120dp"
android:layout_marginTop="5dp"
android:background="#ffffff"
android:editable="true"
android:hint="*Required"
android:inputType="numberSigned"
android:maxLength="8"
android:text="1234565432456"
android:textAlignment="center"
android:textColor="#000000"
android:textSize="30dp"
android:textStyle="bold"/>
<TextView
android:id="#+id/loginLabel4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="135dp"
android:layout_marginTop="30dp"
android:text="PASSWORD"
android:textAlignment="center"
android:textAllCaps="false"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#000000"
android:textIsSelectable="false"
android:textSize="20dp"
android:textStyle="bold"/>
<EditText
android:id="#+id/loginPassword"
android:layout_width="200.0dp"
android:layout_height="37.0dp"
android:layout_marginLeft="95dp"
android:layout_marginTop="7dp"
android:background="#ffffff"
android:inputType="text"
android:password="true"
android:text="1234567890"
android:textColor="#000000"
android:textIsSelectable="false"
android:textSize="30dp"
android:textStyle="bold"/>
<Button
android:id="#+id/loginSubmit"
android:layout_width="140.5dp"
android:layout_height="66.0dp"
android:layout_marginLeft="120dp"
android:layout_marginTop="60dp"
android:background="#5dea4b"
android:scrollbarStyle="insideInset"
android:scrollbars="vertical"
android:text="LOGIN"
android:textAlignment="center"
android:textSize="25dp"
android:textStyle="bold"/>
<Button
android:id="#+id/button1"
android:layout_width="match_parent"
android:layout_height="3.0dp"
android:layout_marginBottom="0dp"
android:layout_marginTop="50dp"
android:background="#414347"
android:clickable="false"
android:text="Button"/>
<LinearLayout
android:id="#+id/linearLayout2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:id="#+id/linearLayout3"
android:layout_width="260.0dp"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="#+id/textView1"
android:layout_width="230.3dp"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:scrollbarStyle="insideOverlay"
android:text="* Customer ID is 8 digits long"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#000000"
android:textStyle="italic"/>
<TextView
android:id="#+id/textView2"
android:layout_width="235.0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:text="* Password is 8-10 digits long"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#000000"
android:textStyle="italic"/>
</LinearLayout>
<Button
android:id="#+id/button1"
android:layout_width="2.7dp"
android:layout_height="92.7dp"
android:background="#414347"
android:clickable="false"/>
<ImageButton
android:id="#+id/imageButton2"
android:layout_width="89.0dp"
android:layout_height="78.0dp"
android:layout_marginLeft="5dp"
android:layout_marginTop="5dp"
android:background="#f0ffa0"
android:scaleType="fitCenter"
android:src="#drawable/easeofaccess"/>
</LinearLayout>
</LinearLayout>
</ScrollView>

Related

listview is not displaying in android API 16 version.but not dispalying under versions.how can i fix this?

This is xml code of my layout.its not displaying in API16 but its working properly in API
23,but its not working under versions.notging to display.
<ListView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:dividerHeight="10dp"
android:id="#+id/list_primary">
</ListView>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="#+id/text14"
android:text="Taken"
android:textColor="#color/black"
android:layout_marginLeft="20dp"
android:layout_marginTop="10dp"
android:textSize="20sp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="#+id/text16"
android:text="Skip"
android:textColor="#color/black"
android:layout_marginTop="-25dp"
android:layout_gravity="center"
android:textSize="20sp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Dismiss"
android:id="#+id/text15"
android:textColor="#color/black"
android:layout_gravity="right"
android:layout_marginTop="-25dp"
android:layout_marginRight="20dp"
android:textSize="20sp"
/>
</LinearLayout>
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="match_parent">
<Button
android:layout_width="70dp"
android:layout_height="70dp"
android:background="#mipmap/btn1"
android:layout_marginLeft="15dp"
android:id="#+id/btn_taken" />
<Button
android:layout_width="70dp"
android:layout_height="70dp"
android:background="#mipmap/btn2"
android:id="#+id/btnskip"
android:layout_gravity="center"
android:layout_marginTop="-70dp"
/>
<Button
android:layout_width="70dp"
android:layout_height="70dp"
android:background="#mipmap/btn3"
android:id="#+id/btndismiss"
android:layout_marginRight="20dp"
android:layout_gravity="right"
android:layout_marginTop="-70dp"
/>
</LinearLayout>
list_view.xml
<LinearLayout
android:layout_width="match_parent"
android:layout_height="120dp"
android:orientation="vertical"
android:elevation="5dp"
android:background="#drawable/listview">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="1dp"
android:orientation="horizontal"
android:background="#drawable/logback">
<TextView
android:layout_width="120dp"
android:layout_height="wrap_content"
android:id="#+id/label_medname"
android:layout_marginTop="10dp"
android:layout_marginLeft="15dp"
android:text="Medicine Name"
android:textColor="#000"
android:textSize="15dp"/>
<TextView
android:layout_width="120dp"
android:layout_height="wrap_content"
android:id="#+id/text_mediname"
android:layout_marginTop="10dp"
android:layout_marginLeft="15dp"
android:text="Name"
android:textColor="#000"
android:textSize="15dp"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="5dp"
android:background="#drawable/logback">
<TextView
android:layout_width="120dp"
android:layout_height="wrap_content"
android:id="#+id/label_quan"
android:layout_marginTop="10dp"
android:text="Quantity :"
android:layout_marginLeft="15dp"
android:textColor="#000"
android:textSize="15dp"/>
<TextView
android:layout_width="120dp"
android:layout_height="wrap_content"
android:id="#+id/text_quantity"
android:layout_marginTop="10dp"
android:text="Quantity"
android:layout_marginLeft="15dp"
android:textColor="#000"
android:textSize="15dp"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="5dp"
android:background="#drawable/logback">
<TextView
android:layout_width="120dp"
android:layout_height="wrap_content"
android:id="#+id/label_when"
android:layout_marginTop="10dp"
android:layout_alignParentRight="true"
android:layout_marginLeft="15dp"
android:text="When :"
android:textColor="#000"
android:textSize="15dp"/>
<TextView
android:layout_width="120dp"
android:layout_height="wrap_content"
android:id="#+id/text_when"
android:layout_marginTop="10dp"
android:layout_alignParentRight="true"
android:layout_marginLeft="15dp"
android:text="When"
android:textColor="#000"
android:textSize="15dp"/>
</LinearLayout>
</LinearLayout>
</RelativeLayout>
how can i fix this?
every thing is exactly same but data is not displaying in the list. Please i'm badly stuck here and i really need some fast help. Waiting for some positive response !

Android Java How to make half screen keyboard and done in the edit text at the same time?

I want to make an EditText that its keyboard fills half screen in Landscape mode but also to have the done available at the same time since I have more than one EditText in my layout.
How can I use
android:imeOptions="flagNoExtractUi"
and
android:imeOptions="actionDone"
at the same time!!!
Here is the code:
<?xml version="1.0" encoding="utf-8"?>
<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"
tools:context="com.example.ommabdelhafiz.amathmess.MainActivity">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="7"
android:textSize="16sp"
android:id="#+id/first_1st"/>
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="×"
android:textSize="16sp"
/>
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="7"
android:textSize="16sp"
android:id="#+id/first_2nd"/>
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="="
android:textSize="16sp"
/>
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:inputType="number"
android:maxLength="3"
android:hint=" "
android:id="#+id/first_ans"
android:imeOptions="flagNoExtractUi"
android:layout_marginRight="20dp"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:textSize="16dp"
android:layout_gravity="center_horizontal"
android:id="#+id/first_true_ans"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:textSize="16dp"
android:gravity="bottom"
android:layout_gravity="center_horizontal"
android:id="#+id/first_false_ans"/>
</LinearLayout>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Check"
android:layout_marginLeft="20dp"
android:onClick="check1st"
android:id="#+id/first_btn"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="49"
android:textSize="16sp"
android:id="#+id/second_1st"/>
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="÷"
android:textSize="16sp"
/>
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="7"
android:textSize="16sp"
android:id="#+id/second_2nd"/>
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="="
android:textSize="16sp"
/>
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:inputType="number"
android:maxLength="2"
android:hint=" "
android:id="#+id/second_ans"
android:imeOptions="flagNoExtractUi"
android:layout_marginRight="20dp"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:textSize="16dp"
android:layout_gravity="center_horizontal"
android:id="#+id/second_true_ans"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:textSize="16dp"
android:gravity="bottom"
android:layout_gravity="center_horizontal"
android:id="#+id/second_false_ans"/>
</LinearLayout>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Check"
android:layout_marginLeft="20dp"
android:onClick="check2nd"
android:id="#+id/second_btn"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="711"
android:textSize="16sp"
android:id="#+id/third_1st"/>
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="×"
android:textSize="16sp"
/>
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="7"
android:textSize="16sp"
android:id="#+id/third_2nd"/>
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="="
android:textSize="16sp"
/>
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:inputType="number"
android:maxLength="4"
android:hint=" "
android:id="#+id/third_ans"
android:imeOptions="flagNoExtractUi"
android:layout_marginRight="20dp"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:textSize="16dp"
android:layout_gravity="center_horizontal"
android:id="#+id/third_true_ans"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:textSize="16dp"
android:gravity="bottom"
android:layout_gravity="center_horizontal"
android:id="#+id/third_false_ans"/>
</LinearLayout>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Check"
android:layout_marginLeft="20dp"
android:onClick="check3rd"
android:id="#+id/third_btn"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="41.735"
android:textSize="16sp"
android:id="#+id/fourth_1st"/>
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="+"
android:textSize="16sp"
/>
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="23.836"
android:textSize="16sp"
android:id="#+id/fourth_2nd"/>
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="="
android:textSize="16sp"
/>
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:inputType="numberDecimal"
android:hint=" "
android:maxLength="7"
android:id="#+id/fourth_ans"
android:imeOptions="flagNoExtractUi"
android:layout_marginRight="20dp"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:textSize="16dp"
android:layout_gravity="center_horizontal"
android:id="#+id/fourth_true_ans"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:textSize="16dp"
android:gravity="bottom"
android:layout_gravity="center_horizontal"
android:id="#+id/fourth_false_ans"/>
</LinearLayout>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Check"
android:layout_marginLeft="20dp"
android:onClick="check4th"
android:id="#+id/fourth_btn"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="71.159"
android:textSize="16sp"
android:id="#+id/fifth_1st"/>
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="-"
android:textSize="16sp"
/>
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="14.704"
android:textSize="16sp"
android:id="#+id/fifth_2nd"/>
<TextView
android:layout_width="70dp"
android:layout_height="wrap_content"
android:text="="
android:textSize="16sp"
/>
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="16sp"
android:inputType="numberDecimal"
android:maxLength="7"
android:hint=" "
android:id="#+id/fifth_ans"
android:imeOptions="flagNoExtractUi"
android:layout_marginRight="20dp"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:textSize="16dp"
android:layout_gravity="center_horizontal"
android:id="#+id/fifth_true_ans"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0"
android:textSize="16dp"
android:gravity="bottom"
android:layout_gravity="center_horizontal"
android:id="#+id/fifth_false_ans"/>
</LinearLayout>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Check"
android:layout_marginLeft="20dp"
android:onClick="check5th"
android:id="#+id/fifth_btn"/>
</LinearLayout>
</LinearLayout>
</ScrollView>
</RelativeLayout>
You can combine imeOptions with a | (pipe)
android:imeOptions="flagNoExtractUi|actionDone"

Spaces are appearing on the right and left side of a Scroll View android?

I am developing an android application. On the preview the view is presanting the way I have set it but when I run it on a device I am seeing spaces on it right and left side.
Screen shots are attached for the better understanding of the problem.
Below is the code of my layout.
<LinearLayout
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"
tools:context="------"
>
<!-- TODO: Update blank fragment layout -->
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="#+id/scrollView"
android:scrollbars="none"
android:layout_gravity="center">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#color/screen_background">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="#string/telephone_number"
android:id="#+id/telephonNumberTextView"
android:phoneNumber="false"
android:textColor="#android:color/white"
android:layout_marginTop="10dp"
android:layout_marginBottom="5dp"
android:paddingLeft="2dp" />
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="phone"
android:ems="10"
android:id="#+id/phoneNumberEditText"
android:layout_weight="1"
android:clickable="true"
android:singleLine="true"
android:background="#drawable/edittext"
android:paddingLeft="4dp"
android:textAlignment="textStart" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="#string/telephone_extension"
android:id="#+id/telephoneExtensionTextView"
android:layout_marginTop="10dp"
android:layout_gravity="left|center_vertical"
android:textColor="#android:color/white"
android:layout_marginBottom="5dp"
android:paddingLeft="2dp"/>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="phone"
android:ems="10"
android:id="#+id/telephoneExtensionEditText"
android:background="#drawable/edittext"
android:singleLine="true"
android:paddingLeft="4dp"
android:layout_weight="1"/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="#string/email_id"
android:id="#+id/emailIdTextView"
android:layout_gravity="left|center_vertical"
android:textColor="#android:color/white"
android:layout_marginTop="10dp"
android:layout_marginBottom="5dp"
android:paddingLeft="2dp"/>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"
android:ems="10"
android:id="#+id/emailIdEditText"
android:layout_gravity="center_vertical"
android:singleLine="true"
android:layout_weight="1"
android:background="#drawable/edittext"
android:paddingLeft="4dp"
android:layout_margin="5dp" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="#string/problem_type"
android:id="#+id/problemTypeTextView"
android:layout_gravity="left|center_vertical"
android:textColor="#android:color/white"
android:layout_marginTop="10dp"
android:layout_marginBottom="5dp"
android:paddingLeft="2dp"/>
<Button
style="?android:attr/buttonStyleSmall"
android:layout_width="fill_parent"
android:layout_height="30dp"
android:text="#string/fetch_problem_types"
android:id="#+id/button"
android:background="#drawable/buttonback"
android:textColor="#android:color/white"
android:layout_gravity="center"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="#string/location"
android:id="#+id/locationTextView"
android:layout_gravity="left|center_vertical"
android:textColor="#android:color/white"
android:layout_marginTop="10dp"
android:layout_marginBottom="5dp"
android:paddingLeft="2dp"/>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textPostalAddress"
android:ems="10"
android:id="#+id/locationEditText"
android:layout_gravity="bottom"
android:singleLine="true"
android:background="#drawable/edittext"
android:paddingLeft="4dp"
android:layout_weight="1" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="#string/brief_desc"
android:id="#+id/briefDescTextView"
android:layout_gravity="left|center_vertical"
android:textColor="#android:color/white"
android:layout_marginTop="10dp"
android:layout_marginBottom="5dp"
android:paddingLeft="2dp"/>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="#+id/briefDescEditText"
android:singleLine="true"
android:layout_gravity="bottom"
android:background="#drawable/edittext"
android:paddingLeft="4dp"
android:layout_weight="1" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="#string/doc_desc"
android:id="#+id/docDescTextView"
android:layout_gravity="left|center_vertical"
android:textColor="#android:color/white"
android:layout_marginTop="10dp"
android:layout_marginBottom="5dp"
android:paddingLeft="2dp"/>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="#+id/docDescEditText"
android:layout_gravity="bottom"
android:singleLine="true"
android:background="#drawable/edittext"
android:paddingLeft="4dp"
android:layout_weight="1" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="#string/approval_memo"
android:id="#+id/approvalMemoTextView"
android:layout_gravity="left|center_vertical"
android:layout_marginTop="10dp"
android:textColor="#android:color/white"
android:layout_marginBottom="5dp"
android:paddingLeft="2dp"/>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="#+id/approvalMemoEditText"
android:layout_gravity="bottom"
android:singleLine="true"
android:background="#drawable/edittext"
android:paddingLeft="4dp"
android:layout_weight="1"/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="#string/requester_Name"
android:id="#+id/requesterNameTextView"
android:layout_gravity="left|center_vertical"
android:layout_marginTop="10dp"
android:textColor="#android:color/white"
android:layout_marginBottom="5dp"
android:paddingLeft="2dp"/>
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="#+id/requesterNameEditText"
android:layout_gravity="bottom"
android:singleLine="true"
android:background="#drawable/edittext"
android:layout_weight="1"
android:layout_marginBottom="5dp"
android:paddingLeft="4dp"
/>
<Button
style="?android:attr/buttonStyleSmall"
android:layout_width="fill_parent"
android:layout_height="30dp"
android:text="#string/submit_button_title"
android:id="#+id/submitButton"
android:layout_gravity="center_vertical"
android:background="#drawable/buttonback"
android:textColor="#android:color/white"
android:layout_marginTop="10dp"
android:layout_marginLeft="2dp"
android:layout_marginRight="2dp"
android:layout_marginBottom="5dp"/>
</LinearLayout>
</ScrollView>
</LinearLayout>
The problem (most probably) lies in the top level XML. I assume you posted only the content.xml which is included my activity_main.xml, because I can't see the Floating Action Button.
I guess you used the build-in generator to create layouts for you and edited the content.xml one. The paddings are defined inside the activity_main.xml one. Delete them and you are good to go.
Remove layout android:layout_margin="5dp" in Email Id EditText
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"
android:ems="10"
android:id="#+id/emailIdEditText"
android:layout_gravity="center_vertical"
android:singleLine="true"
android:layout_weight="1"
android:background="#drawable/edittext"
android:paddingLeft="4dp" />

How to reduce the activity dialog height in android

I am using an activity with style of android:theme="#android:style/Theme.Dialog" .The activity is shown as dialog but the problem is to reduce the height of the dialog to specified level..
Please give me a solution??????
This is my activity dialog XML code
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#drawable/bg"
android:orientation="vertical"
style="#style/MyActionsDialogTheme">
<RelativeLayout
android:id="#+id/relativeLayout1"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="#drawable/custom_title"
android:gravity="center_vertical" >
<RelativeLayout
android:id="#+id/relativeLayout2"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginBottom="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="5dp"
android:gravity="center_vertical" >
<TextView
android:id="#+id/textView1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:gravity="center_vertical"
android:text="Quick Actions"
android:textColor="#ffffff"
android:textSize="18dp"
android:textStyle="bold|italic"
android:typeface="serif" />
</RelativeLayout>
</RelativeLayout>
<TextView
android:id="#+id/tv_edit"
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="20dp"
android:text="Edit Reminder"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#000000"
android:textStyle="bold|italic"
android:typeface="serif" />
<TextView
android:id="#+id/tv_delete"
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:text="Delete Reminder"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#000000"
android:textStyle="bold|italic"
android:typeface="serif" />
<Button
android:id="#+id/btn_cancel"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:background="#drawable/custom_button"
android:text="Cancel"
android:textColor="#ffffff"
android:textStyle="bold|italic"
android:typeface="serif" />
</LinearLayout>
Try this.. give dialog main layout hight as wrap_content
if you give match_parent means it'll fill the parent layout full so give wrap_content
<RelativeLayout
android:id="#+id/relativeLayout1"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="#drawable/custom_title"
android:gravity="center_vertical" >
<RelativeLayout
android:id="#+id/relativeLayout2"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginBottom="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="5dp"
android:gravity="center_vertical" >
<TextView
android:id="#+id/textView1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:gravity="center_vertical"
android:text="Quick Actions"
android:textColor="#ffffff"
android:textSize="18dp"
android:textStyle="bold|italic"
android:typeface="serif" />
</RelativeLayout>
</RelativeLayout>
<TextView
android:id="#+id/tv_edit"
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="20dp"
android:text="Edit Reminder"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#000000"
android:textStyle="bold|italic"
android:typeface="serif" />
<TextView
android:id="#+id/tv_delete"
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:text="Delete Reminder"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#000000"
android:textStyle="bold|italic"
android:typeface="serif" />
<Button
android:id="#+id/btn_cancel"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:background="#drawable/custom_button"
android:text="Cancel"
android:textColor="#ffffff"
android:textStyle="bold|italic"
android:typeface="serif" />
try this
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#drawable/bg"
android:orientation="vertical"
style="#style/MyActionsDialogTheme">
<RelativeLayout
android:id="#+id/relativeLayout1"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="#drawable/custom_title"
android:gravity="center_vertical" >
<RelativeLayout
android:id="#+id/relativeLayout2"
android:layout_width="match_parent"
android:layout_height="40dp"
android:layout_marginBottom="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="5dp"
android:gravity="center_vertical" >
<TextView
android:id="#+id/textView1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:gravity="center_vertical"
android:text="Quick Actions"
android:textColor="#ffffff"
android:textSize="18dp"
android:textStyle="bold|italic"
android:typeface="serif" />
</RelativeLayout>
</RelativeLayout>
<TextView
android:id="#+id/tv_edit"
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="20dp"
android:text="Edit Reminder"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#000000"
android:textStyle="bold|italic"
android:typeface="serif" />
<TextView
android:id="#+id/tv_delete"
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:text="Delete Reminder"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textColor="#000000"
android:textStyle="bold|italic"
android:typeface="serif" />
<Button
android:id="#+id/btn_cancel"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:background="#drawable/custom_button"
android:text="Cancel"
android:textColor="#ffffff"
android:textStyle="bold|italic"
android:typeface="serif" />
</LinearLayout>
use wrap Content in place of matchparent in LinearLayout
Just reduce the background image , then it's work

content invisible using footer in Android

I am using header, content and footer. but the content part is not visible in fully. some line is invisible. i tried to change the height size in Relative layout also.
here my code
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<RelativeLayout
android:id="#+id/rl_bike"
android:layout_width="fill_parent"
android:layout_height="40dp"
android:background="#drawable/head" >
<TextView android:id="#+id/txtTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:text="#string/details"
android:textColor="#fff"
android:textStyle="bold"
android:textSize="20dp"/>
<Button
android:id="#+id/btn_back"
android:layout_width="80dp"
android:layout_height="40dp"
android:layout_marginLeft="2dp"
android:layout_marginTop="3dp"
android:background="#drawable/back"
android:text="Gebrauchte"
android:textColor="#fff" android:textSize="10dp" android:textStyle="bold">
</Button>
</RelativeLayout>
<ScrollView
android:id="#+id/scrollView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="#+id/rl_bike">
<RelativeLayout
android:id="#+id/r2_bike"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_below="#+id/rl_bike"
android:background="#fff"> <RelativeLayout
android:id="#+id/r3_bike"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<TextView
android:textSize="20dp"
android:textStyle="bold"
android:id="#+id/txtBikeTitle"
android:layout_width="wrap_content"
android:text="#string/title"
android:textColor="#000"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="4dp"></TextView>
<ImageView
android:id="#+id/image"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="55dp"
/>
</RelativeLayout>
<RelativeLayout
android:id="#+id/r4_bike"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/r3_bike"
android:background="#fff">
<Gallery
android:id="#+id/Gallery01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="#+id/image"
android:layout_marginLeft="1dp"
android:spacing="10dip">
</Gallery>
</RelativeLayout>
<RelativeLayout
android:id="#+id/r5_bike"
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/r4_bike"
android:background="#fff">
<TextView
android:id="#+id/txtErst"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:text="#string/erst"
android:textColor="#000"
android:textSize="12dp"
android:textStyle="bold"
android:layout_marginLeft="8dp"
/>
<TextView
android:id="#+id/erstValue"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:textColor="#000"
android:textSize="12dp"
android:layout_marginLeft="100dp"
/>
<TextView
android:id="#+id/km"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:text="km-Stand :"
android:textColor="#000"
android:textSize="12dp"
android:textStyle="bold"
android:layout_marginLeft="8dp"
android:layout_below="#+id/txtErst">
</TextView>
<TextView
android:id="#+id/kmValue"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:textColor="#000"
android:textSize="12dp"
android:layout_marginLeft="100dp"
android:layout_below="#+id/txtErst"
/>
<View
android:id="#+id/l1"
android:layout_width="fill_parent"
android:layout_height="1dip"
android:layout_below="#+id/km"
android:background="#FF909090" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/l1"
android:id="#+id/ll"
android:orientation="vertical"
>
<TextView
android:id="#+id/mdata"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:text="Motor -und Getriebedaten "
android:textColor="#000"
android:textSize="15dp"
android:textStyle="bold"
android:layout_marginLeft="8dp"
android:layout_below="#+id/l1"
/>
<TextView
android:id="#+id/hubraum"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:text="Hubraum :"
android:textColor="#000"
android:textSize="12dp"
android:layout_gravity="left"/>
<TextView
android:id="#+id/leistung"
android:layout_below="#+id/hubValue"/>
<TextView
android:id="#+id/kraftstoff"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Kraftstoff :"
android:textColor="#000"
android:textSize="12dp"
android:layout_marginLeft="8dp"
android:layout_below="#+id/leistungValue" android:layout_marginTop="5dp"/> <TextView
android:id="#+id/antrieb"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Antrieb :"
android:textColor="#000"
android:textSize="12dp"
android:layout_marginTop="5dp"
android:layout_marginLeft="8dp"
android:layout_below="#+id/kraftstoff"/> <!--<TextView <TextView
android:id="#+id/Getriebe"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:text="getriebe :"
android:textColor="#000"
android:textSize="12dp"
android:layout_marginLeft="8dp"
android:layout_below="#+id/antriebValue"/>
</LinearLayout> <View
android:id="#+id/l2"
android:layout_width="fill_parent"
android:layout_height="1dip"
android:layout_below="#+id/ll"
android:background="#FF909090" />
<TextView
android:id="#+id/price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Preis :"
android:textColor="#000"
android:textSize="12dp"
android:textStyle="bold"
android:layout_marginLeft="8dp"
android:layout_below="#+id/l2" android:layout_marginTop="2dp"/>
<TextView
android:id="#+id/priceValue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textStyle="bold"
android:textColor="#000"
android:textSize="12dp"
android:layout_marginTop="2dp"
android:layout_marginLeft="100dp"
android:layout_below="#+id/l2"
/>
<TextView
android:id="#+id/priceSymbol"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="EUR"
android:textStyle="bold"
android:textColor="#000"
android:textSize="12dp"
android:layout_marginLeft="170dp"
android:layout_below="#+id/l2"
android:layout_marginTop="2dp"/>
<View
android:id="#+id/l3"
android:layout_width="fill_parent"
android:layout_height="1dip"
android:layout_below="#+id/price"
android:background="#FF909090" android:layout_marginTop="2dp"/>
<TextView
android:id="#+id/farbe"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:text="Farbe :"
android:textColor="#000"
android:textSize="12dp"
android:layout_marginTop="2dp"
android:textStyle="bold"
android:layout_marginLeft="8dp"
android:layout_below="#+id/l3"/>
<TextView
android:id="#+id/farbeValue"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:textStyle="bold"
android:textColor="#000"
android:layout_marginTop="2dp"
android:textSize="12dp"
android:layout_marginLeft="100dp"
android:layout_below="#+id/l3"
/>
<View
android:id="#+id/l4"
android:layout_width="fill_parent"
android:layout_height="1dip"
android:layout_below="#+id/farbe"
android:background="#FF909090" />
<TextView
android:id="#+id/txtAbs"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:text="ABS"
android:textColor="#000"
android:textSize="12dp"
android:textStyle="bold"
android:layout_marginLeft="8dp"
android:layout_below="#+id/l4"
/> <TextView
android:id="#+id/FID"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:text="FID"
android:textColor="#000"
android:textSize="12dp"
android:textStyle="bold"
android:layout_marginLeft="8dp"
android:layout_below="#+id/heizgriffe"/> <TextView
android:id="#+id/txt_ohlFrwork"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:text="Ohliens frwork"
android:textColor="#000"
android:textSize="12dp"
android:textStyle="bold"
android:layout_marginLeft="8dp"
android:layout_below="#+id/FID"/>
<TextView
android:id="#+id/bmw_seitencoffer"
android:layout_width="wrap_content"
android:layout_height="30dp"
android:text="BMW-Seitencoffer"
android:textColor="#000"
android:textSize="12dp"
android:textStyle="bold"
android:layout_marginLeft="8dp"
android:layout_below="#+id/txt_ohlFrwork"/>
<TextView
android:id="#+id/bmw_seitencofferValue"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#000"
android:textSize="12dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="5dp"
android:layout_below="#+id/bmw_seitencoffer"/>
<TextView
android:id="#+id/beschre"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#000"
android:textSize="14dp"
android:textStyle="bold"
android:text="Beschreibung"
android:layout_marginLeft="8dp"
android:layout_below="#+id/bmw_seitencofferValue"/>
<TextView
android:id="#+id/beschreibung"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#000"
android:textSize="12dp"
android:layout_marginLeft="8dp"
android:layout_marginTop="5dp"
android:layout_below="#+id/beschre"/>
</RelativeLayout>
<RelativeLayout
android:layout_width="400dp"
android:layout_height="150dp"
android:layout_below="#+id/r5_bike"
>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="#+id/beschreibung"
android:background="#drawable/footer"
android:layout_marginBottom="7dp"
android:layout_marginTop="5dp"
android:layout_marginLeft="7dp"
android:layout_marginRight="7dp">
<TextView
android:id="#+id/handle"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:textStyle="bold"
android:textSize="12dp"
android:textColor="#000"
android:text="Haendlerangebot"
android:layout_marginLeft="30dp"
></TextView>
<TextView
android:id="#+id/link"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:textStyle="bold"
android:textSize="12dp"
android:maxLines="1"
android:singleLine="true"
android:ellipsize="end"
android:textColor="#000"
android:text="website"
android:layout_marginLeft="140dp"
></TextView>
<TextView
android:id="#+id/bikeName"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:textStyle="bold"
android:textSize="12dp"
android:textColor="#000"
android:gravity="center"
android:layout_centerInParent="true"
android:text="Zitta"
android:layout_marginLeft="80dp"
android:layout_below="#+id/handle">
</TextView>
<Button
android:id="#+id/btn_footarrow"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_below="#+id/bikeName"
android:layout_marginLeft="260dp"
android:background="#drawable/arrow" />
<TextView
android:id="#+id/txtWebLand"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:textStyle="bold"
android:textSize="10dp"
android:gravity="center"
android:textColor="#000"
android:text=""
android:layout_centerInParent="true"
android:layout_below="#+id/bikeName">
</TextView>
<TextView
android:id="#+id/address"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:textStyle="bold"
android:textSize="10dp"
android:gravity="center_vertical"
android:textColor="#000"
android:text="#string/address"
android:layout_centerInParent="true"
android:layout_below="#+id/txtWebLand">
</TextView>
<TextView
android:id="#+id/telNoName"
android:layout_width="wrap_content"
android:layout_height="15dp"
android:gravity="center_vertical"
android:textSize="10dp"
android:textColor="#000"
android:text="Tel:"
android:layout_centerInParent="true"
android:layout_below="#+id/address"/> <TextView
android:id="#+id/faxName"
android:layout_width="wrap_content"
android:layout_height="15dp"
android:gravity="center_vertical"
android:textSize="10dp"
android:textColor="#000"
android:text="Fax :"
android:layout_centerInParent="true"
android:layout_below="#+id/telNoName">
</TextView>
</RelativeLayout>
</RelativeLayout>
</RelativeLayout>
</ScrollView>
<RelativeLayout
android:id="#+id/rl_footer"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="#fff">
<WebView
android:layout_width="fill_parent"
android:layout_height="50dp">
</WebView>
</RelativeLayout>
</RelativeLayout>
Last fax no is missing and that rectangle box is not visible in fully. if i am not using the footer view mean its working fine. what's the issue heere?
I don't know with your code, I guess either you recopied your xml file more than once, or you have not separated out your xml file. Whatever is the case. Edit your question, and post your question properly.
Apart from that, as far as your answer is concern you can use android:layout_weight="" for separating out your layout and get proper alignment to your screen. Try that out. If any problem let me know.

Categories

Resources