| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| Copyright (C) 2019 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. |
| --> |
| <LinearLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:background="@color/bugreport_background" |
| android:padding="@dimen/bug_report_padding" |
| android:orientation="vertical"> |
| |
| <LinearLayout |
| android:id="@+id/submit_bug_report_layout" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:visibility="gone" |
| android:orientation="vertical"> |
| <TextView |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:textAppearance="?android:attr/textAppearanceLarge" |
| android:textColor="@color/bugreport_text" |
| android:gravity="center" |
| android:text="@string/bugreport_dialog_title"/> |
| <TextView |
| android:id="@+id/bug_report_add_audio_to_existing" |
| android:layout_marginTop="@dimen/bug_report_voice_recording_margin_top" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| android:textColor="@color/bugreport_text" |
| android:gravity="center" |
| android:visibility="gone" |
| android:text="@string/bugreport_dialog_add_audio_to_existing"/> |
| <com.google.android.car.bugreport.VoiceRecordingView |
| android:id="@+id/voice_recording_view" |
| android:layout_marginTop="@dimen/bug_report_voice_recording_margin_top" |
| android:layout_height="@dimen/bug_report_voice_recording_height" |
| android:layout_width="match_parent"/> |
| <TextView |
| android:id="@+id/voice_recording_finished_text_view" |
| android:layout_marginTop="@dimen/bug_report_voice_recording_margin_top" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/bug_report_voice_recording_height" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| android:textColor="@color/bugreport_text" |
| android:gravity="center" |
| android:visibility="gone" |
| android:text="@string/bugreport_dialog_recording_finished"/> |
| <Button |
| android:id="@+id/button_submit" |
| style="@style/standard_button" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/bug_report_button_margin_top" |
| android:padding="@dimen/bug_report_primary_button_padding" |
| android:text="@string/bugreport_dialog_submit"/> |
| <Button |
| android:id="@+id/button_cancel" |
| style="@style/standard_button" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/bug_report_button_margin_top" |
| android:padding="@dimen/bug_report_secondary_button_padding" |
| android:text="@string/bugreport_dialog_cancel"/> |
| </LinearLayout> |
| |
| <LinearLayout |
| android:id="@+id/in_progress_layout" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:visibility="gone" |
| android:orientation="vertical"> |
| <TextView |
| android:id="@+id/in_progress_title_text" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="?android:attr/textAppearanceLarge" |
| android:textColor="@color/bugreport_text" |
| android:gravity="center" |
| android:text="@string/bugreport_dialog_in_progress_title"/> |
| <ProgressBar |
| android:id="@+id/progress_bar" |
| style="?android:attr/progressBarStyleHorizontal" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/bug_report_progress_bar_margin_top" |
| android:max="100"/> |
| <TextView |
| android:id="@+id/progress_text" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textAppearance="?android:attr/textAppearanceMedium" |
| android:textColor="@color/bugreport_text" |
| android:text="0%"/> |
| <Button |
| android:id="@+id/button_close" |
| style="@style/standard_button" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/bug_report_button_margin_top" |
| android:padding="@dimen/bug_report_secondary_button_padding" |
| android:text="@string/bugreport_dialog_close"/> |
| </LinearLayout> |
| |
| <Button |
| android:id="@+id/button_show_bugreports" |
| style="@style/standard_button" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/bug_report_button_margin_top" |
| android:padding="@dimen/bug_report_small_button_padding" |
| android:visibility="gone" |
| android:text="@string/bugreport_dialog_show_bugreports"/> |
| </LinearLayout> |