All Projects → varunjohn → Booking Seats Layout Sample

varunjohn / Booking Seats Layout Sample

A sample that shows how to create a dynamic layout for booking seats

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Booking Seats Layout Sample

movie-booking
An example for booking movie seat, combined of Android Data Binding, State Design Pattern and Multibinding + Autofactory. iOS version is: https://github.com/lizhiquan/MovieBooking
Stars: ✭ 80 (+1.27%)
Mutual labels:  movie, android-ui
Moviebookingui Android
This is a concept of fetching a user's cinema show details like venue, movie, date & showtime before allowing him to place a cinema F&B order.
Stars: ✭ 62 (-21.52%)
Mutual labels:  movie, android-ui
Kakao
Nice and simple DSL for Espresso in Kotlin
Stars: ✭ 1,109 (+1303.8%)
Mutual labels:  android-ui
Timelapsebuilder Swift
Build a movie from jpeg images in Swift using AVFoundation
Stars: ✭ 72 (-8.86%)
Mutual labels:  movie
Selectseat
selectSeat movie iOS objective-c(电影选座)
Stars: ✭ 69 (-12.66%)
Mutual labels:  movie
Fitbutton
The button which can use with icon, text, divider, custom ripple effect, border, corner radius e.t.c.
Stars: ✭ 63 (-20.25%)
Mutual labels:  android-ui
Slideactionview
An Android view which provides a nice slide-to-left/right interaction.
Stars: ✭ 70 (-11.39%)
Mutual labels:  android-ui
Android Dial Picker
A custom rotating dial like picker for android
Stars: ✭ 56 (-29.11%)
Mutual labels:  android-ui
Cycleviewpager2
使用 ViewPager2 实现无限轮播效果,可以用来实现 banner 以及上下滚动文字广告等。Implementing android cycle viewPager with ViewPager2
Stars: ✭ 76 (-3.8%)
Mutual labels:  android-ui
Freeiptv
FreeIPTV • Watch Free IPTV World Wide
Stars: ✭ 68 (-13.92%)
Mutual labels:  movie
Edxposedmanager
Companion Android application for EdXposed
Stars: ✭ 1,172 (+1383.54%)
Mutual labels:  android-ui
Rippleview
View that imitates Ripple Effect on click which was introduced in Android L (for Android 2.3+)
Stars: ✭ 1,147 (+1351.9%)
Mutual labels:  android-ui
Iwatched
Track movies or tv shows you watched.
Stars: ✭ 64 (-18.99%)
Mutual labels:  movie
Myownchallenge Rnmovietinder
React-Native app for help you find movie to watch
Stars: ✭ 70 (-11.39%)
Mutual labels:  movie
Bandersnatch
Black Mirror: Bandersnatch, HTML5 interactive version
Stars: ✭ 74 (-6.33%)
Mutual labels:  movie
Battery Meter View
🔋 Material design battery meter (i.e. level, state) view for Android
Stars: ✭ 57 (-27.85%)
Mutual labels:  android-ui
Oblecto
Oblecto is a media server, which streams media you already own, and is designed to be at the heart of your entertainment experience. It runs on your home server to index and analyze your media such as Movies and TV Shows and presents them in an interface tailored for your media consupmtion needs.
Stars: ✭ 67 (-15.19%)
Mutual labels:  movie
Floatingactionbuttonspeeddial
A Floating Action Button Speed Dial implementation for Android that follows the Material Design specification (https://material.io/components/buttons-floating-action-button#types-of-transitions)
Stars: ✭ 1,164 (+1373.42%)
Mutual labels:  android-ui
Confetti
An Android particle system library for displaying confetti!
Stars: ✭ 1,194 (+1411.39%)
Mutual labels:  android-ui
Cwac Layouts
CWAC Layouts: Custom Containers, Concisely Coded
Stars: ✭ 76 (-3.8%)
Mutual labels:  android-ui

Booking-Seats-Layout-Sample

This project is sample app for Android it generates a dynamic layout for booking seats.

seat layout sample

To create the layout dynamically we need to pass specific syntax in string so the method could understand and process it.

String seats =        "_UUUUUUAAAAARRRR_/"
                    + "_________________/"
                    + "UU__AAAARRRRR__RR/"
                    + "UU__UUUAAAAAA__AA/"
                    + "AA__AAAAAAAAA__AA/"
                    + "AA__AARUUUURR__AA/"
                    + "UU__UUUA_RRRR__AA/"
                    + "AA__AAAA_RRAA__UU/"
                    + "AA__AARR_UUUU__RR/"
                    + "AA__UUAA_UURR__RR/"
                    + "_________________/"
                    + "UU_AAAAAAAUUUU_RR/"
                    + "RR_AAAAAAAAAAA_AA/"
                    + "AA_UUAAAAAUUUU_AA/"
                    + "AA_AAAAAAUUUUU_AA/"
                    + "_________________/";

As for this sample we have 3 status for the seats :

  • U is for already booked seats

  • R is for reserved seats

  • A is for available seats

  • _ is for empty space

You can customize this string according to your seats arrangement. As of this string it has 175 seats each having unique id assigned to it. The assigned id is useful for sending the booked seats request to server.

Reserved seats VS Booked seats
Both can't be booked but showing them with seperates colors cause the reserved seats can be available with time.

Limitation
It's not recycling the views.

About Me

Varun John
Sr. Android Developer
[email protected]
Skype varun.john1990
Follow me https://github.com/varunjohn for other samples and libraries like these

If you like this sample then please add a star on this project :)

License

   Copyright 2018 Varun John

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].