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

  • SEARCH
  • Home
  • 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 8601381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:49:42+00:00 2026-06-12T01:49:42+00:00

Hi i have to develop one expandablelistview android app.here i wish to create relativelayout

  • 0

Hi i have to develop one expandablelistview android app.here i wish to create relativelayout within another 2 linearlayout.Here i have to please help me.how can i do.
Here i have to run the app means the firstlinear layout have 2 values separately and second linearlayout have separate 2 value like below format.

This is wish to need the format:

* Order info
  Payment_method:
         Payment_method
  Subtotal
         Subtotal
* CustomerInfo
  Firstname
        Firstname
  Lastname
        Lastname
  Phone
        Phone

but i got the below format.
enter image description here
Why above space is occurred here.please help me.how can i resolve this error.

This is my android layout code:

main.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" 

    >

    <ExpandableListView android:id="@+id/android:list" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent">
    </ExpandableListView>
    </LinearLayout>

group_row.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:layout_marginTop="170px"
   >
   <TextView
    android:id="@+id/order" 
    android:text="Order"
    android:layout_width="wrap_content"
    android:layout_height="70px"
    android:layout_marginLeft="70px"
    android:gravity="center_vertical"
    android:textColor="#FFFFFFFF"
    android:textSize="20dip"
            android:textStyle="bold"
/>

   </LinearLayout>

Expandablelistview.xml:

<?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="match_parent"
>
<LinearLayout
android:id="@+id/linear_layout1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<TextView
 android:id="@+id/payment_method1"
 android:paddingLeft="5px"
 android:textSize="15dip"
 android:text="payment_method"
 android:textStyle="bold"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"/> 
 <TextView
 android:id="@+id/payment_method"
 android:paddingLeft="75px"
 android:textSize="15dip"
 android:textColor="#10bcc9"
 android:textStyle="bold"
 android:text="payment_method"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"/>
 <TextView
 android:id="@+id/subtotal1"
  android:text="subtotal"
 android:paddingLeft="5px"
 android:textSize="15dip"

 android:textStyle="bold"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"/>
<TextView
android:id="@+id/subtotal"
  android:text="subtotal"
 android:paddingLeft="65px"
 android:textSize="15dip"
android:textColor="#10bcc9"
android:textStyle="bold"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"/>
</LinearLayout>
   <LinearLayout
 android:id="@+id/linear_layout2"
 android:layout_width="fill_parent"
 android:layout_height="wrap_content"
 android:layout_below="@id/linear_layout1"
 android:orientation="vertical" >
  >
              <TextView
 android:id="@+id/firstname1"
 android:paddingLeft="5px"
 android:textSize="15dip"

android:textStyle="bold"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"/> 
               <TextView
android:id="@+id/firstname"
 android:paddingLeft="65px"
 android:textSize="15dip"
android:textColor="#10bcc9"
android:textStyle="bold"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"/>

              <TextView
android:id="@+id/lastname1"

 android:paddingLeft="5px"
 android:textSize="15dip"

android:textStyle="bold"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"/>
              <TextView
android:id="@+id/lastname"

 android:paddingLeft="65px"
 android:textSize="15dip"
android:textColor="#10bcc9"
android:textStyle="bold"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"/>
<TextView
android:id="@+id/phone1"
 android:paddingLeft="5px"
 android:textSize="15dip"

android:textStyle="bold"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"/> 
  <TextView
android:id="@+id/phone"
 android:paddingLeft="65px"
 android:textSize="15dip"
android:textColor="#10bcc9"
android:textStyle="bold"
 android:layout_width="wrap_content"
 android:layout_height="wrap_content"/>
  </LinearLayout>


   </RelativeLayout>

please refer my layout file and give me solution for this.

  • 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-12T01:49:43+00:00Added an answer on June 12, 2026 at 1:49 am

    Your layout did not include any code that would display the down arrow followed by the string “Order Info” or the down arrow followed by the string “Customer Info”. I assume that is intentional.

    It seems that you started this with a linear layout and changed it to a relative layout. Here is what I would do:
    1 – Remove android:orientation=”vertical” from relative layout.
    2 – Add id to both the linear layouts
    3 – Add code to place second linear layout below first to second linear layout. android:layout_below=”@id/linear_layout1″

    Here is the complete layout:

    <?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="match_parent" >
    
    <LinearLayout
        android:id="@+id/linear_layout1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical" >
    
        <TextView
            android:id="@+id/payment_method1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingLeft="5dp"
            android:text="payment_method"
            android:textSize="15dip"
            android:textStyle="bold" />
    
        <TextView
            android:id="@+id/payment_method"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingLeft="75dp"
            android:text="payment_method"
            android:textColor="#10bcc9"
            android:textSize="15dip"
            android:textStyle="bold" />
    
        <TextView
            android:id="@+id/subtotal1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingLeft="5dp"
            android:text="subtotal"
            android:textSize="15dip"
            android:textStyle="bold" />
    
        <TextView
            android:id="@+id/subtotal"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingLeft="65dp"
            android:text="subtotal"
            android:textColor="#10bcc9"
            android:textSize="15dip"
            android:textStyle="bold" />
    </LinearLayout>
    
    
    <LinearLayout
        android:id="@+id/linear_layout2"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/linear_layout1"
        android:orientation="vertical" >
    
        <TextView
            android:id="@+id/firstname1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingLeft="5dp"
            android:text="First Name"
            android:textSize="15dip"
            android:textStyle="bold" />
    
        <TextView
            android:id="@+id/firstname"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingLeft="65dp"
            android:text="first_name"
            android:textColor="#10bcc9"
            android:textSize="15dip"
            android:textStyle="bold" />
    
        <TextView
            android:id="@+id/lastname1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingLeft="5dp"
            android:text="Last Name"
            android:textSize="15dip"
            android:textStyle="bold" />
    
        <TextView
            android:id="@+id/lastname"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingLeft="65dp"
            android:text="last_name"
            android:textColor="#10bcc9"
            android:textSize="15dip"
            android:textStyle="bold" />
    
        <TextView
            android:id="@+id/phone1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingLeft="5dp"
            android:text="Phone"
            android:textSize="15dip"
            android:textStyle="bold" />
    
        <TextView
            android:id="@+id/phone"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:paddingLeft="65dp"
            android:text="phone"
            android:textColor="#10bcc9"
            android:textSize="15dip"
            android:textStyle="bold" />
    </LinearLayout>
    

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here i develop one android application and i have one image with size 197*253,
i have try to develop one java app.here am getting information from mysql database.
I am new in Android. I have develop an app. And now want to
I have develop one app in which four box question are there. all question
i have develop one app in which five activity :: and sixth number activiy
I have recently develop one app with In-App purchase. App is also approved by
I have develop one web site in php. I know how to upload it
Hi i have develop and deploy one multilingual (english uk and swedish) website at
I have to develop a application (Winforms-application) which is connected to a database within
I will have to develop some android applications. Witch mobile phone is better for

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.