Skip to content

Commit

Permalink
๐ŸŽจ Design: ์ดˆ๋Œ€๋œ ์นœ๊ตฌ ์—†์„ ๊ฒฝ์šฐ ํ…์ŠคํŠธ ํ‘œ์‹œ
Browse files Browse the repository at this point in the history
- isInvitedFriendExist ๊ฐ’ ์ถ”๊ฐ€
- ๊ฒ€์ƒ‰์ฐฝ GONE ์ฒ˜๋ฆฌ

Related to: #347
  • Loading branch information
nahy-512 committed Feb 16, 2025
1 parent 04162a8 commit 5eed8c6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class FriendInviteActivity : BaseActivity<ActivityFriendInviteBinding>(R.layout.
// ์ด๋ฏธ ์ดˆ๋Œ€๋œ ์ฐธ์„์ž๋“ค์˜ id
intent.getLongArrayExtra(MOIM_PARTICIPANT_ID_KEY)?.let { memberIds ->
viewModel.invitedUserIdList = memberIds.toList()
binding.friendInviteInvitedFriendLl.visibility = View.VISIBLE
binding.isInvitedFriendExist = true
}
}

Expand Down
17 changes: 16 additions & 1 deletion app/src/main/res/layout/activity_friend_invite.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

<data>
<import type="android.view.View"/>
<variable
name="isInvitedFriendExist"
type="Boolean" />
<variable
name="viewModel"
type="com.mongmong.namo.presentation.ui.community.moim.schedule.FriendInviteViewModel" />
Expand Down Expand Up @@ -53,6 +56,7 @@
android:layout_marginStart="30dp"
android:layout_marginEnd="32dp"
android:layout_marginTop="16dp"
android:visibility="gone"
app:layout_constraintEnd_toStartOf="@id/friend_invite_search_btn"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/friend_invite_top_cl"
Expand All @@ -64,6 +68,7 @@
android:layout_height="30dp"
android:layout_marginEnd="30dp"
android:text="@string/diary_filter_search"
android:visibility="gone"
app:layout_constraintBottom_toBottomOf="@id/friend_invite_search_et"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/friend_invite_search_et"
Expand Down Expand Up @@ -182,7 +187,7 @@
android:layout_marginTop="20dp"
android:layout_marginHorizontal="25dp"
android:orientation="vertical"
android:visibility="gone"
android:visibility="visible"
app:layout_constraintTop_toBottomOf="@id/friend_invite_reset_ll">

<androidx.appcompat.widget.AppCompatTextView
Expand All @@ -196,13 +201,23 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:visibility="@{isInvitedFriendExist ? View.VISIBLE : View.GONE}"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/item_friend_invite"
tools:itemCount="2"
app:layout_constraintTop_toBottomOf="@id/friend_search_et"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"/>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:visibility="@{isInvitedFriendExist ? View.GONE : View.VISIBLE}"
android:text="@string/moim_schedule_invited_friend_not_yet"
android:layout_gravity="center"
style="@style/content_regular"/>

</LinearLayout>

<!-- ๋ชจ๋“  ์นœ๊ตฌ -->
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@
<string name="moim_schedule_friend_invite_selected_num"><![CDATA[<font color=\'#DA6022\'>%d</font> / %d]]></string> <!-- ์„ ํƒ ์ธ์›์ˆ˜ / ์ „์ฒด ์นœ๊ตฌ ์ˆ˜ -->
<string name="moim_schedule_do_invite">์ดˆ๋Œ€ํ•˜๊ธฐ</string>
<string name="moim_schedule_invited_friend">์ดˆ๋Œ€๋œ ์นœ๊ตฌ</string>
<string name="moim_schedule_invited_friend_not_yet">์ดˆ๋Œ€๋œ ์นœ๊ตฌ๊ฐ€ ์•„์ง ์—†์Šต๋‹ˆ๋‹ค.</string>
<string name="moim_schedule_all_friend">๋ชจ๋“  ์นœ๊ตฌ</string>
<string name="moim_schedule_invite_friend_empty">์•„์ง ์ถ”๊ฐ€๋œ ์นœ๊ตฌ๊ฐ€ ์—†์–ด์š”.\n์นœ๊ตฌ๋ฅผ ์ถ”๊ฐ€ํ•œ ํ›„ ๋ชจ์ž„์„ ๋งŒ๋“ค์–ด๋ณด์„ธ์š”!</string>
<string name="moim_schedule_add_guest">๊ฒŒ์ŠคํŠธ ์ดˆ๋Œ€ํ•˜๊ธฐ</string>
Expand Down

0 comments on commit 5eed8c6

Please sign in to comment.