summaryrefslogtreecommitdiffstats
path: root/res/layout/audio_list_item_view.xml
diff options
context:
space:
mode:
Diffstat (limited to 'res/layout/audio_list_item_view.xml')
-rw-r--r--res/layout/audio_list_item_view.xml56
1 files changed, 56 insertions, 0 deletions
diff --git a/res/layout/audio_list_item_view.xml b/res/layout/audio_list_item_view.xml
new file mode 100644
index 0000000..e22acc1
--- /dev/null
+++ b/res/layout/audio_list_item_view.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2016 The Android Open Source Project
+
+ 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.
+-->
+<com.android.messaging.ui.mediapicker.AudioListItemView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/audio_list_item_height"
+ android:background="@color/gallery_image_default_background"
+ android:clickable="true">
+
+ <FrameLayout
+ android:layout_gravity="center_vertical"
+ android:layout_marginLeft="@dimen/audio_list_item_icon_margin"
+ android:layout_width="@dimen/audio_list_item_icon_size"
+ android:layout_height="@dimen/audio_list_item_icon_size">
+
+ <CheckBox
+ android:id="@+id/audio_checkbox"
+ style="@style/GalleryGridItemViewCheckBoxStyle"
+ android:button="@drawable/gallery_checkbox_selector"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"/>
+
+ <ImageView
+ android:id="@+id/audio_button"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@drawable/transparent_button_background"
+ android:scaleType="fitCenter"
+ android:src="@drawable/ic_library_music_black_24px"
+ android:contentDescription="@string/video_thumbnail_view_play_button_content_description"/>
+
+ </FrameLayout>
+
+ <TextView
+ android:id="@+id/audio_filename"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/audio_list_item_text_height"
+ android:layout_marginLeft="@dimen/audio_list_item_text_margin"
+ android:layout_gravity="center_vertical"
+ android:textColor="@color/button_text"/>
+
+</com.android.messaging.ui.mediapicker.AudioListItemView>