質問するログイン新規登録

質問編集履歴

1

activity_main.xml追記

2019/09/19 05:55

投稿

ludolf
ludolf

スコア39

title CHANGED
File without changes
body CHANGED
@@ -44,4 +44,91 @@
44
44
  なぜモーダルを開いたときWebViewの高さではなく、サイトの高さが反映されるのでしょうか?
45
45
  参考サイトもしくは解決策ご教授願います!
46
46
 
47
- よろしくお願いします!
47
+ よろしくお願いします!
48
+
49
+ ↓activity_main.xml追記↓
50
+ ```activity_main.xml
51
+ <?xml version="1.0" encoding="utf-8"?>
52
+ <androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
53
+ xmlns:app="http://schemas.android.com/apk/res-auto"
54
+ xmlns:tools="http://schemas.android.com/tools"
55
+ android:id="@+id/drawer_layout"
56
+ android:layout_width="match_parent"
57
+ android:layout_height="match_parent"
58
+ android:fitsSystemWindows="true"
59
+ tools:openDrawer="end">
60
+
61
+
62
+
63
+ <androidx.coordinatorlayout.widget.CoordinatorLayout
64
+ xmlns:android="http://schemas.android.com/apk/res/android"
65
+ xmlns:app="http://schemas.android.com/apk/res-auto"
66
+ xmlns:tools="http://schemas.android.com/tools"
67
+ android:layout_width="match_parent"
68
+ android:layout_height="match_parent"
69
+ tools:context=".MainActivity">
70
+
71
+
72
+ <com.google.android.material.appbar.AppBarLayout
73
+ android:layout_height="wrap_content"
74
+ android:layout_width="match_parent"
75
+ android:theme="@style/AppTheme.AppBarOverlay">
76
+
77
+ <androidx.appcompat.widget.Toolbar
78
+ android:id="@+id/toolbar"
79
+ android:layout_width="match_parent"
80
+ android:layout_height="match_parent"
81
+ android:background="@color/white"
82
+ android:paddingTop="15dp"
83
+ android:paddingBottom="15dp"
84
+ app:layout_scrollFlags="scroll|enterAlways">
85
+
86
+
87
+ <androidx.appcompat.widget.AppCompatImageButton
88
+ android:id="@+id/logo_top"
89
+ android:layout_width="wrap_content"
90
+ android:layout_height="wrap_content"
91
+ android:layout_gravity="center"
92
+ android:adjustViewBounds="true"
93
+ android:scaleType="fitCenter"/>
94
+
95
+ </androidx.appcompat.widget.Toolbar>
96
+
97
+ <com.google.android.material.tabs.TabLayout
98
+ android:id="@+id/tabs"
99
+ android:layout_width="match_parent"
100
+ android:layout_height="35dp"
101
+ android:background="@color/white"
102
+ android:paddingTop="0dp"
103
+ android:paddingBottom="0dp"
104
+ android:paddingLeft="0dp"
105
+ android:paddingRight="0dp"
106
+ android:state_selected="true"
107
+ app:tabBackground="@drawable/tab_color_selector"
108
+ app:tabGravity="fill"
109
+ app:tabMaxWidth="0dp"
110
+ app:tabMode="fixed"
111
+ app:tabTextAppearance="@style/TabText" />
112
+
113
+
114
+ </com.google.android.material.appbar.AppBarLayout>
115
+
116
+ <androidx.viewpager.widget.ViewPager
117
+ android:id="@+id/view_pager"
118
+ android:layout_width="match_parent"
119
+ android:layout_height="match_parent"
120
+ android:focusable = "true"
121
+ app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
122
+
123
+ </androidx.coordinatorlayout.widget.CoordinatorLayout>
124
+ <com.google.android.material.navigation.NavigationView
125
+ android:id="@+id/nav_view"
126
+ android:layout_width="240dp"
127
+ android:layout_height="match_parent"
128
+ android:layout_gravity="end"
129
+ android:fitsSystemWindows="true"
130
+ app:menu="@menu/activity_main_drawer" />
131
+ </androidx.drawerlayout.widget.DrawerLayout>
132
+
133
+
134
+ ```