質問編集履歴
2
内容修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,17 +4,19 @@
|
|
4
4
|
|
5
5
|
それぞれのHeightについて、
|
6
6
|
Appbar:固定
|
7
|
-
Toolbar:全体のHeight - AppbarのHeight
|
7
|
+
Toolbar:全体のHeight - (AppbarのHeight + ButtonのHeight)
|
8
8
|
Button:ボタン数が状況によって変化するので、それに合わせて変化します。
|
9
|
+
(ButtonはLinearLayoutの中に入れていおります。)
|
9
10
|
|
10
11
|
### 実現したいこと
|
11
|
-
AppbarのHeightとButtonのHeightに合わせてToolbarがHeightを調節して表示できるようにしたいです。
|
12
|
+
AppbarのHeightとButtonのHeightに合わせてToolbar(タブ)がHeightを調節して表示できるようにしたいです。
|
12
13
|
表示順は上から、Appbar、Toolbar、Buttonになります。
|
14
|
+

|
13
15
|
|
14
16
|
|
15
17
|
### 発生している問題・エラーメッセージ
|
16
18
|
|
17
|
-
ToolbarのHeightをmatch_
|
19
|
+
ToolbarのHeightをmatch_parentにしているため、画面下部に設定しているボタンと被ってしまいます。
|
18
20
|
|
19
21
|
### 該当のソースコード
|
20
22
|
|
@@ -56,20 +58,14 @@
|
|
56
58
|
android:layout_height="match_parent"
|
57
59
|
android:padding="5dp"
|
58
60
|
android:background="@drawable/border_left">
|
59
|
-
|
61
|
+
|
60
|
-
android:text="Text"
|
61
|
-
android:layout_width="wrap_content"
|
62
|
-
android:layout_height="match_parent"
|
63
|
-
android:minWidth="25px"
|
64
|
-
android:minHeight="25px"
|
65
|
-
android:id="@+id/textView1" />
|
66
62
|
</LinearLayout>
|
67
63
|
</LinearLayout>
|
68
64
|
<LinearLayout
|
69
65
|
android:id="@+id/linearLayout1"
|
70
66
|
android:orientation="vertical"
|
71
67
|
android:layout_width="match_parent"
|
72
|
-
android:layout_height="45"
|
68
|
+
android:layout_height="45dp"
|
73
69
|
android:layout_gravity="bottom">
|
74
70
|
<Button
|
75
71
|
android:text="Button"
|
1
記載ミス
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
LinearLayout内の
|
1
|
+
LinearLayout内のオブジェクトが重なってしまいます。
|
test
CHANGED
File without changes
|