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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:10:32+00:00 2026-05-26T11:10:32+00:00

I have 2 elements tags which i want to add to 2 edittexts of

  • 0

I have 2 elements tags which i want to add to 2 edittexts of a listview.
How do i do that?

String[] from = new String[] {"col_1", "col_2"};
int[] to = new int[] { R.id.editText1, R.id.editText2 };

List<HashMap<String, String>> fillMaps = new ArrayList<HashMap<String, String>>();
HashMap<String, String> map;

Document doc = Jsoup.parse(test);
Elements tdsFromSecondColumn = doc.select("td:eq(0)"); 
Elements tdsFromSecondColumn1 = doc.select("td:eq(1)");

for (Element tdFromSecondColumn: tdsFromSecondColumn) {
     map = new HashMap<String, String>();
     map.put("col_1", tdFromSecondColumn.text()); 
     map.put("col_2", ?????);
     fillMaps.add(map);

SimpleAdapter adapter = new SimpleAdapter(AndroidLogin.this, fillMaps, R.layout.test, from, to);
kp.setAdapter(adapter);
  • 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-26T11:10:33+00:00Added an answer on May 26, 2026 at 11:10 am

    For that i would suggest you to create custom adapter for your ListView.

    You know why i suggest to create a custom adapter? Just because of its one time practice, one you do it perfectly then it will be useful for any kind of ListView in future.

    For creating a custom adapter for ListView, follow the below steps:

    1. Create a listview row xml file (For your case, it will contain only 2 EditText only).
    2. Now define a custom adapter class (and extends BaseAdapter) and inflate the above listview row file. And You need to override the getView() method for putting the desired value inside the EditText boxes.
    3. Create an object of this custom adapter class and set it inside the ListView.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an AppleScript program which creates XML tags and elements within an Adobe
I want to parse xml files that have elements like these: <element>&amp</element> <element>&amp;</element> But
I have elements like user[0][foo], user[0][bar], user[1][foo], user[2][bar] which are names of select tags.
I want to scrape some html pages that have nested form elements with lxml.
i have two seperate config files, which contains url reqwrite tags, i want to
I have written xml file which contains html tags as element like <component> <input
I have an unordered list with a few list elements. #tags { width: 300px;
I have $(elements[current]).html(); that returns <a href=#><img style=width:991px;height:230px; src=img/image.jpg alt=img></a> and i need to
I have some elements on a page which are draggable. These same elements have
I have a <div> which contains a few links ( <a> tags) and other

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.