-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* set on long click listener
- Loading branch information
MustafaHasria
committed
Jun 24, 2021
1 parent
5741823
commit 0a8f66e
Showing
6 changed files
with
238 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:id="@+id/brief_movie_dialog_card_main_container" | ||
android:layout_width="match_parent" | ||
android:layout_height="175dp" | ||
android:layout_margin="8dp" | ||
app:cardCornerRadius="16dp" | ||
app:cardElevation="2.5dp"> | ||
|
||
<androidx.constraintlayout.widget.ConstraintLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<ImageView | ||
android:id="@+id/brief_movie_dialog_image_view_image" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:scaleType="centerCrop" | ||
android:src="@drawable/image_poster" /> | ||
|
||
<ImageView | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:alpha="0.8" | ||
android:src="@drawable/background_overlay" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" /> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:orientation="vertical" | ||
app:layout_constraintBottom_toBottomOf="parent"> | ||
|
||
<TextView | ||
android:id="@+id/brief_movie_dialog_text_name" | ||
style="@style/text_style" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="8dp" | ||
android:text="Avengers end game" /> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:weightSum="3"> | ||
|
||
<TextView | ||
android:id="@+id/brief_movie_dialog_text_category" | ||
style="@style/text_style" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="8dp" | ||
android:layout_weight="1" | ||
android:text="Action" /> | ||
|
||
<TextView | ||
android:id="@+id/brief_movie_dialog_text_duration" | ||
style="@style/text_style" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:text="duration: 2:15" /> | ||
|
||
<TextView | ||
android:id="@+id/brief_movie_dialog_text_rating" | ||
style="@style/text_style" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:text="Rating: 5" /> | ||
|
||
</LinearLayout> | ||
|
||
|
||
</LinearLayout> | ||
|
||
|
||
<ImageView | ||
android:id="@+id/brief_movie_dialog_image_close" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="8dp" | ||
android:background="@drawable/ic_baseline_arrow_forward" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
|
||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
|
||
|
||
</androidx.cardview.widget.CardView> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,74 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.constraintlayout.widget.ConstraintLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="300dp" | ||
android:layout_height="wrap_content" | ||
android:padding="16dp" | ||
android:background="@color/background" | ||
android:orientation="vertical"> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
<TextView | ||
android:text="Developers name:" | ||
style="@style/text_style_head" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content"/> | ||
|
||
<LinearLayout | ||
android:layout_marginTop="8dp" | ||
android:orientation="horizontal" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
<ImageView | ||
android:layout_width="70dp" | ||
android:layout_height="70dp"/> | ||
<TextView | ||
android:layout_gravity="center" | ||
style="@style/text_style" | ||
android:text="the name of developer" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"/> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_marginTop="8dp" | ||
android:orientation="horizontal" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
<ImageView | ||
android:layout_width="70dp" | ||
android:layout_height="70dp"/> | ||
<TextView | ||
android:layout_gravity="center" | ||
style="@style/text_style" | ||
android:text="the name of developer" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"/> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_marginTop="8dp" | ||
android:orientation="horizontal" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
<ImageView | ||
android:layout_width="70dp" | ||
android:layout_height="70dp"/> | ||
<TextView | ||
android:layout_gravity="center" | ||
style="@style/text_style" | ||
android:text="the name of developer" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"/> | ||
</LinearLayout> | ||
|
||
<android.widget.Button | ||
android:id="@+id/developer_team_info_dialog_button_ok" | ||
android:layout_marginTop="20dp" | ||
android:textColor="@color/background" | ||
android:text="Ok" | ||
android:elevation="10dp" | ||
android:textAllCaps="false" | ||
android:background="@drawable/button_background" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"/> | ||
|
||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters