diff options
author | Thomas <tschneider.ac@gmail.com> | 2022-07-09 17:34:08 +0200 |
---|---|---|
committer | Thomas <tschneider.ac@gmail.com> | 2022-07-09 17:34:08 +0200 |
commit | a80bdd6ac3a9f36250dc1d52e27f3b1e42db614e (patch) | |
tree | d817ec16935f57728606e4157dcbe5898166cef7 /app/src/main/res | |
parent | 461a3fe90fa6399f45f8b28db8a75ecf547e16ef (diff) |
Add trends
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/drawable/ic_baseline_trending_up_24.xml | 11 | ||||
-rw-r--r-- | app/src/main/res/layout/activity_trends.xml | 38 | ||||
-rw-r--r-- | app/src/main/res/menu/activity_main_drawer.xml | 6 |
3 files changed, 55 insertions, 0 deletions
diff --git a/app/src/main/res/drawable/ic_baseline_trending_up_24.xml b/app/src/main/res/drawable/ic_baseline_trending_up_24.xml new file mode 100644 index 000000000..04a5a8631 --- /dev/null +++ b/app/src/main/res/drawable/ic_baseline_trending_up_24.xml @@ -0,0 +1,11 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:autoMirrored="true" + android:tint="#FFFFFF" + android:viewportWidth="24" + android:viewportHeight="24"> + <path + android:fillColor="@android:color/white" + android:pathData="M16,6l2.29,2.29 -4.88,4.88 -4,-4L2,16.59 3.41,18l6,-6 4,4 6.3,-6.29L22,12V6z" /> +</vector> diff --git a/app/src/main/res/layout/activity_trends.xml b/app/src/main/res/layout/activity_trends.xml new file mode 100644 index 000000000..75ea988a0 --- /dev/null +++ b/app/src/main/res/layout/activity_trends.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?><!-- + Copyright 2022 Thomas Schneider + + This file is a part of Fedilab + + This program is free software; you can redistribute it and/or modify it under the terms of the + GNU General Public License as published by the Free Software Foundation; either version 3 of the + License, or (at your option) any later version. + + Fedilab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General + Public License for more details. + + You should have received a copy of the GNU General Public License along with Fedilab; if not, + see <http://www.gnu.org/licenses>. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:id="@+id/drawer_layout" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <com.google.android.material.tabs.TabLayout + android:id="@+id/search_tabLayout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:background="?backgroundColorLight" + app:tabGravity="fill" + app:tabIndicatorColor="@color/cyanea_accent_dark_reference" + app:tabMode="fixed" /> + + <androidx.viewpager.widget.ViewPager + android:id="@+id/trends_viewpager" + android:layout_width="match_parent" + android:layout_height="wrap_content" + app:layout_behavior="@string/appbar_scrolling_view_behavior" /> +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/menu/activity_main_drawer.xml b/app/src/main/res/menu/activity_main_drawer.xml index cd0a799fd..4ab3fc405 100644 --- a/app/src/main/res/menu/activity_main_drawer.xml +++ b/app/src/main/res/menu/activity_main_drawer.xml @@ -36,6 +36,12 @@ android:visible="true" /> <item + android:id="@+id/nav_trends" + android:icon="@drawable/ic_baseline_trending_up_24" + android:title="@string/trending" + android:visible="true" /> + + <item android:id="@+id/nav_scheduled" android:icon="@drawable/ic_baseline_schedule_24" android:title="@string/scheduled" /> |