Setting up the view should be very easy. First, copy the files PinDisplayView.java
and attrs.xml
to your project.
If you don't have one already, copy ViewUtil.java
file as well.
It is important that you have the ViewUtil#resolveMeasureSpec
method available somewhere.
Fix all the imports and verify the app can compile.
Add the view to the layout. There's nothing specific you need to do, the view works as is. If you want to, you can modify some attributes as in the example below: