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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:06:24+00:00 2026-05-29T10:06:24+00:00

I am trying to implement a android app. I have problems with TextView in

  • 0

I am trying to implement a android app. I have problems with TextView in a ScrollView. When I write some text into TextView according to its lenght some rows of the text at the top cannot be seen. I think they are occuluded with other things which resides in the top. Here is my xml file.

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

<RadioGroup
    android:id="@+id/RadioGroup1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" >

    <RadioButton
        android:id="@+id/SayisalRadioButton"
        android:layout_width="158dp"
        android:layout_height="wrap_content"
        android:checked="true"
        android:text="@string/SayisalLoto" />

    <RadioButton
        android:id="@+id/SuperLotoRadioButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/SuperLoto" />

</RadioGroup>

<TableRow
    android:id="@+id/KolonSayisiTableRow"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" >

    <EditText
        android:id="@+id/KolonSayisiEditText"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:hint="@string/KolonSayisiHint"
        android:inputType="number"
        android:text="@string/Bos" >

        <requestFocus />
    </EditText>

    <Button
        android:id="@+id/SallaButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/Uret" />

    <ProgressBar
        android:id="@+id/SonucProgressBar"
        style="?android:attr/progressBarStyleHorizontal"
        android:layout_width="150dp"
        android:layout_height="wrap_content"
        android:visibility="invisible" />

</TableRow>

<ScrollView
    android:id="@+id/SonucScrollView"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:layout_gravity="center" >
    <TextView
        android:id="@+id/SonucTextView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:editable="false"
        android:scrollbarAlwaysDrawVerticalTrack="true"
        android:text="@string/Bos"
        android:textAppearance="?android:attr/textAppearanceMedium" />

</ScrollView>

</LinearLayout>

For Example when I put a text with multiple lines into the TextView with ID : SonucTextView according to its size I cannot see the some parts of the text at the top. How can I solve this problem? Is it related to the layout that I am using?

  • 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-29T10:06:25+00:00Added an answer on May 29, 2026 at 10:06 am

    Your question is related to this one. So I suggest you check out the accepted answer.

    That answer states that all you have to do is to set the maximum lines you want it to display and give it a scrollbar like so:

    <TextView
        android:id="@+id/SonucTextView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"     
        android:editable="false"    
        android:text="@string/Bos"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:maxLines="5"
        android:scrollbars="vertical" />
    

    And then proceed to setting the event in the code :

    TexView.setMovementMethod(new ScrollingMovementMethod())
    

    I’d like to add that the ScrollView widget is to be used when you want your entire view to scroll, not a single widget.

    Hope this helps!

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

Sidebar

Related Questions

I am currently trying to implement DropBox into my Android App. I have added
I am trying to implement Facebook into my Android app. Everytime though, the facebook
I'm trying to implement a MediaPlayer on an Android app, but now I have
I'm still trying to implement a search function into my Android app. So far
Actually I'm trying to implement an ontouchlistener into my android (1.5) application. therefore i
I am trying to create a simple 3-D app for android that will have
I'm trying to implement a search dialog in a Mono Android app per the
I am trying to implement AUTOUPDATE functionality in my android app, as it is
I am trying to implement this example http://www.javacodegeeks.com/2011/02/android-google-maps-tutorial.html and i have followed exactly all
I am working to implement some simple preferences to an app I have and

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.