mgks / Android-SmartWebView

A simple use webview integrated w/ native features to help create most advanced hybrid applications.
https://mgks.dev/smart-webview
MIT License
570 stars 278 forks source link

ASWV as an activity launched from another #235

Closed homeroacuna closed 3 years ago

homeroacuna commented 3 years ago

I'm launching the ASWV activity from a HomeActivity with partial success. The AswvActivity (which is MainActivity from this project) shows a couple of Toast messages and these actually appear on screen when the activity is launched, so it is being executed. BUT the layout never becomes visible, even though i tried adding findViewById(R.id.pullfresh).setVisibility(VISIBLE); below setContentView.

I wondered if my HomeActivity was showing over ASWV so I tried setting it GONE or INVISIBLE onPause and VISIBLE onResume. In this case, HomeActivity layout disappears briefly, the toasts from ASWV appear and then Home reappears. I don't get why ASWV won't stay on screen and load its layout.