Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,8 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
//splash screen api
implementation 'androidx.core:core-splashscreen:1.0.0-alpha02'
//Lottie
def lottieVersion = "3.4.0"
implementation "com.airbnb.android:lottie:$lottieVersion"

}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a blank line

Binary file added app/src/main/res/drawable/back_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/back_to_home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/backbuttontop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/callvector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/cancel_request.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/contact_host.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/h2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/h2_copy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/drawable/please_try_again.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
113 changes: 113 additions & 0 deletions app/src/main/res/layout/fail.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_height="match_parent"
android:layout_width="match_parent">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:src="@drawable/backbuttontop"
android:layout_marginTop="30dp"
android:layout_marginStart="25dp" />


<com.airbnb.lottie.LottieAnimationView
android:id="@+id/animationView"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="38dp"
android:layout_width="305dp"
android:layout_height="343dp"
app:lottie_rawRes="@raw/fail"
app:lottie_autoPlay="true"
app:lottie_loop="false"/>
<ImageView
android:layout_width="293dp"
android:layout_height="58dp"
app:layout_constraintTop_toBottomOf="@+id/animationView"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:id="@+id/snap"
android:src="@drawable/oh_snap__request_rejected" />
<ImageView
android:layout_width="255dp"
android:layout_height="58dp"
app:layout_constraintTop_toBottomOf="@+id/snap"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:id="@+id/notification_fail"
android:src="@drawable/h2_copy"/>

<androidx.cardview.widget.CardView
android:layout_width="316dp"
android:layout_height="54dp"
android:id="@+id/cardpurple"
app:layout_constraintTop_toBottomOf="@+id/notification_fail"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="30dp"
app:cardCornerRadius="50dp"
app:cardBackgroundColor="@color/bg_purple">
<ImageView
android:layout_width="85dp"
android:layout_height="37dp"
android:src="@drawable/please_try_again"
android:layout_marginStart="121dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="9dp"
android:layout_marginEnd="110dp"
android:id="@+id/tryagain"/>

</androidx.cardview.widget.CardView>



<ImageView
android:layout_width="12dp"
android:layout_height="12dp"
android:id="@+id/backbutton"
app:layout_constraintTop_toBottomOf="@id/cardpurple"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:foregroundGravity="center_vertical"
android:src="@drawable/back_button"
android:layout_marginStart="140dp"
android:layout_marginTop="20dp"
app:layout_constraintEnd_toStartOf="@+id/empty"
android:layout_marginBottom="30dp"/>

<TextView
android:layout_width="9dp"
android:layout_height="14dp"
android:id="@+id/empty"
app:layout_constraintStart_toEndOf="@+id/backbutton"
app:layout_constraintEnd_toStartOf="@+id/back"
app:layout_constraintTop_toBottomOf="@id/cardpurple"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginTop="20dp"
android:layout_marginBottom="30dp"/>


<ImageView
android:layout_width="75dp"
android:layout_height="14dp"
android:id="@+id/back"
android:layout_marginTop="20dp"
app:layout_constraintTop_toBottomOf="@id/cardpurple"
app:layout_constraintStart_toEndOf="@+id/empty"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginEnd="140dp"
android:src="@drawable/back_to_home"
android:layout_marginBottom="30dp"/>

</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
141 changes: 141 additions & 0 deletions app/src/main/res/layout/success.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_height="match_parent"
android:layout_width="match_parent">

<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
android:src="@drawable/backbuttontop"
android:layout_marginTop="30dp"
android:layout_marginStart="25dp" />


<com.airbnb.lottie.LottieAnimationView
android:id="@+id/animationView"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="38dp"
android:layout_width="305dp"
android:layout_height="343dp"
app:lottie_rawRes="@raw/animation"
app:lottie_autoPlay="true"
app:lottie_loop="false"/>
<ImageView
android:layout_width="293dp"
android:layout_height="58dp"
app:layout_constraintTop_toBottomOf="@+id/animationView"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:id="@+id/congrats"
android:src="@drawable/congrats__your_req_has_been_placed" />
<ImageView
android:layout_width="255dp"
android:layout_height="58dp"
app:layout_constraintTop_toBottomOf="@+id/congrats"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:id="@+id/notification_success"
android:src="@drawable/h2"/>

<androidx.cardview.widget.CardView
android:layout_width="316dp"
android:layout_height="54dp"
android:id="@+id/cardgreen"
app:layout_constraintTop_toBottomOf="@+id/notification_success"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="30dp"
app:cardCornerRadius="50dp"
app:cardBackgroundColor="@color/green">
<ImageView
android:layout_width="20dp"
android:layout_height="20dp"
android:src="@drawable/callvector"
android:layout_marginStart="83dp"
android:layout_marginVertical="17dp"
android:id="@+id/call_symbol"/>
<ImageView
android:layout_width="85dp"
android:layout_height="37dp"
android:src="@drawable/contact_host"
android:layout_marginStart="121dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="9dp"
android:layout_marginEnd="110dp"
android:id="@+id/contact"/>

</androidx.cardview.widget.CardView>


<androidx.cardview.widget.CardView
android:layout_width="316dp"
android:layout_height="54dp"
android:id="@+id/cardred"
app:layout_constraintTop_toBottomOf="@+id/cardgreen"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginTop="16dp"
app:cardCornerRadius="50dp"
app:cardBackgroundColor="@color/red">
<ImageView
android:layout_width="85dp"
android:layout_height="37dp"
android:src="@drawable/cancel_request"
android:layout_marginStart="121dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="9dp"
android:layout_marginEnd="110dp"
android:id="@+id/cancelrequest"/>

</androidx.cardview.widget.CardView>

<ImageView
android:layout_width="12dp"
android:layout_height="12dp"
android:id="@+id/backbutton"
app:layout_constraintTop_toBottomOf="@id/cardred"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
android:foregroundGravity="center_vertical"
android:src="@drawable/back_button"
android:layout_marginStart="140dp"
android:layout_marginTop="20dp"
android:layout_marginBottom="30dp"
app:layout_constraintEnd_toStartOf="@+id/empty"/>

<TextView
android:layout_width="9dp"
android:layout_height="14dp"
android:id="@+id/empty"
app:layout_constraintStart_toEndOf="@+id/backbutton"
app:layout_constraintEnd_toStartOf="@+id/back"
app:layout_constraintTop_toBottomOf="@id/cardred"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginBottom="30dp"
android:layout_marginTop="20dp"/>


<ImageView
android:layout_width="75dp"
android:layout_height="14dp"
android:id="@+id/back"
android:layout_marginTop="20dp"
app:layout_constraintTop_toBottomOf="@id/cardred"
app:layout_constraintStart_toEndOf="@+id/empty"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginEnd="140dp"
android:src="@drawable/back_to_home"
android:layout_marginBottom="30dp"/>

</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blank line

Loading