Quick guru interpretation of beginner android tutorial instructions! -
i following tutorial:
http://knol.google.com/k/suk-woo-heo/creating-user-interfaces/1oqzmo14sfklf/20#
have got step 4 says: 4. resources defined, you’re ready customize todolistitemview appearance. create new private instance variables store paint objects you’ll use draw paper background , margin. create variables paper color , margin width values. fill in init method instances of resources created in last 2 steps , create paint objects.
can tell me means? 'create new private instance variables store paint objects'
should created new class in eclipse under src? existing class had calls lots of these things init(), starts spitting errors if put in there...
looks modifying/adding existing todolistitemview class created in step 1.
something this:
public class todolistitemview extends textview { private paint marginpaint; private paint linepaint; private int papercolor; private float margin; public todolistitemview (context context, attributeset ats, int ds) { super(context, ats, ds); init(); } private void init() { // reference our resource table. // ....
Comments
Post a Comment