Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (template)
Viewing all articles
Browse latest Browse all 26

ListView : how to add a imageView in a view

$
0
0

Hi, I'm porting a table view to a list view, and try to work with templates. in my table view I had a code like this :

var v = Ti.UI.createView({left:4,width:64,height:64});
 
var img = Ti.UI.createImageView({
                    image: prop.imgFile64,
                    //top: 4,
                    width:"auto",
                    height:"auto",
                    borderRadius:4,
                    type:"thumb"
                });
 
v.add(img);
row.add(v);
here an imageView is added to a View in a row. But how to this with a template ? I know how to add a View but how to add a child to this View ?

Regards


Viewing all articles
Browse latest Browse all 26

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>