Open krthk123 opened 6 years ago
Have you solved it?
I'm trying to change the visibility on CameraSourcePreview and a black screen appears for about 3-4 seconds when View.GONE is called. Appreciate any leads on this. I have tried Samsung Galaxy s7, Nexus 6P and Google Pixel2.
i solve it. you need to write your own package name. like this in ocr_capture.xml file : <com.packagename.ui.CameraSourcePreview and also change this tag <com.packagename.ui.GraphicOverlay e.g: In my case package name is : com.fastapk.textrecognition so files become <com.fastapk.textrecognition.ui.CameraSourcePreview android:id="@+id/preview" android:layout_width="match_parent" android:layout_height="match_parent">
<com.fastapk.textrecognition.ui.GraphicOverlay
android:id="@+id/graphicOverlay"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</com.fastapk.textrecognition.ui.CameraSourcePreview>
Have you solved it?
yes i solved it check it. i solve it. you need to write your own package name. like this in ocr_capture.xml file : <com.packagename.ui.CameraSourcePreview and also change this tag <com.packagename.ui.GraphicOverlay e.g: In my case package name is : com.fastapk.textrecognition so files become <com.fastapk.textrecognition.ui.CameraSourcePreview android:id="@+id/preview" android:layout_width="match_parent" android:layout_height="match_parent">
<com.fastapk.textrecognition.ui.GraphicOverlay
android:id="@+id/graphicOverlay"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</com.fastapk.textrecognition.ui.CameraSourcePreview>
I'm trying to change the visibility on CameraSourcePreview and a black screen appears for about 3-4 seconds when View.GONE is called. Appreciate any leads on this. I have tried Samsung Galaxy s7, Nexus 6P and Google Pixel2.