android - Navigation from one webview to another -
i have created webview in if external link clicked goes webview loaded external link. wanted in such way goes page navigated if button clicked. example if navigate 4th page of main webview external link webview , if click should go 4th page , not 1st page. xml page reference.
<webview android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/activity_main_webview"/> <webview android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_margintop="45dp" android:id="@+id/external_webview"> </webview> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:id="@+id/ext_link" android:layout_height="fill_parent"> <relativelayout android:orientation="horizontal" android:layout_width="fill_parent" android:background="#ffffff" android:layout_height="45dp" android:weightsum="1"> <button android:id="@+id/backtonews" android:layout_margintop="7dp" android:layout_width="190dp" android:layout_height="30dp" android:background="@drawable/button"> </button> <button android:id="@+id/refresh" android:layout_margintop="7dp" android:layout_width="30dp" android:layout_height="30dp" android:background="@drawable/refresh" android:layout_alignparentright="true" android:singleline="false"> </button> </relativelayout>
you have store last page @ in 1st web view before go 2nd 1 listen key , pop 1st web view saved address
let me know if wanted more detail.
Comments
Post a Comment