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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:48:26+00:00 2026-06-03T23:48:26+00:00

I generated Button in row.xml file so it will create number of buttons as

  • 0

I generated Button in row.xml file so it will create number of buttons as same as list item
so I’d like to setTag all of Button in ListView to getTag and retrieve the data from database.

  • 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-03T23:48:27+00:00Added an answer on June 3, 2026 at 11:48 pm

    Assuming that you are using the Custom Adapter for your ListView, you will be able to set Tag for each Button inside your Adapter’s getView(),

    @Override
        public View getView(int pos, View convertView, ViewGroup parent) {
    
           convertView =    inflaterObject.inflate(R.layout.row,parent,false);
           Button tagButton=(Button)convertView.findviewbyId(R.id.buttonID);
           tagButton.setTag(pos);
    
          //To fetch the button Tag
    
          Log.i("Button Tab at Pos "+pos,tagButton.getTag()+"");
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Most of my development life, I have done a JavaScript generated button like so:
Each time I make changes to XML file and press run button, It generates
Gridview has auto-generated column.I wanted to select the perticular row,so added one button in
I have a list view which contains a button in each row of the
In this jsfiddle http://jsfiddle.net/littlesandra88/eGRRb/ have I submit buttons that are auto-generated. Each table row
I am new to jquery. I wanted to generated a set of image button
I am trying to generate a dynamic html button in c#,But buttons are being
I have a set of radio buttons that are dynamically generated (via JSON call):
I have a search page that loads results. Each row has a Delete button
I have a Windows form that's generated using code (including buttons and what not).

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.