Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3   Copyright 2015 Google Inc. All rights reserved.
      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        http://www.apache.org/licenses/LICENSE-2.0
      8   Unless required by applicable law or agreed to in writing, software
      9   distributed under the License is distributed on an "AS IS" BASIS,
     10   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     11   See the License for the specific language governing permissions and
     12   limitations under the License.
     13   -->
     14 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
     15     android:id="@+id/container"
     16     android:layout_width="match_parent"
     17     android:layout_height="match_parent">
     18 
     19 
     20     <RelativeLayout
     21         android:id="@+id/container2"
     22         android:layout_width="match_parent"
     23         android:layout_height="match_parent"
     24         android:background="@color/background_color">
     25 
     26         <View
     27             android:id="@+id/circle"
     28             android:layout_width="140dp"
     29             android:layout_height="140dp"
     30             android:layout_centerInParent="true"
     31             android:background="@drawable/circle" />
     32 
     33         <View
     34             android:id="@+id/center"
     35             android:layout_width="1dp"
     36             android:layout_height="1dp"
     37             android:layout_centerInParent="true"
     38             android:visibility="invisible" />
     39 
     40         <ImageView
     41             android:id="@+id/mic"
     42             android:layout_width="wrap_content"
     43             android:layout_height="wrap_content"
     44             android:layout_above="@+id/center"
     45             android:layout_centerHorizontal="true"
     46             android:layout_marginBottom="13dp"
     47             android:src="@drawable/ic_mic_32dp" />
     48 
     49         <ImageView
     50             android:id="@+id/play"
     51             android:layout_width="wrap_content"
     52             android:layout_height="wrap_content"
     53             android:layout_below="@+id/center"
     54             android:layout_marginRight="13dp"
     55             android:layout_marginTop="12dp"
     56             android:layout_toLeftOf="@+id/center"
     57             android:src="@drawable/ic_play_arrow_32dp" />
     58 
     59         <ImageView
     60             android:id="@+id/music"
     61             android:layout_width="wrap_content"
     62             android:layout_height="wrap_content"
     63             android:layout_below="@+id/center"
     64             android:layout_marginLeft="13dp"
     65             android:layout_marginTop="12dp"
     66             android:layout_toRightOf="@+id/center"
     67             android:src="@drawable/ic_audiotrack_32dp" />
     68 
     69         <ProgressBar
     70             android:id="@+id/progress"
     71             style="?android:attr/progressBarStyleHorizontal"
     72             android:layout_width="wrap_content"
     73             android:layout_height="wrap_content"
     74             android:layout_alignStart="@+id/circle"
     75             android:layout_alignEnd="@+id/circle"
     76             android:layout_below="@+id/circle"
     77             android:progressTint="@color/progressbar_tint"
     78             android:progressBackgroundTint="@color/progressbar_background_tint"
     79             android:layout_marginTop="5dp"
     80             android:visibility="invisible" />
     81     </RelativeLayout>
     82 
     83     <ImageView
     84         android:id="@+id/expanded"
     85         android:layout_width="match_parent"
     86         android:layout_height="match_parent"
     87         android:scaleType="center"
     88         android:visibility="invisible" />
     89 </FrameLayout>