Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3      Copyright (C) 2014 The Android Open Source Project
      4 
      5      Licensed under the Apache License, Version 2.0 (the "License");
      6      you may not use this file except in compliance with the License.
      7      You may obtain a copy of the License at
      8 
      9           http://www.apache.org/licenses/LICENSE-2.0
     10 
     11      Unless required by applicable law or agreed to in writing, software
     12      distributed under the License is distributed on an "AS IS" BASIS,
     13      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14      See the License for the specific language governing permissions and
     15      limitations under the License.
     16 -->
     17 
     18 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="wrap_content"
     21     android:orientation="vertical" >
     22 
     23     <ProgressBar
     24         android:id="@+id/playback_progress"
     25         style="?android:attr/progressBarStyleHorizontal"
     26         android:layout_width="match_parent"
     27         android:layout_height="4dp"
     28         android:maxHeight="4dp"
     29         android:minHeight="4dp"
     30         android:layoutDirection="ltr"
     31         android:progressDrawable="@drawable/lb_playback_progress_bar" />
     32 
     33     <android.support.v17.leanback.widget.PersistentFocusWrapper
     34         android:id="@+id/controls_container_focus_wrapper"
     35         android:layout_width="match_parent"
     36         android:layout_height="wrap_content" >
     37 
     38         <FrameLayout
     39             android:id="@+id/controls_container"
     40             android:layout_width="match_parent"
     41             android:layout_height="wrap_content" >
     42 
     43             <android.support.v17.leanback.widget.PersistentFocusWrapper
     44                 android:id="@+id/control_bar_focus_wrapper"
     45                 android:layout_width="wrap_content"
     46                 android:layout_height="wrap_content"
     47                 android:layout_gravity="center_horizontal">
     48 
     49                 <android.support.v17.leanback.widget.ControlBar
     50                     android:id="@+id/control_bar"
     51                     android:layout_width="wrap_content"
     52                     android:layout_height="wrap_content"
     53                     android:layoutDirection="ltr"
     54                     android:orientation="horizontal" />
     55                 </android.support.v17.leanback.widget.PersistentFocusWrapper>
     56 
     57             <FrameLayout
     58                 android:id="@+id/more_actions_dock"
     59                 android:layout_width="wrap_content"
     60                 android:layout_height="wrap_content"
     61                 android:layout_gravity="end" />
     62 
     63             <TextView
     64                 android:id="@+id/current_time"
     65                 android:layout_width="wrap_content"
     66                 android:layout_height="wrap_content"
     67                 android:layout_gravity="top|left"
     68                 android:layout_marginStart="@dimen/lb_playback_current_time_margin_start"
     69                 android:paddingTop="@dimen/lb_playback_time_padding_top"
     70                 style="?attr/playbackControlsTimeStyle" />
     71 
     72             <TextView
     73                 android:id="@+id/total_time"
     74                 android:layout_width="wrap_content"
     75                 android:layout_height="wrap_content"
     76                 android:layout_gravity="top|right"
     77                 android:layout_marginEnd="@dimen/lb_playback_total_time_margin_end"
     78                 android:paddingTop="@dimen/lb_playback_time_padding_top"
     79                 style="?attr/playbackControlsTimeStyle" />
     80 
     81         </FrameLayout>
     82     </android.support.v17.leanback.widget.PersistentFocusWrapper>
     83 
     84 </LinearLayout>