Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/src/main/res/layout/item_horizontal_session.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
android:id="@+id/speakers"
android:layout_width="0dp"
android:layout_height="wrap_content"
tools:layout_height="70dp"
tools:layout_height="68dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/favorite"
app:layout_constraintStart_toStartOf="parent"
Expand All @@ -113,12 +113,12 @@

<io.github.droidkaigi.confsched2018.presentation.common.view.FavoriteButton
android:id="@+id/favorite"
android:layout_height="68dp"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a question 🙋
Why is this height needed? 🤔

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I don't set height, it's wrap_content.
In that case, even if we have only one speaker, the height of favorite is lower than speakers .
So if we don't set this height, the vertical position of favorite and name of speakers are not same.

I think it looks not good, the vertical position of most bottom speaker and like button seems better to be same.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use constraintbottom_bottomOf="speaker" for favorite?

style="@style/FavoriteButton"
android:checked="@{session.isFavorited}"
app:checkedColorTint="@color/accent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toBottomOf="@id/title"
app:uncheckedColorTint="@color/sub_icon_color"
/>

Expand Down