GithubHelp home page GithubHelp logo

teaherbal / ticketdivideline Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kjt666/ticketdivideline

0.0 2.0 0.0 66 KB

仿各种卡票分割线、电影票分割线。支持自定义分割线长度、分割线间隔长度、分割线颜色、方向等属性。

Java 100.00%

ticketdivideline's Introduction

TicketDivideLine

仿各种卡票分割线、电影票分割线。支持自定义分割线长度、分割线间隔长度、分割线颜色、方向等属性。

使用

要在您的构建中获得Git项目:

步骤1.将JitPack存储库添加到构建文件中

将其添加到存储库末尾的根build.gradle中:

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

步骤2.添加依赖项

dependencies {
	        implementation 'com.github.kjt666:TicketDivideLine:v1.0'
	}

演示

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="150dp"
        android:background="#ffffff">

        <wowo.kjt.library.TicketDivideLine
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="40dp" />

    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="150dp"
        android:layout_marginTop="10dp"
        android:background="#ffffff">

        <wowo.kjt.library.TicketDivideLine
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:layout_marginLeft="70dp"
            app:line_orientation="line_vertical" />

    </LinearLayout>

属性说明

  • divid_line_color:
    分割线颜色
  • divide_line_length:
    分割线实线长度
  • divide_line_interval:
    分割线虚线长度(间隔长度)
  • port_shape_diameter:
    两端半圆缺口直径
  • port_shape_color:
    两端半圆缺口颜色
  • line_orientation:
  • line_vertical
  • line_horizontal
    分割线方向,有水平和垂直方向,和LinearLayout的orientation一样。

ticketdivideline's People

Contributors

kjt666 avatar

Watchers

James Cloos avatar  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.