| <?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="match_parent" |
| android:layout_height="match_parent"> |
| |
| <LinearLayout |
| android:id="@+id/submit_bug_report_layout" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:padding="@dimen/bug_report_padding" |
| android:background="@color/bugreport_background" |
| android:visibility="gone" |
| android:orientation="vertical"> |
| <TextView |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:textSize="@dimen/bug_report_title_size" |
| android:textColor="@color/bugreport_text" |
| android:gravity="center" |
| android:text="@string/bugreport_dialog_title"/> |
| <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:textSize="@dimen/bug_report_text_size" |
| android:textColor="@color/bugreport_text" |
| android:gravity="center" |
| android:visibility="gone" |
| android:text="@string/bugreport_dialog_recording_finished"/> |
| <Button |
| android:id="@+id/button_submit" |
| 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:background="@color/bugreport_button_background" |
| android:textColor="@color/bugreport_button_foreground" |
| android:textSize="@dimen/bug_report_button_text_size" |
| android:text="@string/bugreport_dialog_submit"/> |
| <Button |
| android:id="@+id/button_cancel" |
| 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:background="@color/bugreport_button_background" |
| android:textColor="@color/bugreport_button_foreground" |
| android:textSize="@dimen/bug_report_button_text_size" |
| 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:background="@color/bugreport_background" |
| android:padding="@dimen/bug_report_padding" |
| android:visibility="gone" |
| android:orientation="vertical"> |
| <TextView |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:textSize="@dimen/bug_report_title_size" |
| android:textColor="@color/bugreport_text" |
| android:gravity="center" |
| android:text="@string/bugreport_dialog_in_progress_title"/> |
| <ProgressBar |
| style="?android:attr/progressBarStyleLarge" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginTop="@dimen/bug_report_progress_bar_margin_top" |
| android:layout_gravity="center"/> |
| <Button |
| android:id="@+id/button_close" |
| 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:background="@color/bugreport_button_background" |
| android:textColor="@color/bugreport_button_foreground" |
| android:textSize="@dimen/bug_report_button_text_size" |
| android:text="@string/bugreport_dialog_close"/> |
| </LinearLayout> |
| </LinearLayout> |