View imageOverlayView =
LayoutInflater.from(getApplicationContext()).
inflate(R.layout.layout_image_overlay, null);
new ImageViewer.Builder(getApplicationContext(), imageURLs)
.setStartPosition(0)
.hideStatusBar(false)
.setOverlayView(imageOverlayView)
.show();
I'm using this ImageView
builder to load images in fullscreen view, but I get the above mentioned error while compiling.And the activity which I'm using extends from AppCompatActivity
. Also I tried the activity extending from Activity too, its not working.
Thank you very much for your time and assistance in this matter.
.hideStatusBar(false)
is creating your issue.
You have to make sure that the AppTheme has a defined Status and Toolbar and the Activity uses the Theme.
By default Android Studio generates the base theme.