Skip to content

Commit

Permalink
feat
Browse files Browse the repository at this point in the history
  • Loading branch information
jinuemong committed Aug 22, 2024
1 parent 0bf6737 commit e4df9bc
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class MyPageFragment : BaseFragment<FragmentMyPageBinding>(R.layout.fragment_my_
super.onResume()
viewModel.fetchPetMine()
viewModel.fetchMemberMine()
viewModel.updateCurrentPage(binding.vpPetProfile.currentItem)
}

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ class PetProfileAdapter(
setHasStableIds(true)
}

override fun getItemId(position: Int): Long {
return getItem(position).id
}

override fun getItemViewType(position: Int): Int {
return if (currentList[position] is PetAddView) PET_ADD_VIEW_TYPE else PET_PROFILE_VIEW_TYPE
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class OtherProfileActivity :
override fun onResume() {
super.onResume()
viewModel.fetchPetMine()
viewModel.updateCurrentPage(binding.vpPetProfile.currentItem)
}

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ class OtherPetProfileAdapter(
setHasStableIds(true)
}

override fun getItemId(position: Int): Long {
return getItem(position).id
}

override fun onCreateViewHolder(
parent: ViewGroup,
viewType: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ class SettingActivity : BaseActivity<ActivitySettingBinding>(R.layout.activity_s
is SettingNavigationAction.NavigateToAppInfo ->
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(APP_INFO_URL)))

is SettingNavigationAction.NavigateToPrivacyPolicy -> showSnackbar("준비중이에요")
is SettingNavigationAction.NavigateToPrivacyPolicy -> {
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(APP_INFO_URL)))
}
is SettingNavigationAction.NavigateToLogout -> logOutDialog()
is SettingNavigationAction.NavigateToUnsubscribe -> userDeleteDialog()
is SettingNavigationAction.NavigateToRegister -> {
Expand Down Expand Up @@ -179,6 +181,7 @@ class SettingActivity : BaseActivity<ActivitySettingBinding>(R.layout.activity_s

companion object {
private const val APP_INFO_URL = "https://github.com/woowacourse-teams/2024-friendogly"
private const val PRIVATE_INFO_URL = "https://principled-staircase-b45.notion.site/197be0cd421b437698f639cda10ece04?pvs=4"

fun getIntent(context: Context): Intent {
return Intent(context, SettingActivity::class.java)
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/res/layout/activity_club_detail.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
<View
android:id="@+id/view_club_detail_line"
android:layout_width="match_parent"
android:layout_height="6dp"
android:layout_height="2dp"
android:layout_marginTop="10dp"
android:background="@color/gray300"
app:layout_constraintTop_toBottomOf="@id/view_club_detail_user_top_bar" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@
app:myLocation="@{vm.userAddress}"
tools:text="대한민국 제주특별자치도 제주시 이도1동 1250-15" />

<Space
android:layout_width="wrap_content"
android:layout_height="20dp" />

<TextView
style="@style/Theme.AppCompat.TextView.SemiBold.White.Size16"
Expand Down
4 changes: 2 additions & 2 deletions android/app/src/main/res/layout/fragment_woof.xml
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@
android:id="@+id/layout_woof_register_marker"
registeringVisibilityAnimation="@{vm.uiState}"
android:layout_width="match_parent"
android:layout_height="240dp"
android:layout_height="208dp"
android:layout_margin="12dp"
android:background="@drawable/rect_white_fill_30"
android:elevation="10dp"
Expand Down Expand Up @@ -445,7 +445,7 @@
android:text="@{vm.addressLine}"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tv_woof_register_walk_area"
tools:text="서울 송파구 올림픽로35다길 42" />
tools:text="서울 송파구 올림픽로35다길 42서울 송파구 올림픽로35다길 42" />

<androidx.appcompat.widget.AppCompatButton
android:id="@+id/btn_woof_register_footprint"
Expand Down
3 changes: 2 additions & 1 deletion android/app/src/main/res/layout/item_filter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</data>

<androidx.constraintlayout.widget.ConstraintLayout
android:background="@drawable/rect_coral100_fill_12"
android:background="@drawable/rect_coral30_fill_8"
android:paddingHorizontal="8dp"
android:paddingVertical="5dp"
android:layout_marginEnd="3dp"
Expand All @@ -21,6 +21,7 @@
tools:text = "중형견"
style="@style/Theme.AppCompat.TextView.Regular.Black.Size14"
app:layout_constraintStart_toStartOf="parent"
android:textColor="@color/coral400"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:text="@{clubFilter.filterName}"
Expand Down
7 changes: 4 additions & 3 deletions android/app/src/main/res/layout/item_selected_filter_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="5dp"
android:background="@drawable/rect_coral100_fill_12"
android:background="@drawable/rect_coral30_fill_8"
android:paddingHorizontal="13dp"
android:paddingVertical="6dp">

Expand All @@ -29,6 +29,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingEnd="5dp"
android:textColor="@color/coral400"
android:text="@{clubFilter.filterName}"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand All @@ -38,11 +39,11 @@
<ImageView
android:layout_width="16dp"
android:layout_height="16dp"
android:backgroundTint="@color/white"
android:src="@drawable/ic_close"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/tv_club_list_filter_name"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintTop_toTopOf="parent"
android:tint="@color/coral400"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
3 changes: 2 additions & 1 deletion android/app/src/main/res/layout/layout_chat_drawer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@
style="@style/Theme.AppCompat.TextView.Regular.Black.Size12"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="18dp"
android:layout_marginTop="30dp"
android:text="@string/chat_group_info"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<Button
style="@style/Theme.AppCompat.TextView.SemiBold.Gray07.Size14"
android:textColor="@color/gray900"
android:id="@+id/btn_chat_club"
android:text="@string/chat_go_club_detail"
android:layout_marginTop="15dp"
Expand Down

0 comments on commit e4df9bc

Please sign in to comment.