• Stars
    star
    195
  • Rank 199,374 (Top 4 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created about 7 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Android json viewer, to convert json strings to a friendly readable format, it supports expend&collapsed json objects.

JsonViewer

Android JSON viewer, to convert JSON Strings to a Friendly Readable Format, it supports expend&collapsed JSON strings.

Dependencies

buildscript {
    repositories {
        ...
        maven { url "https://jitpack.io" }
    }
    dependencies {
        ...
    }
}
dependencies {
    implementation 'com.github.smuyyh:JsonViewer:1.0.7'
}

Usage

Step1

<HorizontalScrollView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fillViewport="true"
    android:orientation="vertical">

	<com.yuyh.jsonviewer.library.JsonRecyclerView
	    android:id="@+id/rv_json"
	    android:layout_width="match_parent"
	    android:layout_height="wrap_content" />
</HorizontalScrollView>

step2

JsonRecyclerView mRecyclewView = findViewById(R.id.rv_json);
// bind json
mRecyclewView.bindJson("your json strings." || JSONObject || JSONArray);

Code Style

The default code style is like https://www.json.cn.

// Color
mRecyclewView.setKeyColor()
mRecyclewView.setValueTextColor()
mRecyclewView.setValueNumberColor()
mRecyclewView.setValueUrlColor()
mRecyclewView.setValueNullColor()
mRecyclewView.setBracesColor()

// TextSize
mRecyclewView.setTextSize()

LICENSE

   Copyright 2017 smuyyh, All right reserved.

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

More Repositories

1

BookReader

📕 "任阅" 网络小说阅读器,3D翻页效果、txt/pdf/epub书籍阅读、Wifi传书~
Java
6,562
star
2

ImageSelector

🌁 Android 图片选择器。充分自由定制,极大程度简化使用,支持图库多选/图片预览/单选/照片裁剪/拍照/自定义图片加载方式/自定义色调/沉浸式状态栏
Java
1,599
star
3

SprintNBA

🏀 NBA客户端
Java
632
star
4

CrawlerForReader

Android 本地网络小说爬虫,基于jsoup及xpath
Java
390
star
5

BubblePopupWindow

Android 实现各个方向的气泡弹窗,可控制气泡尖角偏移量。
Java
345
star
6

BankCardFormat

💳 自动格式化银行卡号的EditText,卡号格式化、归属银行及卡别判断
Java
282
star
7

EasyGuideView

Android app新手引导,任意View高亮提示,简单易用
Java
197
star
8

IncrementallyUpdate

Android 应用增量更新
C
179
star
9

EasyAdapter

Android 轻量级适配器,简化使用,适应所有的AbsListView、RecyclerView。支持HeaderView与FooterView~
Java
168
star
10

CommonLibary

CommonLibrary主要是自己整理的一些项目开发中常用的工具类、通用UI的集合,尽可能的覆盖Android开发中通用的一些东西
Java
139
star
11

AutoInstall

Android 无需Root实现APK的静默安装
Java
135
star
12

NestedRecyclerView

RecyclerView 嵌套 多Tab 吸顶容器,类似 盒马、朴朴超市 首页。
Java
111
star
13

StickyHeaderListView

仿滴滴打车开具发票页,ListView粘性Header
Java
89
star
14

HardwareTest

Android 各个硬件模块自动化测试。包括LCD、摄像头、键盘、闪光灯、声音、磁盘存储、震动、触摸屏、NFC及各类传感器的测试。
Java
87
star
15

StickyHeaderRecyclerView

RecyclerView 悬浮吸顶 Header,支持阴影、点击事件与状态绑定
Java
75
star
16

easyDAO

easyDAO is a light-weight&fast ORM library for Android that maps objects to SQLite , it becomes much easier to operate the SQLite database.
Java
35
star
17

ReactNativeTools

IntelliJ plugin, to make it easier to execute react-native commands
Java
26
star
18

GitHubWidgets

GitHub html widget, include User Widget、Repo Widget and Activity Widget.
JavaScript
18
star
19

SimpleMail

一个基于POP3和SMTP协议的邮件收发库
Java
10
star
20

ReflectionDemo

从Java反射机制到Android自定义注解框架
Java
10
star
21

AndroidLayoutIDConverter

Android Studio插件。快速生成findViewById代码/ButtefKnife注解/AndroidAnnotations注解~
Java
4
star
22

JustTest

contributions
Java
2
star