1- <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2- android : layout_width =" match_parent"
3- android : layout_height =" match_parent"
4- android : orientation =" vertical" >
1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3+ xmlns : app =" http://schemas.android.com/apk/res-auto"
4+ xmlns : tools =" http://schemas.android.com/tools"
5+ android : layout_width =" match_parent"
6+ android : layout_height =" match_parent"
7+ tools : context =" .ui.webview.WebViewFragment" >
58
6- <LinearLayout
7- android : layout_width =" match_parent"
8- android : layout_height =" wrap_content"
9- android : orientation =" horizontal" >
9+ <EditText
10+ android : id =" @+id/urlEditText"
11+ android : layout_width =" 0dp"
12+ android : layout_height =" wrap_content"
13+ android : layout_marginStart =" 8dp"
14+ android : layout_marginTop =" 8dp"
15+ android : layout_marginEnd =" 8dp"
16+ android : ems =" 10"
17+ android : hint =" @string/enter_url"
18+ android : inputType =" textUri"
19+ app : layout_constraintEnd_toStartOf =" @+id/loadButton"
20+ app : layout_constraintStart_toStartOf =" parent"
21+ app : layout_constraintTop_toTopOf =" parent" />
1022
11- <EditText
12- android : id =" @+id/url_edit_text"
13- android : layout_width =" 0dp"
14- android : layout_height =" wrap_content"
15- android : layout_weight =" 1"
16- android : autofillHints =" url"
17- android : hint =" @string/enter_url"
18- android : inputType =" textUri"
19- android : minHeight =" 48dp"
20- android : padding =" 8dp"
21- android : text =" @string/default_url" />
23+ <Button
24+ android : id =" @+id/loadButton"
25+ android : layout_width =" wrap_content"
26+ android : layout_height =" wrap_content"
27+ android : layout_marginEnd =" 8dp"
28+ android : text =" @string/load"
29+ app : layout_constraintEnd_toEndOf =" parent"
30+ app : layout_constraintTop_toTopOf =" @+id/urlEditText" />
2231
23- <Button
24- android : id =" @+id/load_button"
25- android : layout_width =" wrap_content"
26- android : layout_height =" wrap_content"
27- android : text =" @string/load"
28- android : padding =" 8dp" />
29- </LinearLayout >
32+ <WebView
33+ android : id =" @+id/webView"
34+ android : layout_width =" 0dp"
35+ android : layout_height =" 0dp"
36+ android : layout_marginTop =" 8dp"
37+ app : layout_constraintBottom_toTopOf =" @+id/urlBar"
38+ app : layout_constraintEnd_toEndOf =" parent"
39+ app : layout_constraintStart_toStartOf =" parent"
40+ app : layout_constraintTop_toBottomOf =" @+id/urlEditText" />
3041
31- <WebView
32- android : id =" @+id/web_view"
33- android : layout_width =" match_parent"
34- android : layout_height =" 0dp"
35- android : layout_weight =" 1" />
42+ <TextView
43+ android : id =" @+id/urlBar"
44+ android : layout_width =" 0dp"
45+ android : layout_height =" wrap_content"
46+ android : background =" #EEEEEE"
47+ android : padding =" 8dp"
48+ android : textAlignment =" center"
49+ android : visibility =" gone"
50+ app : layout_constraintBottom_toBottomOf =" parent"
51+ app : layout_constraintEnd_toEndOf =" parent"
52+ app : layout_constraintStart_toStartOf =" parent" />
3653
37- </ LinearLayout >
54+ </ androidx .constraintlayout.widget.ConstraintLayout >
0 commit comments