-
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] WebViewActivity 구현 #34
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.
짱~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`💛💛💛💛💛💛 언니 덕에 겁나게어려운 개발을 어려운 개발 정도로 끝낼 수 있게 되는 느낌
@SuppressLint("SetJavaScriptEnabled") | ||
private fun initLayout() { | ||
binding.wvWebView.apply { | ||
webViewClient = WebViewClient() |
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.
우와 신기해......... 웹뷰는 이런 식으로 연결하는 거군요 존재부터 사용방법까지 하나도 몰랐던 거라 넘 신기하구..
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.
이것만이 정답은 아니고 웹뷰를 띄우는 방법은 여러가지가 있습니다 ~
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.
마자요 intent의 ACTION_VIEW를 사용할 수도 있구 다른 방법이 많답니당!
|
||
<WebView | ||
android:id="@+id/wv_web_view" | ||
android:layout_width="0dp" |
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.
0dp의 신
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.
LGTM
@SuppressLint("SetJavaScriptEnabled") | ||
private fun initLayout() { | ||
binding.wvWebView.apply { | ||
webViewClient = WebViewClient() |
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.
이것만이 정답은 아니고 웹뷰를 띄우는 방법은 여러가지가 있습니다 ~
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/AndroidManifest.xml
Related issue 🛠
Work Description ✏️
Screenshot 📸
Screen_recording_20240105_182907.mp4
Uncompleted Tasks 😅
To Reviewers 📢
웹 뷰 연결을 위한 확장함수를 만들어두었습니다.
startActivity(navigateToWebView(webViewLink: String))
와 같은 형태로 사용해주시면 됩니다.