- ChatRoomMoreDialog에서 배경 사진 변경 Picker 연결 - my-list API 추가 및 Repository 위임 추가 - 배경 선택 Dialog(3열 Grid, 4:5 비율) 및 선택 상태 UI 구현 - SharedPreferences로 roomId별 배경 URL 저장/로드 - ChatRoomActivity에 배경 저장/적용 헬퍼 추가 및 기본 프로필 적용 로직 구현
49 lines
1.9 KiB
XML
49 lines
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_image"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:contentDescription="@null"
|
|
android:scaleType="centerCrop"
|
|
app:layout_constraintDimensionRatio="4:5"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<!-- 선택 시 표시되는 1dp 테두리 (#3bb9f1) -->
|
|
<View
|
|
android:id="@+id/view_border"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:background="@drawable/bg_chat_bg_selected_border"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toBottomOf="@id/iv_image"
|
|
app:layout_constraintEnd_toEndOf="@id/iv_image"
|
|
app:layout_constraintStart_toStartOf="@id/iv_image"
|
|
app:layout_constraintTop_toTopOf="@id/iv_image" />
|
|
|
|
<!-- 우하단 '현재 배경' 라벨 -->
|
|
<TextView
|
|
android:id="@+id/tv_current"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="6dp"
|
|
android:background="@drawable/bg_round_corner_6_7_3bb9f1"
|
|
android:fontFamily="@font/pretendard_regular"
|
|
android:paddingHorizontal="6dp"
|
|
android:paddingVertical="2dp"
|
|
android:includeFontPadding="false"
|
|
android:text="현재 배경"
|
|
android:textColor="#FFFFFF"
|
|
android:textSize="12sp"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toBottomOf="@id/iv_image"
|
|
app:layout_constraintEnd_toEndOf="@id/iv_image" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|