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

feat: Added empty view for events fragment #1157

Merged
merged 10 commits into from
Feb 25, 2019
Merged

feat: Added empty view for events fragment #1157

merged 10 commits into from
Feb 25, 2019

Conversation

anhanh11001
Copy link
Contributor

Fixes #1141 Adding empty view for EventsFragment

Screenshots for the change:

import kotlinx.android.synthetic.main.fragment_events.view.progressBar
import kotlinx.android.synthetic.main.fragment_events.view.shimmerEvents
import kotlinx.android.synthetic.main.fragment_events.view.swiperefresh
import kotlinx.android.synthetic.main.fragment_events.view.*
Copy link
Member

Choose a reason for hiding this comment

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

Avoid wildcard imports.

android:layout_height="450dp"
android:text="@string/no_events_message"
android:gravity="center"
/>
Copy link
Member

Choose a reason for hiding this comment

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

Newline not required.

<TextView
android:id="@+id/noEventsMessage"
android:layout_width="match_parent"
android:layout_height="450dp"
Copy link
Member

Choose a reason for hiding this comment

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

Please define all dimensions in dimension resources file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will fix it now

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I fixed it, please review

import kotlinx.android.synthetic.main.fragment_events.view.progressBar
import kotlinx.android.synthetic.main.fragment_events.view.shimmerEvents
import kotlinx.android.synthetic.main.fragment_events.view.homeScreenLL
import kotlinx.android.synthetic.main.fragment_events.view.locationTextView
Copy link
Member

Choose a reason for hiding this comment

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

Why these changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry for that, I will make sure I learn how to check for difference of files carefully before making a push and PR, I fixed that

liveHarshit
liveHarshit previously approved these changes Feb 23, 2019
<TextView
android:id="@+id/noEventsMessage"
android:layout_width="match_parent"
android:layout_height="@dimen/empty_view_height"
Copy link
Member

Choose a reason for hiding this comment

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

Make it wrap content

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@iamareebjamal please review again, I've made my change, I was having problem to make the empty-event message in the center of screen, but then I figured out that the NestedScrollView doesn't fill up the screen when there are no enough data. So I put the fillViewPort="true" in.

@anhanh11001
Copy link
Contributor Author

@liveHarshit please review when you have the time

Copy link
Member

@liveHarshit liveHarshit left a comment

Choose a reason for hiding this comment

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

LGTM

@iamareebjamal iamareebjamal merged commit 79d88ab into fossasia:development Feb 25, 2019
@anhanh11001 anhanh11001 deleted the 1141_empty_view_event_fragment branch June 20, 2019 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants