webview-android 客戶端學習

webview-android 客戶端學習,一個不錯的webview客戶端,有學習webview的朋友可以學習學習。
自定義FinestWebView實現的,這個類封裝非常棒,就連頭部都顏色動態修改都已經封裝好了。
調用代碼如下:
 new FinestWebView.Builder(this)
                    .titleDefault("Bless This Stuff")
                    .toolbarScrollFlags(AppBarLayout.LayoutParams.SCROLL_FLAG_SCROLL | AppBarLayout.LayoutParams.SCROLL_FLAG_EXIT_UNTIL_COLLAPSED)
                    .statusBarColorRes(R.color.redStatusBar)
                    .toolbarColorRes(R.color.redNavBar)
                    .titleColorRes(R.color.finestWhite)
                    .urlColorRes(R.color.redUrlText)
                    .iconDefaultColorRes(R.color.finestWhite)
                    .iconSelector(R.drawable.selector_white)
                    .progressBarColorRes(R.color.finestWhite)
                    .dividerHeight(0)
                    .gradientDivider(false)
                    .setCustomAnimations(R.anim.activity_open_enter, R.anim.activity_open_exit, R.anim.activity_close_enter, R.anim.activity_close_exit)
                    .show("http://www.blessthisstuff.com");

 

運行效果:

 本文由用戶 IT藍豹 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!