-
Notifications
You must be signed in to change notification settings - Fork 521
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
Fix #745 : Highfi StoryActivity #758
Conversation
|
Updated PR comment. Thanks... |
Thanks for the screenshot. I found that landscape screenshot is not matching with the mock please check. |
previously the height for the text view of summary was zero. I defined it with min height with the reference from portrait and mocks. There is no text in the viewmodel. @veena14cs |
We use hyphens and not underscores for branch names also names should be in small case. See the example in step 1 here: https://github.com/oppia/oppia-android/wiki#instructions-for-making-a-code-change. In this Pr its fine. From next PR follow above naming convention. |
If chapter summary is not present then will file an issue and fix it in lowfi. My concern was number of chapters completed text is not aligned with chapters list. Check |
@rt4914 Are we supposed to hide image in landscape mode? @Scarlet0103 why the tick icon is not visible? |
@nikitamarysolomanpvt Yes image should not be visible in Landscape mode. Also, tick will be visible only when there is progress so this is correct. @veena14cs @nikitamarysolomanpvt @Scarlet0103
@mschanteltc Can you clarify the number of lines chapter-name and description should take in landscape and portrait mode? |
@veena14cs I generated landcape file for story_header_view and aligned it to the card view. Thanks... |
@veena14cs I generated landcape file for story_header_view and aligned it to the card view. Thanks... @nikitamarysolomanpvt I made all the summay_text height to wrap content and removed all the min heights defined. so there will be no text cutting. Thanks... Tested with dummy text |
@Scarlet0103 Also, use following attributes for following cases: Chapter Name - Max Lines - Landscape (maxLines = 1) and Portrait (maxLines = 2) |
@rt4914 min height for portrait? |
It is already there which is 140 dp |
@rt4914 I made all the changes as you mentioned defined all the min heights and max lines. Also I changed the summary text view height to wrap content from 0dp so that it doesnt give edge cutting text. |
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.
Changes suggested.
.idea/misc.xml
Outdated
<output url="file://$PROJECT_DIR$/build/classes" /> | ||
</component> | ||
<component name="ProjectType"> | ||
<option name="id" value="Android" /> | ||
</component> | ||
</project> | ||
</project> |
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.
We don't need any change to .idea
file, this must have been done automatically from android studio please do not add this file to your commit.
Note: Don't delete this file, we need this file we just don't need the changes this file contains.
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.
@Scarlet0103 this is still pending.
Rajat,
In the previous mail you gave me these values
For landscape mode use min-height of 116 DP.
Also, use following attributes for following cases:
Chapter Name - Max Lines - Landscape (maxLines = 1) and Portrait (maxLines
= 2)
Description - Max Lines - Landscape (maxLines = 4) and Portrait (maxLines =
3)
*Now should i keep as it is or change them according to your new comment.*
*Thanks... *
…On Fri 13 Mar, 2020, 5:21 PM Rajat Talesra, ***@***.***> wrote:
***@***.**** requested changes on this pull request.
Changes suggsted.
------------------------------
In .idea/codeStyles/Project.xml
<#758 (comment)>:
> @@ -157,4 +159,4 @@
</indentOptions>
</codeStyleSettings>
</code_scheme>
-</component>
+</component>
We don't need any change to .idea file, this must have been done
automatically from android studio please do not add this file to your
commit.
Note: Don't delete this file, we need this file we just don't need the
changes this file contains.
------------------------------
In .idea/misc.xml
<#758 (comment)>:
> <output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
-</project>
+</project>
We don't need any change to .idea file, this must have been done
automatically from android studio please do not add this file to your
commit.
Note: Don't delete this file, we need this file we just don't need the
changes this file contains.
------------------------------
In app/src/main/res/layout/story_chapter_view.xml
<#758 (comment)>:
> android:ellipsize="end"
android:fontFamily="sans-serif"
- android:maxLines="4"
+ android:maxLines="3"
This is incorrect, this file is for portrait mode and as mentioned earlier
in portrait mode we have to keep it 4 and in landscape mode we have to
keep it 3
------------------------------
In app/src/main/res/layout-land/story_chapter_view.xml
<#758 (comment)>:
> android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
+ android:layout_marginBottom="4dp"
android:ellipsize="end"
android:fontFamily="sans-serif"
android:maxLines="4"
This should be 3
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#758 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOJPUCDVXK3MRCNI7WZIJ5LRHIM45ANCNFSM4LDSXXVQ>
.
|
There is typo mistake from my end in landscape and portrait. Chapter Name - Max Lines - Landscape (maxLines = 1) and Portrait (maxLines = 2) I hope this clears the confusion. |
@rt4914 Changes Made.Thanks... |
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.
PTAL (Please take a look) at the comments. Also, before requesting review please make sure that you reply to each and every comment and possibly try to solve it.
.idea/misc.xml
Outdated
<output url="file://$PROJECT_DIR$/build/classes" /> | ||
</component> | ||
<component name="ProjectType"> | ||
<option name="id" value="Android" /> | ||
</component> | ||
</project> | ||
</project> |
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.
@Scarlet0103 this is still pending.
sorry my bad. |
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.
It looks great. There is one small thing that you are missing, in landscape mode if you try to scroll the layout to the very end/bottom, you will see that in mocks the bottom gap is less but in app it is quite big.
To fix this simply change the paddingBottom
to 60dp
in land/story_fragment
recyclerview.
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.
LGTM, thanks
@Scarlet0103 One important thing, in your next PR the branch should follow these two points So for example, your current PR name could have been |
Portrait:
Landscape:
|
Thanks. This is what I thought. |
Edits on Doc 2: Portrait: -Chapter: Landscape: -Chapter: 2 lines |
Explanation
Fixes : #745
The landscape attributes have been changed according to the mocks given.
Checklist
Mocks
Portrait Mock: https://xd.adobe.com/view/e8aa4198-3940-47f9-514a-f41cc54457f6-9e9b/screen/5abb0ace-19ee-48b8-8154-919154f924d2/TP-CL-Chapter-List-
Landscape Mock: https://xd.adobe.com/view/ee9e607b-dbd6-4372-48dc-b687d32af3da-98af/screen/cce938d6-e079-4761-bac0-8bde22ac6348/TP-CL-Auto-Scroll-Button-
Screenshots