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

148 lines
6.2 KiB
XML
Raw Normal View History

2016-02-24 23:12:02 +01: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"
tools:context=".error.ErrorActivity">
2016-02-24 23:12:02 +01:00
2020-10-31 11:14:11 +01:00
<include
layout="@layout/toolbar_layout"
android:id="@+id/toolbar_layout"/>
2017-04-26 21:24:33 +02:00
2016-02-24 23:12:02 +01:00
<ScrollView
android:id="@+id/scrollView"
android:layout_width="match_parent"
2017-04-26 21:24:33 +02:00
android:layout_height="match_parent"
android:layout_marginTop="?attr/actionBarSize">
2016-02-24 23:12:02 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-10-09 20:24:02 +02:00
android:focusable="true"
android:focusableInTouchMode="true"
2016-02-24 23:12:02 +01:00
android:orientation="vertical"
android:paddingLeft="@dimen/activity_horizontal_margin"
2016-02-25 22:02:42 +01:00
android:paddingTop="@dimen/activity_vertical_margin"
2020-10-09 20:24:02 +02:00
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingBottom="@dimen/activity_vertical_margin">
2016-02-24 23:12:02 +01:00
<org.schabi.newpipe.views.NewPipeTextView
2016-02-24 23:12:02 +01:00
android:id="@+id/errorSorryView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-02-25 03:43:13 +01:00
android:gravity="center"
2016-02-24 23:12:02 +01:00
android:text="@string/sorry_string"
2020-10-09 20:24:02 +02:00
android:textAppearance="?android:attr/textAppearanceLarge"
2016-02-24 23:12:02 +01:00
android:textStyle="bold" />
<org.schabi.newpipe.views.NewPipeTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-10-09 20:24:02 +02:00
android:paddingTop="@dimen/activity_vertical_margin"
android:text="@string/what_happened_headline"
android:textAppearance="?android:attr/textAppearanceMedium" />
<org.schabi.newpipe.views.NewPipeTextView
android:id="@+id/errorMessageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-10-09 20:24:02 +02:00
android:text="@string/info_labels"
android:textColor="?attr/colorAccent" />
<org.schabi.newpipe.views.NewPipeTextView
2016-02-25 22:02:42 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-10-09 20:24:02 +02:00
android:paddingTop="@dimen/activity_vertical_margin"
android:text="@string/what_device_headline"
android:textAppearance="?android:attr/textAppearanceMedium" />
2016-02-25 22:02:42 +01:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
2020-10-09 20:24:02 +02:00
<org.schabi.newpipe.views.NewPipeTextView
2016-02-25 22:02:42 +01:00
android:id="@+id/errorInfoLabelsView"
2016-02-25 23:19:43 +01:00
android:layout_width="wrap_content"
2016-02-25 22:02:42 +01:00
android:layout_height="wrap_content"
2020-10-09 20:24:02 +02:00
android:text="@string/info_labels"
android:textColor="?attr/colorAccent" />
2016-02-25 22:02:42 +01:00
<HorizontalScrollView
2021-07-27 19:38:59 +02:00
android:layout_width="match_parent"
2020-10-09 20:24:02 +02:00
android:layout_height="wrap_content"
android:paddingLeft="16dp">
2016-02-25 22:02:42 +01:00
<org.schabi.newpipe.views.NewPipeTextView
2016-02-25 22:02:42 +01:00
android:id="@+id/errorInfosView"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</HorizontalScrollView>
</LinearLayout>
<org.schabi.newpipe.views.NewPipeTextView
2016-02-24 23:12:02 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-10-09 20:24:02 +02:00
android:paddingTop="@dimen/activity_vertical_margin"
android:text="@string/error_details_headline"
android:textAppearance="?android:attr/textAppearanceMedium" />
2016-02-24 23:12:02 +01:00
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-10-09 20:24:02 +02:00
android:layout_gravity="center">
<org.schabi.newpipe.views.NewPipeTextView
2016-02-24 23:12:02 +01:00
android:id="@+id/errorView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-01-26 05:33:52 +01:00
android:textIsSelectable="true"
2020-10-09 20:24:02 +02:00
android:typeface="monospace" />
2016-02-24 23:12:02 +01:00
</HorizontalScrollView>
<org.schabi.newpipe.views.NewPipeTextView
2016-02-25 23:19:43 +01:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-10-09 20:24:02 +02:00
android:paddingTop="@dimen/activity_vertical_margin"
android:text="@string/your_comment"
android:textAppearance="?android:attr/textAppearanceMedium" />
2016-02-25 23:19:43 +01:00
<org.schabi.newpipe.views.NewPipeEditText
2016-02-25 23:19:43 +01:00
android:id="@+id/errorCommentBox"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="" />
2016-02-25 23:19:43 +01:00
2016-02-24 23:12:02 +01:00
<Button
android:id="@+id/errorReportEmailButton"
2016-02-24 23:12:02 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/error_report_button_text" />
<org.schabi.newpipe.views.NewPipeTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginBottom="5dp"
2020-10-09 20:24:02 +02:00
android:text="@string/error_report_open_github_notice"
android:textStyle="bold" />
<Button
android:id="@+id/errorReportCopyButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/copy_for_github" />
<Button
android:id="@+id/errorReportGitHubButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/error_report_open_issue_button_text" />
2016-02-24 23:12:02 +01:00
</LinearLayout>
</ScrollView>
</FrameLayout>