NewPipe/app/src/main/res/layout/activity_error.xml

129 lines
5.2 KiB
XML
Raw Normal View History

2016-02-24 22:12:02 +00:00
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
2016-09-13 21:39:32 +00:00
tools:context=".report.ErrorActivity">
2016-02-24 22:12:02 +00:00
2017-04-26 19:24:33 +00:00
<include layout="@layout/toolbar_layout"/>
2016-02-24 22:12:02 +00:00
<ScrollView
android:id="@+id/scrollView"
android:layout_width="match_parent"
2017-04-26 19:24:33 +00:00
android:layout_height="match_parent"
android:layout_marginTop="?attr/actionBarSize">
2016-02-24 22:12:02 +00:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
2016-02-25 21:02:42 +00:00
android:paddingTop="@dimen/activity_vertical_margin"
android:focusable="true"
android:focusableInTouchMode="true">
2016-02-24 22:12:02 +00:00
<TextView
android:id="@+id/errorSorryView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
2016-02-25 02:43:13 +00:00
android:gravity="center"
2016-02-24 22:12:02 +00:00
android:text="@string/sorry_string"
android:textStyle="bold" />
<TextView
android:id="@+id/messageWhatHappenedView"
android:paddingTop="@dimen/activity_vertical_margin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/what_happened_headline"/>
<TextView
android:id="@+id/errorMessageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-01-26 06:37:41 +00:00
android:textColor="?attr/colorAccent"
android:text="@string/info_labels"/>
2016-02-25 21:02:42 +00:00
<TextView
android:id="@+id/errorDeviceHeadlineView"
android:paddingTop="@dimen/activity_vertical_margin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/what_device_headline"/>
<LinearLayout
android:id="@+id/errorInfoLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/errorInfoLabelsView"
2016-02-25 22:19:43 +00:00
android:layout_width="wrap_content"
2016-02-25 21:02:42 +00:00
android:layout_height="wrap_content"
2017-01-26 06:37:41 +00:00
android:textColor="?attr/colorAccent"
2016-02-25 21:02:42 +00:00
android:text="@string/info_labels"/>
<HorizontalScrollView
2016-02-25 22:19:43 +00:00
android:paddingLeft="16dp"
android:layout_width="fill_parent"
2016-02-25 21:02:42 +00:00
android:layout_height="wrap_content">
<TextView
android:id="@+id/errorInfosView"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</HorizontalScrollView>
</LinearLayout>
2016-02-24 22:12:02 +00:00
<TextView
android:id="@+id/errorDetailView"
2016-02-24 22:12:02 +00:00
android:paddingTop="@dimen/activity_vertical_margin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/error_details_headline"/>
2016-02-24 22:12:02 +00:00
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/horizontalScrollView"
android:layout_gravity="center" >
<TextView
android:id="@+id/errorView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2016-02-25 02:43:13 +00:00
android:typeface="monospace"/>
2016-02-24 22:12:02 +00:00
</HorizontalScrollView>
2016-02-25 22:19:43 +00:00
<TextView
android:id="@+id/errorYourComment"
android:paddingTop="@dimen/activity_vertical_margin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/your_comment"/>
<EditText
android:id="@+id/errorCommentBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
2016-02-24 22:12:02 +00:00
<Button
android:id="@+id/errorReportButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/error_report_button_text" />
</LinearLayout>
</ScrollView>
</FrameLayout>