Fixed the download dialog. Next take it to the previous activity

This commit is contained in:
David 2016-04-27 06:51:47 -03:00
parent 6940021293
commit c622923edd
3 changed files with 39 additions and 80 deletions

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M20,11H7.83l5.59,-5.59L12,4l-8,8 8,8 1.41,-1.41L7.83,13H20v-2z"/>
</vector>

View file

@ -5,11 +5,10 @@
android:orientation="vertical">
<android.support.v7.widget.Toolbar
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/actionBarItemBackground"/>
android:theme="@style/NewPipeActionbarTheme" />
<View
android:layout_width="match_parent"
@ -25,18 +24,6 @@
android:layout_marginBottom="24dp"
android:gravity="center_vertical"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/msg_url"/>
<EditText
android:id="@+id/url"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"
android:ems="10"/>
</LinearLayout>
@ -60,15 +47,33 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:singleLine="true"/>
<Button
android:id="@+id/fetch_name"
android:layout_width="wrap_content"
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="24dp"
android:layout_marginRight="24dp"
android:layout_marginBottom="24dp"
android:gravity="center_vertical"
android:orientation="vertical">
<RadioGroup
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/msg_fetch_filename"
android:textColor="?attr/colorPrimary"
android:background="?android:selectableItemBackground"/>
android:orientation="horizontal"
android:checkedButton="@+id/video">
<RadioButton android:id="@+id/video"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/video"
android:onClick="onRadioButtonClicked"/>
<RadioButton android:id="@+id/audio"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/audio"
android:onClick="onRadioButtonClicked"/>
</RadioGroup>
</LinearLayout>
<LinearLayout