andypinet / blog

0 stars 0 forks source link

android billibilli 开发日记 #12

Open andypinet opened 6 years ago

andypinet commented 6 years ago
在webview使用中有以下几点需要注意:

1、关于访问网络的问题

由于webview需要通过数据通信来访问网络,所以在manifest.xml配置文件中需要进行权限的设置(声明)
<uses-permission android:name="android.permission.INTERNET"/>  

基础android框架 http://hukai.me/android-training-course-in-chinese/

全家桶学习使用 https://github.com/OCNYang/QBox/wiki

这个也是目标

andypinet commented 6 years ago
  1. webview 如何禁止url外跳
class AuiWebClient extends WebViewClient {
    @Override
    public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {

//        return super.shouldOverrideUrlLoading(view, request);
        return false;
    }
}

webview.setWebViewClient(new AuiWebClient());
  1. 如何使用tablayout

http://www.cnblogs.com/JohnTsai/p/4715454.html

  1. 如何处理drawer事件监听

http://blog.csdn.net/zyjzyj2/article/details/53573592

andypinet commented 6 years ago
  1. webview 注入方法

http://blog.csdn.net/carson_ho/article/details/64904691

andypinet commented 6 years ago

1.recycleview 简单使用

http://frank-zhu.github.io/android/2015/01/16/android-recyclerview-part-1/

andypinet commented 6 years ago

1.瀑布流

http://blog.csdn.net/duanymin/article/details/44979355

andypinet commented 6 years ago

1 android imageview top crop

实现头部适应

http://blog.csdn.net/zjmdp/article/details/7707287

andypinet commented 6 years ago

1 android carddview 使用 http://www.jianshu.com/p/fb62474d3a37

2 android flexboxlayout使用 https://github.com/google/flexbox-layout

3 Behavior实现滑动隐藏ToolBar与BottomNavigation http://ittiger.cn/Custom-Behavior-to-fast-back.html

andypinet commented 6 years ago

1 pulltorefresh使用

http://www.jianshu.com/p/97ab87cfce47

andypinet commented 6 years ago

1 android bottomnavigation view 禁用shifiting mode https://stackoverflow.com/questions/40176244/how-to-disable-bottomnavigationview-shift-mode

andypinet commented 6 years ago

1 android navigationview 添加badge https://github.com/ittianyu/BottomNavigationViewEx