-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
160 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layout> | ||
|
||
<data> | ||
|
||
<variable | ||
name="item" | ||
type="org.inu.events.data.model.entity.Event" /> | ||
</data> | ||
|
||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<androidx.cardview.widget.CardView | ||
android:layout_width="match_parent" | ||
android:layout_height="140dp" | ||
android:layout_marginHorizontal="@dimen/horizontal_margin" | ||
android:layout_marginTop="4dp" | ||
android:layout_marginBottom="16dp" | ||
android:elevation="8dp" | ||
app:cardCornerRadius="6dp" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent"> | ||
|
||
<androidx.constraintlayout.widget.ConstraintLayout | ||
android:id="@+id/card_wrap" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:paddingHorizontal="12dp"> | ||
|
||
<ImageView | ||
android:id="@+id/poster" | ||
bindImageRadius4="@{item.imageUuid}" | ||
android:layout_width="85dp" | ||
android:layout_height="120dp" | ||
android:background="@drawable/outline_border_4" | ||
android:padding="1dp" | ||
android:scaleType="centerCrop" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<TextView | ||
android:id="@+id/title" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="8dp" | ||
android:layout_marginEnd="8dp" | ||
android:ellipsize="end" | ||
android:maxLines="1" | ||
android:text="@{item.title}" | ||
android:textColor="@color/black1" | ||
android:textSize="16sp" | ||
android:textStyle="bold" | ||
app:layout_constraintEnd_toStartOf="@id/bookmark_icon" | ||
app:layout_constraintStart_toEndOf="@id/poster" | ||
app:layout_constraintTop_toTopOf="@id/poster" | ||
tools:text="현장체험 (인천십) 실습생 모집 공고 근데 더 길게 써야 한다." /> | ||
|
||
<ImageButton | ||
android:id="@+id/bookmark_icon" | ||
android:layout_width="24dp" | ||
android:layout_height="24dp" | ||
android:background="@{item.likedByMe ? @drawable/ic_bookmark_filled : @drawable/ic_bookmark_outlined}" | ||
app:layout_constraintBottom_toBottomOf="@id/title" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toTopOf="@id/title" | ||
tools:src="@drawable/ic_bookmark_filled" /> | ||
|
||
<TextView | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="4dp" | ||
android:ellipsize="end" | ||
android:maxLines="3" | ||
android:text="@{item.body}" | ||
android:textColor="@color/black60" | ||
android:textSize="13sp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="@id/title" | ||
app:layout_constraintTop_toBottomOf="@id/title" | ||
tools:text="2021년 스타트업 현장체험(인턴십) 실습생 모집합니다. 인천대학교 창업지원단 홈페이지에서 양식을 다운받아 창업지원단 창업지원단 창업지원단 창업지원단 창업지원단 창업지원단 창업지원단 창업지원단" /> | ||
|
||
<TextView | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:text='@{"댓글 " + item.comments}' | ||
android:textColor="@color/black20" | ||
android:textSize="13sp" | ||
app:layout_constraintBottom_toBottomOf="@id/poster" | ||
app:layout_constraintStart_toStartOf="@id/title" | ||
tools:text="댓글 12" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
</androidx.cardview.widget.CardView> | ||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
</layout> |