Jaames Active Member Licensed User Longtime User Oct 3, 2012 #1 Hi, Is it possible to set nine patch image for any of supported Home Screen Widget views? Thanks
Erel B4X founder Staff member Licensed User Longtime User Oct 4, 2012 #2 You can use ImageView and draw the nine patch image using Canvas.DrawDrawable. Upvote 0
Jaames Active Member Licensed User Longtime User Oct 4, 2012 #3 Erel said: You can use ImageView and draw the nine patch image using Canvas.DrawDrawable. Click to expand... 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
Erel said: You can use ImageView and draw the nine patch image using Canvas.DrawDrawable. Click to expand... 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
Erel B4X founder Staff member Licensed User Longtime User Oct 5, 2012 #4 You should create a mutable bitmap (Bitmap.InitializeMutable) and draw on this bitmap with a canvas. You should then send it to the widget by calling RemoteView.SetImage. Upvote 0
You should create a mutable bitmap (Bitmap.InitializeMutable) and draw on this bitmap with a canvas. You should then send it to the widget by calling RemoteView.SetImage.
Jaames Active Member Licensed User Longtime User Oct 5, 2012 #5 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
Who would thought... I wasn't aware of Canvas.Initialise2 and Bitmap.InitialiseMutable methods , obviously , i need much more reading ... Thanks , much appreciate it .