Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2011 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 <RelativeLayout
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content"
     21     android:background="@color/background_dialer_light"
     22 >
     23     <!-- Mute, playback, trash buttons. -->
     24     <LinearLayout
     25         android:id="@+id/buttons_linear_layout"
     26         android:layout_width="match_parent"
     27         android:layout_height="wrap_content"
     28         android:orientation="horizontal"
     29         android:layout_alignParentTop="true"
     30     >
     31         <LinearLayout
     32             android:layout_width="match_parent"
     33             android:layout_height="58dip"
     34             android:layout_marginEnd="@dimen/call_detail_button_spacing"
     35             android:layout_weight="1"
     36             android:background="@color/background_dialer_list_items"
     37         >
     38             <ImageButton
     39                 android:id="@+id/playback_start_stop"
     40                 android:layout_width="match_parent"
     41                 android:layout_height="match_parent"
     42                 android:background="?android:attr/selectableItemBackground"
     43                 android:src="@drawable/ic_hold_pause"
     44             />
     45         </LinearLayout>
     46         <LinearLayout
     47             android:layout_width="match_parent"
     48             android:layout_height="58dip"
     49             android:layout_weight="1"
     50             android:background="@color/background_dialer_list_items"
     51         >
     52             <ImageButton
     53                 android:id="@+id/playback_speakerphone"
     54                 android:layout_width="match_parent"
     55                 android:layout_height="match_parent"
     56                 android:background="?android:attr/selectableItemBackground"
     57                 android:src="@drawable/ic_speakerphone_on"
     58             />
     59         </LinearLayout>
     60     </LinearLayout>
     61     <RelativeLayout
     62         android:id="@+id/seek_container"
     63         android:layout_width="match_parent"
     64         android:layout_height="80dip"
     65         android:layout_below="@id/buttons_linear_layout"
     66         android:layout_marginTop="@dimen/call_detail_button_spacing"
     67         android:background="@color/background_dialer_list_items"
     68     >
     69         <!-- SeekBar left-right margin decreased from redlines 72dip by 8dip to account for
     70              half thumb width (thumb is 16dip).
     71              Vertically, SeekBar and rate buttons should be below centre, position achieved by
     72              making them centred but giving a difference between top and bottom padding,
     73              difference is currently 10dip. -->
     74         <SeekBar
     75             android:id="@+id/playback_seek"
     76             android:layout_width="match_parent"
     77             android:layout_height="wrap_content"
     78             android:progressDrawable="@drawable/seekbar_drawable"
     79             android:thumb="@drawable/seek_bar_thumb"
     80             android:thumbOffset="8dip"
     81             android:progress="0"
     82             android:paddingStart="8dip"
     83             android:paddingEnd="8dip"
     84             android:paddingTop="30dip"
     85             android:paddingBottom="20dip"
     86             android:layout_marginEnd="64dip"
     87             android:layout_marginStart="64dip"
     88             android:max="0"
     89             android:layout_centerVertical="true"
     90         />
     91         <TextView
     92             android:id="@+id/playback_position_text"
     93             android:layout_height="wrap_content"
     94             android:layout_width="wrap_content"
     95             android:textSize="14sp"
     96             android:layout_alignParentTop="true"
     97             android:layout_centerHorizontal="true"
     98             android:layout_marginTop="10dip"
     99         />
    100         <TextView
    101             android:id="@+id/playback_speed_text"
    102             android:layout_height="wrap_content"
    103             android:layout_width="wrap_content"
    104             android:textSize="14sp"
    105             android:layout_alignParentTop="true"
    106             android:layout_centerHorizontal="true"
    107             android:layout_marginTop="10dip"
    108             android:alpha="0"
    109         />
    110         <ImageButton
    111             android:id="@+id/rate_decrease_button"
    112             android:src="@drawable/ic_minus"
    113             android:layout_width="64dip"
    114             android:layout_height="wrap_content"
    115             android:background="?android:attr/selectableItemBackground"
    116             android:paddingBottom="19dip"
    117             android:paddingTop="29dip"
    118             android:layout_alignParentStart="true"
    119             android:layout_centerVertical="true"
    120         />
    121         <ImageButton
    122             android:id="@+id/rate_increase_button"
    123             android:src="@drawable/ic_plus"
    124             android:layout_width="64dip"
    125             android:layout_height="wrap_content"
    126             android:background="?android:attr/selectableItemBackground"
    127             android:paddingBottom="19dip"
    128             android:paddingTop="29dip"
    129             android:layout_alignParentEnd="true"
    130             android:layout_centerVertical="true"
    131         />
    132         <View
    133             android:layout_width="match_parent"
    134             android:layout_height="2dp"
    135             android:background="@color/background_dialer_light"
    136             android:layout_alignParentBottom="true"/>
    137     </RelativeLayout>
    138 </RelativeLayout>
    139