ReView 一个用于辅助程序员、设计师“在线”查看字体大小以及颜色等属性的 View 组件集合

网友投稿 565 2022-10-22

ReView 一个用于辅助程序员、设计师“在线”查看字体大小以及颜色等属性的 View 组件集合

ReView 一个用于辅助程序员、设计师“在线”查看字体大小以及颜色等属性的 View 组件集合

ReView

A view to help developers and designers view the View's font size, color, and border, so far, it only support TextView Button and ImageView.

Only by one line code,and all TextView、Button、ImageView and others support view will show text border、color attr in top of View like gif demo.

An introductory article written in Chinese 关于 ReView

Demo

download link

or Qrcode

Usage

Step 1

Add the JitPack repository to your build file

allprojects { repositories { ... maven { url "https://jitpack.io" } }}

Step 2

Add the dependency

dependencies { compile 'com.github.maoruibin:ReView:1.1.0'}

Step 3

use RVHelper.makeLayoutToReviewMod(context) like this.

@Overrideprotected void onCreate(Bundle savedInstanceState) { RVHelper.makeLayoutToReviewMod(this); super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);}

Note:it should be called before super.onCreate()

Step 4

Setting options

// set current is review mod or notRVHelper.isReviewMod(true);// set is show border or not RVHelper.isShowBorder(true);// set is show text color or notRVHelper.isShowTextColor(true);// set is show text size by dp or notRVHelper.isShowTextSizeDp(true);// set is show text size by sp or notRVHelper.isShowTextSizeSp(true);

you can get more information by watch demo.

Inspired by douban

Support View

TextViewButtonImageViewEditTextCheckBoxRadioButtonProgressBar

Author

http://gudong.name

https://github.com/maoruibin

http://weibo.com/maoruibin

License

Copyright 2016 GuDongLicensed 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://apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed 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 andlimitations under the License.

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:centos 6.5 dhcp配置
下一篇:SSM框架练手项目,高企必备的管理系统—CRM管理系统
相关文章

 发表评论

暂时没有评论,来抢沙发吧~