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: Add slide up down animation #2186

Merged
merged 1 commit into from
Aug 17, 2019
Merged

feat: Add slide up down animation #2186

merged 1 commit into from
Aug 17, 2019

Conversation

anhanh11001
Copy link
Contributor

@anhanh11001 anhanh11001 commented Jul 26, 2019

Details:

  • Add slide up/down animation for View,TextView

Fixes: #2182

Screenshots for the change:
ezgif-2-2b2a603bbce3
ezgif-2-f1470bfb072f

@auto-label auto-label bot added the feature label Jul 26, 2019
@fossasia fossasia deleted a comment Jul 26, 2019
@fossasia fossasia deleted a comment Jul 26, 2019
Copy link
Member

@iamareebjamal iamareebjamal left a comment

Choose a reason for hiding this comment

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

Why not use a pre-existing library?

@anhanh11001
Copy link
Contributor Author

what kind of library should I look for?

@iamareebjamal
Copy link
Member

iamareebjamal commented Jul 27, 2019

https://github.com/bravoborja/ReadMoreTextView

GitHub
A Custom TextView with trim text. Contribute to bravoborja/ReadMoreTextView development by creating an account on GitHub.

@fossasia fossasia deleted a comment Jul 27, 2019
@fossasia fossasia deleted a comment Jul 27, 2019
@fossasia fossasia deleted a comment Jul 27, 2019
@anhanh11001 anhanh11001 requested a review from liveHarshit August 3, 2019 04:00
@anhanh11001
Copy link
Contributor Author

I didn't any use existing "ReadMoreTextView" library because it is unrelated to the issue and I also find it unnecessary to use a library for that

@fossasia fossasia deleted a comment Aug 3, 2019
@fossasia fossasia deleted a comment Aug 3, 2019

animation.duration = 300
startAnimation(animation)
}
Copy link
Member

Choose a reason for hiding this comment

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

I find it unnecessary to write 100 lines of code to do something which is just an enhancement and unrelated to the core working of the project. It can impact performance, and contain bugs, we have to maintain it. 2 months later, nobody will understand the code and will not be able to maintain it. Same thing happened in server where instead of using a well-maintained library, they wrote celery integration by hand. New version of celery came and it broke. If they were using a library, it would have been a matter of bumping the version. That is why we use libraries

@iamareebjamal
Copy link
Member

I also find it unnecessary to use a library for that

Trust me, if I had a library which did 2+2, I'd use that instead of writing 2+2. You don't know how hard it is to maintain code when it is not your core logic and a person who wrote it has stopped maintaining the project and code rot eventually happens and the code has bugs.

@anhanh11001
Copy link
Contributor Author

updated

<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
Copy link
Member

Choose a reason for hiding this comment

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

Wrong indentation

Details:
- Use external libraries for expandable text view and view container

Fixes: #2182
@iamareebjamal iamareebjamal merged commit 5edbc55 into fossasia:development Aug 17, 2019
@anhanh11001 anhanh11001 deleted the 2182_slide_up_down branch August 17, 2019 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add sliding up/down animation on showing View
2 participants