Implement hints

This commit is contained in:
2016-02-22 07:56:12 -05:00
parent 56bed8206e
commit 68c4b26031
5 changed files with 123 additions and 10 deletions

View File

@@ -60,4 +60,32 @@
android:layout_marginTop="37dp"
/>
<LinearLayout
android:id="@+id/llHint"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/indigo_500"
android:layout_alignParentBottom="true"
android:orientation="vertical"
android:animateLayoutChanges="true"
android:visibility="invisible"
style="@style/cardStyle">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hint_title"
android:textStyle="bold"
android:textColor="@color/white"
android:layout_weight="5"/>
<TextView
android:id="@+id/hintContent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/white"
android:layout_weight="5"/>
</LinearLayout>
</RelativeLayout>

View File

@@ -101,4 +101,13 @@
<string name="settings">Settings</string>
<string name="snooze_interval">Snooze interval</string>
<string name="hint_title">Did you know?</string>
<string name="hint_drag">To rearrange the entries, you can drag them by the star.</string>
<string name="hint_landscape">You can see more days by putting your phone in landscape mode.</string>
<string-array name="hints">
<item>@string/hint_drag</item>
<item>@string/hint_landscape</item>
</string-array>
</resources>