Skip to content

Conversation

@thagikura
Copy link
Contributor

@thagikura thagikura commented Aug 4, 2017

Changed the code to use View#getMeasuredHeight instead of View#getHeight where it should.

@thagikura
Copy link
Contributor Author

This fixes #341

@thagikura thagikura requested a review from yaraki August 8, 2017 05:53

<TextView
android:id="@+id/text2"
android:layout_width="30dp"
Copy link

Choose a reason for hiding this comment

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

As 30dp and 80dp are used three times here, I think that good idea would be to extract them to dimen variables.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your comment, but it's acceptable for me to have the three occurrences in the same file. Also I'd like to keep every XML file independent from each other rather than having common resources as a single test should not be affected by any other file changes.

Copy link

Choose a reason for hiding this comment

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

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.

2 participants