Android custom UI code fails to draw when SDK is changed -


i'm using code http://mindtherobot.com/blog/272/android-custom-ui-making-a-vintage-thermometer/ basis custom ui code. original code's androidmanifest.xml contains code follows:

<application> ... </application> <uses-sdk     android:minsdkversion="3" /> 

i modified to:

<uses-sdk     android:minsdkversion="18"     android:targetsdkversion="19" /> <application> ... </application> 

and hand fails draw. background canvas draws fine, handscrew (although color seems incorrect). what's issue? need update sdk since i'll using apis available in newer sdks.

also notice moved <uses-sdk> stuff above <application> otherwise warning occurs. if leave <uses-sdk> stuff below <application> sdk version 'seems' work , hand draws properly. 'seems' in quotes since it's not working right.

if <uses-sdk> stuff put above <application>, minsdkversion="13" highest works.

another bug occurred when tried run app on lollipop drawtextonpath() call wasn't working (whereas worked fine on kitkat). found issue , workaround here: canvas.drawtextonpath(...) not working on lollipop. solution works drawpath() problem.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -