android-pdfview icon indicating copy to clipboard operation
android-pdfview copied to clipboard

onClick can't be callback,

Open masonMM opened this issue 10 years ago • 5 comments

mPdfView = (PDFView) findViewById(R.id.pdfview); mPdfView.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {
            Log.d(LOG_TAG, "full screen ");
        }
    });

<com.joanzapata.pdfview.PDFView android:id="@+id/pdfview" android:clickable="true" android:focusable="true" android:layout_width="match_parent" android:layout_height="match_parent"/>

my code and layout file like above, but the onClick is not callback when I click the pdfView

masonMM avatar Aug 16 '15 14:08 masonMM

Same issue, i do not know why :(

samk17cmutpm avatar Oct 29 '15 01:10 samk17cmutpm

Same issue here! BUMP!!!

ankitpise avatar Nov 26 '15 13:11 ankitpise

I use callback like this: http://stackoverflow.com/questions/20132359/how-do-i-add-an-onclicklistener-to-a-button-inside-a-listview-adapter but it works only if pdfview sources imported to my project source. In case of add dependencies to build.gradle it's not work for me

dimanych avatar Jan 12 '16 21:01 dimanych

I met the same problem, but have no solution!

cnneillee avatar Aug 03 '16 05:08 cnneillee

the same problem, it's works for com.github.barteksc.pdfviewer.PDFView;

Radwae avatar Aug 18 '17 01:08 Radwae