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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:44:12+00:00 2026-05-19T11:44:12+00:00

Hi i have a listview with textview in every row with a text linkified

  • 0

Hi i have a listview with textview in every row with a text linkified with defined pattern in it , i use this small code to make linkified items can be clickable and call another activity in my app.But before that i am using imaview above the list to make navigation appear on listview , when i added

    textView.setMovementMethod(LinkMovementMethod.getInstance());
    Pattern Matcher = Pattern.compile("pattern here");
    String Url = "sth://";
    Linkify.addLinks(entrySpan, Matcher, Url);

Instead of onClick method of listview on just linkfy clicks are working , but i have to make them work bot

Here is code that i am using for listview click method but this seems never firing after setting linkify set movement , i am switching back and forth between Vısıble and Gone after every click.

getListView().setOnItemClickListener(new OnItemClickListener() {

            public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
                    long arg3) {
                // TODO Auto-generated method stub
                if(Entry.totalPageNumber>1){
                    //if no more than one page exist no need to navigate

                    if(show == false){
                        findViewById(R.id.back).setVisibility(View.VISIBLE);
                        findViewById(R.id.forward).setVisibility(View.VISIBLE);
                        findViewById(R.id.start).setVisibility(View.VISIBLE);
                        findViewById(R.id.last).setVisibility(View.VISIBLE);
                        show=true;
                    }else if(show==true){
                        findViewById(R.id.back).setVisibility(View.GONE);
                        findViewById(R.id.forward).setVisibility(View.GONE);
                        findViewById(R.id.start).setVisibility(View.GONE);
                        findViewById(R.id.last).setVisibility(View.GONE);
                        show=false;
                    }
                }
            }
        });

How to resolve this problem??

  • 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-19T11:44:13+00:00Added an answer on May 19, 2026 at 11:44 am

    I resolved it , just moved the onClickListener implementation into my getView method which draw textview and directly apply onClickListener to textView and finally both of them working happily

    TextView textView = (TextView) mView.findViewById(R.id.entryRowTextView);
    
    
    textView.setOnClickListener(new OnClickListener() {
    
                            public void onClick(View v) {
                                // TODO Auto-generated method stub
                                // TODO Auto-generated method stub
                                if(Entry.totalPageNumber>1){
                                    //if no more than one page exist no need to navigate
                                    Log.d(EKSI, "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
                                    if(show == false){
                                        findViewById(R.id.back).setVisibility(View.VISIBLE);
                                        findViewById(R.id.forward).setVisibility(View.VISIBLE);
                                        findViewById(R.id.start).setVisibility(View.VISIBLE);
                                        findViewById(R.id.last).setVisibility(View.VISIBLE);
                                        show=true;
                                    }else if(show==true){
                                        findViewById(R.id.back).setVisibility(View.GONE);
                                        findViewById(R.id.forward).setVisibility(View.GONE);
                                        findViewById(R.id.start).setVisibility(View.GONE);
                                        findViewById(R.id.last).setVisibility(View.GONE);
                                        show=false;
                                    }
                                }
                            }
                        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this method inside an Activity which implements an ImageLoader class: public void
I have a ListView that uses a custom adapter. The custom adapter's getView uses
I have created a listview. and there I also did the drag n drop
I have a problem with listview which list item contain a checkbox. When i
I have used a customized list view in which i have added 4 TextView
I have created a compound control that I am reusing in multiple activities. This
UPDATE: Now looking for Package Name as opposed to PID I have an app
I need to be able to click an imgview in a listview , which
I would like to make sure that when user log in it will stay
I have list view which contains 2 buttons and 2 textviews. I change the

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.