mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: Copy message to clipboard (#1443)
This commit is contained in:
parent
d76eac258b
commit
e412faecb9
7 changed files with 50 additions and 8 deletions
15
app/src/main/res/drawable/ic_twotone_content_copy_24.xml
Normal file
15
app/src/main/res/drawable/ic_twotone_content_copy_24.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:pathData="M8,7h11v14H8z"
|
||||
android:strokeAlpha="0.3"
|
||||
android:fillColor="@android:color/white"
|
||||
android:fillAlpha="0.3"/>
|
||||
<path
|
||||
android:pathData="M16,1L4,1c-1.1,0 -2,0.9 -2,2v14h2L4,3h12L16,1zM19,5L8,5c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h11c1.1,0 2,-0.9 2,-2L21,7c0,-1.1 -0.9,-2 -2,-2zM19,21L8,21L8,7h11v14z"
|
||||
android:fillColor="@android:color/white"/>
|
||||
</vector>
|
||||
|
|
@ -38,4 +38,9 @@
|
|||
android:icon="@drawable/ic_twotone_select_all_24"
|
||||
android:title="@string/select_all"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/copyButton"
|
||||
android:icon="@drawable/ic_twotone_content_copy_24"
|
||||
android:title="@string/copy"
|
||||
app:showAsAction="ifRoom" />
|
||||
</menu>
|
||||
|
|
@ -277,4 +277,6 @@
|
|||
<item quantity="other">%d skoków</item>
|
||||
</plurals>
|
||||
<string name="traceroute_diff">Skoki do: %1$d. Skoki od: %2$d</string>
|
||||
<string name="copy">Kopiuj</string>
|
||||
<string name="copied">Skopiowano</string>
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -310,4 +310,6 @@
|
|||
<string name="selected">Selected</string>
|
||||
<string name="not_selected">Not Selected</string>
|
||||
<string name="unknown_age">Unknown Age</string>
|
||||
<string name="copy">Copy</string>
|
||||
<string name="copied">Copied</string>
|
||||
</resources>
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@
|
|||
<style name="MyActionBar" parent="@style/ThemeOverlay.MaterialComponents.ActionBar">
|
||||
<item name="background">@color/colorPrimary</item>
|
||||
<item name="android:textColorPrimary">@color/colorOnPrimary</item>
|
||||
<item name="tint">@color/colorOnPrimary</item>
|
||||
</style>
|
||||
|
||||
<style name="MyToolbar" parent="Widget.MaterialComponents.Toolbar">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue