diff --git a/app/src/main/java/com/example/gudmundurorripalsson/hvaderibio/MovieFragment.java b/app/src/main/java/com/example/gudmundurorripalsson/hvaderibio/MovieFragment.java index 258a193..706bb7c 100644 --- a/app/src/main/java/com/example/gudmundurorripalsson/hvaderibio/MovieFragment.java +++ b/app/src/main/java/com/example/gudmundurorripalsson/hvaderibio/MovieFragment.java @@ -314,6 +314,7 @@ public void onClick(View view) { for (int j = 0; j < schedules.length(); j++) { Button schedule = new Button(getContext()); schedule.setText(schedules.getJSONObject(j).getString("time")); + schedule.setTextSize(13); addUrlToBtn(schedule, schedules.getJSONObject(j).getString("purchase_url")); schedule.setBackground(ContextCompat.getDrawable(getContext(), R.drawable.showtime_button_background)); FlowLayout.LayoutParams scheduleLayout = new FlowLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); diff --git a/app/src/main/res/drawable/button_background.xml b/app/src/main/res/drawable/button_background.xml index c97d3db..3bdacba 100644 --- a/app/src/main/res/drawable/button_background.xml +++ b/app/src/main/res/drawable/button_background.xml @@ -1,28 +1,87 @@ - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/drawable/showtime_button_background.xml b/app/src/main/res/drawable/showtime_button_background.xml index b0587a9..55dda2a 100644 --- a/app/src/main/res/drawable/showtime_button_background.xml +++ b/app/src/main/res/drawable/showtime_button_background.xml @@ -1,22 +1,82 @@ - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/fragment_movie.xml b/app/src/main/res/layout/fragment_movie.xml index 067fa8c..222e844 100644 --- a/app/src/main/res/layout/fragment_movie.xml +++ b/app/src/main/res/layout/fragment_movie.xml @@ -56,7 +56,7 @@ android:transitionName="movieRating" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintHorizontal_bias="0.369" + app:layout_constraintHorizontal_bias="0.472" app:layout_constraintStart_toEndOf="@+id/showtimes" app:layout_constraintTop_toBottomOf="@+id/movieImage" app:layout_constraintVertical_bias="0.0" @@ -65,12 +65,13 @@