Advertisement
Guest User

media_controller.xml

a guest
Jan 14th, 2013
22,543
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.74 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright (C) 2007 The Android Open Source Project
  3.  
  4.     Licensed under the Apache License, Version 2.0 (the "License");
  5.     you may not use this file except in compliance with the License.
  6.     You may obtain a copy of the License at
  7.  
  8.          http://www.apache.org/licenses/LICENSE-2.0
  9.  
  10.     Unless required by applicable law or agreed to in writing, software
  11.     distributed under the License is distributed on an "AS IS" BASIS,
  12.     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13.     See the License for the specific language governing permissions and
  14.     limitations under the License.
  15. -->
  16.  
  17. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  18.    android:layout_width="match_parent"
  19.    android:layout_height="wrap_content"
  20.    android:background="#CC000000"
  21.    android:orientation="vertical">
  22.  
  23.     <LinearLayout
  24.        android:layout_width="match_parent"
  25.        android:layout_height="wrap_content"
  26.        android:gravity="center"
  27.        android:paddingTop="4dip"
  28.        android:orientation="horizontal">
  29.  
  30.         <ImageButton android:id="@+id/prev"
  31.            style="@android:style/MediaButton.Previous"
  32.            android:contentDescription="@string/description" />
  33.        
  34.         <ImageButton android:id="@+id/rew"
  35.            style="@android:style/MediaButton.Rew"
  36.            android:contentDescription="@string/description" />
  37.        
  38.         <ImageButton android:id="@+id/pause"
  39.            style="@android:style/MediaButton.Play"
  40.            android:contentDescription="@string/description" />
  41.        
  42.         <ImageButton android:id="@+id/ffwd"
  43.            style="@android:style/MediaButton.Ffwd"
  44.            android:contentDescription="@string/description" />
  45.        
  46.         <ImageButton android:id="@+id/next"
  47.            style="@android:style/MediaButton.Next"
  48.            android:contentDescription="@string/description" />
  49.  
  50.     </LinearLayout>
  51.  
  52.     <LinearLayout
  53.        android:layout_width="match_parent"
  54.        android:layout_height="wrap_content"
  55.        android:orientation="horizontal">
  56.  
  57.         <TextView android:id="@+id/time_current"
  58.            android:textSize="14sp"
  59.            android:textStyle="bold"
  60.            android:paddingTop="4dip"
  61.            android:paddingLeft="4dip"
  62.            android:layout_gravity="center_horizontal"
  63.            android:layout_width="wrap_content"
  64.            android:layout_height="wrap_content"
  65.            android:paddingRight="4dip" />
  66.  
  67.         <SeekBar
  68.            android:id="@+id/mediacontroller_progress"
  69.            style="?android:attr/progressBarStyleHorizontal"
  70.            android:layout_width="0dip"
  71.            android:layout_weight="1"
  72.            android:layout_height="32dip" />
  73.  
  74.         <TextView android:id="@+id/time"
  75.            android:textSize="14sp"
  76.            android:textStyle="bold"
  77.            android:paddingTop="4dip"
  78.            android:paddingRight="4dip"
  79.            android:layout_gravity="center_horizontal"
  80.            android:layout_width="wrap_content"
  81.            android:layout_height="wrap_content"
  82.            android:paddingLeft="4dip" />
  83.        
  84.         <ImageButton android:id="@+id/fullscreen"
  85.            android:layout_marginTop="-7dp"
  86.            android:paddingTop="4dip"
  87.            android:paddingBottom="4dip"
  88.            android:paddingLeft="10dip"
  89.            android:paddingRight="4dip"
  90.            android:layout_gravity="top"
  91.            android:layout_width="wrap_content"
  92.            android:layout_height="wrap_content"
  93.            android:background="@android:color/transparent"
  94.            android:contentDescription="@string/description" />
  95.        
  96.     </LinearLayout>
  97.  
  98. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement