Skip to content

Instantly share code, notes, and snippets.

@wheeliechamp
Last active October 8, 2021 13:35
Show Gist options
  • Save wheeliechamp/553104a092c706f8386bab2a6c3d3a9a to your computer and use it in GitHub Desktop.
Save wheeliechamp/553104a092c706f8386bab2a6c3d3a9a to your computer and use it in GitHub Desktop.
layout に WebView を追加
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<!-- add -->
<data>
<variable
name="webviewmodel"
type="com.example.webscrapingtest.viewmodel.MainViewModel"/>
</data>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".view.MainFragment">
<!-- add -->
<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1" />
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment