Which method can I use to make a ticket layout?

Asked

Viewed 77 times

0

I am in a parking project which requires the use of ticket generated through a bluetooth device. my question is how can I make this layout? which parameters and methods can I use?

1 answer

1


This layout pleases you? inserir a descrição da imagem aqui

It’s from a library called Ticketview. It works from API 15 up. You just have to add in your Gradle:

dependencies {
    implementation 'com.vipulasri:ticketview:1.0.4'
}

And use in your XML Layout:

<com.vipulasri.ticketview.TicketView
        android:layout_width="match_parent"
        android:layout_height="160dp"
        android:layout_marginTop="60dp"
        android:layout_marginLeft="20dp"
        android:layout_marginRight="20dp"
        android:id="@+id/ticketView"
        app:orientation="vertical"
        app:scallopRadius="10dp"
        app:showBorder="false"
        app:scallopPositionPercent="50"
        app:showDivider="true"
        app:dividerType="dash"
        app:ticketElevation="14dp"/>

The app in the image above is open source and can be found here.

  • thanks even guy, grateful!!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.