Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
How to implement Viewport in android Java?

I am trying to implement the following example to my Android project but there is no clear Java explanations. 

For instance how can I register a class to DataGridView in Java? The following C# code is from the link above:
_grid.RegisterClassForCellReuse (new Class ("LabelCell"), "Cell"); 

Any Java project sample that indicates the usage of Viewport is much appreciated. Thank you