Issue
In a linear layout with 2 views A and B, how do I assert that view B is to the right of view A?
Solution
You can check it with view1.getX() < view2.getX()
If you want to perform automatic View assertions, the simpler way is to use Espresso. In your case, une it with your own matcher looking at the X position of a view
https://code.google.com/p/android-test-kit/wiki/Espresso
Answered By - florent champigny
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.