我正在 android studio 中制作音乐播放器,我想做这样的事情
黑色矩形是电话。我已经制作了黄色部分,现在我必须将 imageview 设置为绘图中的那个,但我不明白我必须输入什么样的属性。
这是我制作的代码:
<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>
提前谢谢你,对不起我的英语不好(我是意大利人)。