diff options
Diffstat (limited to 'app/src/main/res')
65 files changed, 3862 insertions, 0 deletions
diff --git a/app/src/main/res/anim/fade_in.xml b/app/src/main/res/anim/fade_in.xml new file mode 100644 index 000000000..d3567dc31 --- /dev/null +++ b/app/src/main/res/anim/fade_in.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<set xmlns:android="http://schemas.android.com/apk/res/android" > + + <alpha + android:duration="500" + android:fromAlpha="0.0" + android:interpolator="@android:anim/accelerate_interpolator" + android:toAlpha="1.0" /> +</set>
\ No newline at end of file diff --git a/app/src/main/res/anim/fade_out.xml b/app/src/main/res/anim/fade_out.xml new file mode 100644 index 000000000..ddf12d13f --- /dev/null +++ b/app/src/main/res/anim/fade_out.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<set xmlns:android="http://schemas.android.com/apk/res/android"> + + <alpha + android:duration="500" + android:fromAlpha="1.0" + android:interpolator="@android:anim/accelerate_interpolator" + android:toAlpha="0.0" /> + +</set>
\ No newline at end of file diff --git a/app/src/main/res/layout-land/audioplayer_activity.xml b/app/src/main/res/layout-land/audioplayer_activity.xml new file mode 100644 index 000000000..8f8fdbee3 --- /dev/null +++ b/app/src/main/res/layout-land/audioplayer_activity.xml @@ -0,0 +1,197 @@ +<?xml version="1.0" encoding="utf-8"?> +<android.support.v4.widget.DrawerLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/drawer_layout" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal"> + + <FrameLayout + android:id="@+id/contentView" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="0.5"> + </FrameLayout> + + <RelativeLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="0.5" + android:background="?attr/non_transparent_background" + android:orientation="vertical"> + + <RelativeLayout + android:id="@+id/navBar" + android:layout_width="fill_parent" + android:layout_height="60dp" + android:layout_alignParentTop="true"> + + <ImageButton + android:id="@+id/butNavLeft" + android:contentDescription="@string/show_shownotes_label" + android:layout_width="60dp" + android:layout_height="match_parent" + android:layout_alignParentLeft="true" + android:background="?attr/borderless_button" + android:padding="4dp"/> + + <ImageButton + android:id="@+id/butNavRight" + android:contentDescription="@string/show_chapters_label" + android:layout_width="60dp" + android:layout_height="match_parent" + android:layout_alignParentRight="true" + android:background="?attr/borderless_button" + android:padding="4dp"/> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_marginTop="8dp" + android:layout_toLeftOf="@id/butNavRight" + android:layout_toRightOf="@id/butNavLeft" + android:ellipsize="marquee" + android:marqueeRepeatLimit="marquee_forever" + android:maxLines="1" + android:textColor="?android:attr/textColorPrimary" + android:textSize="@dimen/text_size_medium" + android:textStyle="bold"/> + + <TextView + android:id="@+id/txtvFeed" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/txtvTitle" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_toLeftOf="@id/butNavRight" + android:layout_toRightOf="@id/butNavLeft" + android:ellipsize="marquee" + android:marqueeRepeatLimit="marquee_forever" + android:maxLines="1" + android:textColor="?android:attr/textColorSecondary" + android:textSize="@dimen/text_size_small"/> + </RelativeLayout> + + <View + android:id="@+id/navBarDivider" + android:layout_width="match_parent" + android:layout_height="1dp" + android:layout_below="@id/navBar" + android:background="@color/bright_blue"/> + + <RelativeLayout + android:id="@+id/player_control" + android:layout_width="match_parent" + android:layout_height="80dp" + android:layout_alignParentBottom="true" + android:background="?attr/overlay_background"> + + <ImageButton + android:id="@+id/butPlay" + android:contentDescription="@string/pause_label" + android:layout_width="80dp" + android:layout_height="match_parent" + android:layout_centerHorizontal="true" + android:background="?attr/borderless_button" + android:src="?attr/av_pause"/> + + <ImageButton + android:id="@+id/butRev" + android:contentDescription="@string/rewind_label" + android:layout_width="60dp" + android:layout_height="match_parent" + android:layout_toLeftOf="@id/butPlay" + android:background="?attr/borderless_button" + android:src="?attr/av_rewind"/> + + <ImageButton + android:id="@+id/butFF" + android:contentDescription="@string/fast_forward_label" + android:layout_width="60dp" + android:layout_height="match_parent" + android:layout_toRightOf="@id/butPlay" + android:background="?attr/borderless_button" + android:src="?attr/av_fast_forward"/> + + <Button + android:id="@+id/butPlaybackSpeed" + android:layout_width="60dp" + android:layout_height="match_parent" + android:layout_toRightOf="@id/butFF" + android:background="?attr/borderless_button" + android:src="?attr/av_fast_forward" + android:textColor="@color/gray" + android:textSize="@dimen/text_size_medium" + android:visibility="gone"/> + </RelativeLayout> + + <RelativeLayout + android:id="@+id/playtime_layout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_above="@id/player_control" + android:layout_alignParentLeft="true" + android:background="?attr/overlay_drawable"> + + <TextView + android:id="@+id/txtvPosition" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_centerVertical="true" + android:layout_marginLeft="8dp" + android:layout_marginTop="16dp" + android:text="@string/position_default_label" + android:textColor="?android:attr/textColorSecondary" + android:textSize="@dimen/text_size_micro"/> + + <TextView + android:id="@+id/txtvLength" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:layout_centerVertical="true" + android:layout_marginRight="8dp" + android:layout_marginTop="16dp" + android:text="@string/position_default_label" + android:textColor="?android:attr/textColorSecondary" + android:textSize="@dimen/text_size_micro"/> + + <SeekBar + android:id="@+id/sbPosition" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_marginTop="16dp" + android:layout_toLeftOf="@id/txtvLength" + android:layout_toRightOf="@id/txtvPosition" + android:max="500"/> + </RelativeLayout> + </RelativeLayout> + + </LinearLayout> + + <ListView + android:id="@+id/nav_list" + android:layout_width="@dimen/drawer_width" + android:layout_height="match_parent" + android:layout_gravity="start" + android:choiceMode="singleChoice" + android:background="?attr/nav_drawer_background" + android:scrollbarStyle="outsideOverlay" + android:paddingLeft="8dp" + android:paddingRight="8dp"/> + +</android.support.v4.widget.DrawerLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout-land/videoplayer_activity.xml b/app/src/main/res/layout-land/videoplayer_activity.xml new file mode 100644 index 000000000..f1e54f7c3 --- /dev/null +++ b/app/src/main/res/layout-land/videoplayer_activity.xml @@ -0,0 +1,84 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <de.danoeh.antennapod.view.AspectRatioVideoView + android:id="@+id/videoview" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center"/> + + <ProgressBar + android:id="@+id/progressIndicator" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:visibility="invisible" + android:indeterminateOnly="true"/> + + <ImageButton + android:id="@+id/butPlay" + android:contentDescription="@string/pause_label" + android:layout_width="80dp" + android:layout_height="80dp" + android:layout_gravity="center" + android:scaleType="fitXY" + android:background="@drawable/overlay_button_circle_background" + android:src="@drawable/ic_action_pause_over_video"/> + + <LinearLayout + android:id="@+id/overlay" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="bottom|center" + android:background="#80000000" + android:orientation="vertical"> + + <RelativeLayout + android:id="@+id/timecontrol" + android:layout_width="match_parent" + android:layout_height="50dp" + android:paddingTop="8dp" + android:layout_marginBottom="4dp"> + + <TextView + android:id="@+id/txtvPosition" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_marginBottom="8dp" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_marginTop="4dp" + android:textColor="@color/white" + android:textStyle="bold" + android:text="@string/position_default_label"/> + + <TextView + android:id="@+id/txtvLength" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:layout_marginBottom="8dp" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_marginTop="4dp" + android:textColor="@color/white" + android:textStyle="bold" + android:text="@string/position_default_label"/> + + <SeekBar + android:id="@+id/sbPosition" + android:layout_width="0px" + android:layout_height="wrap_content" + android:layout_toLeftOf="@+id/txtvLength" + android:layout_toRightOf="@+id/txtvPosition" + android:max="500"/> + </RelativeLayout> + </LinearLayout> + +</FrameLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout-v14/authentication_dialog.xml b/app/src/main/res/layout-v14/authentication_dialog.xml new file mode 100644 index 000000000..ed05dab1c --- /dev/null +++ b/app/src/main/res/layout-v14/authentication_dialog.xml @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" > + + <EditText + android:id="@+id/etxtUsername" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:layout_margin="16dp" + android:hint="@string/username_label"/> + + <EditText + android:id="@+id/etxtPassword" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:layout_margin="16dp" + android:inputType="textPassword" + android:hint="@string/password_label"/> + + <CheckBox + android:id="@+id/chkSaveUsernamePassword" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="16dp" + android:text="@string/save_username_password_label"/> + </LinearLayout> + + <RelativeLayout + android:id="@+id/footer" + android:layout_width="fill_parent" + android:layout_height="48dp" > + + <View + android:layout_width="match_parent" + android:layout_height="1dip" + android:layout_alignParentTop="true" + android:background="?android:attr/dividerVertical" /> + + <View + android:id="@+id/horizontal_divider" + android:layout_width="1dip" + android:layout_height="fill_parent" + android:layout_alignParentTop="true" + android:layout_centerHorizontal="true" + android:layout_marginBottom="4dp" + android:layout_marginTop="4dp" + android:background="?android:attr/dividerVertical" /> + + <Button + android:id="@+id/butCancel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_toLeftOf="@id/horizontal_divider" + android:background="?android:attr/selectableItemBackground" + android:text="@string/cancel_label" /> + + <Button + android:id="@+id/butConfirm" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:layout_toRightOf="@id/horizontal_divider" + android:background="?android:attr/selectableItemBackground" + android:text="@string/confirm_label" /> + </RelativeLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout-v14/directory_chooser.xml b/app/src/main/res/layout-v14/directory_chooser.xml new file mode 100644 index 000000000..f0bef72e4 --- /dev/null +++ b/app/src/main/res/layout-v14/directory_chooser.xml @@ -0,0 +1,107 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <RelativeLayout + android:id="@+id/footer" + android:layout_width="fill_parent" + android:layout_height="48dp" + android:layout_alignParentBottom="true" > + + <View + android:layout_width="match_parent" + android:layout_height="1dip" + android:layout_alignParentTop="true" + android:background="?android:attr/dividerVertical" /> + + <View + android:id="@+id/horizontal_divider" + android:layout_width="1dip" + android:layout_height="fill_parent" + android:layout_alignParentTop="true" + android:layout_centerHorizontal="true" + android:layout_marginBottom="4dp" + android:layout_marginTop="4dp" + android:background="?android:attr/dividerVertical" /> + + <Button + android:id="@+id/butCancel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_toLeftOf="@id/horizontal_divider" + android:background="?android:attr/selectableItemBackground" + android:text="@string/cancel_label" /> + + <Button + android:id="@+id/butConfirm" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:layout_toRightOf="@id/horizontal_divider" + android:background="?android:attr/selectableItemBackground" + android:text="@string/confirm_label" /> + </RelativeLayout> + + <RelativeLayout + android:id="@+id/directory_info" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" > + + <ImageButton + android:id="@+id/butNavUp" + android:contentDescription="@string/navigate_upwards_label" + android:layout_width="60dp" + android:layout_height="60dp" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:background="?attr/borderless_button" + android:src="?attr/navigation_up" /> + + <TextView + android:id="@+id/txtvSelectedFolderLabel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_marginTop="8dp" + android:layout_toRightOf="@id/butNavUp" + android:text="@string/selected_folder_label" + android:textStyle="bold" > + </TextView> + + <TextView + android:id="@+id/txtvSelectedFolder" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_below="@id/txtvSelectedFolderLabel" + android:layout_margin="8dp" + android:layout_toRightOf="@id/butNavUp" + android:ellipsize="start" + android:scrollHorizontally="true" + android:singleLine="true" /> + + <View + android:id="@+id/divider" + android:layout_width="match_parent" + android:layout_height="1dp" + android:layout_below="@id/butNavUp" + android:background="@color/bright_blue" /> + </RelativeLayout> + + <ListView + android:id="@+id/directory_list" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_above="@id/footer" + android:layout_below="@id/directory_info" /> + +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout-v14/download_authentication_activity.xml b/app/src/main/res/layout-v14/download_authentication_activity.xml new file mode 100644 index 000000000..c1fe55ceb --- /dev/null +++ b/app/src/main/res/layout-v14/download_authentication_activity.xml @@ -0,0 +1,92 @@ +<?xml version="1.0" encoding="utf-8"?> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/authentication_notification_title" + android:layout_alignParentTop="true" + android:textSize="@dimen/text_size_large" + android:layout_margin="16dp" + android:textColor="@color/bright_blue" + android:textStyle="italic"/> + + <TextView + android:id="@+id/txtvDescription" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/authentication_notification_msg" + android:layout_below="@id/txtvTitle" + android:textSize="@dimen/text_size_medium" + android:textColor="?android:attr/textColorSecondary" + android:layout_margin="16dp"/> + + <EditText + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="16dp" + android:id="@+id/etxtUsername" + android:hint="@string/username_label" + android:layout_below="@id/txtvDescription"/> + + <EditText + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="16dp" + android:id="@+id/etxtPassword" + android:hint="@string/password_label" + android:inputType="textPassword" + android:layout_below="@id/etxtUsername"/> + + <RelativeLayout + android:id="@+id/footer" + android:layout_width="fill_parent" + android:layout_height="48dp" + android:focusableInTouchMode="true" + android:layout_alignParentBottom="true"> + + <View + android:layout_width="match_parent" + android:layout_height="1dip" + android:layout_alignParentTop="true" + android:background="?android:attr/dividerVertical"/> + + <View + android:id="@+id/horizontal_divider" + android:layout_width="1dip" + android:layout_height="fill_parent" + android:layout_alignParentTop="true" + android:layout_centerHorizontal="true" + android:layout_marginBottom="4dp" + android:layout_marginTop="4dp" + android:background="?android:attr/dividerVertical"/> + + <Button + android:id="@+id/butCancel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_toLeftOf="@id/horizontal_divider" + android:background="?android:attr/selectableItemBackground" + android:text="@string/cancel_label"/> + + <Button + android:id="@+id/butConfirm" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:layout_toRightOf="@id/horizontal_divider" + android:background="?android:attr/selectableItemBackground" + android:text="@string/confirm_label"/> + </RelativeLayout> + + +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout-v14/opml_selection.xml b/app/src/main/res/layout-v14/opml_selection.xml new file mode 100644 index 000000000..3133debd1 --- /dev/null +++ b/app/src/main/res/layout-v14/opml_selection.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <RelativeLayout + android:id="@+id/footer" + android:layout_width="fill_parent" + android:layout_height="48dp" + android:layout_alignParentBottom="true" > + + <View + android:layout_width="match_parent" + android:layout_height="1dip" + android:layout_alignParentTop="true" + android:background="?android:attr/dividerVertical" /> + + <View + android:id="@+id/horizontal_divider" + android:layout_width="1dip" + android:layout_height="fill_parent" + android:layout_alignParentTop="true" + android:layout_centerHorizontal="true" + android:layout_marginBottom="4dp" + android:layout_marginTop="4dp" + android:background="?android:attr/dividerVertical" /> + + <Button + android:id="@+id/butCancel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_toLeftOf="@id/horizontal_divider" + android:background="?android:attr/selectableItemBackground" + android:text="@string/cancel_label" /> + + <Button + android:id="@+id/butConfirm" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:layout_toRightOf="@id/horizontal_divider" + android:background="?android:attr/selectableItemBackground" + android:text="@string/confirm_label" /> + </RelativeLayout> + + <ListView + android:id="@+id/feedlist" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_above="@id/footer" + android:layout_alignParentTop="true" + tools:listitem="@android:layout/simple_list_item_multiple_choice" > + </ListView> + +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout-v14/time_dialog.xml b/app/src/main/res/layout-v14/time_dialog.xml new file mode 100644 index 000000000..7fd4309d5 --- /dev/null +++ b/app/src/main/res/layout-v14/time_dialog.xml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + + <EditText + android:id="@+id/etxtTime" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_margin="8dp" + android:ems="7" + android:hint="@string/enter_time_here_label" + android:inputType="number" + android:maxLength="2" > + + <requestFocus /> + </EditText> + + <Spinner + android:id="@+id/spTimeUnit" + android:layout_width="180dp" + android:layout_height="wrap_content" + android:layout_marginBottom="8dp" + android:layout_marginTop="8dp" /> + </LinearLayout> + + <RelativeLayout + android:id="@+id/footer" + android:layout_width="fill_parent" + android:layout_height="48dp" > + + <View + android:layout_width="match_parent" + android:layout_height="1dip" + android:layout_alignParentTop="true" + android:background="?android:attr/dividerVertical" /> + + <View + android:id="@+id/horizontal_divider" + android:layout_width="1dip" + android:layout_height="fill_parent" + android:layout_alignParentTop="true" + android:layout_centerHorizontal="true" + android:layout_marginBottom="4dp" + android:layout_marginTop="4dp" + android:background="?android:attr/dividerVertical" /> + + <Button + android:id="@+id/butCancel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_toLeftOf="@id/horizontal_divider" + android:background="?android:attr/selectableItemBackground" + android:text="@string/cancel_label" /> + + <Button + android:id="@+id/butConfirm" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:layout_toRightOf="@id/horizontal_divider" + android:background="?android:attr/selectableItemBackground" + android:text="@string/confirm_label" /> + </RelativeLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/about.xml b/app/src/main/res/layout/about.xml new file mode 100644 index 000000000..acde9d786 --- /dev/null +++ b/app/src/main/res/layout/about.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <WebView + android:id="@+id/webvAbout" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/addfeed.xml b/app/src/main/res/layout/addfeed.xml new file mode 100644 index 000000000..09502eb7b --- /dev/null +++ b/app/src/main/res/layout/addfeed.xml @@ -0,0 +1,100 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> + + <ScrollView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_alignParentTop="true" + android:scrollbars="vertical"> + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <TextView + android:id="@+id/txtvFeedurl" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_margin="16dp" + style="@style/AntennaPod.TextView.Heading" + android:text="@string/txtvfeedurl_label"/> + + <EditText + android:id="@+id/etxtFeedurl" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_below="@id/txtvFeedurl" + android:layout_margin="8dp" + android:hint="@string/etxtFeedurlHint" + android:inputType="textUri"/> + + <Button + android:id="@+id/butConfirm" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_below="@id/etxtFeedurl" + android:layout_margin="8dp" + android:text="@string/confirm_label"/> + + <TextView + android:id="@+id/txtvPodcastDirectories" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/butConfirm" + android:layout_margin="8dp" + style="@style/AntennaPod.TextView.Heading" + android:text="@string/podcastdirectories_label"/> + + <TextView + android:id="@+id/txtvPodcastDirectoriesDescr" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/podcastdirectories_descr" + android:textSize="@dimen/text_size_medium" + android:layout_below="@id/txtvPodcastDirectories" + android:layout_margin="8dp"/> + + <Button + android:id="@+id/butBrowseGpoddernet" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/txtvPodcastDirectoriesDescr" + android:layout_margin="8dp" + android:text="@string/browse_gpoddernet_label"/> + + + <TextView + android:id="@+id/txtvOpmlImport" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/butBrowseGpoddernet" + android:layout_margin="8dp" + style="@style/AntennaPod.TextView.Heading" + android:text="@string/opml_import_label"/> + + <TextView + android:id="@+id/txtvOpmlImportExpl" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/txtvOpmlImport" + android:layout_margin="8dp" + android:textSize="@dimen/text_size_medium" + android:text="@string/opml_import_txtv_button_lable"/> + + <Button + android:id="@+id/butOpmlImport" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/txtvOpmlImportExpl" + android:layout_marginBottom="8dp" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:text="@string/opml_import_label"/> + </RelativeLayout> + </ScrollView> + +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/audioplayer_activity.xml b/app/src/main/res/layout/audioplayer_activity.xml new file mode 100644 index 000000000..a879aad55 --- /dev/null +++ b/app/src/main/res/layout/audioplayer_activity.xml @@ -0,0 +1,182 @@ +<?xml version="1.0" encoding="utf-8"?> +<android.support.v4.widget.DrawerLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/drawer_layout" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/content" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="?attr/non_transparent_background" + android:orientation="vertical"> + + <RelativeLayout + android:id="@+id/navBar" + android:layout_width="fill_parent" + android:layout_height="60dp" + android:layout_alignParentTop="true"> + + <ImageButton + android:id="@+id/butNavLeft" + android:contentDescription="@string/show_shownotes_label" + android:layout_width="60dp" + android:layout_height="match_parent" + android:layout_alignParentLeft="true" + android:background="?attr/borderless_button" + android:padding="4dp"/> + + <ImageButton + android:id="@+id/butNavRight" + android:contentDescription="@string/show_chapters_label" + android:layout_width="60dp" + android:layout_height="match_parent" + android:layout_alignParentRight="true" + android:background="?attr/borderless_button" + android:padding="4dp"/> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_centerInParent="true" + android:layout_alignParentTop="true" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_marginTop="8dp" + android:layout_toLeftOf="@id/butNavRight" + android:layout_toRightOf="@id/butNavLeft" + android:ellipsize="marquee" + android:marqueeRepeatLimit="marquee_forever" + android:maxLines="2" + android:textColor="?android:attr/textColorPrimary" + android:textSize="16sp" + android:fontFamily="sans-serif-light" + /> + </RelativeLayout> + + <View + android:id="@+id/navBarDivider" + android:layout_width="match_parent" + android:layout_height="1dp" + android:layout_below="@id/navBar" + android:background="@color/bright_blue"/> + + <RelativeLayout + android:id="@+id/player_control" + android:layout_width="match_parent" + android:layout_height="80dp" + android:layout_alignParentBottom="true" + android:background="?attr/overlay_background"> + + <ImageButton + android:id="@+id/butPlay" + android:contentDescription="@string/pause_label" + android:layout_width="80dp" + android:layout_height="match_parent" + android:layout_centerHorizontal="true" + android:background="?attr/borderless_button" + android:src="?attr/av_pause"/> + + <ImageButton + android:id="@+id/butRev" + android:contentDescription="@string/rewind_label" + android:layout_width="80dp" + android:layout_height="match_parent" + android:layout_toLeftOf="@id/butPlay" + android:background="?attr/borderless_button" + android:src="?attr/av_rewind"/> + + <ImageButton + android:id="@+id/butFF" + android:contentDescription="@string/fast_forward_label" + android:layout_width="80dp" + android:layout_height="match_parent" + android:layout_toRightOf="@id/butPlay" + android:background="?attr/borderless_button" + android:src="?attr/av_fast_forward"/> + + <Button + android:id="@+id/butPlaybackSpeed" + android:contentDescription="@string/set_playback_speed_label" + android:layout_width="80dp" + android:layout_height="match_parent" + android:layout_toRightOf="@id/butFF" + android:background="?attr/borderless_button" + android:src="?attr/av_fast_forward" + android:textColor="@color/gray" + android:textSize="@dimen/text_size_medium" + android:visibility="gone"/> + </RelativeLayout> + + <RelativeLayout + android:id="@+id/playtime_layout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_above="@id/player_control" + android:layout_alignParentLeft="true" + android:background="?attr/overlay_drawable"> + + <TextView + android:id="@+id/txtvPosition" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_centerVertical="true" + android:layout_marginLeft="8dp" + android:layout_marginTop="16dp" + android:text="@string/position_default_label" + android:textColor="?android:attr/textColorSecondary" + android:fontFamily="sans-serif-light" + android:textSize="@dimen/text_size_micro"/> + + <TextView + android:id="@+id/txtvLength" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:layout_centerVertical="true" + android:layout_marginRight="8dp" + android:layout_marginTop="16dp" + android:text="@string/position_default_label" + android:textColor="?android:attr/textColorSecondary" + android:fontFamily="sans-serif-light" + android:textSize="@dimen/text_size_micro"/> + + <SeekBar + android:id="@+id/sbPosition" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_marginTop="16dp" + android:layout_toLeftOf="@id/txtvLength" + android:layout_toRightOf="@id/txtvPosition" + android:max="500"/> + </RelativeLayout> + + <FrameLayout + android:id="@+id/contentView" + android:layout_width="match_parent" + android:layout_height="0px" + android:layout_above="@id/playtime_layout" + android:layout_below="@id/navBarDivider"> + </FrameLayout> + + </RelativeLayout> + + <ListView + android:id="@+id/nav_list" + android:layout_width="@dimen/drawer_width" + android:layout_height="match_parent" + android:layout_gravity="start" + android:choiceMode="singleChoice" + android:background="?attr/nav_drawer_background" + android:scrollbarStyle="outsideOverlay" + android:paddingLeft="8dp" + android:paddingRight="8dp"/> + +</android.support.v4.widget.DrawerLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/authentication_dialog.xml b/app/src/main/res/layout/authentication_dialog.xml new file mode 100644 index 000000000..82260eb43 --- /dev/null +++ b/app/src/main/res/layout/authentication_dialog.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <EditText + android:id="@+id/etxtUsername" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:layout_margin="16dp" + android:hint="@string/username_label"/> + + <EditText + android:id="@+id/etxtPassword" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:layout_margin="16dp" + android:inputType="textPassword" + android:hint="@string/password_label"/> + + <CheckBox + android:id="@+id/chkSaveUsernamePassword" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="16dp" + android:text="@string/save_username_password_label"/> + + + </LinearLayout> + + <LinearLayout + style="@android:style/ButtonBar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <Button + android:id="@+id/butConfirm" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginRight="8dp" + android:text="@string/confirm_label" + android:layout_weight="1"/> + + <Button + android:id="@+id/butCancel" + android:text="@string/cancel_label" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1"/> + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/autoflattr_preference_dialog.xml b/app/src/main/res/layout/autoflattr_preference_dialog.xml new file mode 100644 index 000000000..fc2df30d7 --- /dev/null +++ b/app/src/main/res/layout/autoflattr_preference_dialog.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <CheckBox + android:id="@+id/chkAutoFlattr" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="4dp" + android:text="@string/auto_flattr_enable" + android:textColor="?android:attr/textColorPrimary" + android:textSize="@dimen/text_size_small" /> + + <SeekBar + android:id="@+id/skbPercent" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="8dp" + android:max="100" /> + + <TextView + android:id="@+id/txtvStatus" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="8dp" + android:ellipsize="end" + android:lines="2" + android:text="@string/auto_flattr_after_percent" + android:textColor="?android:attr/textColorPrimary" + android:textSize="@dimen/text_size_small" /> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/cover_fragment.xml b/app/src/main/res/layout/cover_fragment.xml new file mode 100644 index 000000000..f9c88ac02 --- /dev/null +++ b/app/src/main/res/layout/cover_fragment.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/cover_fragment_root" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <ImageView + android:id="@+id/imgvCover" + android:contentDescription="@string/cover_label" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center" + android:layout_marginTop="8dp" + android:layout_marginBottom="8dp" + android:adjustViewBounds="true" + android:scaleType="centerInside" /> + +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/directory_chooser.xml b/app/src/main/res/layout/directory_chooser.xml new file mode 100644 index 000000000..738c00842 --- /dev/null +++ b/app/src/main/res/layout/directory_chooser.xml @@ -0,0 +1,85 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <LinearLayout + android:id="@+id/footer" + style="@android:style/ButtonBar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:orientation="horizontal" > + + <Button + android:id="@+id/butConfirm" + android:layout_width="0px" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/confirm_label" /> + + <Button + android:id="@+id/butCancel" + android:layout_width="0px" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/cancel_label" /> + </LinearLayout> + + <RelativeLayout + android:id="@+id/directory_info" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" > + + <ImageButton + android:id="@+id/butNavUp" + android:contentDescription="@string/navigate_upwards_label" + android:layout_width="60dp" + android:layout_height="60dp" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:background="?attr/borderless_button" + android:src="?attr/navigation_up" /> + + <TextView + android:id="@+id/txtvSelectedFolderLabel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_marginTop="8dp" + android:layout_toRightOf="@id/butNavUp" + android:text="@string/selected_folder_label" + android:textStyle="bold" > + </TextView> + + <TextView + android:id="@+id/txtvSelectedFolder" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_below="@id/txtvSelectedFolderLabel" + android:layout_margin="8dp" + android:layout_toRightOf="@id/butNavUp" + android:ellipsize="start" + android:scrollHorizontally="true" + android:singleLine="true" /> + + <View + android:id="@+id/divider" + android:layout_width="match_parent" + android:layout_height="1dp" + android:layout_below="@id/butNavUp" + android:background="@color/bright_blue" /> + </RelativeLayout> + + <ListView + android:id="@+id/directory_list" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_above="@id/footer" + android:layout_below="@id/directory_info" /> + +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/download_authentication_activity.xml b/app/src/main/res/layout/download_authentication_activity.xml new file mode 100644 index 000000000..69106c9b3 --- /dev/null +++ b/app/src/main/res/layout/download_authentication_activity.xml @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="utf-8"?> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/authentication_notification_title" + android:layout_alignParentTop="true" + android:textSize="@dimen/text_size_large" + android:layout_margin="16dp" + android:textColor="@color/bright_blue" + android:textStyle="italic"/> + + <TextView + android:id="@+id/txtvDescription" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/authentication_notification_msg" + android:layout_below="@id/txtvTitle" + android:textSize="@dimen/text_size_medium" + android:textColor="?android:attr/textColorSecondary" + android:layout_margin="16dp"/> + + <EditText + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="16dp" + android:id="@+id/etxtUsername" + android:hint="@string/username_label" + android:layout_below="@id/txtvDescription"/> + + <EditText + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="16dp" + android:id="@+id/etxtPassword" + android:hint="@string/password_label" + android:inputType="textPassword" + android:layout_below="@id/etxtUsername"/> + + <LinearLayout + android:id="@+id/footer" + style="@android:style/ButtonBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:orientation="horizontal"> + + <Button + android:id="@+id/butConfirm" + android:layout_width="0px" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/confirm_label"/> + + <Button + android:id="@+id/butCancel" + android:layout_width="0px" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/cancel_label"/> + </LinearLayout> + + +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/downloaded_episodeslist_item.xml b/app/src/main/res/layout/downloaded_episodeslist_item.xml new file mode 100644 index 000000000..97003ce65 --- /dev/null +++ b/app/src/main/res/layout/downloaded_episodeslist_item.xml @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:orientation="horizontal" + android:layout_height="match_parent"> + + <RelativeLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:layout_marginRight="8dp"> + + <ImageView + android:id="@+id/imgvImage" + android:contentDescription="@string/cover_label" + android:layout_width="@dimen/thumbnail_length_downloaded_item" + android:layout_height="@dimen/thumbnail_length_downloaded_item" + android:layout_alignParentLeft="true" + android:scaleType="centerCrop"/> + + <TextView + android:id="@+id/txtvPublished" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_alignParentTop="true" + android:layout_toRightOf="@id/imgvImage" + android:ellipsize="end" + android:maxLines="1" + android:textColor="?android:attr/textColorTertiary" + android:textSize="@dimen/text_size_micro"/> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_below="@id/txtvPublished" + android:layout_marginLeft="8dp" + android:layout_marginRight="4dp" + android:layout_marginTop="2dp" + android:layout_toRightOf="@id/imgvImage" + android:layout_centerVertical="true" + android:layout_alignParentRight="true" + android:ellipsize="end" + android:lines="2" + android:textColor="?android:attr/textColorPrimary" + android:textSize="@dimen/text_size_small"/> + + <TextView + android:id="@+id/txtvSize" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:textColor="?android:attr/textColorTertiary" + android:textSize="@dimen/text_size_micro"/> + </RelativeLayout> + + <View + android:layout_width="1dp" + android:layout_height="match_parent" + android:background="@drawable/vertical_divider" + android:layout_marginTop="8dp" + android:layout_marginBottom="8dp"/> + + <ImageButton + android:id="@+id/butSecondaryAction" + android:contentDescription="@string/remove_episode_lable" + android:focusable="false" + android:clickable="false" + android:focusableInTouchMode="false" + android:layout_width="@dimen/listview_secondary_button_width" + android:layout_height="match_parent" + android:background="?attr/borderless_button" + android:src="?attr/content_discard" + /> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/downloadlist_item.xml b/app/src/main/res/layout/downloadlist_item.xml new file mode 100644 index 000000000..49e0ea471 --- /dev/null +++ b/app/src/main/res/layout/downloadlist_item.xml @@ -0,0 +1,89 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal"> + + <LinearLayout + android:layout_width="0dp" + android:layout_weight="1" + android:layout_height="match_parent" + android:orientation="vertical"> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="8dp" + android:layout_marginTop="8dp" + android:textSize="@dimen/text_size_small" + android:lines="1" + android:ellipsize="end" + android:textColor="?android:attr/textColorPrimary"/> + + <TextView + android:id="@+id/txtvMessage" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="8dp" + android:textColor="?android:attr/textColorSecondary" + android:textSize="@dimen/text_size_micro" + android:lines="1" + android:ellipsize="end"/> + + <ProgressBar + android:id="@+id/progProgress" + style="?android:attr/progressBarStyleHorizontal" + android:layout_width="match_parent" + android:layout_height="16dp" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp"/> + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="8dp"> + + <TextView + android:id="@+id/txtvDownloaded" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_small" + android:lines="1" + android:ellipsize="end" + android:textColor="?android:attr/textColorPrimary" + android:layout_alignParentLeft="true"/> + + <TextView + android:id="@+id/txtvPercent" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_small" + android:lines="1" + android:ellipsize="end" + android:textColor="?android:attr/textColorPrimary" + android:layout_alignParentRight="true"/> + </RelativeLayout> + + </LinearLayout> + + + <View + android:layout_width="1dp" + android:layout_height="match_parent" + android:background="@drawable/vertical_divider" + android:layout_marginTop="8dp" + android:layout_marginBottom="8dp"/> + + <ImageButton + android:id="@+id/butSecondaryAction" + android:contentDescription="@string/cancel_download_label" + android:focusable="false" + android:clickable="false" + android:focusableInTouchMode="false" + android:layout_width="@dimen/listview_secondary_button_width" + android:layout_height="match_parent" + android:background="?attr/borderless_button" + android:src="?attr/navigation_cancel" + /> +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/downloadlog_item.xml b/app/src/main/res/layout/downloadlog_item.xml new file mode 100644 index 000000000..22d669097 --- /dev/null +++ b/app/src/main/res/layout/downloadlog_item.xml @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="4dp" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_marginTop="4dp" > + + <TextView + android:id="@+id/txtvType" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_marginRight="8dp" + android:textSize="@dimen/text_size_small" + android:textColor="?android:attr/textColorTertiary" /> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_toLeftOf="@id/txtvType" + android:textColor="?android:attr/textColorPrimary" + android:textSize="@dimen/text_size_medium" + android:ellipsize="end" + android:maxLines="2" /> + </RelativeLayout> + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="8dp" + > + <TextView + android:id="@+id/txtvDate" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginRight="8dp" + android:lines="1" + android:textColor="?android:attr/textColorTertiary" + android:textSize="@dimen/text_size_small" + android:layout_alignParentLeft="true"/> + + <TextView + android:id="@+id/txtvStatus" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:lines="1" + android:textSize="@dimen/text_size_small" + android:layout_alignParentRight="true"/> + + </RelativeLayout> + + <TextView + android:id="@+id/txtvReason" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textColor="?android:attr/textColorTertiary" + android:textSize="@dimen/text_size_micro" + android:layout_marginBottom="4dp" + android:layout_marginLeft="8dp" /> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/ellipsize_start_listitem.xml b/app/src/main/res/layout/ellipsize_start_listitem.xml new file mode 100644 index 000000000..161e1aa37 --- /dev/null +++ b/app/src/main/res/layout/ellipsize_start_listitem.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <TextView + android:id="@+id/txtvTitle" + android:textColor="?android:attr/textColorPrimary" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_small" + android:lines="1" + android:singleLine="true" + android:layout_margin="16dp" + android:ellipsize="start"/> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/external_itemlist_item.xml b/app/src/main/res/layout/external_itemlist_item.xml new file mode 100644 index 000000000..20c63c2cf --- /dev/null +++ b/app/src/main/res/layout/external_itemlist_item.xml @@ -0,0 +1,115 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <ImageView + android:id="@+id/imgvFeedimage" + android:contentDescription="@string/cover_label" + android:layout_width="@dimen/thumbnail_length_itemlist" + android:layout_height="@dimen/thumbnail_length_itemlist" + android:layout_alignParentLeft="true" + android:scaleType="centerCrop" /> + + <ImageButton + android:id="@+id/butAction" + android:contentDescription="@string/butAction_label" + android:layout_width="48dp" + android:layout_height="match_parent" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" + android:background="?attr/borderless_button" + android:clickable="false" + android:focusable="false" + android:focusableInTouchMode="false" + android:paddingLeft="24dp" + android:paddingRight="8dp" + android:paddingTop="16dp" + android:scaleType="fitEnd" + android:src="?attr/spinner_button" /> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_marginLeft="8dp" + android:layout_marginRight="4dp" + android:layout_marginTop="2dp" + android:layout_toLeftOf="@id/butAction" + android:layout_toRightOf="@id/imgvFeedimage" + android:ellipsize="end" + android:lines="2" + android:textColor="?android:attr/textColorPrimary" + android:textSize="@dimen/text_size_small" /> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_toLeftOf="@id/butAction" + android:layout_toRightOf="@id/imgvFeedimage" + android:orientation="vertical" > + + <TextView + android:id="@+id/txtvFeedname" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:ellipsize="end" + android:maxLines="1" + android:textColor="?android:attr/textColorSecondary" + android:textSize="@dimen/text_size_micro" /> + + <RelativeLayout + android:id="@+id/bottom_bar" + android:layout_width="match_parent" + android:layout_height="wrap_content" > + + <TextView + android:id="@+id/txtvLenSize" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:ellipsize="end" + android:maxLines="1" + android:textColor="?android:attr/textColorTertiary" + android:textSize="@dimen/text_size_micro" /> + + <ImageView + android:id="@+id/imgvDownloadStatus" + android:layout_width="@dimen/enc_icons_size" + android:layout_height="@dimen/enc_icons_size" + android:layout_alignParentRight="true" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + tools:ignore="ContentDescription"/> + + <ProgressBar + android:id="@+id/pbar_episode_progress" + style="?android:attr/progressBarStyleHorizontal" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_toLeftOf="@id/imgvDownloadStatus" + android:layout_toRightOf="@id/txtvLenSize" /> + </RelativeLayout> + </LinearLayout> + + <ImageView + android:id="@+id/statusPlaying" + android:contentDescription="@string/status_playing_label" + android:layout_width="@dimen/status_indicator_width" + android:layout_height="18dp" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:layout_margin="8dp" + android:background="@color/status_playing" + android:gravity="center" + android:padding="2dp" + android:src="@drawable/av_play_dark" /> + +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/external_player_fragment.xml b/app/src/main/res/layout/external_player_fragment.xml new file mode 100644 index 000000000..f084ccac1 --- /dev/null +++ b/app/src/main/res/layout/external_player_fragment.xml @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/fragmentLayout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical" + android:visibility="gone"> + + <View + android:layout_width="match_parent" + android:layout_height="2dp" + android:background="@color/bright_blue"/> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <RelativeLayout + android:id="@+id/layoutInfo" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="?attr/borderless_button"> + + <ImageView + android:id="@+id/imgvCover" + android:contentDescription="@string/cover_label" + android:layout_width="@dimen/external_player_height" + android:layout_height="@dimen/external_player_height" + android:layout_alignParentLeft="true" + android:padding="4dp" + android:adjustViewBounds="true" + android:cropToPadding="true" + android:scaleType="fitXY"/> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_marginTop="8dp" + android:layout_toRightOf="@id/imgvCover" + android:ellipsize="end" + android:maxLines="2" + android:textSize="18sp" + android:fontFamily="sans-serif-light"/> + </RelativeLayout> + + <ImageButton + android:id="@+id/butPlay" + android:contentDescription="@string/pause_label" + android:layout_width="@dimen/external_player_height" + android:layout_height="@dimen/external_player_height" + android:background="?attr/borderless_button"/> + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/feedinfo.xml b/app/src/main/res/layout/feedinfo.xml new file mode 100644 index 000000000..6da200951 --- /dev/null +++ b/app/src/main/res/layout/feedinfo.xml @@ -0,0 +1,204 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <RelativeLayout + android:id="@+id/header" + android:focusable="true" + android:focusableInTouchMode="true" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical"> + + <ImageView + android:id="@+id/imgvCover" + android:contentDescription="@string/cover_label" + android:layout_width="70dp" + android:layout_height="70dp" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_margin="4dp"/> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_margin="4dp" + android:layout_toRightOf="@id/imgvCover" + style="@style/AntennaPod.TextView.Heading"/> + + <View + android:id="@+id/divider" + android:layout_width="match_parent" + android:layout_height="1dp" + android:layout_below="@id/imgvCover" + android:background="@color/bright_blue"/> + </RelativeLayout> + + <ScrollView + android:id="@+id/scrollView" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginBottom="16dp"> + + <View + android:id="@+id/center_divider" + android:layout_width="0dp" + android:layout_height="0dp" + android:layout_centerHorizontal="true"/> + + <TextView + android:id="@+id/lblAuthor" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_margin="8dp" + android:text="@string/author_label" + android:textColor="?android:attr/textColorPrimary"/> + + <TextView + android:id="@+id/txtvAuthor" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_margin="8dp" + android:layout_toRightOf="@id/center_divider"/> + + <TextView + android:id="@+id/lblLanguage" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_below="@id/txtvAuthor" + android:layout_margin="8dp" + android:text="@string/language_label" + android:textColor="?android:attr/textColorPrimary"/> + + <TextView + android:id="@+id/txtvLanguage" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_below="@id/txtvAuthor" + android:layout_margin="8dp" + android:layout_toRightOf="@id/center_divider"/> + </RelativeLayout> + + <TextView + android:id="@+id/txtvSettings" + style="@style/AntennaPod.TextView.Heading" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="8dp" + android:text="@string/podcast_settings_label" + android:layout_marginLeft="8dp" + android:layout_marginBottom="8dp" + android:layout_marginTop="24dp"/> + + <CheckBox + android:id="@+id/cbxAutoDownload" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="8dp" + android:text="@string/auto_download_label" + android:enabled="false" + android:textColor="?android:attr/textColorPrimary"/> + + <TextView + android:id="@+id/txtvAuthentication" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="8dp" + android:text="@string/authentication_label" + android:textSize="@dimen/text_size_medium" + android:textColor="?android:attr/textColorPrimary" + android:layout_marginLeft="8dp" + android:layout_marginBottom="8dp" + android:layout_marginTop="24dp"/> + + <TextView + android:id="@+id/txtvAuthenticationDescr" + android:text="@string/authentication_descr" + android:textSize="@dimen/text_size_small" + android:textColor="?android:attr/textColorPrimary" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="8dp"/> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="8dp"> + + <TextView + android:id="@+id/txtvUsername" + android:layout_width="0dp" + android:layout_weight="1" + android:layout_height="wrap_content" + android:layout_margin="8dp" + android:text="@string/username_label" + android:textColor="?android:attr/textColorPrimary"/> + + <EditText + android:id="@+id/etxtUsername" + android:layout_width="0dp" + android:layout_weight="2" + android:layout_height="wrap_content" + android:hint="@string/username_label"/> + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="8dp"> + + <TextView + android:id="@+id/txtvPassword" + android:layout_width="0dp" + android:layout_weight="1" + android:layout_height="wrap_content" + android:layout_margin="8dp" + android:text="@string/password_label" + android:textColor="?android:attr/textColorPrimary"/> + + <EditText + android:id="@+id/etxtPassword" + android:layout_width="0dp" + android:layout_weight="2" + android:layout_height="wrap_content" + android:hint="@string/password_label" + android:inputType="textPassword"/> + </LinearLayout> + + <TextView + style="@style/AntennaPod.TextView.Heading" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="8dp" + android:layout_marginBottom="8dp" + android:layout_marginTop="24dp" + android:text="@string/description_label"/> + + <TextView + android:id="@+id/txtvDescription" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="8dp"/> + + </LinearLayout> + </ScrollView> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/feeditem_dialog.xml b/app/src/main/res/layout/feeditem_dialog.xml new file mode 100644 index 000000000..e4a37d685 --- /dev/null +++ b/app/src/main/res/layout/feeditem_dialog.xml @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="utf-8"?> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="16dp" + android:id="@+id/txtvTitle" + android:layout_alignParentTop="true" + style="@style/AntennaPod.Dialog.Title" + android:maxLines="5" + android:ellipsize="none"/> + + <View + android:id="@+id/title_divider" + android:layout_width="match_parent" + android:layout_height="2dp" + android:layout_below="@id/txtvTitle" + android:background="@color/bright_blue"/> + + <LinearLayout + android:id="@+id/header" + android:orientation="horizontal" + android:layout_below="@id/title_divider" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <ImageButton + android:layout_width="0dp" + android:layout_height="48dp" + android:layout_weight="1" + android:id="@+id/butAction1" + android:background="?attr/borderless_button" + tools:ignore="ContentDescription"/> + + <ImageButton + android:layout_width="0dp" + android:layout_height="48dp" + android:layout_weight="1" + android:id="@+id/butAction2" + android:background="?attr/borderless_button" + tools:ignore="ContentDescription"/> + + <ImageButton + android:layout_width="0dp" + android:layout_height="48dp" + android:layout_weight="1" + android:id="@+id/butMoreActions" + android:background="?attr/borderless_button" + android:src="?attr/ic_action_overflow" + android:contentDescription="@string/butAction_label"/> + </LinearLayout> + + <View + android:id="@+id/divider" + android:layout_width="match_parent" + android:layout_height="2dp" + android:layout_below="@id/header" + android:background="@color/bright_blue"/> + + <WebView + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_below="@id/divider" + android:layout_alignParentBottom="true" + android:id="@+id/webview"/> + +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/feeditemlist_header.xml b/app/src/main/res/layout/feeditemlist_header.xml new file mode 100644 index 000000000..83c189bb5 --- /dev/null +++ b/app/src/main/res/layout/feeditemlist_header.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="utf-8"?> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context="de.danoeh.antennapod.activity.MainActivity"> + + <ImageView + android:id="@+id/imgvCover" + android:contentDescription="@string/cover_label" + android:layout_width="@dimen/thumbnail_length_onlinefeedview" + android:layout_height="@dimen/thumbnail_length_onlinefeedview" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_margin="4dp"/> + + <ImageButton + android:layout_width="48dp" + android:layout_height="48dp" + android:id="@+id/butShowInfo" + android:contentDescription="@string/show_info_label" + android:src="?attr/action_about" + android:layout_alignParentRight="true" + android:layout_alignParentBottom="true" + android:background="?attr/borderless_button"/> + + <ImageButton + android:layout_width="48dp" + android:layout_height="48dp" + android:layout_marginRight="8dp" + android:id="@+id/butVisitWebsite" + android:contentDescription="@string/visit_website_label" + android:src="?attr/location_web_site" + android:layout_toLeftOf="@id/butShowInfo" + android:layout_alignParentBottom="true" + android:background="?attr/borderless_button"/> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:ellipsize="end" + android:gravity="center_vertical" + android:layout_alignTop="@id/imgvCover" + android:layout_toRightOf="@id/imgvCover" + android:layout_alignParentRight="true" + android:lines="1" + style="@style/AntennaPod.TextView.Heading" + android:layout_margin="4dp"/> + + <TextView + android:id="@+id/txtvAuthor" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_margin="4dp" + android:layout_below="@id/txtvTitle" + android:layout_toRightOf="@id/imgvCover" + android:layout_toLeftOf="@id/butShowInfo" + android:lines="1" + android:ellipsize="end" + android:textColor="?android:attr/textColorSecondary" + android:textSize="@dimen/text_size_small"/> + +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/feeditemlist_item.xml b/app/src/main/res/layout/feeditemlist_item.xml new file mode 100644 index 000000000..f3701de2c --- /dev/null +++ b/app/src/main/res/layout/feeditemlist_item.xml @@ -0,0 +1,101 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:orientation="horizontal" + android:layout_height="match_parent"> + + <RelativeLayout + android:layout_margin="8dp" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:paddingLeft="4dp"> + + <TextView + android:id="@+id/txtvPublished" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:textColor="?android:attr/textColorTertiary" + android:textSize="@dimen/text_size_micro"/> + + <TextView + android:id="@+id/txtvItemname" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_below="@id/txtvPublished" + android:layout_marginBottom="8dp" + style="@style/AntennaPod.TextView.ListItemPrimaryTitle"/> + + + <ImageView + android:id="@+id/imgvInPlaylist" + android:contentDescription="@string/in_queue_label" + android:layout_width="@dimen/enc_icons_size" + android:layout_height="@dimen/enc_icons_size" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" + android:padding="2dp" + android:src="?attr/stat_playlist" + android:visibility="visible"/> + + <ImageView + android:id="@+id/imgvType" + android:layout_width="@dimen/enc_icons_size" + android:layout_height="@dimen/enc_icons_size" + android:layout_alignParentBottom="true" + android:layout_toLeftOf="@+id/imgvInPlaylist" + android:padding="2dp" + tools:ignore="ContentDescription"/> + + <TextView + android:id="@+id/txtvLenSize" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_below="@id/txtvItemname" + android:maxLines="2" + android:textColor="?android:attr/textColorTertiary" + android:textSize="@dimen/text_size_micro"/> + + <ProgressBar + android:id="@+id/pbar_episode_progress" + style="?android:attr/progressBarStyleHorizontal" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_below="@id/txtvItemname" + android:layout_marginLeft="4dp" + android:layout_marginRight="4dp" + android:layout_marginTop="2dp" + android:layout_toLeftOf="@id/imgvType" + android:layout_toRightOf="@id/txtvLenSize"/> + + <TextView + android:id="@+id/statusUnread" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + style="@style/AntennaPod.TextView.UnreadIndicator" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true"/> + </RelativeLayout> + + <View + android:layout_width="1dp" + android:layout_height="match_parent" + android:background="@drawable/vertical_divider" + android:layout_marginTop="8dp" + android:layout_marginBottom="8dp"/> + + <ImageButton + android:id="@+id/butSecondaryAction" + android:focusable="false" + android:clickable="false" + android:focusableInTouchMode="false" + android:layout_width="@dimen/listview_secondary_button_width" + android:layout_height="match_parent" + android:background="?attr/borderless_button" + tools:ignore="ContentDescription"/> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/flattr_auth.xml b/app/src/main/res/layout/flattr_auth.xml new file mode 100644 index 000000000..9244b786d --- /dev/null +++ b/app/src/main/res/layout/flattr_auth.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <TextView + android:id="@+id/txtvExplanation" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="8dp" + android:text="@string/flattr_auth_explanation" /> + + <Button + android:id="@+id/but_authenticate" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:layout_margin="8dp" + android:text="@string/authenticate_label" /> + + <Button + android:id="@+id/but_return_home" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:text="@string/return_home_label" + android:visibility="gone" /> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/gpodnet_podcast_list.xml b/app/src/main/res/layout/gpodnet_podcast_list.xml new file mode 100644 index 000000000..0112754ee --- /dev/null +++ b/app/src/main/res/layout/gpodnet_podcast_list.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="utf-8"?> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <GridView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/gridView" + android:stretchMode="columnWidth" + android:numColumns="auto_fit" + android:verticalSpacing="8dp" + android:horizontalSpacing="8dp" + android:gravity="center" + android:columnWidth="200dp" + tools:listitem="@layout/gpodnet_podcast_listitem"/> + + <ProgressBar + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/progressBar" + android:layout_centerInParent="true" + android:indeterminateOnly="true"/> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/txtvError" + android:layout_centerInParent="true" + android:visibility="gone" + android:textAlignment="center" + android:layout_margin="16dp" + android:textSize="@dimen/text_size_small"/> + <Button + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/butRetry" + android:text="@string/retry_label" + android:layout_margin="16dp" + android:visibility="gone" + android:layout_centerHorizontal="true" + android:layout_below="@id/txtvError"/> +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/gpodnet_podcast_listitem.xml b/app/src/main/res/layout/gpodnet_podcast_listitem.xml new file mode 100644 index 000000000..1f6cdd1d0 --- /dev/null +++ b/app/src/main/res/layout/gpodnet_podcast_listitem.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="utf-8"?> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <ImageView + android:id="@+id/imgvCover" + android:contentDescription="@string/cover_label" + android:layout_width="@dimen/thumbnail_length_itemlist" + android:layout_height="@dimen/thumbnail_length_itemlist" + android:layout_alignParentLeft="true" + android:layout_centerVertical="true" + android:layout_marginRight="4dip" + android:adjustViewBounds="true" + android:cropToPadding="true" + android:scaleType="fitXY" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="@dimen/thumbnail_length_itemlist" + android:layout_centerVertical="true" + android:layout_toRightOf="@id/imgvCover" + android:layout_marginRight="8dp" + android:orientation="vertical" > + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:ellipsize="end" + android:maxLines="1" + android:textColor="?android:attr/textColorPrimary" + android:textSize="@dimen/text_size_small" /> + + <TextView + android:id="@+id/txtvDescription" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:maxLines="2" + android:ellipsize="end" + android:textColor="?android:attr/textColorTertiary" + android:textSize="@dimen/text_size_micro" /> + + </LinearLayout> +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/gpodnetauth_activity.xml b/app/src/main/res/layout/gpodnetauth_activity.xml new file mode 100644 index 000000000..c096c20cf --- /dev/null +++ b/app/src/main/res/layout/gpodnetauth_activity.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> + +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> +<ViewFlipper + android:id="@+id/viewflipper" + android:layout_width="match_parent" + android:layout_height="wrap_content"/> +</ScrollView>
\ No newline at end of file diff --git a/app/src/main/res/layout/gpodnetauth_credentials.xml b/app/src/main/res/layout/gpodnetauth_credentials.xml new file mode 100644 index 000000000..3e3c4e54f --- /dev/null +++ b/app/src/main/res/layout/gpodnetauth_credentials.xml @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="utf-8"?> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <TextView + android:id="@id/txtvTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/gpodnetauth_login_title" + android:layout_alignParentTop="true" + android:layout_margin="16dp" + style="@style/AntennaPod.TextView.Heading"/> + + <TextView + android:id="@id/txtvDescription" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/gpodnetauth_login_descr" + android:layout_below="@id/txtvTitle" + android:textSize="@dimen/text_size_medium" + android:textColor="?android:attr/textColorSecondary" + android:layout_margin="16dp"/> + + <EditText + android:id="@+id/etxtUsername" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="@string/username_label" + android:layout_below="@id/txtvDescription" + android:layout_margin="8dp"/> + + <EditText + android:id="@+id/etxtPassword" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="@string/password_label" + android:layout_below="@id/etxtUsername" + android:inputType="textPassword" + android:layout_margin="8dp"/> + + <Button + android:id="@+id/butLogin" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/etxtPassword" + android:layout_alignParentRight="true" + android:text="@string/gpodnetauth_login_butLabel" + android:layout_margin="8dp"/> + + <TextView + android:id="@+id/txtvError" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_below="@id/etxtPassword" + android:layout_alignParentLeft="true" + android:layout_toLeftOf="@id/butLogin" + android:textColor="@color/download_failed_red" + android:textSize="@dimen/text_size_small" + android:maxLines="2" + android:ellipsize="end" + android:gravity="center" + android:layout_margin="16dp"/> + + <ProgressBar + android:id="@+id/progBarLogin" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:visibility="gone" + android:layout_alignTop="@+id/butLogin" + android:layout_toLeftOf="@+id/butLogin"/> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="@dimen/text_size_medium" + android:textColor="?android:attr/textColorSecondary" + android:layout_margin="16dp" + android:text="@string/gpodnetauth_login_register" + android:autoLink="web" + android:layout_below="@id/butLogin"/> +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/gpodnetauth_device.xml b/app/src/main/res/layout/gpodnetauth_device.xml new file mode 100644 index 000000000..33d3d2718 --- /dev/null +++ b/app/src/main/res/layout/gpodnetauth_device.xml @@ -0,0 +1,114 @@ +<?xml version="1.0" encoding="utf-8"?> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/gpodnetauth_device_title" + android:layout_alignParentTop="true" + android:layout_margin="16dp" + style="@style/AntennaPod.TextView.Heading"/> + + <TextView + android:id="@+id/txtvDescription" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/gpodnetauth_device_descr" + android:layout_below="@id/txtvTitle" + android:textSize="@dimen/text_size_medium" + android:textColor="?android:attr/textColorSecondary" + android:layout_margin="16dp"/> + + <EditText + android:id="@+id/etxtCaption" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:hint="@string/gpodnetauth_device_caption" + android:layout_below="@id/txtvDescription" + android:layout_margin="8dp"/> + + <TextView + android:id="@+id/txtvDeviceID" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/gpodnetauth_device_deviceID" + android:textSize="@dimen/text_size_medium" + android:textColor="?android:attr/textColorSecondary" + android:layout_margin="8dp" + android:layout_alignTop="@+id/etxtDeviceID" + android:layout_alignLeft="@+id/etxtCaption"/> + + <EditText + android:id="@+id/etxtDeviceID" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_below="@id/etxtCaption" + android:layout_toRightOf="@id/txtvDeviceID" + android:layout_alignParentRight="true" + android:layout_margin="8dp"/> + + <Button + android:id="@+id/butCreateNewDevice" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="8dp" + android:layout_alignParentRight="true" + android:layout_below="@id/etxtDeviceID" + android:text="@string/gpodnetauth_device_butCreateNewDevice"/> + + <TextView + android:id="@+id/txtvError" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_below="@id/etxtDeviceID" + android:layout_toLeftOf="@id/butCreateNewDevice" + android:textColor="@color/download_failed_red" + android:layout_margin="16dp" + android:textSize="@dimen/text_size_small" + /> + + <ProgressBar + android:id="@+id/progbarCreateDevice" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignTop="@id/butCreateNewDevice" + android:layout_toLeftOf="@id/butCreateNewDevice" + android:textColor="@color/download_failed_red" + android:textSize="@dimen/text_size_medium" + android:visibility="gone" + /> + + <TextView + android:id="@+id/txtvChooseExistingDevice" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/gpodnetauth_device_chooseExistingDevice" + android:layout_below="@id/butCreateNewDevice" + android:textSize="@dimen/text_size_medium" + android:textColor="?android:attr/textColorSecondary" + android:layout_margin="16dp"/> + + <Button + android:id="@+id/butChooseExistingDevice" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:text="@string/gpodnetauth_device_butChoose" + android:layout_below="@+id/spinnerChooseDevice" + android:layout_alignLeft="@+id/butCreateNewDevice" + android:layout_alignRight="@+id/butCreateNewDevice"/> + + <Spinner + android:id="@+id/spinnerChooseDevice" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_below="@id/txtvChooseExistingDevice" + android:layout_alignParentLeft="true" + android:layout_margin="8dp" + android:layout_alignParentRight="true"/> + +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/gpodnetauth_finish.xml b/app/src/main/res/layout/gpodnetauth_finish.xml new file mode 100644 index 000000000..71873201a --- /dev/null +++ b/app/src/main/res/layout/gpodnetauth_finish.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="utf-8"?> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/gpodnetauth_finish_title" + android:layout_alignParentTop="true" + android:layout_margin="16dp" + style="@style/AntennaPod.TextView.Heading"/> + + <TextView + android:id="@+id/txtvDescription" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/gpodnetauth_finish_descr" + android:layout_below="@id/txtvTitle" + android:textSize="@dimen/text_size_medium" + android:textColor="?android:attr/textColorSecondary" + android:layout_margin="16dp"/> + + <Button + android:id="@+id/butSyncNow" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/txtvDescription" + android:layout_margin="16dp" + android:text="@string/gpodnetauth_finish_butsyncnow"/> + + <Button + android:id="@+id/butGoMainscreen" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/butSyncNow" + android:layout_margin="16dp" + android:text="@string/gpodnetauth_finish_butgomainscreen"/> + +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/itemdescription_listitem.xml b/app/src/main/res/layout/itemdescription_listitem.xml new file mode 100644 index 000000000..d6a3f6a16 --- /dev/null +++ b/app/src/main/res/layout/itemdescription_listitem.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <TextView + android:id="@+id/txtvTitle" + android:layout_margin="8dp" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:lines="1" + android:ellipsize="end" + android:textColor="?android:attr/textColorPrimary" + android:textSize="@dimen/text_size_small"/> + + <TextView + android:id="@+id/txtvDescription" + android:layout_margin="8dp" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:lines="3" + android:ellipsize="end" + android:textColor="?android:attr/textColorTertiary" + android:textSize="@dimen/text_size_micro"/> +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/listview_activity.xml b/app/src/main/res/layout/listview_activity.xml new file mode 100644 index 000000000..b276f506c --- /dev/null +++ b/app/src/main/res/layout/listview_activity.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <ListView + android:id="@+id/listview" + android:layout_width="match_parent" + android:layout_height="match_parent"/> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/main.xml b/app/src/main/res/layout/main.xml new file mode 100644 index 000000000..cfd59b87c --- /dev/null +++ b/app/src/main/res/layout/main.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="utf-8"?> +<android.support.v4.widget.DrawerLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/drawer_layout" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/content" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + + <FrameLayout + android:id="@+id/playerFragment" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true"/> + + <FrameLayout + android:id="@+id/main_view" + android:layout_width="match_parent" + android:layout_height="0px" + android:layout_alignParentTop="true" + android:layout_above="@id/playerFragment"/> + + </RelativeLayout> + + <ListView + android:id="@+id/nav_list" + android:layout_width="@dimen/drawer_width" + android:layout_height="match_parent" + android:layout_gravity="start" + android:choiceMode="singleChoice" + android:background="?attr/nav_drawer_background" + android:scrollbarStyle="outsideOverlay" + android:paddingLeft="8dp" + android:paddingRight="8dp"/> + +</android.support.v4.widget.DrawerLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/nav_feedlistitem.xml b/app/src/main/res/layout/nav_feedlistitem.xml new file mode 100644 index 000000000..d94c9ada1 --- /dev/null +++ b/app/src/main/res/layout/nav_feedlistitem.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + + <ImageView + android:id="@+id/imgvCover" + android:contentDescription="@string/cover_label" + android:layout_width="@dimen/thumbnail_length_navlist" + android:layout_height="@dimen/thumbnail_length_navlist" + android:layout_alignParentLeft="true" + android:layout_centerVertical="true" + android:adjustViewBounds="true" + android:cropToPadding="true" + android:scaleType="fitXY" + android:layout_marginTop="6dp" + android:layout_marginBottom="6dp"/> + + + <TextView + android:id="@+id/txtvTitle" + android:lines="1" + android:ellipsize="end" + android:singleLine="true" + android:layout_centerVertical="true" + android:textColor="?android:attr/textColorPrimary" + android:textSize="@dimen/text_size_navdrawer" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="12dp" + android:layout_marginTop="14dp" + android:layout_marginBottom="14dp" + android:layout_marginRight="48dp" + android:layout_toRightOf="@id/imgvCover" + /> +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/nav_listitem.xml b/app/src/main/res/layout/nav_listitem.xml new file mode 100644 index 000000000..9d70e7d7c --- /dev/null +++ b/app/src/main/res/layout/nav_listitem.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="utf-8"?> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <ImageView + android:id="@+id/imgvCover" + android:contentDescription="@string/cover_label" + android:layout_width="@dimen/thumbnail_length_navlist" + android:layout_height="@dimen/thumbnail_length_navlist" + android:layout_alignParentLeft="true" + android:layout_centerVertical="true" + android:adjustViewBounds="true" + android:cropToPadding="true" + android:scaleType="centerCrop" + android:padding="8dp" + android:layout_marginTop="6dp" + android:layout_marginBottom="6dp"/> + + + <TextView + android:id="@+id/txtvTitle" + android:lines="1" + android:ellipsize="end" + android:singleLine="true" + android:layout_centerVertical="true" + android:textColor="?android:attr/textColorPrimary" + android:textSize="@dimen/text_size_navdrawer" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="12dp" + android:layout_marginTop="14dp" + android:layout_marginBottom="14dp" + android:layout_marginRight="48dp" + android:layout_toRightOf="@id/imgvCover" + /> + + <TextView + android:id="@+id/txtvCount" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:lines="1" + android:textColor="?android:attr/textColorTertiary" + android:textSize="@dimen/text_size_navdrawer" + android:layout_marginLeft="12dp" + android:layout_marginTop="14dp" + android:layout_marginBottom="14dp" + android:layout_marginRight="16dp" + android:layout_alignParentRight="true" + android:layout_centerVertical="true"/> +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/nav_section_item.xml b/app/src/main/res/layout/nav_section_item.xml new file mode 100644 index 000000000..1f2fc7e3e --- /dev/null +++ b/app/src/main/res/layout/nav_section_item.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@android:color/transparent"> + + <TextView + android:id="@+id/txtvTitle" + android:textColor="?android:attr/textColorTertiary" + android:textSize="@dimen/text_size_small" + android:typeface="sans" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_alignParentLeft="true" + android:layout_alignParentBottom="true" + android:layout_marginTop="16dp" + android:paddingBottom="4dp"/> + + <View + android:layout_width="match_parent" + android:layout_height="2dp" + android:layout_alignParentBottom="true" + android:background="@color/gray"/> +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/new_episodes_fragment.xml b/app/src/main/res/layout/new_episodes_fragment.xml new file mode 100644 index 000000000..63c712f57 --- /dev/null +++ b/app/src/main/res/layout/new_episodes_fragment.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:dslv="http://schemas.android.com/apk/res-auto" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <com.mobeta.android.dslv.DragSortListView + android:id="@android:id/list" + android:scrollbarStyle="outsideOverlay" + android:layout_width="match_parent" + android:layout_height="match_parent" + dslv:collapsed_height="2dp" + dslv:drag_enabled="false" + dslv:drag_scroll_start="0.33" + dslv:float_alpha="0.6" + dslv:max_drag_scroll_speed="0.5" + dslv:remove_enabled="true" + dslv:remove_mode="flingRemove" + dslv:slide_shuffle_speed="0.3" + dslv:sort_enabled="false" + dslv:track_drag_sort="false" + dslv:float_background_color="?attr/dragview_float_background" + dslv:use_default_controller="true"/> + + <TextView + android:id="@id/android:empty" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center" + android:gravity="center" + android:text="@string/no_items_label"/> + + <ProgressBar + android:id="@+id/progLoading" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:indeterminateOnly="true" + android:visibility="gone"/> + +</FrameLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/new_episodes_listitem.xml b/app/src/main/res/layout/new_episodes_listitem.xml new file mode 100644 index 000000000..dcef1f8fc --- /dev/null +++ b/app/src/main/res/layout/new_episodes_listitem.xml @@ -0,0 +1,111 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:orientation="horizontal" + android:layout_height="match_parent"> + + <ImageView + android:id="@+id/imgvImage" + android:contentDescription="@string/cover_label" + android:layout_width="@dimen/thumbnail_length_itemlist" + android:layout_height="@dimen/thumbnail_length_itemlist" + android:scaleType="centerCrop"/> + + <RelativeLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:layout_margin="4dp"> + + <TextView + android:id="@+id/txtvPublished" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_alignParentLeft="true" + android:layout_alignParentRight="true" + android:ellipsize="end" + android:maxLines="1" + android:textColor="?android:attr/textColorTertiary" + android:textSize="@dimen/text_size_micro"/> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_below="@id/txtvPublished" + android:layout_alignParentLeft="true" + android:layout_alignParentRight="true" + style="@style/AntennaPod.TextView.ListItemPrimaryTitle"/> + + <TextView + android:id="@+id/statusUnread" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + style="@style/AntennaPod.TextView.UnreadIndicator"/> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" + android:layout_alignParentLeft="true" + android:orientation="vertical"> + + <RelativeLayout + android:id="@+id/bottom_bar" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <ImageView + android:id="@id/imgvInPlaylist" + android:contentDescription="@string/in_queue_label" + android:layout_width="@dimen/enc_icons_size" + android:layout_height="@dimen/enc_icons_size" + android:layout_alignParentRight="true" + android:src="?attr/stat_playlist"/> + + <ProgressBar + android:id="@+id/pbar_download_progress" + style="?android:attr/progressBarStyleHorizontal" + android:max="100" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_toLeftOf="@id/imgvInPlaylist" + android:layout_marginRight="8dp" + android:layout_alignParentLeft="true"/> + + <TextView + android:id="@+id/txtvDuration" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_toLeftOf="@id/imgvInPlaylist" + android:layout_alignParentLeft="true" + android:textColor="?android:attr/textColorTertiary" + android:textSize="@dimen/text_size_micro"/> + </RelativeLayout> + </LinearLayout> + </RelativeLayout> + + <View + android:layout_width="1dp" + android:layout_height="match_parent" + android:background="@drawable/vertical_divider" + android:layout_marginTop="8dp" + android:layout_marginBottom="8dp"/> + + <ImageButton + android:id="@+id/butSecondaryAction" + android:focusable="false" + android:clickable="false" + android:focusableInTouchMode="false" + android:layout_width="@dimen/listview_secondary_button_width" + android:layout_height="match_parent" + android:background="?attr/borderless_button" + tools:ignore="ContentDescription"/> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/onlinefeedview_header.xml b/app/src/main/res/layout/onlinefeedview_header.xml new file mode 100644 index 000000000..11ae1f644 --- /dev/null +++ b/app/src/main/res/layout/onlinefeedview_header.xml @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="utf-8"?> + +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <ImageView + android:id="@+id/imgvCover" + android:contentDescription="@string/cover_label" + android:layout_width="@dimen/thumbnail_length_onlinefeedview" + android:layout_height="@dimen/thumbnail_length_onlinefeedview" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:layout_margin="4dp"/> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:ellipsize="end" + android:gravity="center_vertical" + android:layout_alignTop="@id/imgvCover" + android:layout_toRightOf="@id/imgvCover" + android:layout_alignParentRight="true" + android:lines="1" + style="@style/AntennaPod.TextView.Heading" + android:layout_margin="4dp"/> + + <TextView + android:id="@+id/txtvAuthor" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="4dp" + android:layout_below="@id/txtvTitle" + android:layout_toRightOf="@id/imgvCover" + android:lines="1" + android:ellipsize="end" + android:textColor="?android:attr/textColorSecondary" + android:textSize="@dimen/text_size_small"/> + + <Button + android:id="@+id/butSubscribe" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="4dp" + android:text="@string/subscribe_label" + android:layout_below="@id/txtvAuthor" + android:layout_alignParentRight="true" + android:focusable="false" + /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/butSubscribe" + android:orientation="vertical"> + + + <Spinner + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/spinnerAlternateUrls" + android:layout_margin="4dp" + android:textSize="@dimen/text_size_micro" + android:textColor="?android:attr/textColorPrimary"/> + + + <TextView + android:id="@+id/txtvDescription" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:maxLines="3" + android:ellipsize="end" + android:textColor="?android:attr/textColorTertiary" + android:textSize="@dimen/text_size_micro" + android:paddingTop="16dp" + android:paddingBottom="16dp" + android:paddingLeft="8dp" + android:paddingRight="8dp" + android:layout_margin="4dp"/> + + </LinearLayout> +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/opml_import.xml b/app/src/main/res/layout/opml_import.xml new file mode 100644 index 000000000..919e30551 --- /dev/null +++ b/app/src/main/res/layout/opml_import.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="8dp" + android:text="@string/opml_import_explanation" /> + + <TextView + android:id="@+id/txtvPath" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="8dp" /> + + <Button + android:id="@+id/butStartImport" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:layout_margin="8dp" + android:text="@string/start_import_label" /> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/opml_selection.xml b/app/src/main/res/layout/opml_selection.xml new file mode 100644 index 000000000..d08ebd0bd --- /dev/null +++ b/app/src/main/res/layout/opml_selection.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <LinearLayout + android:id="@+id/footer" + style="@android:style/ButtonBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:orientation="horizontal" > + + <Button + android:id="@+id/butConfirm" + android:layout_width="0px" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/confirm_label" /> + + <Button + android:id="@+id/butCancel" + android:layout_width="0px" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/cancel_label" /> + </LinearLayout> + + <ListView + android:id="@+id/feedlist" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_above="@id/footer" + android:layout_alignParentTop="true" + tools:listitem="@android:layout/simple_list_item_multiple_choice" > + </ListView> + +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/pager_fragment.xml b/app/src/main/res/layout/pager_fragment.xml new file mode 100644 index 000000000..cb7ae0151 --- /dev/null +++ b/app/src/main/res/layout/pager_fragment.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <android.support.v4.view.ViewPager + android:id="@+id/pager" + android:layout_width="match_parent" + android:layout_height="match_parent"/> +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/player_widget.xml b/app/src/main/res/layout/player_widget.xml new file mode 100644 index 000000000..b6946f7a8 --- /dev/null +++ b/app/src/main/res/layout/player_widget.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="utf-8"?> +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:padding="@dimen/widget_margin" > + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="#262C31" > + + <ImageButton + android:id="@+id/butPlay" + android:contentDescription="@string/play_label" + android:layout_width="56dp" + android:layout_height="match_parent" + android:layout_alignParentRight="true" + android:layout_margin="12dp" + android:background="@drawable/borderless_button_dark" + android:src="@drawable/av_play_dark" /> + + <LinearLayout + android:id="@+id/layout_left" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_alignParentLeft="true" + android:layout_toLeftOf="@id/butPlay" + android:background="@drawable/borderless_button_dark" + android:gravity="center_vertical" + android:orientation="vertical" > + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="8dp" + android:maxLines="1" + android:text="@string/no_media_playing_label" + android:textColor="@color/white" + android:textSize="@dimen/text_size_medium" + android:textStyle="bold" /> + + <TextView + android:id="@+id/txtvProgress" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="8dp" + android:textColor="?android:attr/textColorSecondary" /> + </LinearLayout> + </RelativeLayout> + +</FrameLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/queue_fragment.xml b/app/src/main/res/layout/queue_fragment.xml new file mode 100644 index 000000000..742411761 --- /dev/null +++ b/app/src/main/res/layout/queue_fragment.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="utf-8"?> + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:dslv="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <com.mobeta.android.dslv.DragSortListView + android:id="@android:id/list" + android:scrollbarStyle="outsideOverlay" + android:layout_width="match_parent" + android:layout_height="match_parent" + dslv:collapsed_height="2dp" + dslv:drag_enabled="true" + dslv:drag_handle_id="@id/drag_handle" + dslv:drag_scroll_start="0.33" + dslv:float_alpha="0.6" + dslv:max_drag_scroll_speed="0.5" + dslv:remove_enabled="false" + dslv:slide_shuffle_speed="0.3" + dslv:sort_enabled="true" + dslv:track_drag_sort="true" + dslv:float_background_color="?attr/dragview_float_background" + dslv:use_default_controller="true"/> + + <TextView + android:id="@id/android:empty" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center" + android:gravity="center" + android:text="@string/no_items_label"/> + + <ProgressBar + android:id="@+id/progLoading" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:indeterminateOnly="true" + android:visibility="gone"/> + +</FrameLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/queue_listitem.xml b/app/src/main/res/layout/queue_listitem.xml new file mode 100644 index 000000000..4a55cd466 --- /dev/null +++ b/app/src/main/res/layout/queue_listitem.xml @@ -0,0 +1,96 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:orientation="horizontal" + android:layout_height="match_parent"> + + <ImageView + android:layout_width="24dp" + android:layout_height="match_parent" + android:id="@+id/drag_handle" + android:src="?attr/dragview_background" + android:scaleType="center" + android:layout_margin="8dp" + android:contentDescription="@string/drag_handle_content_description"/> + + <ImageView + android:id="@+id/imgvImage" + android:contentDescription="@string/cover_label" + android:layout_width="@dimen/thumbnail_length_queue_item" + android:layout_height="@dimen/thumbnail_length_queue_item" + android:scaleType="centerCrop"/> + + <RelativeLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:layout_margin="8dp"> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginBottom="4dp" + android:layout_alignParentTop="true" + android:layout_alignParentRight="true" + android:layout_alignParentLeft="true" + android:ellipsize="end" + android:lines="2" + android:textColor="?android:attr/textColorPrimary" + android:textSize="@dimen/queue_title_text_size"/> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignParentRight="true" + android:layout_alignParentLeft="true" + android:orientation="vertical"> + + <RelativeLayout + android:id="@+id/bottom_bar" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <TextView + android:id="@+id/txtvPosition" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:textColor="?android:attr/textColorTertiary" + android:textSize="@dimen/text_size_micro"/> + + <ProgressBar + android:id="@+id/pbar_download_progress" + style="?android:attr/progressBarStyleHorizontal" + android:max="100" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_marginLeft="8dp" + android:layout_toRightOf="@id/txtvPosition"/> + + </RelativeLayout> + </LinearLayout> + </RelativeLayout> + + <View + android:layout_width="1dp" + android:layout_height="match_parent" + android:background="@drawable/vertical_divider" + android:layout_marginTop="8dp" + android:layout_marginBottom="8dp"/> + + <ImageButton + android:id="@+id/butSecondaryAction" + android:focusable="false" + android:clickable="false" + android:focusableInTouchMode="false" + android:layout_width="@dimen/listview_secondary_button_width" + android:layout_height="match_parent" + android:background="?attr/borderless_button" + tools:ignore="ContentDescription"/> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/searchlist_item.xml b/app/src/main/res/layout/searchlist_item.xml new file mode 100644 index 000000000..b057a966d --- /dev/null +++ b/app/src/main/res/layout/searchlist_item.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <ImageView + android:id="@+id/imgvFeedimage" + android:contentDescription="@string/cover_label" + android:layout_width="@dimen/thumbnail_length_itemlist" + android:layout_height="@dimen/thumbnail_length_itemlist" + android:layout_alignParentLeft="true" + android:layout_centerVertical="true" + android:scaleType="centerCrop"/> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_centerVertical="true" + android:layout_toRightOf="@id/imgvFeedimage" + android:orientation="vertical"> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="4dp" + android:lines="2" + android:ellipsize="end" + android:textColor="?android:attr/textColorPrimary" + android:textSize="@dimen/text_size_small"/> + + <TextView + android:id="@+id/txtvSubtitle" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="4dp" + android:lines="1" + android:ellipsize="end" + android:textColor="?android:attr/textColorTertiary" + android:textSize="@dimen/text_size_small"/> + </LinearLayout> + +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/simplechapter_item.xml b/app/src/main/res/layout/simplechapter_item.xml new file mode 100644 index 000000000..422458d5d --- /dev/null +++ b/app/src/main/res/layout/simplechapter_item.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingBottom="12dp" + android:paddingTop="12dp"> + + <TextView + android:id="@+id/txtvStart" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_alignParentRight="true" + android:layout_centerVertical="true" + android:layout_margin="8dp" + android:textColor="?android:attr/textColorSecondary" + android:textSize="@dimen/text_size_small"/> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:padding="8dp" + android:layout_toLeftOf="@id/txtvStart" + android:textColor="?android:attr/textColorPrimary" + android:textSize="@dimen/text_size_small"/> + + <TextView + android:id="@+id/txtvLink" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_below="@id/txtvTitle" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_toLeftOf="@id/txtvStart" + android:focusable="false" + android:focusableInTouchMode="false" + android:visibility="gone" + android:maxLines="2" /> + +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/storage_error.xml b/app/src/main/res/layout/storage_error.xml new file mode 100644 index 000000000..c1ee77262 --- /dev/null +++ b/app/src/main/res/layout/storage_error.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <ImageView + android:id="@+id/imageView1" + android:contentDescription="@string/external_storage_error_msg" + android:layout_width="30dp" + android:layout_height="30dp" + android:layout_centerHorizontal="true" + android:layout_centerVertical="true" + android:layout_margin="16dp" + android:src="@android:drawable/stat_notify_sdcard_usb" /> + + <TextView + android:id="@+id/textView1" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@+id/imageView1" + android:layout_centerHorizontal="true" + android:layout_margin="8dp" + android:text="@string/external_storage_error_msg" /> + +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/time_dialog.xml b/app/src/main/res/layout/time_dialog.xml new file mode 100644 index 000000000..95cc9a5a7 --- /dev/null +++ b/app/src/main/res/layout/time_dialog.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" > + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + + <EditText + android:id="@+id/etxtTime" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_margin="8dp" + android:ems="7" + android:hint="@string/enter_time_here_label" + android:inputType="number" + android:maxLength="2" > + + + </EditText> + + <Spinner + android:id="@+id/spTimeUnit" + android:layout_width="180dp" + android:layout_height="wrap_content" + android:layout_marginBottom="8dp" + android:layout_marginTop="8dp" /> + </LinearLayout> + + <LinearLayout + style="@android:style/ButtonBar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + + <Button + android:id="@+id/butConfirm" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginRight="8dp" + android:layout_weight="1" /> + + <Button + android:id="@+id/butCancel" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" /> + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/menu/directory_chooser.xml b/app/src/main/res/menu/directory_chooser.xml new file mode 100644 index 000000000..7735ffd2c --- /dev/null +++ b/app/src/main/res/menu/directory_chooser.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:custom="http://schemas.android.com/apk/res-auto"> + <item + android:id="@+id/new_folder_item" + android:title="@string/create_folder_label" + custom:showAsAction="ifRoom|withText"/> + <item + android:id="@+id/set_to_default_folder_item" + custom:showAsAction="collapseActionView" + android:title="@string/set_to_default_folder"/> + + +</menu>
\ No newline at end of file diff --git a/app/src/main/res/menu/feedinfo.xml b/app/src/main/res/menu/feedinfo.xml new file mode 100644 index 000000000..be50cb87d --- /dev/null +++ b/app/src/main/res/menu/feedinfo.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:custom="http://schemas.android.com/apk/res-auto"> + <item + android:id="@+id/visit_website_item" + android:icon="?attr/location_web_site" + custom:showAsAction="ifRoom|collapseActionView" + android:title="@string/visit_website_label" + android:visible="true"> + </item> + <item + android:id="@+id/support_item" + custom:showAsAction="ifRoom|collapseActionView" + android:title="@string/support_label" + android:visible="false"> + </item> + <item + android:id="@+id/share_link_item" + custom:showAsAction="collapseActionView" + android:title="@string/share_link_label"> + </item> + <item + android:id="@+id/share_source_item" + custom:showAsAction="collapseActionView" + android:title="@string/share_source_label"> + </item> + +</menu>
\ No newline at end of file diff --git a/app/src/main/res/menu/feeditem.xml b/app/src/main/res/menu/feeditem.xml new file mode 100644 index 000000000..5b25e8f2c --- /dev/null +++ b/app/src/main/res/menu/feeditem.xml @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:custom="http://schemas.android.com/apk/res-auto"> + + <item + android:id="@+id/download_item" + android:icon="?attr/av_download" + custom:showAsAction="ifRoom|collapseActionView" + android:title="@string/download_label"> + </item> + <item + android:id="@+id/stream_item" + android:icon="?attr/action_stream" + custom:showAsAction="ifRoom|collapseActionView" + android:title="@string/stream_label"> + </item> + <item + android:id="@+id/play_item" + android:icon="?attr/av_play" + custom:showAsAction="ifRoom|collapseActionView" + android:title="@string/play_label"> + </item> + <item + android:id="@+id/remove_item" + android:icon="?attr/content_discard" + custom:showAsAction="collapseActionView" + android:title="@string/remove_label"> + </item> + <item + android:id="@id/skip_episode_item" + android:title="@string/skip_episode_label" + custom:showAsAction="collapseActionView"> + </item> + <item + android:id="@+id/cancel_download_item" + android:icon="?attr/navigation_cancel" + custom:showAsAction="ifRoom|collapseActionView" + android:title="@string/cancel_download_label"> + </item> + <item + android:id="@+id/mark_read_item" + custom:showAsAction="collapseActionView" + android:title="@string/mark_read_label"> + </item> + <item + android:id="@+id/mark_unread_item" + custom:showAsAction="collapseActionView" + android:title="@string/mark_unread_label"> + </item> + <item + android:id="@+id/add_to_queue_item" + custom:showAsAction="collapseActionView" + android:title="@string/add_to_queue_label"> + </item> + <item + android:id="@+id/remove_from_queue_item" + custom:showAsAction="collapseActionView" + android:title="@string/remove_from_queue_label"> + </item> + <item + android:id="@+id/share_link_item" + custom:showAsAction="collapseActionView" + android:title="@string/share_link_label"> + </item> + <item + android:id="@+id/visit_website_item" + android:icon="?attr/location_web_site" + custom:showAsAction="ifRoom|collapseActionView" + android:title="@string/visit_website_label"> + </item> + <item + android:id="@+id/support_item" + custom:showAsAction="collapseActionView" + android:title="@string/support_label"> + </item> + +</menu>
\ No newline at end of file diff --git a/app/src/main/res/menu/feeditem_dialog.xml b/app/src/main/res/menu/feeditem_dialog.xml new file mode 100644 index 000000000..f33b7502a --- /dev/null +++ b/app/src/main/res/menu/feeditem_dialog.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:custom="http://schemas.android.com/apk/res-auto"> + + <item + android:id="@id/skip_episode_item" + android:title="@string/skip_episode_label" + custom:showAsAction="collapseActionView"> + </item> + + <item + android:id="@+id/mark_read_item" + custom:showAsAction="collapseActionView" + android:title="@string/mark_read_label"> + </item> + <item + android:id="@+id/mark_unread_item" + custom:showAsAction="collapseActionView" + android:title="@string/mark_unread_label"> + </item> + <item + android:id="@+id/add_to_queue_item" + custom:showAsAction="collapseActionView" + android:title="@string/add_to_queue_label"> + </item> + <item + android:id="@+id/remove_from_queue_item" + custom:showAsAction="collapseActionView" + android:title="@string/remove_from_queue_label"> + </item> + <item + android:id="@+id/share_link_item" + custom:showAsAction="collapseActionView" + android:title="@string/share_link_label"> + </item> + <item + android:id="@+id/visit_website_item" + android:icon="?attr/location_web_site" + custom:showAsAction="ifRoom|collapseActionView" + android:title="@string/visit_website_label"> + </item> + <item + android:id="@+id/support_item" + custom:showAsAction="collapseActionView" + android:title="@string/support_label"> + </item> + +</menu>
\ No newline at end of file diff --git a/app/src/main/res/menu/feedlist.xml b/app/src/main/res/menu/feedlist.xml new file mode 100644 index 000000000..f8eb7232e --- /dev/null +++ b/app/src/main/res/menu/feedlist.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:custom="http://schemas.android.com/apk/res-auto"> + + <item + android:id="@+id/refresh_item" + android:icon="?attr/navigation_refresh" + android:menuCategory="container" + custom:showAsAction="ifRoom|collapseActionView" + android:title="@string/refresh_label"> + </item> + <item + android:id="@+id/mark_all_read_item" + android:menuCategory="container" + custom:showAsAction="collapseActionView" + android:title="@string/mark_all_read_label"> + </item> + <item + android:id="@+id/support_item" + android:menuCategory="container" + custom:showAsAction="collapseActionView" + android:title="@string/support_label" + android:visible="false"> + </item> + <item + android:id="@+id/remove_item" + android:menuCategory="container" + android:icon="?attr/content_discard" + custom:showAsAction="collapseActionView" + android:title="@string/remove_feed_label" + android:visible="true"> + </item> + +</menu>
\ No newline at end of file diff --git a/app/src/main/res/menu/main.xml b/app/src/main/res/menu/main.xml new file mode 100644 index 000000000..c5b069b40 --- /dev/null +++ b/app/src/main/res/menu/main.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:custom="http://schemas.android.com/apk/res-auto"> + + <item + android:id="@+id/show_preferences" + android:title="@string/settings_label" + android:menuCategory="system" + android:icon="?attr/action_settings" + custom:showAsAction="collapseActionView"/> + + +</menu> diff --git a/app/src/main/res/menu/mediaplayer.xml b/app/src/main/res/menu/mediaplayer.xml new file mode 100644 index 000000000..0eb2ab067 --- /dev/null +++ b/app/src/main/res/menu/mediaplayer.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:custom="http://schemas.android.com/apk/res-auto"> + + <item + android:id="@+id/disable_sleeptimer_item" + android:icon="?attr/device_access_time" + custom:showAsAction="always" + android:title="@string/sleep_timer_label"> + </item> + <item + android:id="@+id/set_sleeptimer_item" + custom:showAsAction="collapseActionView" + android:title="@string/set_sleeptimer_label"> + </item> + <item + android:id="@+id/share_link_item" + custom:showAsAction="collapseActionView" + android:title="@string/share_link_label"> + </item> + <item + android:id="@+id/visit_website_item" + android:icon="?attr/location_web_site" + custom:showAsAction="ifRoom|collapseActionView" + android:title="@string/visit_website_label" + android:visible="false"> + </item> + <item + android:id="@+id/support_item" + custom:showAsAction="collapseActionView" + android:title="@string/support_label" + android:visible="false"> + </item> + <item + android:id="@id/skip_episode_item" + custom:showAsAction="collapseActionView" + android:title="@string/skip_episode_label" + android:visible="true"/> + +</menu>
\ No newline at end of file diff --git a/app/src/main/res/menu/new_episodes.xml b/app/src/main/res/menu/new_episodes.xml new file mode 100644 index 000000000..4cf3b5fec --- /dev/null +++ b/app/src/main/res/menu/new_episodes.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> + +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:custom="http://schemas.android.com/apk/res-auto"> + + <item + android:id="@+id/refresh_item" + android:title="@string/refresh_label" + android:menuCategory="container" + custom:showAsAction="ifRoom|collapseActionView" + android:icon="?attr/navigation_refresh"/> + + <item + android:id="@+id/mark_all_read_item" + android:title="@string/mark_all_read_label" + android:menuCategory="container" + custom:showAsAction="collapseActionView" + android:icon="?attr/navigation_accept"/> + + <item + android:id="@+id/episode_filter_item" + android:title="@string/episode_filter_label" + android:menuCategory="container" + android:checkable="true" + custom:showAsAction="collapseActionView"/> + +</menu>
\ No newline at end of file diff --git a/app/src/main/res/menu/queue_context.xml b/app/src/main/res/menu/queue_context.xml new file mode 100644 index 000000000..327600038 --- /dev/null +++ b/app/src/main/res/menu/queue_context.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> + +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + + <item + android:id="@+id/move_to_top_item" + android:menuCategory="container" + android:title="@string/move_to_top_label" /> + + <item + android:id="@+id/remove_from_queue_item" + android:menuCategory="container" + android:title="@string/remove_from_queue_label" /> + + <item + android:id="@+id/move_to_bottom_item" + android:menuCategory="container" + android:title="@string/move_to_bottom_label" /> + +</menu>
\ No newline at end of file diff --git a/app/src/main/res/xml/player_widget_info.xml b/app/src/main/res/xml/player_widget_info.xml new file mode 100644 index 000000000..831f6daf0 --- /dev/null +++ b/app/src/main/res/xml/player_widget_info.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" android:resizeMode="none" android:initialLayout="@layout/player_widget" android:minHeight="40dp" android:minWidth="250dp"> + +</appwidget-provider>
\ No newline at end of file diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml new file mode 100644 index 000000000..5175acdcb --- /dev/null +++ b/app/src/main/res/xml/preferences.xml @@ -0,0 +1,157 @@ +<?xml version="1.0" encoding="utf-8"?> +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> + + <PreferenceCategory android:title="@string/user_interface_label"> + <ListPreference + android:entryValues="@array/theme_values" + android:entries="@array/theme_options" + android:title="@string/pref_set_theme_title" + android:key="prefTheme" + android:summary="@string/pref_set_theme_sum" + android:defaultValue="0"/> + <CheckBoxPreference + android:defaultValue="false" + android:enabled="true" + android:key="prefExpandNotify" + android:summary="@string/pref_expandNotify_sum" + android:title="@string/pref_expandNotify_title"/> + <CheckBoxPreference + android:defaultValue="false" + android:enabled="true" + android:key="prefPersistNotify" + android:summary="@string/pref_persistNotify_sum" + android:title="@string/pref_persistNotify_title"/> + </PreferenceCategory> + <PreferenceCategory android:title="@string/playback_pref"> + <CheckBoxPreference + android:defaultValue="true" + android:enabled="true" + android:key="prefPauseOnHeadsetDisconnect" + android:summary="@string/pref_pauseOnHeadsetDisconnect_sum" + android:title="@string/pref_pauseOnHeadsetDisconnect_title"/> + <CheckBoxPreference + android:defaultValue="false" + android:enabled="true" + android:key="prefFollowQueue" + android:summary="@string/pref_followQueue_sum" + android:title="@string/pref_followQueue_title"/> + <Preference + android:key="prefPlaybackSpeedLauncher" + android:summary="@string/pref_playback_speed_sum" + android:title="@string/pref_playback_speed_title" /> + + <CheckBoxPreference + android:defaultValue="false" + android:enabled="true" + android:key="prefPauseForFocusLoss" + android:summary="@string/pref_pausePlaybackForFocusLoss_sum" + android:title="@string/pref_pausePlaybackForFocusLoss_title" /> + + <ListPreference + android:defaultValue="30" + android:entries="@array/seek_delta_values" + android:entryValues="@array/seek_delta_values" + android:key="prefSeekDeltaSecs" + android:summary="@string/pref_seek_delta_sum" + android:title="@string/pref_seek_delta_title" /> + + </PreferenceCategory> + <PreferenceCategory android:title="@string/network_pref"> + <ListPreference + android:defaultValue="0" + android:entries="@array/update_intervall_values" + android:entryValues="@array/update_intervall_values" + android:key="prefAutoUpdateIntervall" + android:summary="@string/pref_autoUpdateIntervall_sum" + android:title="@string/pref_autoUpdateIntervall_title"/> + + <CheckBoxPreference + android:defaultValue="false" + android:enabled="true" + android:key="prefMobileUpdate" + android:summary="@string/pref_mobileUpdate_sum" + android:title="@string/pref_mobileUpdate_title"/> + <ListPreference + android:defaultValue="20" + android:entries="@array/episode_cache_size_entries" + android:key="prefEpisodeCacheSize" + android:title="@string/pref_episode_cache_title" + android:entryValues="@array/episode_cache_size_values"/> + <PreferenceScreen + android:summary="@string/pref_automatic_download_sum" + android:key="prefAutoDownloadSettings" + android:title="@string/pref_automatic_download_title"> + <CheckBoxPreference + android:key="prefEnableAutoDl" + android:title="@string/pref_automatic_download_title" + android:defaultValue="false"/> + <CheckBoxPreference + android:key="prefEnableAutoDownloadWifiFilter" + android:title="@string/pref_autodl_wifi_filter_title" + android:summary="@string/pref_autodl_wifi_filter_sum"/> + + </PreferenceScreen> + + </PreferenceCategory> + <PreferenceCategory android:title="@string/services_label"> + <PreferenceScreen + android:key="prefFlattrSettings" + android:title="@string/flattr_label"> + <PreferenceScreen + android:key="pref_flattr_authenticate" + android:summary="@string/pref_flattr_auth_sum" + android:title="@string/pref_flattr_auth_title"> + <intent android:action=".activities.FlattrAuthActivity"/> + </PreferenceScreen> + + <Preference + android:key="prefAutoFlattrPrefs" + android:summary="@string/pref_auto_flattr_sum" + android:title="@string/pref_auto_flattr_title" /> + <Preference + android:key="prefRevokeAccess" + android:summary="@string/pref_revokeAccess_sum" + android:title="@string/pref_revokeAccess_title"/> + </PreferenceScreen> + <PreferenceScreen + android:key="prefFlattrSettings" + android:title="@string/gpodnet_main_label"> + + <PreferenceScreen + android:key="pref_gpodnet_authenticate" + android:title="@string/pref_gpodnet_authenticate_title" + android:summary="@string/pref_gpodnet_authenticate_sum"> + <intent android:action=".activity.gpoddernet.GpodnetAuthenticationActivity"/> + </PreferenceScreen> + <Preference + android:key="pref_gpodnet_setlogin_information" + android:title="@string/pref_gpodnet_setlogin_information_title" + android:summary="@string/pref_gpodnet_setlogin_information_sum"/> + <Preference + android:key="pref_gpodnet_logout" + android:title="@string/pref_gpodnet_logout_title"/> + <Preference + android:key="pref_gpodnet_hostname" + android:title="@string/pref_gpodnet_sethostname_title"/> + </PreferenceScreen> + </PreferenceCategory> + <PreferenceCategory android:title="@string/other_pref"> + <Preference + android:title="@string/choose_data_directory" + android:key="prefChooseDataDir"/> + <Preference + android:key="prefFlattrThisApp" + android:summary="@string/pref_flattr_this_app_sum" + android:title="@string/pref_flattr_this_app_title"> + </Preference> + <Preference + android:key="prefOpmlExport" + android:title="@string/opml_export_label"/> + <Preference + android:key="prefAbout" + android:title="@string/about_pref"/> + + + </PreferenceCategory> + +</PreferenceScreen> diff --git a/app/src/main/res/xml/searchable.xml b/app/src/main/res/xml/searchable.xml new file mode 100644 index 000000000..ee73aca8d --- /dev/null +++ b/app/src/main/res/xml/searchable.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<searchable xmlns:android="http://schemas.android.com/apk/res/android" + android:hint="@string/search_hint" + android:label="@string/app_name"/>
\ No newline at end of file |