0
0
mirror of https://github.com/mediathekview/zapp.git synced 2024-09-19 20:02:17 +02:00

Remove length filter

This commit is contained in:
Christine Emrich 2019-08-24 18:20:24 +02:00
parent bf2807a4be
commit a296c0d587
5 changed files with 12 additions and 68 deletions

View File

@ -80,7 +80,7 @@ dependencies {
implementation 'androidx.annotation:annotation:1.1.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.preference:preference:1.1.0-rc01'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android:flexbox:1.1.0'
// helper
implementation 'com.google.code.gson:gson:2.8.5'

View File

@ -30,7 +30,7 @@ public class MediathekListFilterFragment extends Fragment {
protected String[] channelNames;
@BindView(R.id.container_channel_buttons)
protected LinearLayout channelButtonContainer;
protected ViewGroup channelButtonContainer;
private Listener listener;

View File

@ -1,80 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView 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:layout_marginBottom="@dimen/cardview_default_elevation"
android:visibility="gone"
app:contentPadding="@dimen/activity_vertical_margin"
tools:showIn="@layout/fragment_mediathek_list"
tools:visibility="visible">
<androidx.constraintlayout.widget.ConstraintLayout
<HorizontalScrollView
android:id="@+id/channel_scroller"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:scrollbars="none">
<androidx.constraintlayout.widget.Barrier
android:id="@+id/barrier_labels_end"
<LinearLayout
android:id="@+id/container_channel_buttons"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:barrierDirection="end"
app:constraint_referenced_ids="label_duration,label_channels" />
android:orientation="horizontal"
android:padding="8dp" />
<TextView
android:id="@+id/label_duration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/fragment_mediathek_filter_duration"
app:layout_constraintStart_toStartOf="parent" />
<SeekBar
android:id="@+id/seekbar_duration"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/activity_horizontal_margin"
android:max="300"
app:layout_constraintBottom_toBottomOf="@+id/label_duration"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/barrier_labels_end"
app:layout_constraintTop_toTopOf="@+id/label_duration" />
<androidx.constraintlayout.widget.Barrier
android:id="@+id/barrier_duration_bottom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:barrierDirection="bottom"
app:constraint_referenced_ids="label_duration,seekbar_duration" />
<TextView
android:id="@+id/label_channels"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/fragment_mediathek_filter_channel"
app:layout_constraintBottom_toBottomOf="@id/channel_scroller"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@id/channel_scroller" />
<HorizontalScrollView
android:id="@+id/channel_scroller"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/activity_horizontal_margin"
android:layout_marginTop="8dp"
android:scrollbars="none"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/barrier_labels_end"
app:layout_constraintTop_toBottomOf="@id/barrier_duration_bottom">
<LinearLayout
android:id="@+id/container_channel_buttons"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="horizontal" />
</HorizontalScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>
</HorizontalScrollView>
</androidx.cardview.widget.CardView>

View File

@ -5,7 +5,7 @@
<color name="colorAccent">#ff5722</color>
<color name="black_overlay">#66000000</color>
<color name="gray_light">#eee</color>
<color name="text_alwayslight_primary">#ffffff</color>
<color name="text_alwayslight_secondary">#CBFFFFFF</color>

View File

@ -35,9 +35,6 @@
<string name="fragment_mediathek_qualities_high">Hoch</string>
<string name="fragment_mediathek_download_started">Download von \'%s\' gestartet…</string>
<string name="fragment_mediathek_filter_duration">Dauer</string>
<string name="fragment_mediathek_filter_channel">Sender</string>
<!-- error messages -->
<string name="error_app_crash">Entschuldigung, Zapp ist abgestürzt.\nMöchtest zu einen Absturzbericht per Mail an den Entwickler senden, um diesen Fehler zukünftig zu beheben?</string>