-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] 번개 생성 개최 뷰 - 시간 / 날짜 뷰 구현 #43
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
잘했숨니당 ㅋ.ㅋ
app/src/main/java/org/sopt/pingle/presentation/ui/main/plan/PlanTimeDialogFragment.kt
Outdated
Show resolved
Hide resolved
companion object { | ||
const val HOUR_MIN = 1 | ||
const val HOUR_MAX = 12 | ||
const val MINUTE_MIN = 0 | ||
const val MINUTE_MAX = 59 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
잘했어욤 ~
_planDate.value = planDate | ||
} | ||
|
||
fun setSelectedTimeType(timeType: String) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
쩐당
|
||
<androidx.constraintlayout.widget.ConstraintLayout | ||
android:layout_width="match_parent" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
에바핑 ㅋㅋ
android:text="Done" | ||
android:textAlignment="textEnd" | ||
android:textColor="@color/pingle_green" | ||
android:textSize="18dp" | ||
app:layout_constraintEnd_toEndOf="parent" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
폰트 다운받아서 해주세영
|
||
fun setCurrentPage(position: Int) { | ||
_currentPage.value = position | ||
} | ||
|
||
fun setPlanDate(planDate: String) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
우하하 이런 식으루 뷰모델에 저장하는 것이로군 쇽샥!!!!!!!!!!!!!!!!!!!!!!!
# Conflicts: # app/src/main/res/values/strings.xml
담부터 린트 체크 안 돌아가고 머지하면 혼난당 ~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그만 잘해 이다은
enum class MeridiemType( | ||
@StringRes val meridiemStringRes: Int | ||
) { | ||
AM(R.string.plan_time_am), PM(R.string.plan_time_pm) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
타입 관리 미쳤네염
android:background="@color/g_11" | ||
android:paddingVertical="7dp" | ||
android:paddingEnd="15dp" | ||
android:text="Done" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
추출 부탁합니둥
<NumberPicker | ||
android:id="@+id/np_date_picker_year" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginVertical="20dp" | ||
android:layout_marginStart="44dp" | ||
android:theme="@style/AppTheme.NumberPicker" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/tv_date_picker_done" /> | ||
|
||
<NumberPicker | ||
android:id="@+id/np_date_picker_month" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:theme="@style/AppTheme.NumberPicker" | ||
app:layout_constraintBottom_toBottomOf="@+id/np_date_picker_year" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="@+id/np_date_picker_year" /> | ||
|
||
<NumberPicker | ||
android:id="@+id/np_date_picker_day" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginEnd="44dp" | ||
android:theme="@style/AppTheme.NumberPicker" | ||
app:layout_constraintBottom_toBottomOf="@+id/np_date_picker_month" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toTopOf="@+id/np_date_picker_month" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 체인 거는 게 나을 것 같습니다요
android:background="@color/g_11" | ||
android:paddingVertical="7dp" | ||
android:paddingEnd="15dp" | ||
android:text="Done" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
추출 해주세용
<NumberPicker | ||
android:id="@+id/np_time_picker_meridiem" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginVertical="20dp" | ||
android:layout_marginStart="44dp" | ||
android:theme="@style/AppTheme.NumberPicker" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/tv_time_picker_done" /> | ||
|
||
<NumberPicker | ||
android:id="@+id/np_time_picker_hour" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:theme="@style/AppTheme.NumberPicker" | ||
app:layout_constraintBottom_toBottomOf="@+id/np_time_picker_meridiem" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="@+id/np_time_picker_meridiem" /> | ||
|
||
<NumberPicker | ||
android:id="@+id/np_time_picker_minute" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginEnd="44dp" | ||
android:theme="@style/AppTheme.NumberPicker" | ||
app:layout_constraintBottom_toBottomOf="@+id/np_time_picker_hour" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toTopOf="@+id/np_time_picker_hour" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
얘두 ~
android:paddingVertical="@dimen/spacing16"> | ||
|
||
<TextView | ||
android:id="@+id/tv_title" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네이밍 tv_text_with_title_title 이런 식으로 부탁티비요 ~
유형_어느 뷰인지_뭔지
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💥💛💪💥
@@ -10,11 +10,13 @@ import org.sopt.pingle.R | |||
import org.sopt.pingle.databinding.EditTextPingleBinding | |||
|
|||
@SuppressLint("CustomViewStyleable") | |||
class PingleEditText( | |||
class PingleEditText @JvmOverloads constructor( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오와 생성자 오버로딩을 자동으로 생성해주는 어노테이션이라니 나중에 이런 식으로 커스텀뷰 만들 때 참고할게요~!
android:theme="@style/AppTheme.NumberPicker" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/tv_date_picker_done" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기 제약에 @id 사용해주세욥
app:layout_constraintBottom_toBottomOf="@+id/np_date_picker_year" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="@+id/np_date_picker_year" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
전부!!
Related issue 🛠
Work Description ✏️
Screenshot 📸
HD20240106_172127.1.mp4
Uncompleted Tasks 😅
To Reviewers 📢