mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-03-21 13:41:29 +00:00
add popup window when connected; automatically open socket in background
This commit is contained in:
20
android/app/src/main/res/drawable/button_shape.xml
Normal file
20
android/app/src/main/res/drawable/button_shape.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
|
||||
<solid
|
||||
android:color="#902E2E2E">
|
||||
</solid>
|
||||
|
||||
<padding
|
||||
android:left="1dp"
|
||||
android:top="1dp"
|
||||
android:right="1dp"
|
||||
android:bottom="1dp" />
|
||||
|
||||
<corners
|
||||
android:radius="5000dp">
|
||||
</corners>
|
||||
|
||||
</shape>
|
||||
9
android/app/src/main/res/drawable/close.xml
Normal file
9
android/app/src/main/res/drawable/close.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="960"
|
||||
android:viewportHeight="960">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M256,760L200,704L424,480L200,256L256,200L480,424L704,200L760,256L536,480L760,704L704,760L480,536L256,760Z"/>
|
||||
</vector>
|
||||
19
android/app/src/main/res/drawable/shape.xml
Normal file
19
android/app/src/main/res/drawable/shape.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle" >
|
||||
|
||||
<solid
|
||||
android:color="#000000" >
|
||||
</solid>
|
||||
|
||||
<padding
|
||||
android:bottom="64dp"
|
||||
android:top="16dp">
|
||||
</padding>
|
||||
|
||||
<corners
|
||||
android:radius="48dp">
|
||||
</corners>
|
||||
|
||||
</shape>
|
||||
63
android/app/src/main/res/layout/popup_window.xml
Normal file
63
android/app/src/main/res/layout/popup_window.xml
Normal file
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout 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:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="16.dp"
|
||||
android:orientation="vertical"
|
||||
android:background="@drawable/shape">
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="end"
|
||||
android:paddingBottom="48dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:fontFamily="@font/sf_pro"
|
||||
android:gravity="center"
|
||||
android:text="Kavish's AirPods Pro"
|
||||
android:textColor="@color/white"
|
||||
|
||||
android:textSize="28sp"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="HardcodedText" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/close_button"
|
||||
android:layout_width="28dp"
|
||||
android:layout_height="28dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:background="@drawable/button_shape"
|
||||
android:contentDescription="Close Button"
|
||||
android:src="@drawable/close"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
tools:ignore="HardcodedText" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
<VideoView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/video"
|
||||
android:contentDescription="AirPods"
|
||||
android:src="@raw/connected"
|
||||
tools:ignore="HardcodedText" />
|
||||
<TextView
|
||||
android:id="@+id/battery"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="16dp"
|
||||
android:fontFamily="@font/sf_pro"
|
||||
android:gravity="center"
|
||||
android:text=""
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp"
|
||||
tools:ignore="HardcodedText" />
|
||||
</LinearLayout>
|
||||
BIN
android/app/src/main/res/raw/connected.mp4
Normal file
BIN
android/app/src/main/res/raw/connected.mp4
Normal file
Binary file not shown.
BIN
android/app/src/main/res/raw/connected_uncropped.mp4
Normal file
BIN
android/app/src/main/res/raw/connected_uncropped.mp4
Normal file
Binary file not shown.
BIN
android/app/src/main/res/raw/first_uncropped.mp4
Normal file
BIN
android/app/src/main/res/raw/first_uncropped.mp4
Normal file
Binary file not shown.
BIN
android/app/src/main/res/raw/loop_uncropped.mp4
Normal file
BIN
android/app/src/main/res/raw/loop_uncropped.mp4
Normal file
Binary file not shown.
Reference in New Issue
Block a user