![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
代码风情
这个作者很懒,什么都没留下…
展开
-
android gradle tools 3.X 中依赖,implementation 和compile区别
转载:https://blog.csdn.net/soslinken/article/details/73114637前言 2017 年google 后,Android studio 版本更新至3.0,更新中,连带着com.android.tools.build:gradle 工具也升级到了3.0.0,在3.0.0中使用了最新的Gralde 4.0 里程碑版本作为gradle 的编译版本,该...转载 2018-07-27 11:07:55 · 196 阅读 · 0 评论 -
android AsyncTask基础用法
private ImageView mImageView; private static String IMAGE_URL = "http://www.pptbz.com/pptpic/UploadFiles_6909/201306/2013062320262198.jpg";new ImageAsyncTask().execute(IMAGE_URL); @Override p...原创 2019-02-12 14:06:53 · 257 阅读 · 0 评论 -
Android RecyclerView
About list view in android:Android中关于列表的组件有多种,ScrollView(垂直方向)、HorizontalScrollView(水平方向)、ListView(垂直方向)、HorizontalListView(水平方向)以及RecyclerView(垂直+水平)。前2种大概用的很少了,一般固定静态数据用用还是可以的,中间2种自从RecyclerView出现后...原创 2019-02-18 11:36:54 · 217 阅读 · 0 评论 -
android spinner下拉选择框
Step 1: spinner layout<Spinner android:id="@+id/spinner_view" android:layout_below="@id/image_view" android:layout_width="match_parent" android:layout_height="wrap_...原创 2019-02-13 11:15:28 · 677 阅读 · 0 评论 -
android GestureDetector 基于webview的手势滑动实现
Step 1: 初始化手势组件detector = new GestureDetector(this, onGestureListener);Step 2: 手势组件添加监听,为了方便各处使用,因此将监听事件独立出来了,用到的地方只需重写一下抽象方法即可package com.example.demo.weimuyundemo.plugins.gesturedetector;impor...原创 2019-02-13 11:39:39 · 1761 阅读 · 1 评论 -
android RichEditor富文本编辑和展示
Step 1: demo中引入richeditorimplementation 'jp.wasabeef:richeditor-android:1.2.2'Step 2: demo中设置简单布局&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;RelativeLayout xmlns:android="ht原创 2019-02-14 11:37:42 · 1421 阅读 · 0 评论