move refresh to front of category name (#346)

This commit is contained in:
Carlos 2020-05-06 17:10:16 -04:00 committed by GitHub
parent 45fc923f34
commit 03c50cc998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,42 @@
app:constraint_referenced_ids="start_space,collapse_arrow,checkbox" app:constraint_referenced_ids="start_space,collapse_arrow,checkbox"
/> />
<ImageView
android:id="@+id/update_button"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:clickable="true"
android:focusable="true"
android:padding="5dp"
android:src="@drawable/ic_refresh_white_24dp"
android:tint="?attr/colorAccent"
app:layout_constraintBottom_toBottomOf="@id/category_title"
app:layout_constraintEnd_toStartOf="@id/category_title"
app:layout_constraintStart_toEndOf="@+id/start_barrier"
app:layout_constraintTop_toTopOf="@id/category_title"
app:rippleColor="@color/fullRippleColor" />
<ProgressBar
android:id="@+id/cat_progress"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_margin="5dp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@id/update_button"
app:layout_constraintEnd_toEndOf="@id/update_button"
app:layout_constraintStart_toStartOf="@id/update_button"
app:layout_constraintTop_toTopOf="@id/update_button"
tools:visibility="visible" />
<Space
android:id="@+id/space"
android:layout_width="0dp"
android:layout_height="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/category_sort"
app:layout_constraintStart_toEndOf="@id/category_title"
app:layout_constraintWidth_min="1dp" />
<TextView <TextView
android:id="@+id/category_title" android:id="@+id/category_title"
style="@style/TextAppearance.MaterialComponents.Headline6" style="@style/TextAppearance.MaterialComponents.Headline6"
@ -73,47 +109,12 @@
android:textSize="22sp" android:textSize="22sp"
app:layout_constrainedWidth="true" app:layout_constrainedWidth="true"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/update_button" app:layout_constraintEnd_toStartOf="@id/space"
app:layout_constraintHorizontal_bias="0.0" app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEndOf="@+id/start_barrier" app:layout_constraintStart_toEndOf="@+id/update_button"
app:layout_constraintTop_toTopOf="parent" app:layout_constraintTop_toTopOf="parent"
tools:text="Title dfdsfsfsfsfsfdsfsfsfs" /> tools:text="Title dfdsfsfsfsfsfdsfsfsfs" />
<Space
android:id="@+id/space"
android:layout_width="0dp"
android:layout_height="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/category_sort"
app:layout_constraintStart_toEndOf="@id/update_button"
app:layout_constraintWidth_min="1dp" />
<ImageView
android:id="@+id/update_button"
android:layout_width="wrap_content"
android:layout_height="35dp"
android:clickable="true"
android:focusable="true"
android:padding="5dp"
android:src="@drawable/ic_refresh_white_24dp"
android:tint="?attr/colorAccent"
app:layout_constraintBottom_toBottomOf="@id/category_title"
app:layout_constraintEnd_toStartOf="@id/space"
app:layout_constraintStart_toEndOf="@id/category_title"
app:layout_constraintTop_toTopOf="@id/category_title"
app:rippleColor="@color/fullRippleColor" />
<ProgressBar
android:id="@+id/cat_progress"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_margin="5dp"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@id/update_button"
app:layout_constraintEnd_toEndOf="@id/update_button"
app:layout_constraintStart_toStartOf="@id/update_button"
app:layout_constraintTop_toTopOf="@id/update_button"
tools:visibility="visible" />
<TextView <TextView
android:id="@+id/category_sort" android:id="@+id/category_sort"