Skip to content

Instantly share code, notes, and snippets.

@raviyadav4875
Created December 29, 2016 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raviyadav4875/4cc58546a7adcee78a5c8b937a94fd0f to your computer and use it in GitHub Desktop.
Save raviyadav4875/4cc58546a7adcee78a5c8b937a94fd0f to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@android:color/white"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:text="https://www.youtube.com/watch?v=gl0nXCa0kdE"
android:textColor="@android:color/black"
android:textIsSelectable="true"
android:textSize="16sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:text="The text after v=(gl0nXCa0kdE)is the video id"
android:textColor="@android:color/black"
android:textSize="16sp" />
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/youtubeIdLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/youtubevideoid" />
</LinearLayout>
<EditText
android:id="@+id/youtubeIdText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/defaultYoutubeVideoId" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Video Quality"
android:textSize="20sp"
android:layout_margin="10dp"/>
<RadioGroup
android:id="@+id/radioGroup"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<RadioButton
android:id="@+id/QualityAuto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Auto Detect based on Internet Connection"
android:checked="true"
/>
<RadioButton
android:id="@+id/QualityLow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Low For 3gpp low quality for slow Internet" />
<RadioButton
android:id="@+id/QualityHigh"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="High Quality Videos for Fast Internet " />
</RadioGroup>
<ImageView
android:id="@+id/imgYoutubeThumb"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_gravity="center_horizontal">
</ImageView>
<Button
android:id="@+id/viewVideoButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/viewVideoButton" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment