Loading packages/SoundPicker/Android.bp +4 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,10 @@ android_library { "androidx.appcompat_appcompat", "hilt_android", "guava", "androidx.recyclerview_recyclerview", "androidx-constraintlayout_constraintlayout", "androidx.viewpager2_viewpager2", "com.google.android.material_material", ], } Loading packages/SoundPicker/AndroidManifest.xml +3 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,9 @@ <intent-filter> <action android:name="android.intent.action.RINGTONE_PICKER" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.RINGTONE_PICKER_SOUND" /> <category android:name="android.intent.category.RINGTONE_PICKER_VIBRATION" /> <category android:name="android.intent.category.RINGTONE_PICKER_RINGTONE" /> </intent-filter> </activity> </application> Loading packages/SoundPicker/res/layout/activity_ringtone_picker.xml +4 −3 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?><!-- <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2023 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); Loading @@ -15,6 +16,6 @@ --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" /> No newline at end of file android:layout_height="match_parent"/> No newline at end of file packages/SoundPicker/res/layout/add_new_sound_item.xml +10 −8 Original line number Diff line number Diff line Loading @@ -19,7 +19,9 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:background="?android:attr/selectableItemBackground"> android:background="?android:attr/selectableItemBackground" android:focusable="true" android:clickable="true"> <ImageView android:layout_width="24dp" Loading @@ -31,7 +33,7 @@ android:layout_marginLeft="24dp" android:src="@drawable/ic_add"/> <TextView xmlns:android="http://schemas.android.com/apk/res/android" <TextView android:id="@+id/add_new_sound_text" android:layout_width="match_parent" android:layout_height="wrap_content" Loading packages/SoundPicker/res/layout/fragment_sound_picker.xml 0 → 100644 +23 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2023 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. --> <androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/recycler_view" android:layout_width="match_parent" android:layout_height="match_parent" /> No newline at end of file Loading
packages/SoundPicker/Android.bp +4 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,10 @@ android_library { "androidx.appcompat_appcompat", "hilt_android", "guava", "androidx.recyclerview_recyclerview", "androidx-constraintlayout_constraintlayout", "androidx.viewpager2_viewpager2", "com.google.android.material_material", ], } Loading
packages/SoundPicker/AndroidManifest.xml +3 −0 Original line number Diff line number Diff line Loading @@ -34,6 +34,9 @@ <intent-filter> <action android:name="android.intent.action.RINGTONE_PICKER" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.RINGTONE_PICKER_SOUND" /> <category android:name="android.intent.category.RINGTONE_PICKER_VIBRATION" /> <category android:name="android.intent.category.RINGTONE_PICKER_RINGTONE" /> </intent-filter> </activity> </application> Loading
packages/SoundPicker/res/layout/activity_ringtone_picker.xml +4 −3 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?><!-- <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2023 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); Loading @@ -15,6 +16,6 @@ --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" /> No newline at end of file android:layout_height="match_parent"/> No newline at end of file
packages/SoundPicker/res/layout/add_new_sound_item.xml +10 −8 Original line number Diff line number Diff line Loading @@ -19,7 +19,9 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center_vertical" android:background="?android:attr/selectableItemBackground"> android:background="?android:attr/selectableItemBackground" android:focusable="true" android:clickable="true"> <ImageView android:layout_width="24dp" Loading @@ -31,7 +33,7 @@ android:layout_marginLeft="24dp" android:src="@drawable/ic_add"/> <TextView xmlns:android="http://schemas.android.com/apk/res/android" <TextView android:id="@+id/add_new_sound_text" android:layout_width="match_parent" android:layout_height="wrap_content" Loading
packages/SoundPicker/res/layout/fragment_sound_picker.xml 0 → 100644 +23 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2023 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. --> <androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/recycler_view" android:layout_width="match_parent" android:layout_height="match_parent" /> No newline at end of file