1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-03 17:02:13 +01:00

Tweak Sports Filter when a GBActivity now...

This commit is contained in:
vanous 2020-08-23 13:01:54 +02:00
parent c2f25d0fe5
commit 7b46a5e950
2 changed files with 10 additions and 14 deletions

View File

@ -52,7 +52,7 @@ import nodomain.freeyourgadget.gadgetbridge.util.AndroidUtils;
import nodomain.freeyourgadget.gadgetbridge.util.DateTimeUtils;
public class ActivitySummariesFilter extends AbstractGBActivity implements View.OnClickListener {
public class ActivitySummariesFilter extends AbstractGBActivity {
private static final Logger LOG = LoggerFactory.getLogger(ActivitySummariesActivity.class);
private static final String DATE_FILTER_FROM = "dateFromFilter";
private static final String DATE_FILTER_TO = "dateToFilter";
@ -157,9 +157,6 @@ public class ActivitySummariesFilter extends AbstractGBActivity implements View.
return null;
}
@Override
public void onClick(View view) {
}
public void addListenerOnSpinnerItemSelection() {
Spinner spinner = findViewById(R.id.select_kind);

View File

@ -4,13 +4,11 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="20dp"
tools:viewBindingIgnore="true">
android:padding="20dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
@ -24,8 +22,8 @@
android:id="@+id/select_kind"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="left"
android:paddingLeft="0dp"
android:background="@drawable/abc_spinner_textfield_background_material"
android:gravity="left|center_vertical"
android:spinnerMode="dropdown"
android:textAlignment="gravity" />
@ -33,7 +31,7 @@
android:id="@+id/filterfrom"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom"
android:background="@drawable/abc_spinner_textfield_background_material"
android:orientation="horizontal"
android:paddingStart="10dp"
android:paddingEnd="4dp"
@ -61,11 +59,12 @@
android:textSize="18sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/filterto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom"
android:background="@drawable/abc_spinner_textfield_background_material"
android:orientation="horizontal"
android:paddingStart="10dp"
android:paddingEnd="4dp"
@ -91,11 +90,12 @@
android:paddingEnd="30dp"
android:textAlignment="textStart"
android:textSize="18sp" />
</LinearLayout>
<Button
android:id="@+id/reset_filter_button"
style="@style/Widget.AppCompat.Button.Colored"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/activity_filter_reset_filter" />
@ -107,7 +107,6 @@
<Button
android:id="@+id/apply_filter_button"
style="@style/Widget.AppCompat.Button.Colored"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/activity_filter_apply_filter" />