summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/addfeed.xml2
-rw-r--r--app/src/main/res/layout/fragment_itunes_search.xml101
-rw-r--r--app/src/main/res/layout/itunes_podcast_listitem.xml59
-rw-r--r--app/src/main/res/layout/quick_feed_discovery.xml93
-rw-r--r--app/src/main/res/layout/quick_feed_discovery_item.xml21
-rw-r--r--app/src/main/res/layout/select_country_dialog.xml24
6 files changed, 1 insertions, 299 deletions
diff --git a/app/src/main/res/layout/addfeed.xml b/app/src/main/res/layout/addfeed.xml
index eee07c669..d3e3c3c1d 100644
--- a/app/src/main/res/layout/addfeed.xml
+++ b/app/src/main/res/layout/addfeed.xml
@@ -85,7 +85,7 @@
android:id="@+id/quickFeedDiscovery"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:name="de.danoeh.antennapod.fragment.QuickFeedDiscoveryFragment" />
+ android:name="de.danoeh.antennapod.ui.discovery.QuickFeedDiscoveryFragment" />
<TextView
android:layout_width="match_parent"
diff --git a/app/src/main/res/layout/fragment_itunes_search.xml b/app/src/main/res/layout/fragment_itunes_search.xml
deleted file mode 100644
index 4dd767d58..000000000
--- a/app/src/main/res/layout/fragment_itunes_search.xml
+++ /dev/null
@@ -1,101 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
-
- <com.google.android.material.appbar.AppBarLayout
- android:id="@+id/appbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:fitsSystemWindows="true"
- android:elevation="0dp">
-
- <com.google.android.material.appbar.MaterialToolbar
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:minHeight="?attr/actionBarSize"
- android:theme="?attr/actionBarTheme"
- app:title="@string/discover"
- app:navigationContentDescription="@string/toolbar_back_button_content_description"
- app:navigationIcon="?homeAsUpIndicator" />
-
- </com.google.android.material.appbar.AppBarLayout>
-
- <GridView
- android:id="@+id/gridView"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_below="@id/appbar"
- android:clipToPadding="false"
- android:columnWidth="400dp"
- android:gravity="center"
- android:horizontalSpacing="8dp"
- android:numColumns="auto_fit"
- android:paddingBottom="@dimen/list_vertical_padding"
- android:paddingTop="@dimen/list_vertical_padding"
- android:stretchMode="columnWidth"
- android:verticalSpacing="8dp"
- tools:listitem="@layout/itunes_podcast_listitem" />
-
- <TextView
- android:id="@android:id/empty"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_centerInParent="true"
- android:gravity="center"
- android:visibility="gone"
- android:text="@string/search_status_no_results" />
-
- <ProgressBar
- android:id="@+id/progressBar"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:indeterminateOnly="true"
- android:visibility="gone" />
-
- <TextView
- android:id="@+id/txtvError"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:layout_margin="16dp"
- android:textAlignment="center"
- android:textSize="@dimen/text_size_small"
- android:visibility="gone"
- tools:visibility="visible"
- tools:text="Error message"
- tools:background="@android:color/holo_red_light" />
-
- <Button
- android:id="@+id/butRetry"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/txtvError"
- android:layout_centerHorizontal="true"
- android:layout_margin="16dp"
- android:text="@string/retry_label"
- android:visibility="gone"
- tools:visibility="visible"
- tools:background="@android:color/holo_red_light" />
-
- <TextView
- android:id="@+id/search_powered_by"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="?android:attr/textColorTertiary"
- android:text="@string/discover_powered_by_itunes"
- android:textSize="12sp"
- android:padding="4dp"
- android:background="?android:attr/colorBackground"
- android:layout_alignParentBottom="true"
- android:layout_alignParentRight="true"
- android:layout_alignParentEnd="true"
- android:textAlignment="textEnd" />
-
-</RelativeLayout>
diff --git a/app/src/main/res/layout/itunes_podcast_listitem.xml b/app/src/main/res/layout/itunes_podcast_listitem.xml
deleted file mode 100644
index da2de457b..000000000
--- a/app/src/main/res/layout/itunes_podcast_listitem.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-<?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="wrap_content"
- android:paddingTop="8dp"
- android:paddingLeft="16dp"
- android:paddingRight="16dp"
- android:paddingBottom="8dp"
- tools:background="@android:color/darker_gray">
-
- <ImageView
- android:id="@+id/imgvCover"
- android:layout_width="@dimen/thumbnail_length_itemlist"
- android:layout_height="@dimen/thumbnail_length_itemlist"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_alignParentTop="true"
- android:adjustViewBounds="true"
- android:importantForAccessibility="no"
- android:cropToPadding="true"
- android:scaleType="fitXY"
- tools:background="@android:color/holo_green_dark"
- tools:src="@tools:sample/avatars" />
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_toRightOf="@id/imgvCover"
- android:layout_toEndOf="@id/imgvCover"
- android:layout_centerVertical="true"
- android:orientation="vertical"
- android:layout_marginLeft="16dp"
- android:layout_marginStart="16dp">
-
- <TextView
- android:id="@+id/txtvTitle"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- style="@style/AntennaPod.TextView.ListItemPrimaryTitle"
- tools:background="@android:color/holo_green_dark"
- tools:text="Podcast title" />
-
- <TextView
- android:id="@+id/txtvAuthor"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textSize="14sp"
- android:textColor="?android:attr/textColorSecondary"
- android:ellipsize="middle"
- android:maxLines="2"
- style="android:style/TextAppearance.Small"
- tools:text="author"
- tools:background="@android:color/holo_green_dark" />
-
- </LinearLayout>
-
-</RelativeLayout>
diff --git a/app/src/main/res/layout/quick_feed_discovery.xml b/app/src/main/res/layout/quick_feed_discovery.xml
deleted file mode 100644
index 4781bf323..000000000
--- a/app/src/main/res/layout/quick_feed_discovery.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
-
- <TextView
- android:layout_width="0dip"
- android:layout_height="wrap_content"
- android:text="@string/discover"
- android:textSize="18sp"
- android:layout_marginBottom="8dp"
- android:layout_weight="1"
- android:accessibilityHeading="true"
- android:textColor="?android:attr/textColorPrimary" />
-
- <Button
- android:id="@+id/discover_more"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:minHeight="48dp"
- android:minWidth="0dp"
- android:text="@string/discover_more"
- style="@style/Widget.MaterialComponents.Button.TextButton" />
-
- </LinearLayout>
-
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
-
- <de.danoeh.antennapod.ui.common.WrappingGridView
- android:id="@+id/discover_grid"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:numColumns="4"
- android:scrollbars="none"
- android:layout_marginTop="8dp"
- android:layout_centerInParent="true"
- android:layout_gravity="center_horizontal"
- app:layout_columnWeight="1"
- app:layout_rowWeight="1" />
-
- <LinearLayout
- android:id="@+id/discover_error"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:gravity="center"
- android:orientation="vertical">
-
- <TextView
- android:id="@+id/discover_error_txtV"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center"
- android:layout_margin="16dp"
- android:textSize="@dimen/text_size_small"
- tools:text="Error message"
- tools:background="@android:color/holo_red_light" />
-
- <Button
- android:id="@+id/discover_error_retry_btn"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_margin="16dp"
- android:text="@string/retry_label"
- tools:background="@android:color/holo_red_light" />
-
- </LinearLayout>
-
- </RelativeLayout>
-
- <TextView
- android:id="@+id/discover_powered_by_itunes"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textColor="?android:attr/textColorTertiary"
- android:text="@string/discover_powered_by_itunes"
- android:textSize="12sp"
- android:layout_gravity="right|end"
- android:paddingHorizontal="4dp"
- android:textAlignment="textEnd" />
-
-</LinearLayout>
diff --git a/app/src/main/res/layout/quick_feed_discovery_item.xml b/app/src/main/res/layout/quick_feed_discovery_item.xml
deleted file mode 100644
index 4407eb2f5..000000000
--- a/app/src/main/res/layout/quick_feed_discovery_item.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:squareImageView="http://schemas.android.com/apk/de.danoeh.antennapod"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:padding="4dp"
- android:clipToPadding="false">
-
- <de.danoeh.antennapod.ui.common.SquareImageView
- android:id="@+id/discovery_cover"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:elevation="4dp"
- android:outlineProvider="background"
- android:foreground="?android:attr/selectableItemBackground"
- squareImageView:direction="width"
- tools:src="@tools:sample/avatars" />
-
-</LinearLayout>
diff --git a/app/src/main/res/layout/select_country_dialog.xml b/app/src/main/res/layout/select_country_dialog.xml
deleted file mode 100644
index 70f93bb77..000000000
--- a/app/src/main/res/layout/select_country_dialog.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
-
- <com.google.android.material.textfield.TextInputLayout
- android:id="@+id/country_text_input"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="20dp"
- android:hint="@string/select_country"
- app:endIconMode="none"
- style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox.ExposedDropdownMenu">
-
- <AutoCompleteTextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
-
- </com.google.android.material.textfield.TextInputLayout>
-
-</LinearLayout>