开发者

Display multiple image in image view

开发者 https://www.devze.com 2023-02-28 13:35 出处:网络
I\'m currently working on a calender project, in that i want to display multiple images in image开发者_如何转开发view, that images that i have to display stored in asset and there(image) refrences sto

I'm currently working on a calender project, in that i want to display multiple images in image开发者_如何转开发view, that images that i have to display stored in asset and there(image) refrences stored in sqlite database we have to match the image and display the image in imageview.


One way to this use Canvas. Draw all the images you want on the canvas and then finally draw all the canvas data on a bitmap and set it in on the image view.

OR

You can also use multiple ImageViews and them programmatically as per your need. for eg:

ImageView iv = new ImageView(context);
view.addView(iv);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号