diff options
author | Thomas <tschneider.ac@gmail.com> | 2022-07-08 19:02:18 +0200 |
---|---|---|
committer | Thomas <tschneider.ac@gmail.com> | 2022-07-08 19:02:18 +0200 |
commit | 91501ab46af1aa9b15a72af97d86e4b01a6cd3c8 (patch) | |
tree | 0713b7fe6f7dbc658517bf058278f55e0a90117c /app/src/main/res | |
parent | 4467853b7107cbd8f305ef46d1024a0a65f7a6ed (diff) |
Fix issue #163 - Fetch more has now two buttons (down or up)
Diffstat (limited to 'app/src/main/res')
3 files changed, 52 insertions, 5 deletions
diff --git a/app/src/main/res/drawable/ic_baseline_arrow_circle_down_24.xml b/app/src/main/res/drawable/ic_baseline_arrow_circle_down_24.xml new file mode 100644 index 000000000..119241672 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_arrow_circle_down_24.xml @@ -0,0 +1,10 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:tint="#FFFFFF" + android:viewportWidth="24" + android:viewportHeight="24"> + <path + android:fillColor="@android:color/white" + android:pathData="M12,4c4.41,0 8,3.59 8,8s-3.59,8 -8,8s-8,-3.59 -8,-8S7.59,4 12,4M12,2C6.48,2 2,6.48 2,12c0,5.52 4.48,10 10,10c5.52,0 10,-4.48 10,-10C22,6.48 17.52,2 12,2L12,2zM13,12l0,-4h-2l0,4H8l4,4l4,-4H13z" /> +</vector> diff --git a/app/src/main/res/drawable/ic_baseline_arrow_circle_up_24.xml b/app/src/main/res/drawable/ic_baseline_arrow_circle_up_24.xml new file mode 100644 index 000000000..7634b238f --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_arrow_circle_up_24.xml @@ -0,0 +1,10 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:tint="#FFFFFF" + android:viewportWidth="24" + android:viewportHeight="24"> + <path + android:fillColor="@android:color/white" + android:pathData="M12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8s8,3.59 8,8S16.41,20 12,20M12,22c5.52,0 10,-4.48 10,-10c0,-5.52 -4.48,-10 -10,-10C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22L12,22zM11,12l0,4h2l0,-4h3l-4,-4l-4,4H11z" /> +</vector> diff --git a/app/src/main/res/layout/drawer_fetch_more.xml b/app/src/main/res/layout/drawer_fetch_more.xml index 70736b25d..a3ba2be26 100644 --- a/app/src/main/res/layout/drawer_fetch_more.xml +++ b/app/src/main/res/layout/drawer_fetch_more.xml @@ -1,9 +1,36 @@ <?xml version="1.0" encoding="utf-8"?> -<com.google.android.material.button.MaterialButton xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/fetch_more" - style="@style/MyOutlinedButton" +<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" + android:id="@+id/fetch_more_container" android:layout_gravity="center" - android:layout_margin="6dp" - android:text="@string/fetch_more_messages" />
\ No newline at end of file + android:orientation="horizontal" + android:padding="6dp"> + + <androidx.appcompat.widget.AppCompatImageButton + android:id="@+id/fetch_more_min" + style="@style/MyOutlinedButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/ic_baseline_arrow_circle_up_24" + android:text="@string/fetch_more_messages" + android:tint="?colorAccent" /> + + <androidx.appcompat.widget.AppCompatTextView + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:layout_weight="1" + android:text="@string/fetch_more_messages" + android:textColor="?colorAccent" + android:textSize="18sp" /> + + <androidx.appcompat.widget.AppCompatImageButton + android:id="@+id/fetch_more_max" + style="@style/MyOutlinedButton" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/ic_baseline_arrow_circle_down_24" + android:text="@string/fetch_more_messages" + android:tint="?colorAccent" /> +</androidx.appcompat.widget.LinearLayoutCompat> |