- 博客(20)
- 收藏
- 关注
原创 Android解析多层json数据并用递归进行查找
采用Gson进行json字符串的解析,然后利用递归进行特定数据的查找。需要处理的数据首先,需要处理的json长这样{“code”:10,“data”:[{“children”:[{“children”:[{“children”:[],“id”:“21”,“name”:“分公司21”,“type”:2,“wechatId”:21},{“children”:[{“children”:[{“children”:[{“children”:[],“id”:“31”,
2022-04-11 13:44:02
641
原创 安卓将日志输出到文件夹
安卓将日志输出到文件夹public static boolean OutLogFile = true; // 输出log信息到文件/** 输出log信息到文件中 */public static String FileLog(String info){if (OutLogFile){String crashPath = “/sdcard/FileLog/Log/”; DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); Stri
2021-11-16 16:15:20
1383
原创 简单图片回传
imageView.setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View view) {Intent intent = new Intent(Intent.ACTION_PICK);intent.setType(“image/*”);MainActivity.this.startA...
2019-06-10 15:27:31
563
原创 popwindow
//菜单点击事件caidan.setOnClickListener(new View.OnClickListener() {@Overridepublic void onClick(View view) {View view1 = LayoutInflater.from(MainActivity.this).inflate(R.layout.popwindow, null);top_re...
2019-06-03 09:55:03
138
原创 Greendao
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {View view = View.inflate(getContext(), R.layout.fragment1, null);//获取资...
2019-05-26 20:04:39
152
原创 购物车全选反选,总价,结算
public class Fragment_three extends BaseFragment implements Cotract.View {private String url = "small/order/verify/v1/findShoppingCart";private SelectPresenter selectPresenter;private RecyclerView ...
2019-05-26 20:01:23
610
原创 Retrofit请求头
public interface ObservedApis {@GETObservable get(@Url String url);@FormUrlEncoded@POSTObservable<ResponseBody> post(@Url String url, @FieldMap Map<String, String> map);@DELETEObse...
2019-05-26 19:57:54
458
原创 安卓自定义本地缓存路径
@GlideModulepublic class GlideCache extends AppGlideModule {@Overridepublic void applyOptions(Context context, GlideBuilder builder) {int diskCacheSizeBytes = 1024 * 1024 * 100; // 100 MB//手机app路...
2019-05-26 19:56:28
427
原创 Retrofit+RxJava
public class RetrofitUtil {private static final RetrofitUtil ourInstance = new RetrofitUtil();private ObservedApis observedApis;public static RetrofitUtil getInstance() { return ourInstance;}...
2019-05-26 19:54:16
147
原创 登录 注册
@Overrideprotected void initView(View view) {resign = view.findViewById(R.id.resign);login_ed_name = view.findViewById(R.id.login_ed_name);login_ed_pwd = view.findViewById(R.id.login_ed_pwd);ck_m...
2019-05-26 19:52:22
120
翻译 动画+形变HTML5
</div> <div class="one"> </div> <div class="two"> </div></body>
2018-09-24 19:55:05
255
转载 AngularJs 增删改查+删除+批量删除+全反选
<head> <meta charset="utf-8" /> <script src="js/angular.min.js" type="text/javascript" charset="utf-8"></script> <script src="js/jquery-3.3.1.j
2018-09-20 13:49:35
205
转载 AngularJs 购物车
<head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <script src="js/angularjs1.4.js" type=&quo
2018-09-19 08:44:02
187
转载 AngularJs二级联动+加+减
<head> <meta charset="utf-8" /> <title></title> <script src="js/angularjs1.4.js" type="text/javascript" charset="utf-8"></script&g
2018-09-18 14:06:24
219
转载 AngularJs添加,删除,批量删除,全选,反选
<head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title></title> <!-- 先
2018-09-18 14:05:11
204
转载 AngularJs批量删除+修改
<head> <meta charset="utf-8" /> <title></title> <script src="js/angular.min.js" type="text/javascript" charset="utf-8"></sc
2018-09-13 19:13:45
454
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人