initial commit of my exception report viewer
This commit is contained in:
BIN
ExceptionReportViewer/res/drawable-hdpi/ic_launcher.png
Normal file
BIN
ExceptionReportViewer/res/drawable-hdpi/ic_launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.5 KiB |
BIN
ExceptionReportViewer/res/drawable-ldpi/ic_launcher.png
Normal file
BIN
ExceptionReportViewer/res/drawable-ldpi/ic_launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
BIN
ExceptionReportViewer/res/drawable-mdpi/ic_launcher.png
Normal file
BIN
ExceptionReportViewer/res/drawable-mdpi/ic_launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.7 KiB |
BIN
ExceptionReportViewer/res/drawable-xhdpi/ic_launcher.png
Normal file
BIN
ExceptionReportViewer/res/drawable-xhdpi/ic_launcher.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.4 KiB |
52
ExceptionReportViewer/res/layout/list_item.xml
Normal file
52
ExceptionReportViewer/res/layout/list_item.xml
Normal file
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="#"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:textColor="#99CC00" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/id"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:textColor="#99CC00" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/status"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="5dip"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||
android:textColor="#99CC00" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="5dip"
|
||||
android:textColor="#99CC00"
|
||||
android:textSize="10dip" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/msg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#000000"
|
||||
android:textSize="15dip" >
|
||||
</TextView>
|
||||
|
||||
</LinearLayout>
|
||||
20
ExceptionReportViewer/res/layout/main.xml
Normal file
20
ExceptionReportViewer/res/layout/main.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:orientation="vertical" >
|
||||
|
||||
<com.jakewharton.android.viewpagerindicator.TitlePageIndicator
|
||||
android:id="@+id/indicator"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dip" />
|
||||
|
||||
<android.support.v4.view.ViewPager
|
||||
android:id="@+id/pager"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="0dip"
|
||||
android:layout_weight="1"
|
||||
android:background="#ffffff" />
|
||||
|
||||
</LinearLayout>
|
||||
9
ExceptionReportViewer/res/values/array.xml
Normal file
9
ExceptionReportViewer/res/values/array.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string-array name="titles">
|
||||
<item>Production</item>
|
||||
<item>Testing</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
||||
43
ExceptionReportViewer/res/values/attrs.xml
Normal file
43
ExceptionReportViewer/res/values/attrs.xml
Normal file
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<!--
|
||||
Copyright (C) 2011 Patrik Åkerfeldt
|
||||
Copyright (C) 2011 Jake Wharton
|
||||
|
||||
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.
|
||||
-->
|
||||
<declare-styleable name="ViewPagerIndicator">
|
||||
<attr name="circlePageIndicatorStyle" format="reference" />
|
||||
<attr name="titlePageIndicatorStyle" format="reference" />
|
||||
</declare-styleable>
|
||||
<declare-styleable name="TitlePageIndicator">
|
||||
<attr name="clipPadding" format="dimension" />
|
||||
<attr name="footerColor" format="color" />
|
||||
<attr name="footerLineHeight" format="dimension" />
|
||||
<attr name="footerIndicatorStyle">
|
||||
<enum name="none" value="0" />
|
||||
<enum name="triangle" value="1" />
|
||||
<enum name="underline" value="2" />
|
||||
</attr>
|
||||
<attr name="footerIndicatorHeight" format="dimension" />
|
||||
<attr name="footerIndicatorPadding" format="dimension" />
|
||||
<attr name="footerIndicatorUnderlinePadding" format="dimension" />
|
||||
<attr name="selectedColor" format="color" />
|
||||
<attr name="selectedBold" format="boolean" />
|
||||
<attr name="textColor" format="color" />
|
||||
<attr name="textSize" format="dimension" />
|
||||
<attr name="titlePadding" format="dimension" />
|
||||
</declare-styleable>
|
||||
|
||||
</resources>
|
||||
41
ExceptionReportViewer/res/values/defaults.xml
Normal file
41
ExceptionReportViewer/res/values/defaults.xml
Normal file
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2011 Jake Wharton
|
||||
|
||||
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.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<dimen name="default_title_indicator_clip_padding">0dp</dimen>
|
||||
|
||||
<color name="default_title_indicator_footer_color">#FFFFFFFF</color>
|
||||
|
||||
<dimen name="default_title_indicator_footer_line_height">1px</dimen>
|
||||
|
||||
<integer name="default_title_indicator_footer_indicator_style">1</integer>
|
||||
|
||||
<dimen name="default_title_indicator_footer_indicator_height">7dp</dimen>
|
||||
<dimen name="default_title_indicator_footer_indicator_padding">5dp</dimen>
|
||||
<dimen name="default_title_indicator_footer_indicator_underline_padding">10dp</dimen>
|
||||
|
||||
<color name="default_title_indicator_selected_color">#FF99CC00</color>
|
||||
|
||||
<bool name="default_title_indicator_selected_bold">true</bool>
|
||||
|
||||
<color name="default_title_indicator_text_color">#FFFFFFFF</color>
|
||||
|
||||
<dimen name="default_title_indicator_text_size">18dp</dimen>
|
||||
<dimen name="default_title_indicator_title_padding">5dp</dimen>
|
||||
|
||||
</resources>
|
||||
7
ExceptionReportViewer/res/values/strings.xml
Normal file
7
ExceptionReportViewer/res/values/strings.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="hello">Hello World, Main!</string>
|
||||
<string name="app_name">ExceptionReportViewer</string>
|
||||
|
||||
</resources>
|
||||
62
ExceptionReportViewer/res/values/styles.xml
Normal file
62
ExceptionReportViewer/res/values/styles.xml
Normal file
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2011 Jake Wharton
|
||||
|
||||
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.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<style name="StyledIndicators" parent="@android:style/Theme.Light">
|
||||
<item name="titlePageIndicatorStyle">@style/CustomTitlePageIndicator</item>
|
||||
</style>
|
||||
|
||||
<style name="CustomTitlePageIndicator">
|
||||
<item name="android:background">#FFDDDDDD</item>
|
||||
<item name="footerColor">#FFDDDDDD</item>
|
||||
<item name="footerLineHeight">2dp</item>
|
||||
<item name="footerIndicatorStyle">none</item>
|
||||
<item name="textColor">#FF999999</item>
|
||||
<item name="selectedColor">#00000000</item>
|
||||
<item name="selectedBold">false</item>
|
||||
</style>
|
||||
|
||||
<!-- Copyright (C) 2011 Jake Wharton 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. -->
|
||||
<style name="Theme.PageIndicatorDefaults" parent="@android:style/Theme">
|
||||
<item name="titlePageIndicatorStyle">@style/Widget.TitlePageIndicator</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.TitlePageIndicator" parent="@android:style/Widget">
|
||||
<item name="clipPadding">@dimen/default_title_indicator_clip_padding</item>
|
||||
<item name="footerColor">@color/default_title_indicator_footer_color</item>
|
||||
<item name="footerLineHeight">@dimen/default_title_indicator_footer_line_height</item>
|
||||
<item name="footerIndicatorStyle">
|
||||
@integer/default_title_indicator_footer_indicator_style
|
||||
</item>
|
||||
<item name="footerIndicatorHeight">
|
||||
@dimen/default_title_indicator_footer_indicator_height
|
||||
</item>
|
||||
<item name="footerIndicatorPadding">
|
||||
@dimen/default_title_indicator_footer_indicator_padding
|
||||
</item>
|
||||
<item name="footerIndicatorUnderlinePadding">
|
||||
@dimen/default_title_indicator_footer_indicator_underline_padding
|
||||
</item>
|
||||
<item name="selectedColor">@color/default_title_indicator_selected_color</item>
|
||||
<item name="selectedBold">@bool/default_title_indicator_selected_bold</item>
|
||||
<item name="textColor">@color/default_title_indicator_text_color</item>
|
||||
<item name="textSize">@dimen/default_title_indicator_text_size</item>
|
||||
<item name="titlePadding">@dimen/default_title_indicator_title_padding</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user