All Projects → yangchaojiang → Utilsdmo

yangchaojiang / Utilsdmo

jsonManager json解析 采用 fastjson TimeUtils 时间类 除了时间格式化,提供用于视频的时长,和语音的时长的时间格式化 YUtils 类例如 获取屏幕宽

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Utilsdmo

Spotify Json
Fast and nice to use C++ JSON library.
Stars: ✭ 145 (-2.68%)
Mutual labels:  json
Weld
Full fake REST API generator written with Rust
Stars: ✭ 146 (-2.01%)
Mutual labels:  json
Omniparser
omniparser: a native Golang ETL streaming parser and transform library for CSV, JSON, XML, EDI, text, etc.
Stars: ✭ 148 (-0.67%)
Mutual labels:  json
Mantle
Model framework for Cocoa and Cocoa Touch
Stars: ✭ 11,319 (+7496.64%)
Mutual labels:  json
Grafanajsondatasource
Grafana datasource to load JSON data over your arbitrary HTTP backend
Stars: ✭ 146 (-2.01%)
Mutual labels:  json
Keycloak Config Cli
Import YAML/JSON-formatted configuration files into Keycloak - Configuration as Code for Keycloak.
Stars: ✭ 147 (-1.34%)
Mutual labels:  json
Json Logging Python
Python logging library to emit JSON log that can be easily indexed and searchable by logging infrastructure such as ELK, EFK, AWS Cloudwatch, GCP Stackdriver
Stars: ✭ 143 (-4.03%)
Mutual labels:  json
Coloquent
Javascript/Typescript library mapping objects and their interrelations to JSON API, with a clean, fluent ActiveRecord-like (e.g. similar to Laravel's Eloquent) syntax for creating, retrieving, updating and deleting model objects.
Stars: ✭ 149 (+0%)
Mutual labels:  json
Daw json link
Static JSON parsing in C++
Stars: ✭ 146 (-2.01%)
Mutual labels:  json
Node Jq
Node.js wrapper for jq
Stars: ✭ 147 (-1.34%)
Mutual labels:  json
Rxtool
Android开发人员不得不收集的工具类集合 | 支付宝支付 | 微信支付(统一下单) | 微信分享 | Zip4j压缩(支持分卷压缩与加密) | 一键集成UCrop选择圆形头像 | 一键集成二维码和条形码的扫描与生成 | 常用Dialog | WebView的封装可播放视频 | 仿斗鱼滑动验证码 | Toast封装 | 震动 | GPS | Location定位 | 图片缩放 | Exif 图片添加地理位置信息(经纬度) | 蛛网等级 | 颜色选择器 | ArcGis | VTPK | 编译运行一下说不定会找到惊喜
Stars: ✭ 11,567 (+7663.09%)
Mutual labels:  toast
Svelte Notifications
Svelte toast notifications component that can be used in any JS application
Stars: ✭ 146 (-2.01%)
Mutual labels:  toast
Ladybug
A powerful model framework for Swift 4
Stars: ✭ 147 (-1.34%)
Mutual labels:  json
Co
Art of C++. Flag, logging, unit-test, json, go-style coroutine and more.
Stars: ✭ 2,264 (+1419.46%)
Mutual labels:  json
Jhop
🏎Create fake REST API in one sec.
Stars: ✭ 148 (-0.67%)
Mutual labels:  json
Easy mock api
easy mock json api
Stars: ✭ 145 (-2.68%)
Mutual labels:  json
Goconfig
goconfig uses a struct as input and populates the fields of this struct with parameters from command line, environment variables and configuration file.
Stars: ✭ 146 (-2.01%)
Mutual labels:  json
Laravel Translatable String Exporter
Translatable String Exporter for Laravel
Stars: ✭ 149 (+0%)
Mutual labels:  json
Json 2 Kotlin
Convert JSON to Kotlin Data Classes
Stars: ✭ 148 (-0.67%)
Mutual labels:  json
Carrots Admin Ajax
基于AngularJS1.3.18 + BootStrap 3.3.7 + +jQuery3.2.1 的后台管理系统方案
Stars: ✭ 147 (-1.34%)
Mutual labels:  json

UtilsDmo

  ##依赖

  compile 'com.ycjiang:Yutils:1.2.0'

JsonManager json解析 采用 fastjson

TimeUtils 时间类 除了时间格式化,提供用于视频的时长,和语音的时长 时间格式化

YUtils 类 例如 获取屏幕宽高。 Toast 提示(防止重复显示) 是否有网络 手机是否有虚拟导航,状态栏等 单位互相转换dp,px,sp

public class App extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        YUtils.initialize(this);
        YUtils.setGravity(Gravity.CENTER);
    }
}
public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.button2:
                Log.d("MainActivity","asdasda");
                YUtils.Toast("哈哈");
                break;
            case R.id.button3:
                YUtils.Toast(TimeUtils.getDataTimeCNString(new Date()));
                break;
            case R.id.button4:
                YUtils.Toast("是否虚拟导航键:"+YUtils.isNavigationBarExist2(this));
                break;
            case R.id.button5:
                  String lists= JsonManager.beanToJson(list);
                YUtils.Toast("json:"+lists);
                break;
            case R.id.button6:
                CountDownTimer cc= TimeUtils.countDown(this, 60, 1, new TimeUtils.CountDownListener() {
                    @Override
                    public void onFinish(String text) {
                        YUtils.Toast("onFinish:"+text);
                    }

                    @Override
                    public void onTick(long millisUntilFinished, String text) {
                        YUtils.Toast("onTick:"+text);
                    }
                });
                break;
            case R.id.button7:
                YUtils.Toast("视频时长:"+TimeUtils.getVideoTime(100));
                break;
            case R.id.button8:
                YUtils.Toast("视频文件:"+YUtils.formatFileSizeAll(1500000L));
                break;
        }
      }

  更多用法请看类库说明,方法都有注释

1.1.3

  • 1.修改TimeUtils 方法 get 换成from
  • 2.YFileUtils 帮助类
  • 3.增加 网络帮助类NetworkUtils 移除YUtils 网络方法
  • 4.修改日志 log 类名为Logger
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].