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 7519735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:57:08+00:00 2026-05-30T01:57:08+00:00

have this layout css: <?xml version=1.0 encoding=utf-8?> <ScrollView xmlns:android=http://schemas.android.com/apk/res/android android:id=@+id/ScrollView01 android:layout_width=wrap_content android:layout_height=wrap_content android:scrollbars=vertical> <LinearLayout

  • 0

have this layout css:

<?xml version="1.0" encoding="utf-8"?>
<ScrollView  
    xmlns:android="http://schemas.android.com/apk/res/android"  
    android:id="@+id/ScrollView01"  
    android:layout_width="wrap_content"  
    android:layout_height="wrap_content"  
    android:scrollbars="vertical">  
    <LinearLayout  
        android:layout_width="fill_parent"  
        android:orientation="vertical"  
        android:layout_height="fill_parent">  

        <TextView  
            android:id="@+id/add_problem_form_title"  
            android:layout_width="wrap_content"  
            android:layout_height="wrap_content"  
            android:text="@string/feedbacktitle"  
            android:textSize="10pt">  
        </TextView>  

        <EditText  
            android:id="@+id/problem_name"  
            android:layout_height="wrap_content"  
            android:hint="@string/feedbackname"  
            android:inputType="textPersonName"  
            android:layout_width="fill_parent">  
        </EditText>         

        <EditText  
            android:id="@+id/problem_text"  
            android:layout_height="wrap_content"  
            android:hint="@string/feedbackbody"  
            android:inputType="textMultiLine"  
            android:lines="5"  
            android:layout_width="fill_parent">  
        </EditText>

        <Button  
            android:id="@+id/button_send_feedback"  
            android:layout_height="wrap_content"  
            android:text="@string/feedbackbutton"  
            android:onClick="sendFeedback"  
            android:layout_width="fill_parent">  
        </Button>               

    </LinearLayout>  
</ScrollView> 

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="First, add the problem you want to solve!"
    />

<TextView
    android:id="@+id/add_problem_text"    
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Add a Problem You Want To See Solved"
    />    

    <Button
    android:id="@+id/add_problem_button"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Add a Problem"
    />

    <Button
    android:id="@+id/browse_problems_button"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Browse Problems"

    />
    <Button
    android:id="@+id/search_problems_button"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="Search Problems"
    />

    <Button
    android:id="@+id/my_problems_button"        
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="View My Problems"
    />    
</LinearLayout>

The system says I put it together incorrectly. I added the stuff on top to make a form, but I guess this isn’t the way it is meant to be done.

What is the correct way to arrange these elements? By the way, there are UI elements from 2 different views here. Is that ok?

Thanks!

  • 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-05-30T01:57:09+00:00Added an answer on May 30, 2026 at 1:57 am

    You MUST have only one root element.

    Let’s try this, I have just added the root LinearLayout and fill its parent:

    <?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"
            >
        <ScrollView  
            xmlns:android="http://schemas.android.com/apk/res/android"  
            android:id="@+id/ScrollView01"  
            android:layout_width="wrap_content"  
            android:layout_height="wrap_content"  
            android:scrollbars="vertical">  
            <LinearLayout  
                android:layout_width="fill_parent"  
                android:orientation="vertical"  
                android:layout_height="fill_parent">  
    
                <TextView  
                    android:id="@+id/add_problem_form_title"  
                    android:layout_width="wrap_content"  
                    android:layout_height="wrap_content"  
                    android:text="@string/feedbacktitle"  
                    android:textSize="10pt">  
                </TextView>  
    
                <EditText  
                    android:id="@+id/problem_name"  
                    android:layout_height="wrap_content"  
                    android:hint="@string/feedbackname"  
                    android:inputType="textPersonName"  
                    android:layout_width="fill_parent">  
                </EditText>         
    
                <EditText  
                    android:id="@+id/problem_text"  
                    android:layout_height="wrap_content"  
                    android:hint="@string/feedbackbody"  
                    android:inputType="textMultiLine"  
                    android:lines="5"  
                    android:layout_width="fill_parent">  
                </EditText>
    
                <Button  
                    android:id="@+id/button_send_feedback"  
                    android:layout_height="wrap_content"  
                    android:text="@string/feedbackbutton"  
                    android:onClick="sendFeedback"  
                    android:layout_width="fill_parent">  
                </Button>               
    
            </LinearLayout>  
        </ScrollView> 
    
        <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
            android:orientation="vertical"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            >
        <TextView
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="First, add the problem you want to solve!"
            />
    
        <TextView
            android:id="@+id/add_problem_text"    
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="Add a Problem You Want To See Solved"
            />    
    
            <Button
            android:id="@+id/add_problem_button"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="Add a Problem"
            />
    
            <Button
            android:id="@+id/browse_problems_button"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="Browse Problems"
    
            />
            <Button
            android:id="@+id/search_problems_button"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="Search Problems"
            />
    
            <Button
            android:id="@+id/my_problems_button"        
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="View My Problems"
            />    
        </LinearLayout>
    </LinearLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a linear layout with this form <?xml version=1.0 encoding=utf-8?> <LinearLayout xmlns:android=http://schemas.android.com/apk/res/android android:orientation=vertical
I have this in a HAML layout (layout.haml) - @fonts.each do |font| %link{:href=>//fonts.googleapis.com/css?family={font},:rel=>stylesheet,:type=>text/css} And
alt text http://img705.yfrog.com/img705/1337/layoutxt.jpg I already have this layout created using CSS, but its plagued
Whats the best way to get this layout in CSS? imagine that I have
Pulling my hair out with this simple CSS layout. I have a 2-column fixed
I have a problem with my HTML/CSS webpage. I want to have this layout:
Inside a liquid css layout i have this code: <div class=column> <div class=absolute_small_column><p>Absolut small
i have this simple layout css which provide 3 rows layout css code <style
Hi i added this to catalog.xml layout definition: <reference name=head> <action method=addCss><stylesheet>css/local.css</stylesheet></action> </reference> and
So i have this three column layout. http://jsfiddle.net/quickburp/fwQq4/50/ .. Now, if you click on

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.