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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:14:07+00:00 2026-05-27T23:14:07+00:00

I want to have a list view with each row having two buttons like

  • 0

I want to have a list view with each row having two buttons like this

         ---------------------------------------------------------------
            [TEXTVIEW]                           [BUTTON][TV][BUTTON]
         ---------------------------------------------------------------

Here I have a onClick for the Buttons to perform some function.

Apart from this I also want to get the onItemClick for the the whole list row also.
which on click will give me the rowId which i’ll be using to call another method…

Need some assist with the above mentioned….

public class MyListAdapter extends ArrayAdapter {
    Activity contextACT;

    @Override
    public void notifyDataSetChanged() {
        super.notifyDataSetChanged();
    }

    public MyListAdapter(Activity context) {
        super(context, R.layout.nrrow_of_list_lesson, dummyVal);
        this.contextACT = context;
    }

    public View getView(final int row_position, View convertView,
            ViewGroup parent) {
        LayoutInflater inflator = contextACT.getLayoutInflater();
        final View row = inflator.inflate(R.layout.nrrow_of_list_lesson,
                null);
        final TextView name = (TextView) row.findViewById(R.id.lessonname);
        final TextView period = (TextView) row.findViewById(R.id.TVmid);
        TextView slNumber = (TextView) row.findViewById(R.id.lessonslno);
        final Button increase = (Button) row.findViewById(R.id.BTIncrease);
        final Button decrease = (Button) row.findViewById(R.id.BTDecrease);
}

Since I have a button’s Onclick i’m not able to get the rowList’s onItemClickListener….

  • 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-27T23:14:07+00:00Added an answer on May 27, 2026 at 11:14 pm

    http://www.vogella.de/articles/AndroidListView/article.html you need to customize according to you by using an adapter for listview…..

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

Sidebar

Related Questions

i have this customized list. each row contains an image and two lines of
I have a list view which contains a button in each row of the
I have a listview with each row having a checkbox, imageview and text view
I want a list view control (or any list like control) in which each
I want to display a list view in my application. Each row should contain
I have a custom list view which contains two text views and on button.
In my viewmodel, I have a list (ObservableCollection) containing items. In the view, this
I have a list of rows like this (NULLs since i'm using DefaultIfEmpty) Vol
In my app i have a list with custom row,in each row i have
I have a list where each item is a row in an sqlite table,

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.