-
Notifications
You must be signed in to change notification settings - Fork 0
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
Week7 #5
base: main
Are you sure you want to change the base?
Conversation
onpyeong
commented
Dec 10, 2021
•
edited
Loading
edited
- 필수과제
- 도전과제
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.
고생 많았어!!👍👍
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5' | ||
implementation 'androidx.navigation:navigation-ui-ktx:2.3.5' |
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.
2.4.0-alpha버전부터 백스택 유지가 되는 큰 장점이 있어서 한 번 써보는것도 괜찮을 것 같아!!
<activity | ||
android:name=".ui.view.user.SignInActivity" | ||
android:name=".ui.view.setting.SettingActivity" | ||
android:exported="true" /> | ||
<activity | ||
android:name=".ui.view.onboard.OnBoardActivity" | ||
android:exported="true"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:name=".ui.view.user.SignInActivity" | ||
android:exported="true"/> |
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.
exported="true"는 외부에서 접근할 수 있을 때 true값 주는 것이어서 시작하는 액티비티 빼고는 false로 줘도 될 것 같아!!
override fun onCreateView( | ||
inflater: LayoutInflater, container: ViewGroup?, | ||
savedInstanceState: Bundle? | ||
): View { | ||
super.onCreateView(inflater, container, savedInstanceState) | ||
setBtnStartClick() | ||
return binding.root | ||
} |
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.
fragment에서 onCreateView
시점은 뷰가 그려지는 중이어서, 뷰가 다 그려진 다음인 onViewCreated()
에서 setBtnStartClick()
호출해도 괜찮을 듯!!
<data> | ||
|
||
</data> |
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.
데이터바인딩을 안하면 이 부분은 지워도 돼!