Product:Android PDFTronSDK
Product Version:Demo
Please give a brief summary of your issue:How to add a Button/view above on PdfViewCtrl overlayview?
(Think of this as an email subject)
I am trying to add a view above on PdfViewCtrl. View is not visible.
Here is the code sample,
val view = View(requireContext())
val pagePos = mPdfViewCtrl!!.convScreenPtToPagePt(point.x, point.y)
view.setBackgroundColor(ContextCompat.getColor(requireContext(), R.color.red))
val param = LinearLayout.LayoutParams(100,100)
view.layoutParams = param
view.x = pagePos[0].toFloat()
view.y = pagePos[1].toFloat()
mPdfViewCtrl!!.addView(view)
Please help what i need to make correction?
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
Please provide a link to a minimal sample where the issue is reproducible: