Last active
October 8, 2021 13:35
-
-
Save wheeliechamp/553104a092c706f8386bab2a6c3d3a9a to your computer and use it in GitHub Desktop.
layout に WebView を追加
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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