Skip to content

Commit 6d71cac

Browse files
committed
Info画面にdescription追加
1 parent a9a5765 commit 6d71cac

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

app/src/main/res/layout/fragment_info.xml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<TextView
88
android:id="@+id/text_info"
99
android:layout_width="match_parent"
10-
android:layout_height="match_parent"
10+
android:layout_height="wrap_content"
1111
android:layout_marginStart="8dp"
1212
android:layout_marginTop="8dp"
1313
android:layout_marginEnd="8dp"
@@ -16,8 +16,23 @@
1616
app:layout_constraintEnd_toEndOf="parent"
1717
app:layout_constraintStart_toStartOf="parent"
1818
app:layout_constraintTop_toTopOf="parent"
19+
app:layout_constraintBottom_toTopOf="@id/text_desc"
20+
android:layout_marginBottom="?attr/actionBarSize"/>
21+
22+
<TextView
23+
android:id="@+id/text_desc"
24+
android:layout_width="match_parent"
25+
android:layout_height="wrap_content"
26+
android:layout_marginStart="8dp"
27+
android:layout_marginTop="8dp"
28+
android:layout_marginEnd="8dp"
29+
android:textSize="20sp"
30+
android:gravity="start|center_vertical"
31+
android:text="@string/info_desc"
32+
app:layout_constraintEnd_toEndOf="parent"
33+
app:layout_constraintStart_toStartOf="parent"
34+
app:layout_constraintTop_toBottomOf="@id/text_info"
1935
app:layout_constraintBottom_toTopOf="@id/text_version"
20-
app:layout_constraintTop_toBottomOf="@id/text_version"
2136
android:layout_marginBottom="?attr/actionBarSize"/>
2237

2338
<TextView

app/src/main/res/values/strings.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
<string name="title_map">Map</string>
66
<string name="title_info">Info</string>
77

8+
<string name="info_desc">避難ビルや避難所・トイレのマーカーをクリックすると、現在位置からの経路を表示します。あくまで目安としてお使いください。災害時にも通行できることを保証するものではありません。\n
9+
本アプリケーションは Code for Miyazaki の有志によって作成され、MITライセンスでコードが公開されています。\n
10+
防災を考えるきっかけを目指して開発しておりますが、我々だけで全てのデータの正しさを確認することはできません。間違いを発見された場合、GitHubのIssueやPull requestを活用してご報告頂ければ幸いです。</string>
11+
812
<string name="route_failed">ルートを取得できませんでした</string>
913
<string name="location_permission_denied">現在地を取得するため位置情報の利用を許可してください</string>
1014
</resources>

0 commit comments

Comments
 (0)