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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:45:01+00:00 2026-06-13T10:45:01+00:00

I have a scroll view: <?xml version=1.0 encoding=utf-8?> <ScrollView xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=fill_parent android:layout_height=fill_parent android:fillViewport=true >

  • 0

I have a scroll view:

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:fillViewport="true"
    >
<LinearLayout 
    android:layout_width="500dp"
    android:layout_height="wrap_content"
    android:orientation="vertical" 
    android:background="@color/antiquewhiter"
    android:weightSum="100"

    >

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="0dp" 
        android:layout_weight="10"
        android:background="@drawable/green_gradient_top_bar"

        >

        <TextView
            android:id="@+id/log_in_header_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:layout_centerVertical="true"
            android:text="@string/Einloggen_text"
            style="@style/headerfromdialogs" />

        <ImageView
            android:id="@+id/log_in_header_exit_image"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignBottom="@+id/log_in_header_text"
            android:layout_alignParentRight="true"
            android:layout_marginRight="20dp"
            android:onClick="finish"
            android:src="@drawable/x_android" />

    </RelativeLayout>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="90" >

        <TextView
            android:id="@+id/log_in_benutzername_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_alignParentTop="true"
            android:layout_marginLeft="40dp"
            android:layout_marginTop="80dp"
            android:text="@string/Benutzername_text"
            style="@style/dialogsGreenTexts" />

        <EditText
            android:id="@+id/log_in_benutzername_edit_text"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignBaseline="@+id/log_in_benutzername_text"
            android:layout_alignBottom="@+id/log_in_benutzername_text"
            android:layout_marginLeft="50dp"
            android:layout_marginRight="20dp"
            android:layout_toRightOf="@+id/log_in_benutzername_text"
            android:ems="10"
            android:hint="@string/hint_name_log_in" 
            >

        </EditText>

        <TextView
            android:id="@+id/log_in_passwort_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignLeft="@+id/log_in_benutzername_text"
            android:layout_below="@+id/log_in_benutzername_edit_text"
            android:layout_marginTop="52dp"
            android:text="@string/Passwort_text"
            style="@style/dialogsGreenTexts" />

        <EditText
            android:id="@+id/log_in_passwort_edit_text"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_alignBaseline="@+id/log_in_passwort_text"
            android:layout_alignBottom="@+id/log_in_passwort_text"
            android:layout_alignLeft="@+id/log_in_benutzername_edit_text"
            android:ems="10"
            android:layout_marginRight="20dp"
            android:inputType="textPassword" 
            android:hint="@string/hint_passwort_log_in" 
            >

        </EditText>

        <Button
            android:id="@+id/log_in_button"
            android:layout_width="100dp"
            android:layout_height="wrap_content"
            android:layout_alignParentBottom="true"
            android:layout_alignRight="@+id/log_in_passwort_edit_text"
            android:layout_marginBottom="45dp"
            android:layout_marginRight="-10dp"
            android:onClick="logIn"
            android:text="@string/Login_text"
            style="@style/bold_text18" />
<!--             android:background="@drawable/green_gradient_button" -->

        <TextView
            android:id="@+id/log_in_passwort_vergessen_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@+id/log_in_button"
            android:layout_alignLeft="@+id/log_in_passwort_edit_text"
            android:text="@string/Passwort_vergessen_text"
            style="@style/dialogsGreenTexts" />

        <ProgressBar
            android:id="@+id/waitProgessBar"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:visibility="gone"
           />

        <TextView
            android:id="@+id/userError"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_above="@+id/log_in_benutzername_edit_text"
            android:layout_alignLeft="@+id/log_in_benutzername_edit_text"
            android:layout_marginBottom="5dp"
            android:visibility="gone"
            android:textColor="@color/errorRed"/>

    </RelativeLayout>

</LinearLayout>
</ScrollView>

I want to scroll because on my se xperia neo V in horizontal orientation I can’t see all view. Second problem is when I change orientation all view is broke. How change this view to show properly in both orientations?

but scroll doesn’t work. Anyone know Why?

  • 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-13T10:45:02+00:00Added an answer on June 13, 2026 at 10:45 am

    Please note :

    1) Scroll view must have a single child (i.e all views must be included within a single root layout inside scroll view)

    2) ScrollView works when your page size is greater the default height of the screen .

    Please check both these things and if still does not work … Paste some code to have a better understanding of the problem.

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

Sidebar

Related Questions

I have a layout with scrollview: <?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:fillViewport=true
I have this TableLayout: <?xml version=1.0 encoding=utf-8?> <ScrollView xmlns:android=http://schemas.android.com/apk/res/android android:id=@+id/layout android:layout_height=fill_parent android:layout_alignParentBottom=true android:scrollbars=horizontal|vertical android:layout_width=fill_parent
I have this view: <?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
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
I have the following simple layout <?xml version=1.0 encoding=utf-8?> <ScrollView xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=fill_parent android:layout_height=wrap_content >
I have custom_layout.xml: <?xml version=1.0 encoding=utf-8?> <com.example.MyCustomLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=match_parent android:layout_height=wrap_content android:orientation=vertical > <!-- different
I have this pretty basic view: <?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
My Android app's main activity looks like this: <?xml version=1.0 encoding=utf-8?> <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android android:id=@+id/RelativeLayout1
i have a scroll view in my application and i want that when the
I have an scroll view with some sophisticated animations happening during scrolling. Although after

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.