-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make watch app more helpful and descriptive
Also adds a button to open the README on the phone.
- Loading branch information
Showing
8 changed files
with
106 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<vector android:autoMirrored="true" android:height="18dp" | ||
android:tint="#FFFFFF" android:viewportHeight="24" | ||
android:viewportWidth="24" android:width="18dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<path android:fillColor="@android:color/white" android:pathData="M17,17h2v4c0,1.1 -0.9,2 -2,2H7c-1.1,0 -2,-0.9 -2,-2V3c0,-1.1 0.9,-1.99 2,-1.99L17,1c1.1,0 2,0.9 2,2v4h-2V6H7v12h10V17zM22,12l-4,-4v3h-5v2h5v3L22,12z"/> | ||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,44 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<android.support.wearable.view.BoxInsetLayout | ||
<androidx.wear.widget.BoxInsetLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/watch_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:padding="15dp" | ||
android:padding="5dp" | ||
android:background="@android:color/black" | ||
tools:context="se.blunden.donotdisturbsync.MainActivity"> | ||
|
||
<ScrollView | ||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:padding="5dp" | ||
app:layout_box="all"> | ||
android:orientation="vertical" | ||
app:layout_boxedEdges="all"> | ||
|
||
<TextView | ||
android:id="@+id/info_text" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:paddingBottom="8dp" | ||
android:layout_gravity="center_vertical" | ||
android:paddingBottom="5dp" | ||
android:textColor="@android:color/white" | ||
android:text="@string/activity_info" /> | ||
|
||
</ScrollView> | ||
<com.google.android.material.button.MaterialButton | ||
style="@style/Widget.Material3.Button.IconButton.Filled" | ||
android:id="@+id/button_show_instructions" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_horizontal" | ||
android:textColor="@android:color/white" | ||
android:text="@string/button_instructions" | ||
app:backgroundTint="@color/colorAccent" | ||
app:icon="@drawable/open_on_phone" | ||
app:iconTint="@android:color/white" /> | ||
|
||
</LinearLayout> | ||
|
||
</android.support.wearable.view.BoxInsetLayout> | ||
</androidx.wear.widget.BoxInsetLayout> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<resources> | ||
<color name="ic_launcher_background">#455A64</color> | ||
<color name="colorAccent">#00BCD4</color> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<resources> | ||
<string name="app_name">Do Not Disturb Sync</string> | ||
<string name="activity_info">Having launched this app once allows it to monitor Do Not Disturb mode changes.</string> | ||
<string name="icon_hidden_info">The app icon will now be hidden from the launcher as there is no need to launch it manually again.</string> | ||
<string name="activity_info">To work properly, the app requires a special permission granted via ADB.</string> | ||
<string name="activity_info_permission_granted">You have successfully granted the permission on your watch!\n\nDo Not Disturb state should now synchronize.</string> | ||
<string name="button_instructions">Instructions</string> | ||
<string name="instruction_continue_on_phone">Continue reading on your phone</string> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters