SeatBookView
SeatBookView is an Android Studio Library that helps to make it easier to create Bus ?, Train ?, Cinema Theater Seat UI and all functionalities are given. Based on varunjohn/Booking-Seats-Layout-Sample
Preview
Installation
For Gradle:
Step 1: Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2: Add the dependency
dependencies {
implementation 'com.github.JahidHasanCO:SeatBookView:1.0.3'
}
For Maven:
To get a Git project into your build: Step 1: Add the JitPack repository to your build file
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Step 2: Add the dependency
<dependency>
<groupId>com.github.JahidHasanCO</groupId>
<artifactId>SeatBookView</artifactId>
<version>Tag</version>
</dependency>
Usage
<dev.jahidhasanco.seatbookview.SeatBookView
android:layout_marginTop="10dp"
android:layout_marginBottom="30dp"
android:id="@+id/layoutSeat"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:gravity="center"
app:seat_gaping="10dp"
app:seat_text_size="15sp"
app:available_seats_text_color="#59575C"
app:seat_select_limit="2"
/>
Attributes of this Library
XML Attributes | Description |
---|---|
app:available_seat_background | This attribute used to set background of non booked seat for any Drawable file. |
app:reserved_seat_background | This attribute used to set background of reserved seat for any Drawable file. |
app:booked_seat_background | This attribute used to set background of booked seat for any Drawable file. |
app:selected_seats_background | This attribute used to set background of selected seat for any Drawable file. |
app:reserved_seats_text_color | Color of the reserved seat text. |
app:booked_seats_text_color | Color of the booked seat text. |
app:available_seats_text_color | Color of the non booked seat text. |
app:seat_size | Size of the Seat |
Check All XML Attributes here
LICENSE
This project is distributed under the MIT license, check the license for more info.
MIT License
Copyright (c) 2022 Md. Zahidul Islam
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Contributing ?
If you want to contribute to this project and make it better with new ideas, your pull request is very welcomed. If you find any issue just put it in the repository issue section, thank you.