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

Added hideView and showView methods for child views #22

Merged
merged 3 commits into from
Apr 19, 2016

Conversation

msya
Copy link
Contributor

@msya msya commented Apr 19, 2016

Add these two new methods:

ViewUtils.showView(parentView, R.id.childViewId);
ViewUtils.hideView(parentView, R.id.childViewId);

@@ -14,14 +14,17 @@
* <h2>Utility methods that make working with views easier, less error prone, and more concise.</h2>
* <p/>
* <h3>Common uses:</h3>
* <code>LinearLayout linearLayout = ViewUtils.{@link #findViewById findViewById}(this, R.id.my_linear_layout);</code> //<b>no more casting!</b><br />
Copy link
Contributor

Choose a reason for hiding this comment

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

Move below findViewById with context examples. Those are more common and this doc pops up in the IDE.

@brentwatson brentwatson merged commit b934feb into master Apr 19, 2016
@brentwatson brentwatson deleted the add_new_view_util_methods branch April 19, 2016 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants