I am in a parking project which requires the use of a ticket generated through a bluetooth device. My question is how can I make this layout? what parameters and methods can I use?
I am in a parking project which requires the use of a ticket generated through a bluetooth device. My question is how can I make this layout? what parameters and methods can I use?
It'sfromalibrarycalled TicketView . It works from API 15 upwards. 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 .