Posted by
sapan
on
- Get link
- Other Apps
1 2 3 4 5 6 7 8 9 10 11 | <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/webview"> <WebView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/wview" /> </LinearLayout> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | public class AboutActivity extends AppCompatActivity { WebView wview; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.about); //find the webview wview = (WebView)findViewById(R.id.wview); } } |
1 2 | //load the local file from webview wview.loadUrl("file///android_asset/aboutm.html"); |
Comments
Post a Comment