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...
我还能做些什么才能合并这两个小便, 才能在框架 png 中设置内部的小便位置?
EDITED: some code:
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@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="@drawable/questionmark" />
</FrameLayout>
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... ???
这是我的主 xml 的一部分 :
<TableRow>
<ImageView
android:layout_gravity="center_vertical"
android:layout_marginTop="2.5dp"
android:contentDescription="@string/SmallLogo"
android:src="@drawable/logosmall" />
<ImageView
android:layout_gravity="center_vertical"
android:layout_marginLeft="10dp"
android:layout_marginTop="2.5dp"
android:contentDescription="@string/slogen"
android:src="@drawable/slogen" />
<include layout="@drawable/userprofilepicture"
android:layout_width="30dp"
android:layout_height="30dp"/>
</TableRow>