summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/addfeed.xml
blob: d6ebd58d7ab37d048f2f602cb072892069bc67af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?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">

    <androidx.appcompat.widget.Toolbar
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:minHeight="?attr/actionBarSize"
            android:theme="?attr/actionBarTheme"
            app:title="@string/add_feed_label"
            app:navigationIcon="?homeAsUpIndicator"
            android:id="@+id/toolbar"/>

    <androidx.cardview.widget.CardView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:cardCornerRadius="4dp"
            app:cardElevation="4dp"
            android:layout_marginLeft="16dp"
            android:layout_marginRight="16dp">

        <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal">

            <ImageView
                    android:layout_width="40dp"
                    android:layout_height="match_parent"
                    android:layout_marginLeft="8dp"
                    android:layout_marginRight="8dp"
                    android:contentDescription="@string/search_podcast_hint"
                    app:srcCompat="?attr/action_search"
                    android:id="@+id/searchButton"
                    android:scaleType="center"/>

            <EditText
                    android:id="@+id/combinedFeedSearchEditText"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:inputType="text"
                    android:imeOptions="actionSearch"
                    android:importantForAutofill="no"
                    android:layout_marginStart="0dp"
                    android:layout_marginLeft="0dp"
                    android:layout_marginRight="8dp"
                    android:layout_marginEnd="8dp"
                    android:paddingTop="16dp"
                    android:paddingBottom="16dp"
                    android:hint="@string/search_podcast_hint"
                    android:background="@null"/>

        </LinearLayout>
    </androidx.cardview.widget.CardView>

    <ScrollView
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_weight="1"
            android:scrollbars="vertical">

        <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:focusableInTouchMode="true"
                android:padding="16dp">

            <androidx.fragment.app.FragmentContainerView
                    android:id="@+id/quickFeedDiscovery"
                    android:name="de.danoeh.antennapod.fragment.QuickFeedDiscoveryFragment"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"/>

            <TextView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/advanced"
                    android:textSize="18sp"
                    android:layout_marginTop="16dp"
                    android:layout_marginBottom="8dp"
                    android:textColor="?android:attr/textColorPrimary"/>

            <TextView
                    android:id="@+id/addViaUrlButton"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    app:drawableStartCompat="?attr/feed"
                    app:drawableLeftCompat="?attr/feed"
                    style="@style/AddPodcastTextView"
                    android:text="@string/add_podcast_by_url"/>

            <TextView
                    android:id="@+id/addLocalFolderButton"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    app:drawableStartCompat="?attr/ic_folder"
                    app:drawableLeftCompat="?attr/ic_folder"
                    style="@style/AddPodcastTextView"
                    android:text="@string/add_local_folder"/>

            <TextView
                    android:id="@+id/searchItunesButton"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    app:drawableStartCompat="?attr/action_search"
                    app:drawableLeftCompat="?attr/action_search"
                    style="@style/AddPodcastTextView"
                    android:text="@string/search_itunes_label"/>

            <TextView
                    android:id="@+id/searchFyydButton"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    app:drawableStartCompat="?attr/action_search"
                    app:drawableLeftCompat="?attr/action_search"
                    style="@style/AddPodcastTextView"
                    android:text="@string/search_fyyd_label"/>

            <TextView
                    android:id="@+id/searchGPodderButton"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    app:drawableStartCompat="?attr/action_search"
                    app:drawableLeftCompat="?attr/action_search"
                    style="@style/AddPodcastTextView"
                    android:text="@string/browse_gpoddernet_label"/>

            <TextView
                    android:id="@+id/searchPodcastIndexButton"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    app:drawableStartCompat="?attr/action_search"
                    app:drawableLeftCompat="?attr/action_search"
                    style="@style/AddPodcastTextView"
                    android:text="@string/search_podcastindex_label"/>

            <TextView
                    android:id="@+id/opmlImportButton"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    app:drawableStartCompat="?attr/av_download"
                    app:drawableLeftCompat="?attr/av_download"
                    style="@style/AddPodcastTextView"
                    android:text="@string/opml_add_podcast_label"/>
        </LinearLayout>
    </ScrollView>
</LinearLayout>