forked from TheChance101/MovieApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor : error screen #21
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
Open
ShroukMohamed16
wants to merge
4
commits into
develop
Choose a base branch
from
refactor/lost-connection-screen
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
39f6687
refactor/error-screen
ShroukMohamed16 534dc4c
fix: adjust spacing between components
ShroukMohamed16 6fbdf7a
feat: add ripple effect to button background
ShroukMohamed16 d56ca33
Merge branch 'develop' into refactor/lost-connection-screen
ShroukMohamed16 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,10 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <ripple xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:color="?attr/colorControlHighlight"> | ||
| <item> | ||
| <shape android:shape="rectangle"> | ||
| <solid android:color="@color/button_primary" /> | ||
| <corners android:radius="@dimen/radius_medium" /> | ||
| </shape> | ||
| </item> | ||
| </ripple> |
This file contains hidden or 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,5 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <shape android:shape="oval" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
|
||
| <solid android:color="@color/additional_secondary_red"/> | ||
| </shape> |
This file contains hidden or 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,26 @@ | ||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt" | ||
| android:viewportWidth="24" | ||
| android:viewportHeight="24" | ||
| android:width="24dp" | ||
| android:height="24dp"> | ||
| <path | ||
| android:pathData="M10.8325 10.6241C10.3283 10.261 9.99997 9.66883 9.99997 9C9.99997 7.89543 10.8954 7 12 7C13.1045 7 14 7.89543 14 9C14 9.66883 13.6717 10.261 13.1674 10.6241L16.7147 21.7726C16.8231 22.1134 16.6759 22.4833 16.3629 22.6563C16.05 22.8294 15.6584 22.7574 15.4274 22.4845L12 18.4338L8.57251 22.4845C8.34152 22.7574 7.94994 22.8294 7.63701 22.6563C7.32408 22.4833 7.17685 22.1134 7.28527 21.7726L10.8325 10.6241ZM12.9824 17.2727L14.1465 18.6485L13.5103 16.6489L12.9824 17.2727ZM12.9745 14.9648C12.9582 14.9809 12.9425 14.9978 12.9274 15.0155L12 16.1116L11.0725 15.0155C11.0575 14.9978 11.0418 14.9809 11.0255 14.9648L12 11.9022L12.9745 14.9648ZM10.4896 16.6489L11.0175 17.2727L9.85342 18.6485L10.4896 16.6489Z" | ||
| android:fillType="evenOdd" | ||
| android:fillColor="#313131" /> | ||
| <path | ||
| android:pathData="M5.46583 2.53086C5.75902 2.23826 5.75949 1.76338 5.46689 1.4702C5.17429 1.17701 4.69941 1.17654 4.40623 1.46914C2.45721 3.41428 1.25 6.10595 1.25 9.07816C1.25 12.0852 2.48564 14.805 4.47497 16.7552C4.77076 17.0451 5.24561 17.0404 5.53557 16.7446C5.82554 16.4488 5.82082 15.974 5.52503 15.684C3.81163 14.0043 2.75 11.6659 2.75 9.07816C2.75 6.5203 3.78722 4.20612 5.46583 2.53086Z" | ||
| android:fillColor="#313131" | ||
| android:fillAlpha="0.4" /> | ||
| <path | ||
| android:pathData="M19.677 1.55312C19.387 1.25733 18.9122 1.25262 18.6164 1.54258C18.3206 1.83255 18.3159 2.3074 18.6059 2.60319C20.2422 4.27243 21.25 6.55686 21.25 9.07816C21.25 11.6293 20.2182 13.9381 18.5473 15.6123C18.2547 15.9055 18.2552 16.3804 18.5484 16.673C18.8415 16.9656 19.3164 16.9651 19.609 16.6719C21.5491 14.728 22.75 12.0426 22.75 9.07816C22.75 6.14855 21.5771 3.49139 19.677 1.55312Z" | ||
| android:fillColor="#313131" | ||
| android:fillAlpha="0.4" /> | ||
| <path | ||
| android:pathData="M8.27408 5.62574C8.57652 5.34272 8.59226 4.86811 8.30923 4.56567C8.02621 4.26323 7.5516 4.24749 7.24916 4.53051C6.02148 5.67937 5.25 7.28109 5.25 9.06033C5.25 10.8605 6.03967 12.4787 7.29244 13.6303C7.59739 13.9106 8.07185 13.8906 8.35216 13.5857C8.63248 13.2807 8.61251 12.8063 8.30756 12.526C7.33869 11.6354 6.75 10.4078 6.75 9.06033C6.75 7.72833 7.32517 6.51373 8.27408 5.62574Z" | ||
| android:fillColor="#313131" | ||
| android:fillAlpha="0.7" /> | ||
| <path | ||
| android:pathData="M16.8033 4.58011C16.5039 4.2938 16.0292 4.30436 15.7429 4.60369C15.4566 4.90302 15.4671 5.37778 15.7664 5.66409C16.6911 6.54855 17.25 7.74727 17.25 9.06033C17.25 10.3889 16.6778 11.6006 15.7333 12.488C15.4315 12.7716 15.4167 13.2462 15.7003 13.5481C15.9839 13.85 16.4586 13.8648 16.7604 13.5811C17.9825 12.4329 18.75 10.8349 18.75 9.06033C18.75 7.30668 18.0005 5.72524 16.8033 4.58011Z" | ||
| android:fillColor="#313131" | ||
| android:fillAlpha="0.7" /> | ||
| </vector> |
This file contains hidden or 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,30 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
|
||
| <item android:id="@android:id/background"> | ||
| <shape | ||
| android:shape="ring" | ||
| android:thicknessRatio="10" | ||
| android:useLevel="false"> | ||
| <solid android:color="#CCCCCC" /> | ||
| </shape> | ||
| </item> | ||
| <item android:id="@android:id/progress"> | ||
| <rotate | ||
| android:fromDegrees="270" | ||
| android:pivotX="50%" | ||
| android:pivotY="50%" | ||
| android:toDegrees="270"> | ||
| <shape | ||
| android:shape="ring" | ||
| android:thicknessRatio="10" | ||
| android:useLevel="true"> | ||
| <gradient | ||
| android:startColor="#FF0000" | ||
| android:endColor="#0000FF" | ||
| android:angle="0" | ||
| android:type="sweep" /> | ||
| </shape> | ||
| </rotate> | ||
| </item> | ||
| </layer-list> |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The button radius is not correct, it should be 10.dp, and I think it's a squircle shape
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I double check this, I think it's correct you can see this line is using radius medium which is 10.dp
android:background="@drawable/button_background"There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I think the problem is that it's a squircle shape
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes you're right I'm working to extend the style of the button in order to match the design