GithubHelp home page GithubHelp logo

ewsq / lib_shape Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 0119zp/lib_shape

0.0 1.0 0.0 1.49 MB

自定义SuperButton,覆盖80%以上的按钮类型,从此不再写shape、selector资源文件。清爽了很多!

Kotlin 1.77% Java 98.23%

lib_shape's Introduction

lib-shape

自定义TextViewShape、LinearLayoutShape、RelativeLayoutShape、lineShape、ConstraintLayoutShape控件,从此不再写shape、selector资源文件。清爽了很多!

感谢

首先要感谢 SuperButton 的作者,该控件是在其基础上做得改动。

概述

该自定义TextViewShape、LinearLayoutShape、RelativeLayoutShape、lineShape、ConstraintLayoutShape,覆盖了大部分shape背景使用场景。

示例图

ShapeButton示例图

示例代码 - 只需要配置其相应的属性就好

            <zpan.lib.shape.TextViewShape
                android:layout_width="80dp"
                android:layout_height="40dp"
                app:color_normal="#e74d4d"
                app:corner="8dp"
                app:text="按钮"
                app:textColor="#ffffff"
                app:textSize="16sp" />

lib_shape's People

Contributors

0119zp avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.