| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright 2015 Google Inc. All rights reserved. |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| http://www.apache.org/licenses/LICENSE-2.0 |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:id="@+id/container" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent"> |
| |
| |
| <RelativeLayout |
| android:id="@+id/outer_circle" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="@color/background_color"> |
| |
| <View |
| android:id="@+id/inner_circle" |
| android:layout_width="140dp" |
| android:layout_height="140dp" |
| android:layout_centerInParent="true" |
| android:background="@drawable/color_circle" /> |
| |
| <View |
| android:id="@+id/center" |
| android:layout_width="1dp" |
| android:layout_height="1dp" |
| android:layout_centerInParent="true" |
| android:visibility="invisible" /> |
| |
| <ImageView |
| android:id="@+id/mic" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_above="@+id/center" |
| android:layout_centerHorizontal="true" |
| android:layout_marginBottom="13dp" |
| android:src="@drawable/ic_mic_32dp" /> |
| |
| <ImageView |
| android:id="@+id/play" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_below="@+id/center" |
| android:layout_marginRight="13dp" |
| android:layout_marginTop="12dp" |
| android:layout_toLeftOf="@+id/center" |
| android:src="@drawable/ic_play_arrow_32dp" /> |
| |
| <ImageView |
| android:id="@+id/music" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_below="@+id/center" |
| android:layout_marginLeft="13dp" |
| android:layout_marginTop="12dp" |
| android:layout_toRightOf="@+id/center" |
| android:src="@drawable/ic_audiotrack_32dp" /> |
| |
| <ProgressBar |
| android:id="@+id/progress_bar" |
| style="?android:attr/progressBarStyleHorizontal" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignStart="@+id/inner_circle" |
| android:layout_alignEnd="@+id/inner_circle" |
| android:layout_below="@+id/inner_circle" |
| android:progressTint="@color/progressbar_tint" |
| android:progressBackgroundTint="@color/progressbar_background_tint" |
| android:layout_marginTop="5dp" |
| android:visibility="invisible" /> |
| </RelativeLayout> |
| |
| <ImageView |
| android:id="@+id/expanded" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:scaleType="center" |
| android:visibility="invisible" /> |
| </FrameLayout> |