Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Create Post : fixing Finish Screen after create a post #189

Merged
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"
android:padding="10dp">
<solid android:color="@color/fightPandemicsNeonBlue" />
<corners android:radius="50dp" />
<stroke
android:color="@color/fightPandemicsNeonBlue"
android:width="1dp" />
</shape>
10 changes: 10 additions & 0 deletions createpost/src/main/res/drawable/dialogue_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"
android:padding="10dp">
<solid android:color="@color/colorWhite" />
<corners android:radius="4dp" />
<stroke
android:color="@color/colorWhite"
android:width="1dp" />
</shape>
342 changes: 342 additions & 0 deletions createpost/src/main/res/drawable/ic_post_finished.xml

Large diffs are not rendered by default.

90 changes: 71 additions & 19 deletions createpost/src/main/res/layout/item_view_post.xml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,28 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_width="@dimen/dialogue_width_312dp"
android:layout_height="@dimen/dialogue_height_330dp"
android:background="@color/color_white">

<ImageView
android:id="@+id/view_post"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_constraintBottom_toBottomOf="parent"
android:id="@+id/close_msg"
android:layout_width="18dp"
android:layout_height="18dp"
android:layout_marginStart="6dp"
android:layout_marginTop="16dp"
android:clickable="true"
android:contentDescription="@string/close_button"
android:focusable="true"
android:src="@drawable/ic_cancel_2"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
android:scaleType="centerCrop"
android:paddingBottom="20dp"
android:src="@drawable/all_done"/>
app:layout_constraintHorizontal_bias="0.0"
app:layout_constraintStart_toEndOf="@+id/iv_post_finished"
app:layout_constraintTop_toTopOf="parent" />

<ImageView
android:id="@+id/cancel"
android:layout_width="24dp"
android:layout_height="24dp"
android:id="@+id/iv_post_finished"
android:layout_width="232dp"
android:layout_height="119dp"
android:layout_marginTop="26dp"
android:contentDescription="@string/all_finished_image"
android:src="@drawable/ic_post_finished"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<com.google.android.material.textview.MaterialTextView
android:id="@+id/all_finished"
style="@style/AndroidNativeH216Px"
android:layout_width="@dimen/text_width_236dp"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:gravity="center"
android:lineSpacingExtra="0dp"
android:text="@string/all_finished"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/iv_post_finished" />

<com.google.android.material.textview.MaterialTextView
android:id="@+id/delete_msg_content"
style="@style/AndroidNativeH412Px"
android:layout_width="@dimen/text_width_236dp"
android:layout_height="wrap_content"
android:layout_marginStart="27dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="27dp"
android:gravity="center"
android:text="@string/finished_msg"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/all_finished" />

<com.google.android.material.button.MaterialButton
android:id="@+id/btn_view_post"
style="@style/PrimaryButton"
android:layout_width="155dp"
android:layout_height="48dp"
android:layout_marginTop="20dp"
android:layout_marginEnd="20dp"
app:layout_constraintEnd_toEndOf="@id/view_post"
app:layout_constraintTop_toTopOf="@id/view_post"
android:src="@drawable/ic_cancel_2" />
</androidx.constraintlayout.widget.ConstraintLayout>
android:background="@drawable/button_confirm_blue_background"
android:clickable="true"
android:focusable="true"
android:fontFamily="@font/poppins_medium"
android:padding="0dp"
android:paddingTop="15dp"
android:paddingBottom="14dp"
android:text="@string/view_post"
android:textSize="14sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/delete_msg_content" />

</androidx.constraintlayout.widget.ConstraintLayout>
2 changes: 2 additions & 0 deletions createpost/src/main/res/values/colors.xml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,6 @@
<color name="info_event_card_logo_background">@color/android_blue_light</color>-->

<color name="transparent">#00000000</color>

<color name="dialogue_background_transparent">#6b000000</color>
</resources>
8 changes: 8 additions & 0 deletions createpost/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Post Creation Finished -->
<dimen name="dialogue_width_312dp">312dp</dimen>
<dimen name="dialogue_height_330dp">330dp</dimen>
<dimen name="text_width_236dp">236dp</dimen>

</resources>
5 changes: 5 additions & 0 deletions createpost/src/main/res/values/strings.xml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,9 @@
<string name="people_in_my_city">People in my City</string>
<string name="people_in_my_country">People in my Country</string>
<string name="people_in_my_state">People in my State</string>
<string name="all_finished">All Finished!</string>
<string name="finished_msg">Keep an eye on your post for comments or direct messages from people!</string>
<string name="view_post">View Post</string>
<string name="all_finished_image">All finished image</string>
<string name="close_button">close_button</string>
</resources>
Empty file modified createpost/src/main/res/values/styles.xml
100644 → 100755
Empty file.