Issue
how can I use a view and a webview together? ex: I have a login screen, where native use when login I access the webview, and finally I would like a button which returned to the login screen.
I dont know the name of this resource type. Just like to know how I can start.
Thanks!
Login:
Webview
When I press "SAIR" ( Logout ), I need back to Login! I don't know, how I can do it!
Solution
if I understand you correctly, you can put your login screen and WebView to FrameLayout together and use something like this:
<FrameLayout android:layout_width="match_parent" android:layout_height="match_parent">
<WebView
android:layout_width="match_parent" android:layout_height="match_parent"
android:id="@+id/web_view">
</WebView>
<LinearLayout android:layout_width="match_parent" android:layout_height="match_parent"
android:orientation="vertical">
<!--Your login screen here-->
</LinearLayout>
</FrameLayout>
// When you logout
loginView.bringToFornt();
// When you login
webView.bringToFront();
Answered By - Roman Zhukov
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.