mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-02-22 17:04:28 +00:00
android: add basic multidevice capabilities
use at your own risk, may or may not work
This commit is contained in:
11
android/app/src/main/res/drawable/ic_undo.xml
Normal file
11
android/app/src/main/res/drawable/ic_undo.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="960"
|
||||
android:viewportHeight="960"
|
||||
android:tint="?attr/colorControlNormal"
|
||||
android:autoMirrored="true">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M280,760L280,680L564,680Q627,680 673.5,640Q720,600 720,540Q720,480 673.5,440Q627,400 564,400L312,400L416,504L360,560L160,360L360,160L416,216L312,320L564,320Q661,320 730.5,383Q800,446 800,540Q800,634 730.5,697Q661,760 564,760L280,760Z"/>
|
||||
</vector>
|
||||
5
android/app/src/main/res/drawable/ic_undo_button_bg.xml
Normal file
5
android/app/src/main/res/drawable/ic_undo_button_bg.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<size android:width="64dp" android:height="64dp" />
|
||||
<solid android:color="#2F2F2F" />
|
||||
</shape>
|
||||
@@ -12,7 +12,9 @@
|
||||
android:orientation="horizontal"
|
||||
android:outlineAmbientShadowColor="#4EFFFFFF"
|
||||
android:outlineSpotShadowColor="#4EFFFFFF"
|
||||
android:padding="8dp">
|
||||
android:padding="8dp"
|
||||
android:clipToPadding="false"
|
||||
android:clipChildren="false">
|
||||
|
||||
<VideoView
|
||||
android:id="@+id/island_video_view"
|
||||
@@ -66,9 +68,11 @@
|
||||
android:id="@+id/island_battery_container"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center">
|
||||
android:gravity="center"
|
||||
android:clipChildren="false">
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/island_battery_bg"
|
||||
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
||||
android:layout_width="84dp"
|
||||
android:layout_height="84dp"
|
||||
@@ -101,5 +105,20 @@
|
||||
android:textSize="16sp"
|
||||
android:textStyle="bold"
|
||||
tools:ignore="HardcodedText" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/island_action_button"
|
||||
android:layout_width="64dp"
|
||||
android:layout_height="64dp"
|
||||
android:layout_gravity="center"
|
||||
android:translationX="-12dp"
|
||||
android:background="@drawable/ic_undo_button_bg"
|
||||
android:contentDescription="Undo button"
|
||||
android:scaleType="centerInside"
|
||||
android:src="@drawable/ic_undo"
|
||||
android:tint="@android:color/white"
|
||||
android:elevation="8dp"
|
||||
android:translationZ="8dp"
|
||||
android:visibility="gone" />
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
@@ -45,8 +45,10 @@
|
||||
<string name="noise_control_widget_description">Control Noise Control Mode directly from your Home Screen.</string>
|
||||
<string name="island_connected_text">Connected</string>
|
||||
<string name="island_connected_remote_text">Connected to Linux</string>
|
||||
<string name="island_taking_over_text">Moved to phone</string>
|
||||
<string name="island_taking_over_text">Connected</string>
|
||||
<string name="island_moved_to_remote_text">Moved to Linux</string>
|
||||
<string name="island_moved_to_other_device_text">Moved to other device</string>
|
||||
<string name="island_moved_to_other_device_reversed_text">Reconnect from notification</string>
|
||||
<string name="head_tracking">Head Tracking</string>
|
||||
<string name="head_gestures_details">Nod to answer calls, and shake your head to decline.</string>
|
||||
<string name="general_settings_header">General</string>
|
||||
|
||||
Reference in New Issue
Block a user