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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:11:00+00:00 2026-05-28T07:11:00+00:00

Hello I am trying to get text to display like it does in terminal

  • 0

Hello I am trying to get text to display like it does in terminal or cmd. And by that I mean a window of text that with each input makes a new line and then displays the bottom line of the TextView, and there would be a set amount of lines always on the screen.

It sounded easy to do, but now that I started I’m not sure how to do it.

I tried putting a TextView in a ScrollView like this

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

<ScrollView android:layout_width="wrap_content"
    android:layout_height="wrap_content" 
    android:layout_weight="1">

    <TextView android:id="@+id/tv1" 
        android:layout_width="wrap_content"
        android:minLines="11"
        android:maxLines="11"
        android:layout_height="wrap_content"/>
</ScrollView>

<EditText
    android:id="@+id/editText1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_weight="10" >

    <requestFocus />
</EditText>

<Button
    android:id="@+id/button1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_weight="10"
    android:onClick="buttonclick"
    android:text="Button" />

</LinearLayout>

and then

sss=et1.getText().toString();
tv1.append("\n"+sss);

to add new lines

This all works but I really have no idea how to make the TextView go to the bottom, right now it just cuts off when I hit the max number of lines.

I definitely don’t expect anyone to write my program for me. I am here to learn

Thanks for your time!

  • 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-28T07:11:00+00:00Added an answer on May 28, 2026 at 7:11 am

    Call fullScroll(View.FOCUS_DOWN) on the ScrollView after appending the text.

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

Sidebar

Related Questions

Hello I'm trying to get a multicolumn display (if it can be called so)
I'm trying get value of var by its name: var1='Hello' var2 = getTextFromFirstTextBox() //text
Hello trying to get my website to display correctly having trouble. I am using
I am trying to display the excellent fullcalendar in an extjs window that has
Hello I have a header that I am trying to get working and I
Hello I am trying to get the difference between to text files. There are
Hello everyone I'm trying to work with jboss messaging, does anyone knows the default
Hello I am trying to make a C# program that downloads files but I
hello i'm trying to get the first value of a datagrid cell value but
I'm trying to get a SVG 'text' element fitting inside of a svg 'rect'

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.