Android音乐播放器之经典布局

 

❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀activity_main.xml


    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_alignParentBottom="true"
    android:layout_alignParentLeft="true"
    android:layout_alignParentRight="true"
    android:layout_alignParentTop="true"
    android:background="@drawable/bg1"
    android:orientation="vertical"
    tools:context=".MainActivity" >

            android:id="@+id/textView1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_weight="0.42"
        android:background="@drawable/top_bg"
        android:gravity="center"
        android:text="@string/app_title"
        android:textSize="24sp" />

            android:id="@+id/linearLayout3"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_weight="1.45"
        android:gravity="bottom"
        android:orientation="vertical" >

                    android:id="@+id/lrc"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/lrc_bg"
            android:gravity="center" />

                    android:id="@+id/lrc1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:textColor="@color/white"
            android:textSize="40pt" />
   

            android:id="@+id/linearLayout4"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_weight="0.15"
        android:background="@drawable/bottom_bg"
        android:orientation="vertical" >

                    android:id="@+id/linearLayout2"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
        
            android:gravity="center"
            android:orientation="vertical" >

                            android:id="@+id/textView2"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:padding="5dp"
                android:text="@string/time" />

                            android:id="@+id/seekBar1"
                android:layout_width="fill_parent"
                android:layout_height="4dp"
                android:maxHeight="4dp"
                android:paddingBottom="0dp"
                android:paddingLeft="3dp"
                android:paddingRight="3dp"
                android:paddingTop="0dp"
                android:progressDrawable="@layout/seek_bar"
                android:thumb="@layout/thumb" />
       

                    android:id="@+id/linearLayout1"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="0.18"
            android:gravity="center"
            android:orientation="horizontal" >

                            android:id="@+id/songlist"
                android:layout_width="42dp"
                android:layout_height="34dp"
                android:layout_marginRight="10dp"
                android:background="@drawable/list_button" />

                            android:id="@+id/pre"
                android:layout_width="41dp"
                android:layout_height="34dp"
                android:layout_gravity="center"
                android:layout_marginRight="10dp"
                android:background="@drawable/pre_button" />

                            android:id="@+id/mplay"
                android:layout_width="42dp"
                android:layout_height="34dp"
                android:layout_marginRight="10dp"
                android:background="@drawable/play_button" />

                            android:id="@+id/next"
                android:layout_width="40dp"
                android:layout_height="35dp"
                android:layout_marginRight="10dp"
                android:background="@drawable/next_button" />

                            android:id="@+id/update"
                android:layout_width="60dp"
                android:layout_height="40dp"
                android:background="@drawable/fresh" />
       
   

效果图:

Android音乐播放器之经典布局_第1张图片

 

❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀onelist.xml


            android:id="@+id/linearLayout1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" >

                    android:id="@+id/songtitle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="left"
            android:padding="10dp" android:layout_weight="10" android:textColor="@color/white"/>

                    android:id="@+id/songtime"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:gravity="right"
            android:padding="10dp" android:layout_weight="2" android:textColor="@color/white"/>

   

❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀seek_bar.xml


            android:id="@+android:id/background"
        android:drawable="@drawable/progressbar_bg"/>

            android:id="@+android:id/progress"
        android:drawable="@drawable/process_e_bg"/>

❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀songlist.xml


    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/bg1" >

            android:id="@+id/totalcount"
        android:layout_width="fill_parent"
        android:layout_height="80dp"
        android:background="@drawable/top_bg"
        android:gravity="center"
        android:paddingBottom="8dp"
        android:paddingTop="8dp" />
              android:id="@+id/songtitle"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBottom="@+id/totalcount"
        android:layout_alignParentLeft="true"
        android:gravity="left"
        android:padding="5dp"
        android:text="@string/music_text" />

            android:id="@+id/linearLayout6"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:background="@drawable/top_bg"
        android:gravity="center"
        android:paddingBottom="8dp"
        android:paddingTop="8dp" >

                    android:id="@+id/backmain"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/backmain" />

                    android:id="@+id/updatelist"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/listupdate" />

                    android:id="@+id/mode"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/mode" />
   

            android:id="@+id/linearLayout3"
        android:layout_width="match_parent"
        android:layout_height="fill_parent"
        android:layout_above="@+id/linearLayout6"
        android:layout_below="@+id/totalcount"
        android:orientation="vertical" >

       

                    android:id="@+id/listView1"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@drawable/top_bg"
            android:divider="@color/white"
            android:fadingEdge="horizontal" >
       

   

            android:id="@+id/songtime"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_above="@+id/linearLayout3"
        android:layout_alignParentRight="true"
        android:gravity="right"
        android:padding="5dp"
        android:text="@string/time_text" />

效果图:

Android音乐播放器之经典布局_第2张图片

❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀thumb.xml



       
       
       
       

 

❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀updatelist.xml


    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/bg1"
    android:orientation="vertical" >

            android:id="@+id/linearLayout1"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        tools:ignore="UselessParent" >

                    android:id="@+id/linearLayout2"
            android:layout_width="match_parent"
            android:layout_height="104dp"
            android:gravity="center" >

                            android:id="@+id/button1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/update" />

                            android:id="@+id/button2"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_margin="20dp"
                android:text="@string/backsonglist" />
       

                    android:id="@+id/linearLayout4"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1.68"
            android:gravity="center"
            android:orientation="vertical"
            tools:ignore="InefficientWeight" >

                            android:id="@+id/progressBar1"
                style="?android:attr/progressBarStyleLarge"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:keepScreenOn="false"
                android:visibility="invisible" />

                            android:id="@+id/textView1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="20sp" />
       

                    android:id="@+id/linearLayout3"
            android:layout_width="match_parent"
            android:layout_height="240dp"
            android:gravity="center"
            android:orientation="vertical" >
       
   

效果图:Android音乐播放器之经典布局_第3张图片

❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀❀

 

 

你可能感兴趣的:(java基础,android)