【发布时间】:2013-04-30 08:14:12
【问题描述】:
我想把图像放在图像上,把视频拇指和播放图标放在它上面。 我想将播放图标放在视频缩略图的中心。我正在使用 FrameLayout,但播放图标不在中心查看。
我的 XML 文件..
<FrameLayout
android:id="@+id/frameLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<ImageView
android:id="@+id/imageVideoThumb"
android:layout_width="120dp"
android:layout_height="120dp"
android:src="@drawable/ic_launcher" />
<ImageView
android:id="@+id/imagePlayIcon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/video_play_icon" />
</FrameLayout>
如何创建它,请帮助我..
【问题讨论】:
-
是的,因为这不是框架布局的作用。它不会将项目放在中心。然后它位于左上角。
标签: android imageview android-framelayout