mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-11 17:41:57 +01:00
Tweak Sports Filter when a GBActivity now...
This commit is contained in:
parent
c2f25d0fe5
commit
7b46a5e950
@ -52,7 +52,7 @@ import nodomain.freeyourgadget.gadgetbridge.util.AndroidUtils;
|
|||||||
import nodomain.freeyourgadget.gadgetbridge.util.DateTimeUtils;
|
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 Logger LOG = LoggerFactory.getLogger(ActivitySummariesActivity.class);
|
||||||
private static final String DATE_FILTER_FROM = "dateFromFilter";
|
private static final String DATE_FILTER_FROM = "dateFromFilter";
|
||||||
private static final String DATE_FILTER_TO = "dateToFilter";
|
private static final String DATE_FILTER_TO = "dateToFilter";
|
||||||
@ -157,9 +157,6 @@ public class ActivitySummariesFilter extends AbstractGBActivity implements View.
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(View view) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public void addListenerOnSpinnerItemSelection() {
|
public void addListenerOnSpinnerItemSelection() {
|
||||||
Spinner spinner = findViewById(R.id.select_kind);
|
Spinner spinner = findViewById(R.id.select_kind);
|
||||||
|
@ -4,13 +4,11 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="20dp"
|
android:padding="20dp">
|
||||||
tools:viewBindingIgnore="true">
|
|
||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@ -24,8 +22,8 @@
|
|||||||
android:id="@+id/select_kind"
|
android:id="@+id/select_kind"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="left"
|
android:background="@drawable/abc_spinner_textfield_background_material"
|
||||||
android:paddingLeft="0dp"
|
android:gravity="left|center_vertical"
|
||||||
android:spinnerMode="dropdown"
|
android:spinnerMode="dropdown"
|
||||||
android:textAlignment="gravity" />
|
android:textAlignment="gravity" />
|
||||||
|
|
||||||
@ -33,7 +31,7 @@
|
|||||||
android:id="@+id/filterfrom"
|
android:id="@+id/filterfrom"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:gravity="bottom"
|
android:background="@drawable/abc_spinner_textfield_background_material"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:paddingStart="10dp"
|
android:paddingStart="10dp"
|
||||||
android:paddingEnd="4dp"
|
android:paddingEnd="4dp"
|
||||||
@ -61,11 +59,12 @@
|
|||||||
android:textSize="18sp" />
|
android:textSize="18sp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/filterto"
|
android:id="@+id/filterto"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:gravity="bottom"
|
android:background="@drawable/abc_spinner_textfield_background_material"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:paddingStart="10dp"
|
android:paddingStart="10dp"
|
||||||
android:paddingEnd="4dp"
|
android:paddingEnd="4dp"
|
||||||
@ -91,11 +90,12 @@
|
|||||||
android:paddingEnd="30dp"
|
android:paddingEnd="30dp"
|
||||||
android:textAlignment="textStart"
|
android:textAlignment="textStart"
|
||||||
android:textSize="18sp" />
|
android:textSize="18sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/reset_filter_button"
|
android:id="@+id/reset_filter_button"
|
||||||
style="@style/Widget.AppCompat.Button.Colored"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/activity_filter_reset_filter" />
|
android:text="@string/activity_filter_reset_filter" />
|
||||||
@ -107,7 +107,6 @@
|
|||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/apply_filter_button"
|
android:id="@+id/apply_filter_button"
|
||||||
style="@style/Widget.AppCompat.Button.Colored"
|
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="@string/activity_filter_apply_filter" />
|
android:text="@string/activity_filter_apply_filter" />
|
||||||
|
Loading…
Reference in New Issue
Block a user