Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
17 views6 pages

Gmail - XML Source Code

The document contains XML source code for a video player interface, including layout elements such as buttons, text views, and image views. It also includes drawable resources for backgrounds, ripple effects, and shapes used in the player. Additionally, it specifies permissions for internet access and allows cleartext traffic.

Uploaded by

Ps Ps
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views6 pages

Gmail - XML Source Code

The document contains XML source code for a video player interface, including layout elements such as buttons, text views, and image views. It also includes drawable resources for backgrounds, ripple effects, and shapes used in the player. Additionally, it specifies permissions for internet access and allows cleartext traffic.

Uploaded by

Ps Ps
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

video source code

1 message

Rahul Singh <[email protected]> Thu, Jun 19, 2025 at 3:32 PM


To: Pritesh Singh <[email protected]>

<?xml version="1.0" encoding="utf-8"?>


<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">

<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/custom_control"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/custom_background">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">

<ImageView
android:id="@+id/Back_Button"
android:layout_width="24dp"
android:layout_height="24dp"
android:contentDescription="@string/todo"
android:src="@drawable/arrow" />

<TextView
android:id="@+id/Exo_Title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="20dp"
android:layout_weight="1"
android:fontFamily="@font/stylish_font"
android:singleLine="true"
android:text="@string/app_name"
android:textColor="@color/white"
android:textSize="16sp"
android:textStyle="bold"
android:visibility="invisible" />

<ImageView
android:id="@+id/UnLock_Button"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginStart="20dp"
android:contentDescription="@string/todo"
android:src="@drawable/unlock"
android:visibility="gone" />

<ImageView
android:id="@+id/Resize_Button"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginStart="20dp"
android:contentDescription="@string/todo"
android:src="@drawable/maximize"
android:visibility="gone" />
<ImageView
android:id="@+id/Setting_Button"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginStart="20dp"
android:contentDescription="@string/todo"
android:src="@drawable/full_setting" />

<ImageView
android:id="@+id/Full_Button"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginStart="20dp"
android:contentDescription="@string/todo"
android:src="@drawable/full_close" />
</LinearLayout>

<ImageView
android:id="@+id/exo_play_pause"
android:layout_width="55dp"
android:layout_height="55dp"
android:background="@drawable/new_background"
android:clickable="true"
android:contentDescription="@string/todo"
android:focusable="true"
android:padding="4dp"
android:src="@drawable/ic_pause"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<ImageView
android:id="@+id/Ten_Left"
android:layout_width="45dp"
android:layout_height="45dp"
android:background="@drawable/new_background"
android:clickable="true"
android:contentDescription="@string/todo"
android:focusable="true"
android:padding="8dp"
android:src="@drawable/ten_left"
app:layout_constraintBottom_toBottomOf="@+id/exo_play_pause"
app:layout_constraintEnd_toStartOf="@+id/exo_play_pause"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/exo_play_pause" />

<ImageView
android:id="@+id/Ten_Right"
android:layout_width="45dp"
android:layout_height="45dp"
android:background="@drawable/new_background"
android:clickable="true"
android:contentDescription="@string/todo"
android:focusable="true"
android:padding="8dp"
android:src="@drawable/ten_right"
app:layout_constraintBottom_toBottomOf="@+id/exo_play_pause"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/exo_play_pause"
app:layout_constraintTop_toTopOf="@+id/exo_play_pause" />

<LinearLayout
android:id="@+id/LinearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
app:layout_constraintBottom_toTopOf="@+id/LinearSetting"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<TextView
android:id="@+id/exo_position"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/duration"
android:textColor="@color/white"
android:textSize="14sp"
android:textStyle="bold" />

<androidx.media3.ui.DefaultTimeBar
android:id="@+id/exo_progress_placeholder"
android:layout_width="0dp"
android:layout_height="18dp"
android:layout_weight="1" />

<TextView
android:id="@+id/exo_duration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/duration"
android:textColor="@color/white"
android:textSize="14sp"
android:textStyle="bold" />
</LinearLayout>

<LinearLayout
android:id="@+id/LinearSetting"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="20dp"
android:baselineAligned="false"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">

<LinearLayout
android:id="@+id/Speed_Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:orientation="horizontal">

<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:contentDescription="@string/todo"
android:src="@drawable/baseline_slow_motion_video_24" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:fontFamily="@font/stylish_font"
android:text="@string/Speed"
android:textColor="@color/white"
android:textSize="13sp"
android:textStyle="bold" />

<TextView
android:id="@+id/Speed_text"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginStart="6dp"
android:gravity="center"
android:text="@string/Speed_txt"
android:textColor="@color/white"
android:textSize="11sp" />
</LinearLayout>

<LinearLayout
android:id="@+id/Video_Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:orientation="horizontal">

<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:contentDescription="@string/todo"
android:src="@drawable/settings" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:fontFamily="@font/stylish_font"
android:text="@string/Video_Quality"
android:textColor="@color/white"
android:textSize="13sp"
android:textStyle="bold" />

<TextView
android:id="@+id/Quality_text"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginStart="6dp"
android:gravity="center"
android:text="@string/Quality_txt"
android:textColor="@color/white"
android:textSize="11sp" />
</LinearLayout>

<LinearLayout
android:id="@+id/Ratio"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:orientation="horizontal">

<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:contentDescription="@string/todo"
android:src="@drawable/outline_subtitles_24" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:fontFamily="@font/stylish_font"
android:text="@string/Subtitle"
android:textColor="@color/white"
android:textSize="13sp"
android:textStyle="bold" />

<TextView
android:id="@+id/Ratio_text"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginStart="6dp"
android:gravity="center"
android:text="@string/Disable"
android:textColor="@color/white"
android:textSize="11sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/Audio"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:orientation="horizontal">

<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:contentDescription="@string/todo"
android:src="@drawable/outline_volume_up_24" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:fontFamily="@font/stylish_font"
android:text="@string/Audio"
android:textColor="@color/white"
android:textSize="13sp"
android:textStyle="bold" />

<TextView
android:id="@+id/Audio_text"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginStart="6dp"
android:gravity="center"
android:text="@string/Hindi"
android:textColor="@color/white"
android:textSize="11sp" />
</LinearLayout>

</LinearLayout>

</androidx.constraintlayout.widget.ConstraintLayout>

<ImageView
android:id="@+id/Lock_Button"
android:layout_width="45dp"
android:layout_height="45dp"
android:contentDescription="@string/todo"
android:src="@drawable/unlock"
android:layout_marginTop="15dp"
android:layout_marginEnd="40dp"
android:padding="8dp"
android:clickable="true"
android:focusable="true"
android:visibility="gone"
android:background="@drawable/new_background"
android:layout_alignParentEnd="true"/>
</RelativeLayout>

//////////////////////////////////////////////////////player background////////////////////
////////////////////////

<?xml version="1.0" encoding="utf-8"?>


<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="0"
android:pivotX="50%"
android:pivotY="50%"
android:toDegrees="360">

<shape android:shape="ring"
android:useLevel="false"
android:innerRadiusRatio="3"
android:thicknessRatio="20">

<size
android:width="76dip"
android:height="76dip"/>

<gradient
android:angle="0"
android:startColor="#0072ff"
android:type="sweep"
android:useLevel="false"/>
</shape>
</rotate>

//////////////////////////////////////////////////ripple effect////////////////////////
////////////////

<?xml version="1.0" encoding="utf-8"?>


<ripple android:color="#4DFFFFFF" xmlns:android="http://schemas.android.com/apk/res/android">

<item android:drawable="@drawable/ripple_effect"/>
</ripple>

<?xml version="1.0" encoding="utf-8"?>


<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="#77000000"/>
</shape>

//////////////////////////////////////////////////////////player background////////////////////
//////////////

<?xml version="1.0" encoding="utf-8"?>


<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:angle="90"
android:endColor="#E6000000"
android:centerColor="#00000000"
android:startColor="#88000000"/>
</shape>

//////////////////////////////////////////////////////////////////////////////////////////
///////////////////////

<uses-permission android:name="android.permission.INTERNET"/>

android:usesCleartextTraffic="true"

You might also like