- 博客(6)
- 资源 (6)
- 问答 (4)
- 收藏
- 关注
原创 AndResGuard 集成
1.在app的build.gradle中 添加apply plugin: 'AndResGuard'andResGuard { mappingFile = null use7zip = true useSign = true // It will keep the origin path of your resources when it's tru...
2019-07-02 15:05:20
554
原创 简单的 android 和js 互调 ,记录一下
设置一下WebViewWebView webView = findViewById(R.id.webView);WebSettings webSettings = webView.getSettings();webSettings.setJavaScriptEnabled(true);//设置能够解析JavascriptwebSettings.setDomStorageEnab...
2018-05-02 17:58:26
228
原创 dialog设置 背景透明
先看一下效果:布局很简单,background 设置为透明就行。代码也很简单,其中最主要的就是:mDialog.getWindow().setBackgroundDrawableResource(android.R.color.transparent);下面是完整代码AlertDialog.Builder builder = new AlertDialog.Builder(Context);Vi...
2018-04-18 16:28:12
1050
原创 android 加载本地webView
1.在main下创建一个assets资源文件夹,把所需要的webView资源都拷进去,2.在html 文件中,更改资源路径,如若不改,图片等资源无法显示。如图所示3. 布局就是一个普通的WebView,我这里把html内容 转成了 字符串,主要的就是调用了WebView 的loadDataWithBaseUrl方法,里面的参数看一下方法就知道什么意思了,这里
2017-06-28 15:34:58
430
原创 修改ToolBar+DrawerLayout 的图标
final DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(this, drawer, toolbar, R.string.navigation_drawer_open, R.string.n
2017-06-07 09:17:49
1765
原创 调到应用商城评价
private void goToStore(){ Uri uri = Uri.parse("market://details?id=" + getApplicationContext().getPackageName()); Intent intent = new Intent(Intent.ACTION_VIEW, uri); intent.addFlags(Inten
2017-05-05 15:14:12
363
adb和studio端口一致,adb 端口被占用 ,怎么解决
2018-03-26
expandableListView 二级列表设置不同样式的布局?
2017-04-08
Android 自定义view实现界面下拉,不是下拉刷新
2017-03-13
eclipse 怎么解决 65k 的问题?
2016-08-15
TA创建的收藏夹 TA关注的收藏夹
TA关注的人