- Author: @ramiroaznar
- Link: http://bit.ly/turboviewer-cartosummit
- Slides
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add line with 2 colors | |
// You need special bitmaps in res/drawable-nodpi folder: line_left.png and line_right.png | |
// Create line style, and line poses | |
Bitmap lineBitmapL = BitmapFactory.decodeResource(getResources(), R.drawable.line_left); | |
Bitmap lineBitmapR = BitmapFactory.decodeResource(getResources(), R.drawable.line_right); | |
LineStyleBuilder lineStyleBuilder = new LineStyleBuilder(); | |
lineStyleBuilder.setColor(new Color(0xFFFF0000)); // red |