android merging 2 images

zheadphondz

New Member
i'm working on this for hours and can't solve it.i want to merge 2 images in an XML file - so this will be the basic xml file for my shape.i want this shape to include a png which is the frame, and a png which is a picture inside a frame. that picture will change dynamically.i've tried to use tag and to build my shape, but when i'm including it to my main xml file it fails because i can use merge only as root.try to did the same with , and still didn't get what i wanted...what can i do to be able to merge these 2 pngs, and to be able to set the inner png position inside the frame png??EDITED:some code: \[code\]<ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:src="http://stackoverflow.com/questions/10723621/@drawable/userprofilepicture" android:scaleType="fitXY" android:contentDescription="@string/SmallLogo" /><ImageView android:layout_width="fill_parent" android:layout_height="fill_parent" android:contentDescription="@string/SmallLogo" android:scaleType="fitXY" android:padding="30dp" android:src="http://stackoverflow.com/questions/10723621/@drawable/questionmark" /></FrameLayout>\[/code\]this is my frame and inner pic xml source..when looking at it inside the graphical layout it looks good.when including it in my main xml file, from somereason it flips the image... ???this is part of my main xml:\[code\] <TableRow> <ImageView android:layout_gravity="center_vertical" android:layout_marginTop="2.5dp" android:contentDescription="@string/SmallLogo" android:src="http://stackoverflow.com/questions/10723621/@drawable/logosmall" /> <ImageView android:layout_gravity="center_vertical" android:layout_marginLeft="10dp" android:layout_marginTop="2.5dp" android:contentDescription="@string/slogen" android:src="http://stackoverflow.com/questions/10723621/@drawable/slogen" /> <include layout="@drawable/userprofilepicture" android:layout_width="30dp" android:layout_height="30dp"/> </TableRow>\[/code\]
 
Back
Top