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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:52:22+00:00 2026-06-01T21:52:22+00:00

Ive got a TextView and some String Arrays. I want to add a Line

  • 0

Ive got a TextView and some String Arrays. I want to add a Line (trough Java) everytime the next Item is displayed(Ive got a for loop, so it loops until every Item is displayed in the TextView). Does anybody know how to do that?

Thank you

EDIT:
I want It to look like a ListView. But I dont want to use a listView insted because I want to set the Line just for certain events.

  • 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-01T21:52:24+00:00Added an answer on June 1, 2026 at 9:52 pm
    for(int i=0;i<lenght;i++)
    {
        //textview is tv
       tv.setText(listOfString[i]);
       //view is viewWithHorizontalLine with hight = dp and width = fill_parent and background = #000000
       viewWithHorizontalLine = view;
       //LinearLayout is ll
       ll.addView(tv);
       ll.addView(viewWithHorizontalLine);
    }
    

    XML

    <LinearLayout>
      <ScrollView>
          <LinearLayout orientation=vertical/>
      </ScrollView>
    </LinearLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a gtk.TextView that I'd like to add markup-like text to. I know
Ive got a div that i want to slide out on click using .show(slide,
I've got a TextView in my app that will, on each line, have a
I need some help with threading in my app. Ive got an activity that
I've got the following layout with one ImageView and 2 TextView, I would like
I have a RelativeLayout with a TextView in the middle. I've got it to
Ive got a div thats hidden with .hide and on click opens using .show(slide,
ive got this exception. My Object looks like this: @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) public class ObjectDTO
Ive got a long list of xml elements. Each element got an ID and
Ive got the following code which I hacked together from website examples. It works

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.