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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:55:41+00:00 2026-06-12T22:55:41+00:00

I have trying to solve this problem from last few days but no success.

  • 0

I have trying to solve this problem from last few days but no success. I have gone through lot of solution that are already available but non is working for me. I have customer list view and custom row. I am using simple cursor adaptor to populate the list view. In my custom row I have three images view and one text view. one of the view is click able that open the popup window and row navigate to next fragment. My problem is that click able image does not respond until I select the whole row. When I select row it become click able.

row

     <ImageView
         android:id="@+id/iv_LvRow_speedmap_PIcon"
         android:layout_width="0dip"
         android:layout_height="50dip"
         android:layout_weight="0.20"
         android:contentDescription="@string/todo"
         android:paddingLeft="10dip"
         android:src="@drawable/arrow4" />

     <TextView
         android:id="@+id/tv_LVRow_SpeedMap_PDesc"
         android:layout_width="0dip"
         android:layout_height="50dip"
         android:layout_weight="0.60"
         android:ellipsize="none"
         android:gravity="center_vertical|center_horizontal"
         android:scrollHorizontally="true"
         android:singleLine="true"
         android:text="@string/textview"
         android:textColor="@color/black"
         android:textSize="14sp" />

      <ImageView
          android:id="@+id/ib_LvRow_SpeedMap_InfoIcon"
          android:layout_width="0dip"
          android:layout_height="50dip"
          android:layout_weight="0.10"
          android:clickable="true"
          android:contentDescription="@string/todo"
          android:duplicateParentState="false"
          android:focusable="false"
          android:focusableInTouchMode="false"
          android:src="@drawable/info_icon" />

     <ImageView
         android:id="@+id/imgView_ArrowImg_speedMap"
         android:layout_width="0dip"
         android:layout_height="50dip"
         android:layout_weight="0.10"
         android:contentDescription="@string/todo"
         android:src="@drawable/arrow4" />
</LinearLayout>

ListView lv = getListView();
    //  lv.setItemsCanFocus(true);
    //  lv.setClickable(true);
    //  lv.setFocusable(true);
        lv.setOnItemClickListener(new OnItemClickListener() {

            @Override
            public void onItemClick(AdapterView<?> arg0, View v, int arg2,
                    long arg3) {

                final String where = "id = " + Long.toString(arg3);
                ImageView iv = (ImageView) v
                        .findViewById(R.id.ib_LvRow_SpeedMap_InfoIcon);
                // iv.setClickable(true);
                // iv.setFocusable(true);
                iv.setOnClickListener(new OnClickListener() {

                    @Override
                    public void onClick(View v) {
                        System.out.println("id2");
                        String[] projection = { "name", "description" };
                        String selection = where;
                        Cursor cursor = null;
                        cursor = getActivity().getContentResolver().query(
                                DatabaseContentProvider.CONTENT_URI_CONCERNS,
                                projection, selection, null, null);
                        cursor.moveToFirst();
                        if (cursor.getCount() > 0) {
                            String name = cursor.getString(cursor
                                    .getColumnIndex("name"));

                            System.out.println("name" + name);
                            String description = cursor.getString(cursor
                                    .getColumnIndex("description"));
                            System.out.println("description" + description);
                            info(name, description, v);

                        }

                    }
                });

            }
        });
  • 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-12T22:55:47+00:00Added an answer on June 12, 2026 at 10:55 pm

    Finally solved my problem after long struggle. following link helped me a lot.

    Multi clickable zone in listview.

    http://wiresareobsolete.com/wordpress/tag/clickable/

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

Sidebar

Related Questions

I have been trying to solve this problem for a while, but couldn't with
I'm trying for last hour solve this problem. I have a long form and
I have been trying to understand and solve this problem for the last three
I am trying to solve this problem. I have a series of SELECT statements
I am trying to solve this problem http://www.spoj.pl/problems/PEBBMOV/ . I think I have the
I'm trying to solve this problem for a long time. I have 2 forms,
Have spent an hour trying to solve this - but to no avail. I'm
I've been trying to solve these problem for last two hours but seems like
I've been trying to figure this problem out for the last 2 days already,
I have problem I've been trying to solve for the last couple of hours

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.