Skip to content

Commit d5a5be6

Browse files
committed
[fix] 마이페이지 ui 수정
1 parent 0021beb commit d5a5be6

19 files changed

+535
-520
lines changed

SPOTeam_android/.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SPOTeam_android/app/src/main/java/com/example/spoteam_android/Authenticator.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ class AuthInterceptor(private val context: Context) : Interceptor {
1414
override fun intercept(chain: Interceptor.Chain): Response {
1515
var request = chain.request()
1616

17-
// 현재 저장된 액세스 토큰 가져오기
1817
val currentToken = getAccessTokenFromPreferences()
1918

20-
// 특정 URL에 Authorization 헤더를 제외하고 추가
2119
if (currentToken != null &&
2220
!request.url.toString().contains("/spot/check/login-id") &&
2321
!request.url.toString().contains("/spot/check/email")
@@ -31,8 +29,7 @@ class AuthInterceptor(private val context: Context) : Interceptor {
3129
var response = chain.proceed(request)
3230

3331
// 토큰 만료 처리: 401 또는 400 상태 코드 확인
34-
if (response.code == 401) {
35-
Log.d("AuthInterceptor", "Token expired. Attempting to refresh token...")
32+
if (response.code == 401 || response.code == 400) {
3633

3734
synchronized(this) {
3835
// 갱신된 액세스 토큰 확인

SPOTeam_android/app/src/main/java/com/example/spoteam_android/ui/mypage/RegionPreferenceFragment.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class RegionPreferenceFragment : Fragment() {
6464
transaction.commit()
6565
}
6666

67-
binding.editReasonCancelBt.setOnClickListener {
67+
binding.checklistspotLocationPlusBt.setOnClickListener {
6868
goToLocationFragment()
6969
}
7070
binding.fragmentRegionPreferenceBackBt.setOnClickListener {
@@ -129,7 +129,7 @@ class RegionPreferenceFragment : Fragment() {
129129

130130
val textView = TextView(requireContext()).apply {
131131
text = regionText
132-
textSize = 12f
132+
textSize = 14.4f
133133
setPadding(30, 35, 50, 35) // 패딩 설정
134134
setTextColor(resources.getColor(R.color.b500, null))
135135
setBackgroundResource(R.drawable.button_background) // 커스텀 배경 적용
@@ -140,8 +140,8 @@ class RegionPreferenceFragment : Fragment() {
140140
LinearLayout.LayoutParams.MATCH_PARENT,
141141
LinearLayout.LayoutParams.WRAP_CONTENT
142142
).apply {
143-
marginStart = 15
144-
marginEnd = 15
143+
marginStart = 20
144+
marginEnd = 20
145145
topMargin = 25
146146
}
147147
layoutParams = params

SPOTeam_android/app/src/main/java/com/example/spoteam_android/ui/study/LocationStudyFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class LocationStudyFragment : Fragment() {
3131
setupSearchFunctionality()
3232
loadLocalTsvFile()
3333

34-
binding.fragmentIntroduceStudyBackBt.setOnClickListener {
34+
binding.fragmentLocationStudyBackBt.setOnClickListener {
3535
goToPreviusFragment()
3636
}
3737
return binding.root

SPOTeam_android/app/src/main/java/com/example/spoteam_android/ui/study/MemberStudyFragment.kt

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -192,26 +192,17 @@ class MemberStudyFragment : Fragment() {
192192
}
193193

194194
private fun updateChildAlpha() {
195+
val layoutManager = binding.rvMemberStudyNum.layoutManager as LinearLayoutManager
196+
val firstVisible = layoutManager.findFirstVisibleItemPosition()
197+
val lastVisible = layoutManager.findLastVisibleItemPosition()
195198

196-
for (i in 0 until binding.rvMemberStudyNum.childCount) {
197-
val child = binding.rvMemberStudyNum.getChildAt(i) ?: continue
198-
199-
val location = IntArray(2)
200-
child.getLocationInWindow(location)
201-
val childCenterX = location[0] + child.width / 2
202-
203-
val rvLocation = IntArray(2)
204-
binding.rvMemberStudyNum.getLocationInWindow(rvLocation)
205-
val rvCenterX = rvLocation[0] + binding.rvMemberStudyNum.width / 2
206-
207-
val distanceFromCenter = kotlin.math.abs(rvCenterX - childCenterX)
208-
val maxDistance = binding.rvMemberStudyNum.width / 2
209-
val ratio = distanceFromCenter.toFloat() / maxDistance
210-
val alpha = 1f - ratio.coerceIn(0f, 0.7f)
211-
212-
child.alpha = alpha
199+
for (i in firstVisible..lastVisible) {
200+
val view = layoutManager.findViewByPosition(i) ?: continue
201+
val alpha = if (i == firstVisible || i == lastVisible) 0.4f else 1f
202+
view.alpha = alpha
213203
}
214204
}
215205

216206

207+
217208
}

SPOTeam_android/app/src/main/res/layout/activity_check_list_category.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
app:layout_constraintStart_toStartOf="parent"
4545
app:layout_constraintTop_toBottomOf="@id/activity_checklist_tb"/>
4646

47-
<!-- GridLayout을 ChipGroup 바깥으로 이동 -->
4847
<GridLayout
4948
android:id="@+id/activity_checklist_chipGroup"
5049
android:layout_width="match_parent"

SPOTeam_android/app/src/main/res/layout/activity_check_list_study_purpose.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@
132132
app:chipMinHeight="47.52dp" />
133133
</com.google.android.flexbox.FlexboxLayout>
134134

135-
<!-- 다음 버튼 -->
136135
<android.widget.Button
137136
android:id="@+id/activity_checklist_studypurpose_checklistspot_next_bt"
138137
android:layout_width="0dp"

SPOTeam_android/app/src/main/res/layout/dialog_logout.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
android:layout_width="wrap_content"
3232
android:layout_height="wrap_content"
3333
android:layout_marginTop="10dp"
34-
android:text="로그아웃 하시겠습니까?"
34+
android:text="로그아웃 할까요?"
3535
android:textColor="@color/black"
3636
android:textSize="19dp"
3737
android:fontFamily="@font/suit_bold"

SPOTeam_android/app/src/main/res/layout/dialog_purpose_upload_complete.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
android:layout_width="wrap_content"
4444
android:layout_height="wrap_content"
4545
android:layout_marginTop="20dp"
46-
android:text="수정이 완료되었습니다.\n사용자 님을 응원해요! 화이팅!"
46+
android:text="수정이 완료되었어요.\n사용자 님의 목표를 응원해요!"
4747
android:textColor="@color/black"
4848
android:gravity="center"
4949
android:lineSpacingExtra="4dp"

SPOTeam_android/app/src/main/res/layout/fragment_activity_fee_study.xml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,29 @@
2626
android:id="@+id/fragment_activity_fee_study_tv"
2727
android:text="스터디 만들기"
2828
android:textColor="@color/black"
29-
android:textSize="16dp"
29+
android:textSize="15dp"
3030
android:layout_marginStart="20dp"
31-
android:fontFamily="@font/suit_semi_bold"
31+
android:fontFamily="@font/suit_variable_font"
32+
android:textFontWeight="600"
3233
android:layout_width="wrap_content"
3334
android:layout_height="wrap_content"
3435
android:drawablePadding="20dp"/>
3536

3637
</LinearLayout>
3738

3839

40+
3941
<ProgressBar
4042
android:id="@+id/fragment_activity_fee_study_pb"
4143
android:layout_width="match_parent"
42-
android:layout_height="4dp"
44+
android:layout_height="2.88dp"
4345
android:background="#D8D8D8"
44-
android:layout_marginTop="20dp"
46+
android:layout_marginTop="10dp"
4547
app:layout_constraintTop_toBottomOf="@id/fragment_activity_fee_study_ll"
4648
app:layout_constraintStart_toStartOf="parent"
4749
app:layout_constraintEnd_toEndOf="parent"/>
4850

51+
4952
<TextView
5053
android:id="@+id/fragment_activity_fee_study_activity_tv"
5154
android:layout_width="wrap_content"
@@ -112,6 +115,8 @@
112115
app:layout_constraintEnd_toEndOf="parent"
113116
app:layout_constraintStart_toStartOf="parent"
114117
android:layout_marginTop="40dp"
118+
android:layout_marginStart="20dp"
119+
android:layout_marginEnd="20dp"
115120
android:visibility="gone"
116121
app:layout_constraintTop_toBottomOf="@id/fragment_online_study_chipgroup">
117122

@@ -122,9 +127,9 @@
122127
android:layout_alignParentStart="true"
123128
android:layout_centerVertical="true"
124129
android:layout_gravity="start|center"
125-
android:layout_marginStart="15dp"
126130
android:text="총 활동비"
127-
android:fontFamily="@font/suit_semi_bold"
131+
android:fontFamily="@font/suit_variable_font"
132+
android:textFontWeight="600"
128133
android:textColor="@color/black"
129134
android:textSize="15dp" />
130135

@@ -135,8 +140,9 @@
135140
android:layout_gravity="end|center"
136141
android:text=""
137142
android:textColor="@color/black"
138-
android:fontFamily="@font/suit_bold"
139-
android:layout_marginEnd="130dp"/>
143+
android:fontFamily="@font/suit_variable_font"
144+
android:textFontWeight="600"
145+
android:layout_marginEnd="120dp"/>
140146

141147

142148

@@ -146,13 +152,13 @@
146152
android:layout_width="110dp"
147153
android:layout_height="40dp"
148154
android:layout_gravity="end|center"
149-
android:layout_marginEnd="15dp"
150155
android:background="@drawable/edittext_rounded_corner_rectangle"
151156
android:layout_weight="1"
152157
android:ems="10"
153158
android:inputType="number"
154159
android:textSize="14dp"
155-
android:fontFamily="@font/suit_bold"
160+
android:fontFamily="@font/suit_variable_font"
161+
android:textFontWeight="600"
156162
android:textColor="@color/black"
157163
android:padding="10dp"/>
158164
</FrameLayout>

0 commit comments

Comments
 (0)