Skip to content

Commit

Permalink
Renaming some ui fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaturel committed Jan 5, 2023
1 parent 3deae11 commit 1cc2644
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ abstract class RoomPollItem : VectorEpoxyModel<RoomPollItem.Holder>(R.layout.ite
}

class Holder : VectorEpoxyHolder() {
val date by bind<TextView>(R.id.pollActiveDate)
val title by bind<TextView>(R.id.pollActiveTitle)
val date by bind<TextView>(R.id.pollDate)
val title by bind<TextView>(R.id.pollTitle)
}
}
12 changes: 6 additions & 6 deletions vector/src/main/res/layout/item_poll.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
android:foreground="?selectableItemBackground">

<TextView
android:id="@+id/pollActiveDate"
android:id="@+id/pollDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
Expand All @@ -18,28 +18,28 @@
tools:text="28/06/22" />

<ImageView
android:id="@+id/pollActiveIcon"
android:id="@+id/pollIcon"
android:layout_width="16dp"
android:layout_height="16dp"
android:layout_marginTop="12dp"
android:importantForAccessibility="no"
android:src="@drawable/ic_attachment_poll"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/pollActiveDate"
app:layout_constraintTop_toBottomOf="@id/pollDate"
app:tint="?vctr_content_secondary"
tools:ignore="ContentDescription" />

<TextView
android:id="@+id/pollActiveTitle"
android:id="@+id/pollTitle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:layout_marginTop="9dp"
android:textAppearance="@style/TextAppearance.Vector.Subtitle"
android:textColor="?vctr_content_primary"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/pollActiveIcon"
app:layout_constraintTop_toBottomOf="@id/pollActiveDate"
app:layout_constraintStart_toEndOf="@id/pollIcon"
app:layout_constraintTop_toBottomOf="@id/pollDate"
tools:text="Which sport should the pupils do this year?" />

</androidx.constraintlayout.widget.ConstraintLayout>

0 comments on commit 1cc2644

Please sign in to comment.