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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:48:47+00:00 2026-06-06T22:48:47+00:00

In my app I am making some computations. The whole layout is inside a

  • 0

In my app I am making some computations. The whole layout is inside a Scrollview.

The result is being shown on top. Xml is like that:

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/back2back"
    >


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="526dp"
    android:background="@drawable/back4"
    android:orientation="vertical" >

    <TextView
        android:id="@+id/nothing"
        android:layout_width="181dp"
        android:layout_height="51dp"
        android:layout_gravity="center"

        android:textColor="#000000"
        android:textStyle="bold" />

        rest of the xml
    </LinearLayout>
</ScrollView>

So I want when pressing the calculate button the focus of the screen to be set to the top of my page (or to be more specific in the upper textview) so the user will be able to see a result. I searched in SO but I have not found something similar.

  • 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-06T22:48:49+00:00Added an answer on June 6, 2026 at 10:48 pm

    If I understand your question, simply call:

    scrollView.scrollTo(0, 0);
    

    in your calculation Button’s OnClickListener.

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

Sidebar

Related Questions

I'm making an app that is kinda like iBooks. There is some stuff on
I am making an app that takes photos from web site for some Username
I'm making an app with a UITableView that uses ELCTextfieldCells. For some cells I
I'm starting making an app for a website that I own. I know some
I'm making a simple app that makes some calculations. Some of these calculations are
I'm making an iOS app that needs to load some youtube videos. I was
After making some research, I now know that I can launch an iphone app
I have inherited a VB.net web app that I'm making some changes on. I'm
I'm making some changes to a bit of our app that parses a csv
We're making an app using PHP and using some third party services that require

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.