mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-30 05:47:57 +01:00
Show changelog when new version is installed
This commit is contained in:
26
app/src/main/res/layout/changelog_header_layout.xml
Normal file
26
app/src/main/res/layout/changelog_header_layout.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/chg_rowheader"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="@dimen/chglib_material_minHeight"
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="@dimen/chglib_material_keyline1"
|
||||
android:paddingRight="@dimen/chglib_material_keyline1">
|
||||
|
||||
|
||||
<!-- ChangeLog Header [Version] You have to use the id="chg_headerVersion" -->
|
||||
<TextView
|
||||
android:id="@+id/chg_headerVersion"
|
||||
style="?android:attr/listSeparatorTextViewStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingBottom="@dimen/chglib_material_keyline1"
|
||||
android:paddingTop="@dimen/chglib_material_keyline1"
|
||||
android:textAppearance="@style/TextAppearance.Medium.Body2"
|
||||
android:textAllCaps="false"
|
||||
android:textColor="?attr/colorAccent"
|
||||
/>
|
||||
</LinearLayout>
|
||||
37
app/src/main/res/layout/changelog_row_layout.xml
Normal file
37
app/src/main/res/layout/changelog_row_layout.xml
Normal file
@@ -0,0 +1,37 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/chg_row"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:minHeight="@dimen/listPreferredItemHeightSmall"
|
||||
android:orientation="horizontal">
|
||||
|
||||
|
||||
<!-- ChangeLog Row [Bullet Point] You have to use the id="chg_textbullet" -->
|
||||
<TextView
|
||||
android:id="@+id/chg_textbullet"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingEnd="0dp"
|
||||
android:paddingLeft="@dimen/chglib_material_keyline1"
|
||||
android:paddingRight="0dp"
|
||||
android:paddingStart="@dimen/chglib_material_keyline1"
|
||||
android:text="@string/changelog_row_bulletpoint"
|
||||
android:textAppearance="@style/TextAppearance.Medium.Title"
|
||||
/>
|
||||
|
||||
|
||||
<!-- ChangeLog Row [Text] You have to use the id="chg_text" -->
|
||||
<TextView
|
||||
android:id="@+id/chg_text"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:minHeight="@dimen/listPreferredItemHeightSmall"
|
||||
android:padding="@dimen/chglib_material_keyline1"
|
||||
android:textAppearance="@style/TextAppearance.Regular.Body1"
|
||||
tools:text="Use DashClock with Android 4.2's Daydream feature; great for use with desktop docks!"
|
||||
/>
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user