Skip to content

Commit

Permalink
update Project
Browse files Browse the repository at this point in the history
  • Loading branch information
JahidHasanCO committed Aug 22, 2022
1 parent 194ff5a commit e04fb9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions app/src/main/java/dev/jahidhasanco/demo_app/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@ class MainActivity : AppCompatActivity() {
setContentView(R.layout.activity_main)

viewGroupLayout = findViewById(R.id.layoutSeat)

seatBookView = SeatBookView(this)
.setSeatSizeBySeatsColumn(5)
.setSeatGaping(10)
.setSeatSizeBySeatsColumn(5)
.setAvailableSeatsTextColor(R.color.purple_200)
.setSeatsLayoutString(seats)

seatBookView.setSeatTextSize(21f)

seatBookView.setSeatViewLayout(viewGroupLayout)
seatBookView.show()
Expand Down
7 changes: 4 additions & 3 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollbars="vertical">
android:scrollbars="vertical"
>

<dev.jahidhasanco.seatbookview.SeatBookView
android:id="@+id/layoutSeat"
android:layout_width="match_parent"
android:layout_height="match_parent"

android:layout_height="wrap_content"
app:seat_size_by_seats_column="9"
android:orientation="vertical"/>

</ScrollView>
Expand Down

0 comments on commit e04fb9a

Please sign in to comment.