java - Drawing Nine Patch onto Canvas (Android) -


I'm trying to draw nine patches on the canvas object on Android. I feel weird though I use the draw9patch tool While generating nine patch while producing nine patch, the manufacturer needs an additional byte array which is called "Chak" to make nine patches.

Why is not it easy? What is "part"? And if you did it yourself, how did you go about it?

Any help appreciated.

You can easily do this like this:

  // Load image in the form of nanapache drawable Nautch druftable NPD = (NanpatchDrWobble) resource.GetDubable (R.drawable.my_nine_patch); // Set your bind where you need the rack npdBounds = new rect (...); Npd.setBounds (npbBounds); // Finally draw on canvas NPDDoura (canvas);  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -