diff options
author | lado <herrlado@gmail.com> | 2011-11-11 14:51:10 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2011-11-11 14:51:10 +0100 |
commit | 625648e7e4a8552498df6257955a95e50d67aee3 (patch) | |
tree | bf493adfa3681eb7e099f3fbacf2058890b0b541 | |
parent | daf0cb43c09889e49c3da44dc9b27eb0d550b950 (diff) | |
download | vdr-manager-625648e7e4a8552498df6257955a95e50d67aee3.tar.gz vdr-manager-625648e7e4a8552498df6257955a95e50d67aee3.tar.bz2 |
view pager
-rw-r--r-- | vdrmanager/res/values-de/common.xml | 2 | ||||
-rw-r--r-- | vdrmanager/res/values-de/epg.xml | 2 | ||||
-rw-r--r-- | vdrmanager/res/values/attrs.xml | 78 | ||||
-rw-r--r-- | vdrmanager/res/values/common.xml | 2 | ||||
-rw-r--r-- | vdrmanager/res/values/defaults.xml | 39 | ||||
-rw-r--r-- | vdrmanager/res/values/epg.xml | 2 | ||||
-rw-r--r-- | vdrmanager/res/values/styles.xml | 48 |
7 files changed, 171 insertions, 2 deletions
diff --git a/vdrmanager/res/values-de/common.xml b/vdrmanager/res/values-de/common.xml index d7d0b5e..7bbe3f8 100644 --- a/vdrmanager/res/values-de/common.xml +++ b/vdrmanager/res/values-de/common.xml @@ -10,6 +10,7 @@ <string name="refresh">Auffrischen</string> <string name="done">Fertig</string> <string name="share">Share</string> + <string name="search_reapt">Wiederholungen</string> <string name="share_chooser">Share EPG Eintrag</string> <string name="about_text"> Über "VDR-Manager" Software für Android\n @@ -23,4 +24,5 @@ </string> <string name="about_title">Über</string> <string name="no_internet_connection">Keine Datenverbindung</string> + <string name="update_will_start_in">Die Liste wird in einer Sekunde aktualisiert</string> </resources> diff --git a/vdrmanager/res/values-de/epg.xml b/vdrmanager/res/values-de/epg.xml index 2a86f09..cafda7f 100644 --- a/vdrmanager/res/values-de/epg.xml +++ b/vdrmanager/res/values-de/epg.xml @@ -30,5 +30,5 @@ <string name="epg_search_settings_description">Suche VDR EPG</string> <string name="epg_window_title_count">%1$s, %2$s Einträge</string> <string name="channels_window_title_count">%1$s, %2$s/%3$s</string> - + <string name="new_timer">Neuer Timer</string> </resources> diff --git a/vdrmanager/res/values/attrs.xml b/vdrmanager/res/values/attrs.xml new file mode 100644 index 0000000..cfbc414 --- /dev/null +++ b/vdrmanager/res/values/attrs.xml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- 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. +--> + +<resources> + <declare-styleable name="ViewPagerIndicator"> + <!-- Style of the circle indicator. --> + <attr name="circlePageIndicatorStyle" format="reference"/> + <!-- Style of the title indicator. --> + <attr name="titlePageIndicatorStyle" format="reference"/> + </declare-styleable> + + <declare-styleable name="CirclePageIndicator"> + <!-- Whether or not the indicators should be centered. --> + <attr name="centered" format="boolean" /> + <!-- Color of the filled circle that represents the current page. --> + <attr name="fillColor" format="color" /> + <!-- Orientation of the indicator. --> + <attr name="orientation"> + <enum name="horizontal" value="0" /> + <enum name="vertical" value="1" /> + </attr> + <!-- Radius of the circles. This is also the spacing between circles. --> + <attr name="radius" format="dimension" /> + <!-- Whether or not the selected indicator snaps to the circles. --> + <attr name="snap" format="boolean" /> + <!-- Color of the open circles. --> + <attr name="strokeColor" format="color" /> + <!-- Width of the stroke used to draw the circles. --> + <attr name="strokeWidth" format="dimension" /> + </declare-styleable> + + <declare-styleable name="TitlePageIndicator"> + <!-- Screen edge padding. --> + <attr name="clipPadding" format="dimension" /> + <!-- Color of the footer line and indicator. --> + <attr name="footerColor" format="color" /> + <!-- Height of the footer line. --> + <attr name="footerLineHeight" format="dimension" /> + <!-- Style of the indicator. Default is triangle. --> + <attr name="footerIndicatorStyle"> + <enum name="none" value="0" /> + <enum name="triangle" value="1" /> + <enum name="underline" value="2" /> + </attr> + <!-- Height of the indicator above the footer line. --> + <attr name="footerIndicatorHeight" format="dimension" /> + <!-- Left and right padding of the underline indicator. --> + <attr name="footerIndicatorUnderlinePadding" format="dimension" /> + <!-- Padding between the bottom of the title and the footer. --> + <attr name="footerPadding" format="dimension" /> + <!-- Color of the selected title. --> + <attr name="selectedColor" format="color" /> + <!-- Whether or not the selected item is displayed as bold. --> + <attr name="selectedBold" format="boolean" /> + <!-- Color of regular titles. --> + <attr name="textColor" format="color" /> + <!-- Size of title text. --> + <attr name="textSize" format="dimension" /> + <!-- Padding between titles when bumping into each other. --> + <attr name="titlePadding" format="dimension" /> + <!-- Padding between titles and the top of the View. --> + <attr name="topPadding" format="dimension" /> + </declare-styleable> +</resources> diff --git a/vdrmanager/res/values/common.xml b/vdrmanager/res/values/common.xml index 5f38379..df383c4 100644 --- a/vdrmanager/res/values/common.xml +++ b/vdrmanager/res/values/common.xml @@ -11,6 +11,7 @@ <string name="refresh">Refresh</string> <string name="done">Done</string> <string name="share">Share</string> + <string name="search_reapt">Reruns</string> <string name="share_chooser">Share EPG Entry</string> <string name="about_text"> About "VDR-Manager" Software for Android\n @@ -25,4 +26,5 @@ <string name="about_title">About</string> <string name="no_internet_connection">No data connection</string> + <string name="update_will_start_in">Update will start in one second</string> </resources>
\ No newline at end of file diff --git a/vdrmanager/res/values/defaults.xml b/vdrmanager/res/values/defaults.xml new file mode 100644 index 0000000..d78ad73 --- /dev/null +++ b/vdrmanager/res/values/defaults.xml @@ -0,0 +1,39 @@ +<?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> + <bool name="default_circle_indicator_centered">true</bool> + <color name="default_circle_indicator_fill_color">#FFFFFFFF</color> + <integer name="default_circle_indicator_orientation">0</integer> + <dimen name="default_circle_indicator_radius">3dp</dimen> + <bool name="default_circle_indicator_snap">false</bool> + <color name="default_circle_indicator_stroke_color">#FFDDDDDD</color> + <dimen name="default_circle_indicator_stroke_width">1dp</dimen> + + <dimen name="default_title_indicator_clip_padding">4dp</dimen> + <color name="default_title_indicator_footer_color">#FF6899FF</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_underline_padding">10dp</dimen> + <dimen name="default_title_indicator_footer_padding">5dp</dimen> + <color name="default_title_indicator_selected_color">#FFFFFFFF</color> + <bool name="default_title_indicator_selected_bold">true</bool> + <color name="default_title_indicator_text_color">#FFAAAAAA</color> + <dimen name="default_title_indicator_text_size">12dp</dimen> + <dimen name="default_title_indicator_title_padding">5dp</dimen> + <dimen name="default_title_indicator_top_padding">0dp</dimen> +</resources>
\ No newline at end of file diff --git a/vdrmanager/res/values/epg.xml b/vdrmanager/res/values/epg.xml index 3a9e2ee..a23dd73 100644 --- a/vdrmanager/res/values/epg.xml +++ b/vdrmanager/res/values/epg.xml @@ -30,5 +30,5 @@ <string name="epg_search_settings_description">Search VDR EPG</string> <string name="epg_window_title_count">%1$s, %2$s items</string> <string name="channels_window_title_count">%1$s, %2$s/%3$s</string> - + <string name="new_timer">New timer</string> </resources> diff --git a/vdrmanager/res/values/styles.xml b/vdrmanager/res/values/styles.xml new file mode 100644 index 0000000..dcedbb0 --- /dev/null +++ b/vdrmanager/res/values/styles.xml @@ -0,0 +1,48 @@ +<?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="Theme.PageIndicatorDefaults" parent="@android:style/Theme"> + <item name="circlePageIndicatorStyle">@style/Widget.CirclePageIndicator</item> + <item name="titlePageIndicatorStyle">@style/Widget.TitlePageIndicator</item> + </style> + + <style name="Widget.CirclePageIndicator" parent="@android:style/Widget"> + <item name="centered">@bool/default_circle_indicator_centered</item> + <item name="fillColor">@color/default_circle_indicator_fill_color</item> + <item name="orientation">@integer/default_circle_indicator_orientation</item> + <item name="radius">@dimen/default_circle_indicator_radius</item> + <item name="snap">@bool/default_circle_indicator_snap</item> + <item name="strokeColor">@color/default_circle_indicator_stroke_color</item> + <item name="strokeWidth">@dimen/default_circle_indicator_stroke_width</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="footerIndicatorUnderlinePadding">@dimen/default_title_indicator_footer_indicator_underline_padding</item> + <item name="footerPadding">@dimen/default_title_indicator_footer_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> + <item name="topPadding">@dimen/default_title_indicator_top_padding</item> + </style> +</resources> |