Java to Android conversion problems -
i have pretty complex java (jdk 6) code needs converted works on android. java code intended work graphics: have class extends jlabel (swing component), "paintcomponent" method reshapes extended jlabel ("cuts" circle) , draws on screen (i know, know - might use come "drawcircle" method need extend jlabel because has popup menu attached it).
now, have problem - android don't seem have "graphics" type, "dimension" type, "rectangle" type, "paintcomponent" method , after all, have no idea control should use draw customized jlabels on (in jdk 6, have used jpanel container customized jlabels).
please help! need advice on painless method converting given java logic android logic?
android provides graphics , 2d graphics, used drawing.
have @ shape drawable should assist in drawing rectangles. instead of jlabel use textview. have spend time in getting know android , redrawing gui, hope provided starting points.
note depending on complexity of code, may not able use java code, becase android doesn't provide full java version.
Comments
Post a Comment