How to set Nine patch image for Widget views?

Jaames

Active Member
Licensed User
Longtime User
Hi,

Is it possible to set nine patch image for any of supported Home Screen Widget views?

Thanks
 

Jaames

Active Member
Licensed User
Longtime User
You can use ImageView and draw the nine patch image using Canvas.DrawDrawable.

Yes, but how to parse ImageView to the canvas, I'm confused, becouse i can not add views in the run time , and ImageView added in a Layout designer it is not declared anywhere in the code :/ ?

Thanks for your reply
 
Upvote 0

Jaames

Active Member
Licensed User
Longtime User
Who would thought... I wasn't aware of Canvas.Initialise2 and Bitmap.InitialiseMutable methods , obviously , i need much more reading ...

Thanks , much appreciate it .
 
Upvote 0

Similar Threads

Replies
4
Views
2K
D
  • Question
Replies
11
Views
4K
Deleted member 103
D
Cookies are required to use this site. You must accept them to continue using the site. Learn more…