BaseballCardTracker/bbct — pull request #167 by charanyaarvind (2013-12-08 01:40:32+00:00)
Title: Ticket122 ScrollView for BaseballCardDetails

To make the card_details.xml scrollable, I have added a scrollView to the TableLayout.
To test this change, I have added a JUnit test - testCardDetailsScroll. If the screen already accomodates all the views, then the screen cannot be scrolled. So I have followed this logic.
1)Hide the soft keypad.
2)Wait for the activity to be repainted. I tried to repaint it by calling parentView.postInvalidate(), but it did not repaint it. If anyone knows a better way than waiting, please let me know.
3)Check if the save button is visible on screen. If yes, it cannot be scrolled, so assert true.
4)If the save button is not visible, then scroll to the end of the screen and check if save button is present.