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 <LinearLayout
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content"
     21     android:layout_marginStart="64dp"
     22     android:layout_marginEnd="24dp"
     23     android:orientation="vertical"
     24     android:background="@color/background_dialer_call_log_list_item">
     25 
     26     <TextView
     27         android:id="@+id/playback_state_text"
     28         android:layout_height="wrap_content"
     29         android:layout_width="match_parent"
     30         android:gravity="center"
     31         android:textSize="14sp" />
     32 
     33     <LinearLayout
     34         android:layout_width="match_parent"
     35         android:layout_height="wrap_content"
     36         android:orientation="horizontal"
     37         android:gravity="top">
     38 
     39         <TextView
     40             android:id="@+id/playback_position_text"
     41             android:layout_height="wrap_content"
     42             android:layout_width="wrap_content"
     43             android:textSize="14sp"
     44             android:paddingTop="@dimen/voicemail_playback_top_padding" />
     45 
     46         <LinearLayout
     47             android:layout_width="0dp"
     48             android:layout_height="wrap_content"
     49             android:layout_weight="1"
     50             android:orientation="vertical"
     51             android:layout_marginTop="4dp">
     52 
     53             <SeekBar
     54                 android:id="@+id/playback_seek"
     55                 android:layout_width="match_parent"
     56                 android:layout_height="wrap_content"
     57                 android:paddingBottom="8dp"
     58                 android:paddingTop="@dimen/voicemail_playback_top_padding"
     59                 android:progressDrawable="@drawable/seekbar_drawable"
     60                 android:thumb="@drawable/ic_voicemail_seek_handle"
     61                 android:progress="0"
     62                 android:max="0"
     63                 android:contentDescription="@string/description_playback_seek" />
     64 
     65             <LinearLayout
     66                 android:layout_width="match_parent"
     67                 android:layout_height="wrap_content"
     68                 android:orientation="horizontal"
     69                 android:gravity="center"
     70                 android:padding="8dp">
     71 
     72                 <ImageButton android:id="@+id/playback_speakerphone"
     73                     style="@style/VoicemailPlaybackLayoutButtonStyle"
     74                     android:src="@drawable/ic_speakerphone_on"
     75                     android:tint="@color/voicemail_icon_tint"
     76                     android:contentDescription="@string/description_playback_speakerphone" />
     77 
     78                 <Space
     79                     android:layout_width="0dp"
     80                     android:layout_height="0dp"
     81                     android:layout_weight="1" />
     82 
     83                 <ImageButton android:id="@+id/playback_start_stop"
     84                     style="@style/VoicemailPlaybackLayoutButtonStyle"
     85                     android:src="@drawable/ic_play_arrow"
     86                     android:contentDescription="@string/voicemail_play_start_pause" />
     87 
     88                 <Space
     89                     android:layout_width="0dp"
     90                     android:layout_height="0dp"
     91                     android:layout_weight="1" />
     92 
     93                 <ImageButton android:id="@+id/delete_voicemail"
     94                     style="@style/VoicemailPlaybackLayoutButtonStyle"
     95                     android:src="@drawable/ic_delete_24dp"
     96                     android:tint="@color/voicemail_icon_tint"
     97                     android:contentDescription="@string/recentCalls_trashVoicemail" />
     98 
     99             </LinearLayout>
    100 
    101         </LinearLayout>
    102 
    103     <TextView
    104         android:id="@+id/total_duration_text"
    105         android:layout_height="wrap_content"
    106         android:layout_width="wrap_content"
    107         android:textSize="14sp"
    108         android:paddingTop="@dimen/voicemail_playback_top_padding" />
    109 
    110     </LinearLayout>
    111 
    112 </LinearLayout>
    113