zoukankan      html  css  js  c++  java
  • 团队冲刺第四天

    今天我把音乐界面的布局完成了,由于之前的很多属性都不太熟,所以这个花费了我挺多的时间,另外今天学习了一点有关布局展示RecycleView,CardView,和RecycleView的适配器,标签都不可以使用,所以预计明天更换自己,明天继续后面对歌曲设置适配器的编写,希望明天可以实现本地音乐的单曲播放。

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@mipmap/bg2"
        tools:context=".MainActivity">
    
        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="70dp"
            android:layout_alignParentBottom="true"
            android:id="@+id/local_music_bottomlayout"
            android:background="#33EEEEEE">
    
            <ImageView
                android:layout_width="match_parent"
                android:layout_height="0.5dp"
                android:background="#9933FA"/>
    
            <ImageView
                android:id="@+id/local_music_bottom_iv_icon"
                android:layout_width="60dp"
                android:layout_height="60dp"
                android:src="@mipmap/icon_song"
                android:layout_centerVertical="true"
                android:background="@mipmap/a1"
                android:layout_marginLeft="10dp"
                />
    
            //歌名显示
            <TextView
                android:id="@+id/local_music_botton_tv_song"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="告白气球"
                android:layout_toRightOf="@+id/local_music_bottom_iv_icon"
                android:layout_marginTop="10dp"
                android:layout_marginLeft="10dp"
                android:textSize="16sp"
                android:textStyle="bold"
                />
    
            //歌手显示
            <TextView
                android:id="@+id/local_music_bottom_tv_singer"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="周杰伦"
                android:textSize="12sp"
                android:layout_below="@+id/local_music_botton_tv_song"
                android:layout_alignLeft="@+id/local_music_botton_tv_song"
                android:layout_marginTop="10dp"/>
    
            <ImageView
                android:id="@+id/local_music_bottom_iv_next"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:src="@mipmap/icon_next"
                android:layout_alignParentRight="true"
                android:layout_marginRight="10dp"/>
    
            <ImageView
                android:id="@+id/local_music_bottom_iv_play"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:src="@mipmap/icon_play"
                android:layout_toLeftOf="@+id/local_music_bottom_iv_next"
                android:layout_marginRight="20dp"/>
    
            <ImageView
                android:id="@+id/local_music_bottom_iv_last"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerVertical="true"
                android:src="@mipmap/icon_last"
                android:layout_toLeftOf="@+id/local_music_bottom_iv_play"
                android:layout_marginRight="20dp"/>
    
        </RelativeLayout>
    
        <view class="androidx.appcompat.app.AlertController$RecycleListView"
            android:id="@+id/local_music_cv"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_above="@+id/local_music_bottomlayout">
    
        </view>
    
    
        <RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginLeft="10dp"
            android:layout_marginTop="10dp"
            android:layout_marginRight="10dp"
            android:background="@color/colorPink"
            >
    
            //歌去角标
            <TextView
                android:id="@+id/item_local_music_num"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="1"
                android:layout_centerVertical="true"
                android:textSize="24sp"
                android:textStyle="bold"/>
    
            //歌曲名字
            <TextView
                android:id="@+id/item_local_music_song"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="玫瑰花的葬礼"
                android:textSize="18sp"
                android:textStyle="bold"
                android:layout_toRightOf="@+id/item_local_music_num"
                android:singleLine="true"
                android:layout_marginTop="10dp"
                android:layout_marginLeft="20dp"
                />
    
            //歌手名称
            <TextView
                android:id="@+id/item_local_music_singer"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="许嵩"
                android:layout_below="@+id/item_local_music_song"
                android:layout_alignLeft="@+id/item_local_music_song"
                android:layout_marginTop="10dp"
                android:textSize="14sp"
                android:textColor="#888"/>
    
            //间隔线
            <TextView
                android:id="@+id/item_local_music_line"
                android:layout_width="2dp"
                android:layout_height="18dp"
                android:background="#888"
                android:layout_toRightOf="@+id/item_local_music_singer"
                android:layout_marginLeft="10dp"
                android:layout_marginRight="10dp"
                android:layout_alignTop="@+id/item_local_music_singer"/>
    
            //音乐播放专辑名称
            <TextView
                android:id="@+id/item_local_music_album"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="专辑名称"
                android:layout_toRightOf="@+id/item_local_music_line"
                android:layout_alignTop="@+id/item_local_music_singer"
                android:textSize="14sp"
                android:textColor="#888"
                android:ellipsize="end"
                android:singleLine="true"/>
    
            //音乐播放时间
            <TextView
                android:id="@+id/item_local_music_durtion"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@+id/item_local_music_singer"
                android:layout_alignParentRight="true"
                android:text="6:00"
                android:textSize="14sp"
                android:textColor="#888"/>
    
    
    
    
    
    
        </RelativeLayout>
    
    
    
    </RelativeLayout>
    View Code

  • 相关阅读:
    Changing Icon File Of Push Button At Runtime In Oracle Forms 6i
    Set Font Properties On Mouse Hover Of Push Button And Text Items At Run time In Oracle Forms
    Change An Item Property Using Set_Item_Property In Oracle Forms
    Calling / Running a report in Oracle forms 10g / 11g
    Change Or Set Report Object Property At Run Time In Oracle Forms Using Set_Report_Object_Property Command
    Refresh / Updating a form screen in Oracle D2k Forms 6i
    Know How And When To Use System.Message_Level To Control Messages In Oracle Forms
    Perform Cut Copy Paste Operations Using Cut_Region Copy_Region Paste_Region Commands In Oracle Forms
    CHECKBOX_CHECKED built-in in Oracle D2k Forms
    Limiting To Select Only 5 Check Boxes Out Of Ten In Oracle Forms
  • 原文地址:https://www.cnblogs.com/hhjing/p/12728673.html
Copyright © 2011-2022 走看看