diff options
author | pacien | 2018-03-04 19:54:08 +0100 |
---|---|---|
committer | pacien | 2018-03-04 19:54:08 +0100 |
commit | 9c987682bde9f532f53f3f1ac3ade7e96a5e2293 (patch) | |
tree | 8d1681ff2ecf27d768bec005aec41c9264ec6df9 /app/src/main/res | |
parent | 1f30a8838d787f31dbc0af83458d73afef104927 (diff) | |
download | tincapp-9c987682bde9f532f53f3f1ac3ade7e96a5e2293.tar.gz |
Add share button on log view
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/drawable/ic_share_primary_24dp.xml | 9 | ||||
-rw-r--r-- | app/src/main/res/menu/menu_viewlog.xml | 7 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 1 |
3 files changed, 17 insertions, 0 deletions
diff --git a/app/src/main/res/drawable/ic_share_primary_24dp.xml b/app/src/main/res/drawable/ic_share_primary_24dp.xml new file mode 100644 index 0000000..6095142 --- /dev/null +++ b/app/src/main/res/drawable/ic_share_primary_24dp.xml | |||
@@ -0,0 +1,9 @@ | |||
1 | <vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
2 | android:width="24dp" | ||
3 | android:height="24dp" | ||
4 | android:viewportHeight="24.0" | ||
5 | android:viewportWidth="24.0"> | ||
6 | <path | ||
7 | android:fillColor="@color/textPrimary" | ||
8 | android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z"/> | ||
9 | </vector> | ||
diff --git a/app/src/main/res/menu/menu_viewlog.xml b/app/src/main/res/menu/menu_viewlog.xml index ee3c60f..397055a 100644 --- a/app/src/main/res/menu/menu_viewlog.xml +++ b/app/src/main/res/menu/menu_viewlog.xml | |||
@@ -10,4 +10,11 @@ | |||
10 | android:title="@string/menu_toggle_logging" | 10 | android:title="@string/menu_toggle_logging" |
11 | app:showAsAction="ifRoom"/> | 11 | app:showAsAction="ifRoom"/> |
12 | 12 | ||
13 | <item | ||
14 | android:icon="@drawable/ic_share_primary_24dp" | ||
15 | android:onClick="share" | ||
16 | android:tint="@color/colorAccent" | ||
17 | android:title="@string/menu_share_log" | ||
18 | app:showAsAction="ifRoom"/> | ||
19 | |||
13 | </menu> | 20 | </menu> |
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 6eaed13..3301486 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml | |||
@@ -16,6 +16,7 @@ | |||
16 | <string name="menu_disconnect">Disconnect</string> | 16 | <string name="menu_disconnect">Disconnect</string> |
17 | <string name="menu_show_log">Show log</string> | 17 | <string name="menu_show_log">Show log</string> |
18 | <string name="menu_toggle_logging">Toggle logging</string> | 18 | <string name="menu_toggle_logging">Toggle logging</string> |
19 | <string name="menu_share_log">Share log</string> | ||
19 | 20 | ||
20 | <string name="field_net_name">Tinc network name</string> | 21 | <string name="field_net_name">Tinc network name</string> |
21 | <string name="field_node_name">Name of this node</string> | 22 | <string name="field_node_name">Name of this node</string> |