diff options
author | pacien | 2018-02-25 01:42:27 +0100 |
---|---|---|
committer | pacien | 2018-02-25 01:42:27 +0100 |
commit | c6de35b7b283d1693c314559effd177cb912862b (patch) | |
tree | 03a8157dbb389222a45abaeabf85662ef99177ee /app/src/main/res/menu | |
parent | eb31e3770f8c79ee0debb866e0fd56f9c37eb1be (diff) | |
download | tincapp-c6de35b7b283d1693c314559effd177cb912862b.tar.gz |
Add log viewer
Diffstat (limited to 'app/src/main/res/menu')
-rw-r--r-- | app/src/main/res/menu/menu_status.xml | 8 | ||||
-rw-r--r-- | app/src/main/res/menu/menu_viewlog.xml | 13 |
2 files changed, 21 insertions, 0 deletions
diff --git a/app/src/main/res/menu/menu_status.xml b/app/src/main/res/menu/menu_status.xml index 4b7c7dc..7415aeb 100644 --- a/app/src/main/res/menu/menu_status.xml +++ b/app/src/main/res/menu/menu_status.xml | |||
@@ -11,4 +11,12 @@ | |||
11 | android:title="@string/menu_disconnect" | 11 | android:title="@string/menu_disconnect" |
12 | app:showAsAction="ifRoom"/> | 12 | app:showAsAction="ifRoom"/> |
13 | 13 | ||
14 | <item | ||
15 | android:id="@+id/menu_show_log" | ||
16 | android:icon="@drawable/ic_receipt_primary_24dp" | ||
17 | android:onClick="openLogViewer" | ||
18 | android:tint="@color/colorAccent" | ||
19 | android:title="@string/menu_show_log" | ||
20 | app:showAsAction="ifRoom"/> | ||
21 | |||
14 | </menu> | 22 | </menu> |
diff --git a/app/src/main/res/menu/menu_viewlog.xml b/app/src/main/res/menu/menu_viewlog.xml new file mode 100644 index 0000000..ee3c60f --- /dev/null +++ b/app/src/main/res/menu/menu_viewlog.xml | |||
@@ -0,0 +1,13 @@ | |||
1 | <menu xmlns:android="http://schemas.android.com/apk/res/android" | ||
2 | xmlns:app="http://schemas.android.com/apk/res-auto" | ||
3 | xmlns:tools="http://schemas.android.com/tools" | ||
4 | tools:context="org.pacien.tincapp.activities.ViewLogActivity"> | ||
5 | |||
6 | <item | ||
7 | android:icon="@drawable/ic_pause_circle_outline_primary_24dp" | ||
8 | android:onClick="toggleLogging" | ||
9 | android:tint="@color/colorAccent" | ||
10 | android:title="@string/menu_toggle_logging" | ||
11 | app:showAsAction="ifRoom"/> | ||
12 | |||
13 | </menu> | ||