0
我在Android Studio中制作一个音乐播放器,我想这样做如何设置ImageView的尺寸
Here's an ugly draw of what I'm attempting to do
黑色矩形是手机。我已经制作了黄色部分,现在我必须将imageview设置为draw中的一个,但我不明白我必须输入哪种属性。
这是我所做的代码:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
android:layout_width="match_parent"
android:layout_height="wrap_content"
layout="@layout/song"
android:layout_gravity="top" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/img_album_cover"
android:layout_gravity="center" />
<include
android:layout_width="match_parent"
android:layout_height="wrap_content"
layout="@layout/song_playback_buttons"
android:layout_gravity="bottom"/>
</LinearLayout>
预先感谢您为我的英语不好(我是意大利人)对不起。
哇谢谢你,这是非常有用的! 现在它似乎很好! –
很高兴能帮到你! – Guardanis