Skip to content

Commit 7fcc89b

Browse files
committed
switch Add and Options button on records list
1 parent ac3d087 commit 7fcc89b

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

core/src/main/res/layout/date_selector_layout.xml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
android:layout_width="0dp"
1818
android:layout_height="wrap_content"
1919
app:layout_constraintBottom_toBottomOf="parent"
20-
app:layout_constraintEnd_toStartOf="@id/btnRecordsContainerOptions"
20+
app:layout_constraintEnd_toStartOf="@id/btnRecordsContainerAdd"
2121
app:layout_constraintStart_toStartOf="parent"
2222
tools:layoutManager="LinearLayoutManager"
2323
tools:listitem="@layout/item_date_day_selector"
@@ -30,7 +30,7 @@
3030
android:background="@drawable/bg_alpha_gradient"
3131
android:rotation="180"
3232
app:layout_constraintBottom_toBottomOf="parent"
33-
app:layout_constraintEnd_toStartOf="@id/btnRecordsContainerOptions"
33+
app:layout_constraintEnd_toStartOf="@id/btnRecordsContainerAdd"
3434
app:layout_constraintTop_toTopOf="@id/rvDatesContainer" />
3535

3636
<View
@@ -43,24 +43,25 @@
4343
app:layout_constraintTop_toTopOf="@id/rvDatesContainer" />
4444

4545
<com.google.android.material.button.MaterialButton
46-
android:id="@+id/btnRecordsContainerAdd"
46+
android:id="@+id/btnRecordsContainerOptions"
4747
style="@style/ContainerRangeOptionsButton"
4848
android:layout_height="0dp"
4949
android:layout_marginEnd="8dp"
50-
app:icon="@drawable/add"
50+
app:icon="@drawable/more"
5151
app:layout_constraintBottom_toBottomOf="parent"
5252
app:layout_constraintEnd_toEndOf="parent"
5353
app:layout_constraintTop_toTopOf="parent" />
5454

5555
<com.google.android.material.button.MaterialButton
56-
android:id="@+id/btnRecordsContainerOptions"
56+
android:id="@+id/btnRecordsContainerAdd"
5757
style="@style/ContainerRangeOptionsButton"
5858
android:layout_height="0dp"
5959
android:layout_marginEnd="4dp"
60-
app:icon="@drawable/more"
60+
android:visibility="gone"
61+
app:icon="@drawable/add"
6162
app:layout_constraintBottom_toBottomOf="parent"
62-
app:layout_constraintEnd_toStartOf="@id/btnRecordsContainerAdd"
63+
app:layout_constraintEnd_toStartOf="@id/btnRecordsContainerOptions"
6364
app:layout_constraintTop_toTopOf="parent"
64-
app:layout_goneMarginEnd="8dp" />
65+
tools:visibility="visible" />
6566

6667
</androidx.constraintlayout.widget.ConstraintLayout>

0 commit comments

Comments
 (0)