Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8289787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:36:12+00:00 2026-06-08T12:36:12+00:00

Hi all i am new to android development .. In my application I want

  • 0

Hi all i am new to android development ..
In my application I want to display a layout as like this image:

enter image description here
But I am getting this image instead:

http://www.freeimagehosting.net/newuploads/7aqo7.jpg

here is my code :- http://www.freefilehosting.net/bookingform_1

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<TableLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/bg" >
    <TableRow
        android:id="@+id/tableRow1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" >
        <TextView
            android:id="@+id/textView1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/BookingFormRoomLabel"
            android:textColor="@android:color/white" />
        <Spinner
            android:id="@+id/roomspinner"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
    </TableRow>
    <TableRow
        android:id="@+id/tableRow2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" >
        <TextView
            android:id="@+id/textView2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/BookingFormDocTypeLabel"
            android:textColor="@android:color/white" />
        <Spinner
            android:id="@+id/DocTypeSpinner"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
    </TableRow>
    <TableRow
        android:id="@+id/tableRow3"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" >
        <TextView
            android:id="@+id/textView3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/BookingFormAdultsLabel"
            android:textColor="@android:color/white" />
        <Spinner
            android:id="@+id/AdultsSpinner"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
    </TableRow>
    <TableRow
        android:id="@+id/tableRow4"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" >
        <TextView
            android:id="@+id/textView4"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/BookinFormChildrensLabel"
            android:textColor="@android:color/white" />
        <Spinner
            android:id="@+id/ChildrensSpinner"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
    </TableRow>
    <TableRow
        android:id="@+id/tableRow5"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" >
        <TextView
            android:id="@+id/textView5"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/BookingFormNightsLabel"
            android:textColor="@android:color/white" />
        <Spinner
            android:id="@+id/NightSpinner"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content" />
    </TableRow>
    <TableRow
        android:id="@+id/tableRow6"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" >
        <TabHost
            android:id="@android:id/tabhost"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
             android:layout_weight="1">
             <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:orientation="vertical" >
                <TabWidget
                    android:id="@android:id/tabs"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content" >
                </TabWidget>
                 <FrameLayout
                    android:id="@android:id/tabcontent"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent" >
                    <LinearLayout
                        android:id="@+id/tab1"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent" >
                        <TableRow
                            android:id="@+id/tableRow7"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_span="2" >
                            <ImageView
                                android:id="@+id/MainImageView"
                                android:layout_width="200dp"
                                android:layout_height="200dp"
                                android:layout_weight="1"
                                android:contentDescription="@string/BookingFormMainImage"
                                android:src="@drawable/documentsample" />
                            <Button
                                android:id="@+id/button1"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="Button" />

                            <Button
                                android:id="@+id/button2"
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:gravity="center_vertical"
                                android:text="Button" />

                        </TableRow>
                        </LinearLayout>
                        <LinearLayout
                        android:id="@+id/tab2"
                        android:layout_width="match_parent"
                        android:layout_height="match_parent" >
                        <ImageView
                            android:id="@+id/SubImageView"
                            android:layout_width="200dp"
                            android:layout_height="200dp"
                            android:contentDescription="@string/BookingFormSubImage"
                            android:src="@drawable/documentsample" />
                        <Button
                            android:id="@+id/BtnSubImageCapture"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:gravity="right"
                            android:text="@string/BtnBookingFormSubImageCapture" />
                        <Button
                            android:id="@+id/BtnSubImageBrowse"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:gravity="right|center"
                            android:text="@string/BtnBookingFormSumbImageBrowse" />
                        <Button
                            android:id="@+id/BtnSubImageDelete"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:gravity="right|center_vertical|center"
                            android:text="@string/BtnBookingFormSubImageDelete" />
                        </LinearLayout>
                        </FrameLayout>
            </LinearLayout>
        </TabHost>
        </TableRow>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:36:13+00:00Added an answer on June 8, 2026 at 12:36 pm

    Just add one more LinearLayout kept layout orientation as vertical and kept those button’s in that layout.

    <LinearLayout
        android:id="@+id/tab2"
        android:layout_width="match_parent"
        android:layout_height="match_parent" >
        <ImageView
           android:id="@+id/SubImageView"
           android:layout_width="200dp"
           android:layout_height="200dp"
           android:contentDescription="@string/BookingFormSubImage"
           android:src="@drawable/documentsample" />
           <LinearLayout
               android:id="@+id/buttons_layout"
               android:layout_width="match_parent"
               android:layout_height="match_parent"
               android:orientation="vertical" >
               <Button
                   android:id="@+id/BtnSubImageCapture"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"
                   android:gravity="right"
                   android:text="@string/BtnBookingFormSubImageCapture" />
               <Button
                   android:id="@+id/BtnSubImageBrowse"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"
                   android:gravity="right|center"
                   android:text="@string/BtnBookingFormSumbImageBrowse" />
               <Button
                   android:id="@+id/BtnSubImageDelete"
                   android:layout_width="wrap_content"
                   android:layout_height="wrap_content"
                   android:gravity="right|center_vertical|center"
                   android:text="@string/BtnBookingFormSubImageDelete" />
               <LinearLayout/>
          </LinearLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all, I am new to Android development so this might be a
Hi all I am new to android development, infact its my first application. I
I am new in Android Application Development I use the UNION query like that
I am new to Android development and want to build a first sample application.
I am new in android, I am using jackson-all-1.9.4 jar in my application for
I am new to android development. Currently i am working on an application which
I am a new to Android development and I would like to create an
im new to android development so please forgive me if this is an easy
I am new to Android Application development and was having a problem with Async
I'm new in Android development and I wanted to make application that has header,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.