일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 |
- 문학야구장
- Linux
- Java
- KIA타이거즈
- CentOS 7
- 조동화 은퇴식
- RecyclerView
- 게스트 확장
- 이마트프랜들리존
- 정보처리기사
- 리눅스
- Android
- 행복라이브존
- 버추얼박스
- 땀땀
- setStyle
- skipMemoryCache
- SK와이번스
- VirtualBox
- textview
- 우삼겹 쌀국수
- 조동화선수
- 인천SK행복드림구장
- 인천 논현동
- 1루 응원지정석
- 인천 맛집
- divider
- 인천SK와이번스
- diskCacheStrategy
- 안드로이드
- Today
- Total
쭌2 블로그
WebViewClient shouldInterceptRequest 함수 내에 아래 코드를 추가한다. override fun shouldInterceptRequest(view: WebView?, request: WebResourceRequest?): WebResourceResponse? { if(request!!.url.toString().contains(Constants.WEB_MAIN, true)) { val okHttpClient = OkHttpClient.Builder().build() val okRequest: Request = Request.Builder() .url(request.url.toString()) .build() try { val okResponse: Response = okHttp..
WebViewClient 내에 shouldOverrideUrlLoading 함수 내에 아래 코드를 추가한다. override fun shouldOverrideUrlLoading(view: WebView?, request: WebResourceRequest?): Boolean { val headers = mapOf("authorization" to pref!!.getValue(Pref.JWT, "")) view!!.loadUrl(request!!.url.toString(), headers) return true }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 public class CharacterWrapTextView extends android.support.v7.widget.AppCompatTextView { public CharacterWrapTextView(Context context) { super(context); } public CharacterWrapTextView(Context context, AttributeSet attrs) { super(context, attrs); } public CharacterWrapTextView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attr..