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?
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
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.
Browser other questions tagged android
You are not signed in. Login or sign up in order to post.
thanks even guy, grateful!!
– Felipe.M