[Android] Implement onShowCustomView and add test case.

1. Implement onShowCustomView with requested orientation.
2. Add test case for onShow/HideCustomView.
As the previous review, some comments about third condition should be also keep 8 space indents compare to the second. But in the upstream's code, third condition keeps align left with the second condition.