Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions test-app/app/src/main/res/layout/activity_main.xml

This file was deleted.

39 changes: 39 additions & 0 deletions test-app/app/src/main/res/layout/error_activity.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context="com.tns.ErrorReportActivity"
android:theme="@style/Widget.AppCompat.Light.ActionBar">

<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"/>

<android.support.v4.view.ViewPager
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/toolbar"
android:scrollbarAlwaysDrawVerticalTrack="false">

</android.support.v4.view.ViewPager>

<android.support.design.widget.TabLayout
android:id="@+id/tabLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize"
app:tabIndicatorColor="@color/nativescript_blue"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true"
android:scrollbarStyle="insideOverlay"
android:scrollbars="vertical"
tools:tabBackground="@android:color/darker_gray"
android:scrollbarAlwaysDrawVerticalTrack="false"
/>
</RelativeLayout>
52 changes: 52 additions & 0 deletions test-app/app/src/main/res/layout/exception_tab.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
android:orientation="vertical"
android:paddingBottom="10dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="10dp">

<Button
android:id="@+id/btnCopyException"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:background="@color/nativescript_blue"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:text="Copy to clipboard"
android:textAlignment="textStart"
android:textColor="@android:color/white"
tools:layout_width="match_parent"/>

<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/btnCopyException"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:orientation="vertical"
android:paddingBottom="10dp"
android:weightSum="100">

<TextView
android:id="@+id/txtErrorMsg"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text=""
android:textAppearance="?android:attr/textAppearanceSmall"
android:paddingLeft="2dp"
android:paddingRight="2dp"
android:scrollbars="vertical"
android:scrollbarStyle="outsideOverlay"
android:scrollbarAlwaysDrawVerticalTrack="true"/>

</LinearLayout>


</RelativeLayout>
52 changes: 52 additions & 0 deletions test-app/app/src/main/res/layout/logcat_tab.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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"
android:orientation="vertical"
android:paddingBottom="10dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="10dp">

<Button
android:id="@+id/btnCopyLogcat"
android:layout_height="wrap_content"
android:text="Copy to sdcard"
android:layout_width="match_parent"
android:background="@color/nativescript_blue"
android:textColor="@android:color/white"
android:textAlignment="textStart"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
tools:layout_width="match_parent"/>

<LinearLayout
android:id="@+id/logcatLinearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:weightSum="100"
android:layout_alignParentTop="true"
android:layout_alignParentStart="true"
android:layout_above="@+id/btnCopyLogcat"
android:paddingBottom="10dp">

<TextView
android:id="@+id/logcatMsg"
android:layout_width="match_parent"
android:text=""
android:textAppearance="?android:attr/textAppearanceSmall"
android:layout_height="wrap_content"
android:paddingLeft="2dp"
android:paddingRight="2dp"
android:scrollbars="vertical"
android:scrollbarStyle="outsideOverlay"
android:scrollbarAlwaysDrawVerticalTrack="true"/>

</LinearLayout>


</RelativeLayout>
4 changes: 4 additions & 0 deletions test-app/app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
<color name="nativescript_blue">#3c5afd</color>
<color name="ns_primary">#F5F5F5</color>
<color name="ns_primaryDark">#757575</color>
<color name="ns_accent">#33B5E5</color>
</resources>
6 changes: 5 additions & 1 deletion test-app/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>

<style name="AppThemeBase" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/ns_primary</item>
<item name="colorPrimaryDark">@color/ns_primaryDark</item>
<item name="colorAccent">@color/ns_accent</item>
</style>
</resources>