diff options
author | lado <herrlado@gmail.com> | 2017-11-02 10:41:17 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2017-11-02 10:41:17 +0100 |
commit | e044aed11d8982398fa556eacde9af1003af1c5a (patch) | |
tree | 3a09298670b27b551c072782f410b43bf966b2c0 /vdrmanager/de.bjusystems.vdrmanager | |
parent | 049975cbda6327aae542bac5dd1acd6fe97d18a4 (diff) | |
download | vdr-manager-e044aed11d8982398fa556eacde9af1003af1c5a.tar.gz vdr-manager-e044aed11d8982398fa556eacde9af1003af1c5a.tar.bz2 |
refactor vdrmanager -> de.bjusystems.vdrmanager
Diffstat (limited to 'vdrmanager/de.bjusystems.vdrmanager')
355 files changed, 39251 insertions, 0 deletions
diff --git a/vdrmanager/de.bjusystems.vdrmanager/build/generated/source/buildConfig/androidTest/debug/de/bjusystems/vdrmanager/test/BuildConfig.java b/vdrmanager/de.bjusystems.vdrmanager/build/generated/source/buildConfig/androidTest/debug/de/bjusystems/vdrmanager/test/BuildConfig.java new file mode 100644 index 0000000..93f4180 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/build/generated/source/buildConfig/androidTest/debug/de/bjusystems/vdrmanager/test/BuildConfig.java @@ -0,0 +1,13 @@ +/** + * Automatically generated file. DO NOT MODIFY + */ +package de.bjusystems.vdrmanager.test; + +public final class BuildConfig { + public static final boolean DEBUG = Boolean.parseBoolean("true"); + public static final String APPLICATION_ID = "de.bjusystems.vdrmanager.test"; + public static final String BUILD_TYPE = "debug"; + public static final String FLAVOR = ""; + public static final int VERSION_CODE = -1; + public static final String VERSION_NAME = ""; +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/build/generated/source/buildConfig/debug/de/bjusystems/vdrmanager/BuildConfig.java b/vdrmanager/de.bjusystems.vdrmanager/build/generated/source/buildConfig/debug/de/bjusystems/vdrmanager/BuildConfig.java new file mode 100644 index 0000000..a762496 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/build/generated/source/buildConfig/debug/de/bjusystems/vdrmanager/BuildConfig.java @@ -0,0 +1,13 @@ +/** + * Automatically generated file. DO NOT MODIFY + */ +package de.bjusystems.vdrmanager; + +public final class BuildConfig { + public static final boolean DEBUG = Boolean.parseBoolean("true"); + public static final String APPLICATION_ID = "de.bjusystems.vdrmanager"; + public static final String BUILD_TYPE = "debug"; + public static final String FLAVOR = ""; + public static final int VERSION_CODE = 12700; + public static final String VERSION_NAME = "12.70"; +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/build/generated/source/r/debug/android/support/v7/appcompat/R.java b/vdrmanager/de.bjusystems.vdrmanager/build/generated/source/r/debug/android/support/v7/appcompat/R.java new file mode 100644 index 0000000..0a5a5e0 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/build/generated/source/r/debug/android/support/v7/appcompat/R.java @@ -0,0 +1,1281 @@ +/* AUTO-GENERATED FILE. DO NOT MODIFY. + * + * This class was automatically generated by the + * gradle plugin from the resource data it found. It + * should not be modified by hand. + */ +package android.support.v7.appcompat; + +public final class R { + public static final class anim { + public static final int abc_fade_in = 0x7f010000; + public static final int abc_fade_out = 0x7f010001; + public static final int abc_grow_fade_in_from_bottom = 0x7f010002; + public static final int abc_popup_enter = 0x7f010003; + public static final int abc_popup_exit = 0x7f010004; + public static final int abc_shrink_fade_out_from_bottom = 0x7f010005; + public static final int abc_slide_in_bottom = 0x7f010006; + public static final int abc_slide_in_top = 0x7f010007; + public static final int abc_slide_out_bottom = 0x7f010008; + public static final int abc_slide_out_top = 0x7f010009; + } + public static final class attr { + public static final int actionBarDivider = 0x7f030000; + public static final int actionBarItemBackground = 0x7f030001; + public static final int actionBarPopupTheme = 0x7f030002; + public static final int actionBarSize = 0x7f030003; + public static final int actionBarSplitStyle = 0x7f030004; + public static final int actionBarStyle = 0x7f030005; + public static final int actionBarTabBarStyle = 0x7f030006; + public static final int actionBarTabStyle = 0x7f030007; + public static final int actionBarTabTextStyle = 0x7f030008; + public static final int actionBarTheme = 0x7f030009; + public static final int actionBarWidgetTheme = 0x7f03000a; + public static final int actionButtonStyle = 0x7f03000b; + public static final int actionDropDownStyle = 0x7f03000c; + public static final int actionLayout = 0x7f03000d; + public static final int actionMenuTextAppearance = 0x7f03000e; + public static final int actionMenuTextColor = 0x7f03000f; + public static final int actionModeBackground = 0x7f030010; + public static final int actionModeCloseButtonStyle = 0x7f030011; + public static final int actionModeCloseDrawable = 0x7f030012; + public static final int actionModeCopyDrawable = 0x7f030013; + public static final int actionModeCutDrawable = 0x7f030014; + public static final int actionModeFindDrawable = 0x7f030015; + public static final int actionModePasteDrawable = 0x7f030016; + public static final int actionModePopupWindowStyle = 0x7f030017; + public static final int actionModeSelectAllDrawable = 0x7f030018; + public static final int actionModeShareDrawable = 0x7f030019; + public static final int actionModeSplitBackground = 0x7f03001a; + public static final int actionModeStyle = 0x7f03001b; + public static final int actionModeWebSearchDrawable = 0x7f03001c; + public static final int actionOverflowButtonStyle = 0x7f03001d; + public static final int actionOverflowMenuStyle = 0x7f03001e; + public static final int actionProviderClass = 0x7f03001f; + public static final int actionViewClass = 0x7f030020; + public static final int activityChooserViewStyle = 0x7f030021; + public static final int alertDialogButtonGroupStyle = 0x7f030022; + public static final int alertDialogCenterButtons = 0x7f030023; + public static final int alertDialogStyle = 0x7f030024; + public static final int alertDialogTheme = 0x7f030025; + public static final int allowStacking = 0x7f030026; + public static final int arrowHeadLength = 0x7f030027; + public static final int arrowShaftLength = 0x7f030028; + public static final int autoCompleteTextViewStyle = 0x7f030029; + public static final int background = 0x7f03002a; + public static final int backgroundSplit = 0x7f03002b; + public static final int backgroundStacked = 0x7f03002c; + public static final int backgroundTint = 0x7f03002d; + public static final int backgroundTintMode = 0x7f03002e; + public static final int barLength = 0x7f03002f; + public static final int borderlessButtonStyle = 0x7f030030; + public static final int buttonBarButtonStyle = 0x7f030031; + public static final int buttonBarNegativeButtonStyle = 0x7f030032; + public static final int buttonBarNeutralButtonStyle = 0x7f030033; + public static final int buttonBarPositiveButtonStyle = 0x7f030034; + public static final int buttonBarStyle = 0x7f030035; + public static final int buttonPanelSideLayout = 0x7f030036; + public static final int buttonStyle = 0x7f030037; + public static final int buttonStyleSmall = 0x7f030038; + public static final int buttonTint = 0x7f030039; + public static final int buttonTintMode = 0x7f03003a; + public static final int checkboxStyle = 0x7f03003c; + public static final int checkedTextViewStyle = 0x7f03003d; + public static final int closeIcon = 0x7f030040; + public static final int closeItemLayout = 0x7f030041; + public static final int collapseContentDescription = 0x7f030042; + public static final int collapseIcon = 0x7f030043; + public static final int color = 0x7f030044; + public static final int colorAccent = 0x7f030045; + public static final int colorButtonNormal = 0x7f030046; + public static final int colorControlActivated = 0x7f030047; + public static final int colorControlHighlight = 0x7f030048; + public static final int colorControlNormal = 0x7f030049; + public static final int colorPrimary = 0x7f03004a; + public static final int colorPrimaryDark = 0x7f03004b; + public static final int colorSwitchThumbNormal = 0x7f03004c; + public static final int commitIcon = 0x7f03004d; + public static final int contentInsetEnd = 0x7f03004e; + public static final int contentInsetLeft = 0x7f03004f; + public static final int contentInsetRight = 0x7f030050; + public static final int contentInsetStart = 0x7f030051; + public static final int controlBackground = 0x7f030052; + public static final int customNavigationLayout = 0x7f030054; + public static final int defaultQueryHint = 0x7f030055; + public static final int dialogPreferredPadding = 0x7f030056; + public static final int dialogTheme = 0x7f030057; + public static final int displayOptions = 0x7f030058; + public static final int divider = 0x7f030059; + public static final int dividerHorizontal = 0x7f03005a; + public static final int dividerPadding = 0x7f03005b; + public static final int dividerVertical = 0x7f03005c; + public static final int drawableSize = 0x7f03005d; + public static final int drawerArrowStyle = 0x7f03005e; + public static final int dropDownListViewStyle = 0x7f03005f; + public static final int dropdownListPreferredItemHeight = 0x7f030060; + public static final int editTextBackground = 0x7f030061; + public static final int editTextColor = 0x7f030062; + public static final int editTextStyle = 0x7f030063; + public static final int elevation = 0x7f030064; + public static final int expandActivityOverflowButtonDrawable = 0x7f030065; + public static final int gapBetweenBars = 0x7f03006d; + public static final int goIcon = 0x7f03006e; + public static final int height = 0x7f03006f; + public static final int hideOnContentScroll = 0x7f030070; + public static final int homeAsUpIndicator = 0x7f030071; + public static final int homeLayout = 0x7f030072; + public static final int icon = 0x7f030073; + public static final int iconifiedByDefault = 0x7f030074; + public static final int imageButtonStyle = 0x7f030075; + public static final int indeterminateProgressStyle = 0x7f030076; + public static final int initialActivityCount = 0x7f030077; + public static final int isLightTheme = 0x7f030078; + public static final int itemPadding = 0x7f030079; + public static final int layout = 0x7f03007a; + public static final int listChoiceBackgroundIndicator = 0x7f03007d; + public static final int listDividerAlertDialog = 0x7f03007e; + public static final int listItemLayout = 0x7f03007f; + public static final int listLayout = 0x7f030080; + public static final int listPopupWindowStyle = 0x7f030081; + public static final int listPreferredItemHeight = 0x7f030082; + public static final int listPreferredItemHeightLarge = 0x7f030083; + public static final int listPreferredItemHeightSmall = 0x7f030084; + public static final int listPreferredItemPaddingLeft = 0x7f030085; + public static final int listPreferredItemPaddingRight = 0x7f030086; + public static final int logo = 0x7f030087; + public static final int logoDescription = 0x7f030088; + public static final int maxButtonHeight = 0x7f030089; + public static final int measureWithLargestChild = 0x7f03008a; + public static final int multiChoiceItemLayout = 0x7f03008b; + public static final int navigationContentDescription = 0x7f03008c; + public static final int navigationIcon = 0x7f03008d; + public static final int navigationMode = 0x7f03008e; + public static final int overlapAnchor = 0x7f030091; + public static final int paddingEnd = 0x7f030092; + public static final int paddingStart = 0x7f030093; + public static final int panelBackground = 0x7f030094; + public static final int panelMenuListTheme = 0x7f030095; + public static final int panelMenuListWidth = 0x7f030096; + public static final int popupMenuStyle = 0x7f030097; + public static final int popupTheme = 0x7f030098; + public static final int popupWindowStyle = 0x7f030099; + public static final int preserveIconSpacing = 0x7f03009a; + public static final int progressBarPadding = 0x7f03009b; + public static final int progressBarStyle = 0x7f03009c; + public static final int queryBackground = 0x7f03009d; + public static final int queryHint = 0x7f03009e; + public static final int radioButtonStyle = 0x7f03009f; + public static final int ratingBarStyle = 0x7f0300a1; + public static final int ratingBarStyleIndicator = 0x7f0300a2; + public static final int ratingBarStyleSmall = 0x7f0300a3; + public static final int searchHintIcon = 0x7f0300a5; + public static final int searchIcon = 0x7f0300a6; + public static final int searchViewStyle = 0x7f0300a7; + public static final int seekBarStyle = 0x7f0300a8; + public static final int selectableItemBackground = 0x7f0300a9; + public static final int selectableItemBackgroundBorderless = 0x7f0300aa; + public static final int showAsAction = 0x7f0300ad; + public static final int showDividers = 0x7f0300ae; + public static final int showText = 0x7f0300af; + public static final int singleChoiceItemLayout = 0x7f0300b0; + public static final int spinBars = 0x7f0300b3; + public static final int spinnerDropDownItemStyle = 0x7f0300b4; + public static final int spinnerStyle = 0x7f0300b5; + public static final int splitTrack = 0x7f0300b6; + public static final int srcCompat = 0x7f0300b7; + public static final int state_above_anchor = 0x7f0300b9; + public static final int submitBackground = 0x7f0300bc; + public static final int subtitle = 0x7f0300bd; + public static final int subtitleTextAppearance = 0x7f0300be; + public static final int subtitleTextColor = 0x7f0300bf; + public static final int subtitleTextStyle = 0x7f0300c0; + public static final int suggestionRowLayout = 0x7f0300c1; + public static final int switchMinWidth = 0x7f0300c2; + public static final int switchPadding = 0x7f0300c3; + public static final int switchStyle = 0x7f0300c4; + public static final int switchTextAppearance = 0x7f0300c5; + public static final int textAllCaps = 0x7f0300c6; + public static final int textAppearanceLargePopupMenu = 0x7f0300c7; + public static final int textAppearanceListItem = 0x7f0300c8; + public static final int textAppearanceListItemSmall = 0x7f0300c9; + public static final int textAppearanceSearchResultSubtitle = 0x7f0300ca; + public static final int textAppearanceSearchResultTitle = 0x7f0300cb; + public static final int textAppearanceSmallPopupMenu = 0x7f0300cc; + public static final int textColorAlertDialogListItem = 0x7f0300ce; + public static final int textColorSearchUrl = 0x7f0300cf; + public static final int theme = 0x7f0300d1; + public static final int thickness = 0x7f0300d2; + public static final int thumbTextPadding = 0x7f0300d3; + public static final int title = 0x7f0300d4; + public static final int titleMarginBottom = 0x7f0300d5; + public static final int titleMarginEnd = 0x7f0300d6; + public static final int titleMarginStart = 0x7f0300d7; + public static final int titleMarginTop = 0x7f0300d8; + public static final int titleMargins = 0x7f0300d9; + public static final int titleTextAppearance = 0x7f0300dc; + public static final int titleTextColor = 0x7f0300dd; + public static final int titleTextStyle = 0x7f0300de; + public static final int toolbarNavigationButtonStyle = 0x7f0300df; + public static final int toolbarStyle = 0x7f0300e0; + public static final int track = 0x7f0300e2; + public static final int voiceIcon = 0x7f0300e3; + public static final int windowActionBar = 0x7f0300e4; + public static final int windowActionBarOverlay = 0x7f0300e5; + public static final int windowActionModeOverlay = 0x7f0300e6; + public static final int windowFixedHeightMajor = 0x7f0300e7; + public static final int windowFixedHeightMinor = 0x7f0300e8; + public static final int windowFixedWidthMajor = 0x7f0300e9; + public static final int windowFixedWidthMinor = 0x7f0300ea; + public static final int windowMinWidthMajor = 0x7f0300eb; + public static final int windowMinWidthMinor = 0x7f0300ec; + public static final int windowNoTitle = 0x7f0300ed; + } + public static final class bool { + public static final int abc_action_bar_embed_tabs = 0x7f040000; + public static final int abc_action_bar_embed_tabs_pre_jb = 0x7f040001; + public static final int abc_action_bar_expanded_action_views_exclusive = 0x7f040002; + public static final int abc_allow_stacked_button_bar = 0x7f040003; + public static final int abc_config_actionMenuItemAllCaps = 0x7f040004; + public static final int abc_config_allowActionMenuItemTextWithIcon = 0x7f040005; + public static final int abc_config_closeDialogWhenTouchOutside = 0x7f040006; + public static final int abc_config_showMenuShortcutsWhenKeyboardPresent = 0x7f040007; + } + public static final class color { + public static final int abc_background_cache_hint_selector_material_dark = 0x7f050000; + public static final int abc_background_cache_hint_selector_material_light = 0x7f050001; + public static final int abc_color_highlight_material = 0x7f050002; + public static final int abc_input_method_navigation_guard = 0x7f050003; + public static final int abc_primary_text_disable_only_material_dark = 0x7f050004; + public static final int abc_primary_text_disable_only_material_light = 0x7f050005; + public static final int abc_primary_text_material_dark = 0x7f050006; + public static final int abc_primary_text_material_light = 0x7f050007; + public static final int abc_search_url_text = 0x7f050008; + public static final int abc_search_url_text_normal = 0x7f050009; + public static final int abc_search_url_text_pressed = 0x7f05000a; + public static final int abc_search_url_text_selected = 0x7f05000b; + public static final int abc_secondary_text_material_dark = 0x7f05000c; + public static final int abc_secondary_text_material_light = 0x7f05000d; + public static final int accent_material_dark = 0x7f05000e; + public static final int accent_material_light = 0x7f05000f; + public static final int background_floating_material_dark = 0x7f050010; + public static final int background_floating_material_light = 0x7f050011; + public static final int background_material_dark = 0x7f050012; + public static final int background_material_light = 0x7f050013; + public static final int bright_foreground_disabled_material_dark = 0x7f050016; + public static final int bright_foreground_disabled_material_light = 0x7f050017; + public static final int bright_foreground_inverse_material_dark = 0x7f050018; + public static final int bright_foreground_inverse_material_light = 0x7f050019; + public static final int bright_foreground_material_dark = 0x7f05001a; + public static final int bright_foreground_material_light = 0x7f05001b; + public static final int button_material_dark = 0x7f05001c; + public static final int button_material_light = 0x7f05001d; + public static final int dim_foreground_disabled_material_dark = 0x7f050023; + public static final int dim_foreground_disabled_material_light = 0x7f050024; + public static final int dim_foreground_material_dark = 0x7f050025; + public static final int dim_foreground_material_light = 0x7f050026; + public static final int foreground_material_dark = 0x7f050027; + public static final int foreground_material_light = 0x7f050028; + public static final int highlighted_text_material_dark = 0x7f05002a; + public static final int highlighted_text_material_light = 0x7f05002b; + public static final int hint_foreground_material_dark = 0x7f05002c; + public static final int hint_foreground_material_light = 0x7f05002d; + public static final int material_blue_grey_800 = 0x7f05002e; + public static final int material_blue_grey_900 = 0x7f05002f; + public static final int material_blue_grey_950 = 0x7f050030; + public static final int material_deep_teal_200 = 0x7f050031; + public static final int material_deep_teal_500 = 0x7f050032; + public static final int material_grey_100 = 0x7f050033; + public static final int material_grey_300 = 0x7f050034; + public static final int material_grey_50 = 0x7f050035; + public static final int material_grey_600 = 0x7f050036; + public static final int material_grey_800 = 0x7f050037; + public static final int material_grey_850 = 0x7f050038; + public static final int material_grey_900 = 0x7f050039; + public static final int primary_dark_material_dark = 0x7f05003a; + public static final int primary_dark_material_light = 0x7f05003b; + public static final int primary_material_dark = 0x7f05003c; + public static final int primary_material_light = 0x7f05003d; + public static final int primary_text_default_material_dark = 0x7f05003e; + public static final int primary_text_default_material_light = 0x7f05003f; + public static final int primary_text_disabled_material_dark = 0x7f050040; + public static final int primary_text_disabled_material_light = 0x7f050041; + public static final int ripple_material_dark = 0x7f050043; + public static final int ripple_material_light = 0x7f050044; + public static final int secondary_text_default_material_dark = 0x7f050045; + public static final int secondary_text_default_material_light = 0x7f050046; + public static final int secondary_text_disabled_material_dark = 0x7f050047; + public static final int secondary_text_disabled_material_light = 0x7f050048; + public static final int switch_thumb_disabled_material_dark = 0x7f050049; + public static final int switch_thumb_disabled_material_light = 0x7f05004a; + public static final int switch_thumb_material_dark = 0x7f05004b; + public static final int switch_thumb_material_light = 0x7f05004c; + public static final int switch_thumb_normal_material_dark = 0x7f05004d; + public static final int switch_thumb_normal_material_light = 0x7f05004e; + } + public static final class dimen { + public static final int abc_action_bar_content_inset_material = 0x7f060000; + public static final int abc_action_bar_default_height_material = 0x7f060001; + public static final int abc_action_bar_default_padding_end_material = 0x7f060002; + public static final int abc_action_bar_default_padding_start_material = 0x7f060003; + public static final int abc_action_bar_icon_vertical_padding_material = 0x7f060004; + public static final int abc_action_bar_overflow_padding_end_material = 0x7f060005; + public static final int abc_action_bar_overflow_padding_start_material = 0x7f060006; + public static final int abc_action_bar_progress_bar_size = 0x7f060007; + public static final int abc_action_bar_stacked_max_height = 0x7f060008; + public static final int abc_action_bar_stacked_tab_max_width = 0x7f060009; + public static final int abc_action_bar_subtitle_bottom_margin_material = 0x7f06000a; + public static final int abc_action_bar_subtitle_top_margin_material = 0x7f06000b; + public static final int abc_action_button_min_height_material = 0x7f06000c; + public static final int abc_action_button_min_width_material = 0x7f06000d; + public static final int abc_action_button_min_width_overflow_material = 0x7f06000e; + public static final int abc_alert_dialog_button_bar_height = 0x7f06000f; + public static final int abc_button_inset_horizontal_material = 0x7f060010; + public static final int abc_button_inset_vertical_material = 0x7f060011; + public static final int abc_button_padding_horizontal_material = 0x7f060012; + public static final int abc_button_padding_vertical_material = 0x7f060013; + public static final int abc_config_prefDialogWidth = 0x7f060014; + public static final int abc_control_corner_material = 0x7f060015; + public static final int abc_control_inset_material = 0x7f060016; + public static final int abc_control_padding_material = 0x7f060017; + public static final int abc_dialog_fixed_height_major = 0x7f060018; + public static final int abc_dialog_fixed_height_minor = 0x7f060019; + public static final int abc_dialog_fixed_width_major = 0x7f06001a; + public static final int abc_dialog_fixed_width_minor = 0x7f06001b; + public static final int abc_dialog_list_padding_vertical_material = 0x7f06001c; + public static final int abc_dialog_min_width_major = 0x7f06001d; + public static final int abc_dialog_min_width_minor = 0x7f06001e; + public static final int abc_dialog_padding_material = 0x7f06001f; + public static final int abc_dialog_padding_top_material = 0x7f060020; + public static final int abc_disabled_alpha_material_dark = 0x7f060021; + public static final int abc_disabled_alpha_material_light = 0x7f060022; + public static final int abc_dropdownitem_icon_width = 0x7f060023; + public static final int abc_dropdownitem_text_padding_left = 0x7f060024; + public static final int abc_dropdownitem_text_padding_right = 0x7f060025; + public static final int abc_edit_text_inset_bottom_material = 0x7f060026; + public static final int abc_edit_text_inset_horizontal_material = 0x7f060027; + public static final int abc_edit_text_inset_top_material = 0x7f060028; + public static final int abc_floating_window_z = 0x7f060029; + public static final int abc_list_item_padding_horizontal_material = 0x7f06002a; + public static final int abc_panel_menu_list_width = 0x7f06002b; + public static final int abc_search_view_preferred_width = 0x7f06002c; + public static final int abc_search_view_text_min_width = 0x7f06002d; + public static final int abc_seekbar_track_background_height_material = 0x7f06002e; + public static final int abc_seekbar_track_progress_height_material = 0x7f06002f; + public static final int abc_select_dialog_padding_start_material = 0x7f060030; + public static final int abc_switch_padding = 0x7f060031; + public static final int abc_text_size_body_1_material = 0x7f060032; + public static final int abc_text_size_body_2_material = 0x7f060033; + public static final int abc_text_size_button_material = 0x7f060034; + public static final int abc_text_size_caption_material = 0x7f060035; + public static final int abc_text_size_display_1_material = 0x7f060036; + public static final int abc_text_size_display_2_material = 0x7f060037; + public static final int abc_text_size_display_3_material = 0x7f060038; + public static final int abc_text_size_display_4_material = 0x7f060039; + public static final int abc_text_size_headline_material = 0x7f06003a; + public static final int abc_text_size_large_material = 0x7f06003b; + public static final int abc_text_size_medium_material = 0x7f06003c; + public static final int abc_text_size_menu_material = 0x7f06003d; + public static final int abc_text_size_small_material = 0x7f06003e; + public static final int abc_text_size_subhead_material = 0x7f06003f; + public static final int abc_text_size_subtitle_material_toolbar = 0x7f060040; + public static final int abc_text_size_title_material = 0x7f060041; + public static final int abc_text_size_title_material_toolbar = 0x7f060042; + public static final int disabled_alpha_material_dark = 0x7f06004d; + public static final int disabled_alpha_material_light = 0x7f06004e; + public static final int highlight_alpha_material_colored = 0x7f06004f; + public static final int highlight_alpha_material_dark = 0x7f060050; + public static final int highlight_alpha_material_light = 0x7f060051; + public static final int notification_large_icon_height = 0x7f060058; + public static final int notification_large_icon_width = 0x7f060059; + public static final int notification_subtext_size = 0x7f06005a; + } + public static final class drawable { + public static final int abc_ab_share_pack_mtrl_alpha = 0x7f070000; + public static final int abc_action_bar_item_background_material = 0x7f070001; + public static final int abc_btn_borderless_material = 0x7f070002; + public static final int abc_btn_check_material = 0x7f070003; + public static final int abc_btn_check_to_on_mtrl_000 = 0x7f070004; + public static final int abc_btn_check_to_on_mtrl_015 = 0x7f070005; + public static final int abc_btn_colored_material = 0x7f070006; + public static final int abc_btn_default_mtrl_shape = 0x7f070007; + public static final int abc_btn_radio_material = 0x7f070008; + public static final int abc_btn_radio_to_on_mtrl_000 = 0x7f070009; + public static final int abc_btn_radio_to_on_mtrl_015 = 0x7f07000a; + public static final int abc_btn_rating_star_off_mtrl_alpha = 0x7f07000b; + public static final int abc_btn_rating_star_on_mtrl_alpha = 0x7f07000c; + public static final int abc_btn_switch_to_on_mtrl_00001 = 0x7f07000d; + public static final int abc_btn_switch_to_on_mtrl_00012 = 0x7f07000e; + public static final int abc_cab_background_internal_bg = 0x7f07000f; + public static final int abc_cab_background_top_material = 0x7f070010; + public static final int abc_cab_background_top_mtrl_alpha = 0x7f070011; + public static final int abc_control_background_material = 0x7f070012; + public static final int abc_dialog_material_background_dark = 0x7f070013; + public static final int abc_dialog_material_background_light = 0x7f070014; + public static final int abc_edit_text_material = 0x7f070015; + public static final int abc_ic_ab_back_mtrl_am_alpha = 0x7f070016; + public static final int abc_ic_clear_mtrl_alpha = 0x7f070017; + public static final int abc_ic_commit_search_api_mtrl_alpha = 0x7f070018; + public static final int abc_ic_go_search_api_mtrl_alpha = 0x7f070019; + public static final int abc_ic_menu_copy_mtrl_am_alpha = 0x7f07001a; + public static final int abc_ic_menu_cut_mtrl_alpha = 0x7f07001b; + public static final int abc_ic_menu_moreoverflow_mtrl_alpha = 0x7f07001c; + public static final int abc_ic_menu_paste_mtrl_am_alpha = 0x7f07001d; + public static final int abc_ic_menu_selectall_mtrl_alpha = 0x7f07001e; + public static final int abc_ic_menu_share_mtrl_alpha = 0x7f07001f; + public static final int abc_ic_search_api_mtrl_alpha = 0x7f070020; + public static final int abc_ic_star_black_16dp = 0x7f070021; + public static final int abc_ic_star_black_36dp = 0x7f070022; + public static final int abc_ic_star_half_black_16dp = 0x7f070023; + public static final int abc_ic_star_half_black_36dp = 0x7f070024; + public static final int abc_ic_voice_search_api_mtrl_alpha = 0x7f070025; + public static final int abc_item_background_holo_dark = 0x7f070026; + public static final int abc_item_background_holo_light = 0x7f070027; + public static final int abc_list_divider_mtrl_alpha = 0x7f070028; + public static final int abc_list_focused_holo = 0x7f070029; + public static final int abc_list_longpressed_holo = 0x7f07002a; + public static final int abc_list_pressed_holo_dark = 0x7f07002b; + public static final int abc_list_pressed_holo_light = 0x7f07002c; + public static final int abc_list_selector_background_transition_holo_dark = 0x7f07002d; + public static final int abc_list_selector_background_transition_holo_light = 0x7f07002e; + public static final int abc_list_selector_disabled_holo_dark = 0x7f07002f; + public static final int abc_list_selector_disabled_holo_light = 0x7f070030; + public static final int abc_list_selector_holo_dark = 0x7f070031; + public static final int abc_list_selector_holo_light = 0x7f070032; + public static final int abc_menu_hardkey_panel_mtrl_mult = 0x7f070033; + public static final int abc_popup_background_mtrl_mult = 0x7f070034; + public static final int abc_ratingbar_full_material = 0x7f070035; + public static final int abc_ratingbar_indicator_material = 0x7f070036; + public static final int abc_ratingbar_small_material = 0x7f070037; + public static final int abc_scrubber_control_off_mtrl_alpha = 0x7f070038; + public static final int abc_scrubber_control_to_pressed_mtrl_000 = 0x7f070039; + public static final int abc_scrubber_control_to_pressed_mtrl_005 = 0x7f07003a; + public static final int abc_scrubber_primary_mtrl_alpha = 0x7f07003b; + public static final int abc_scrubber_track_mtrl_alpha = 0x7f07003c; + public static final int abc_seekbar_thumb_material = 0x7f07003d; + public static final int abc_seekbar_track_material = 0x7f07003e; + public static final int abc_spinner_mtrl_am_alpha = 0x7f07003f; + public static final int abc_spinner_textfield_background_material = 0x7f070040; + public static final int abc_switch_thumb_material = 0x7f070041; + public static final int abc_switch_track_mtrl_alpha = 0x7f070042; + public static final int abc_tab_indicator_material = 0x7f070043; + public static final int abc_tab_indicator_mtrl_alpha = 0x7f070044; + public static final int abc_text_cursor_material = 0x7f070045; + public static final int abc_textfield_activated_mtrl_alpha = 0x7f070046; + public static final int abc_textfield_default_mtrl_alpha = 0x7f070047; + public static final int abc_textfield_search_activated_mtrl_alpha = 0x7f070048; + public static final int abc_textfield_search_default_mtrl_alpha = 0x7f070049; + public static final int abc_textfield_search_material = 0x7f07004a; + public static final int notification_template_icon_bg = 0x7f070076; + } + public static final class id { + public static final int action0 = 0x7f080006; + public static final int action_bar = 0x7f080007; + public static final int action_bar_activity_content = 0x7f080008; + public static final int action_bar_container = 0x7f080009; + public static final int action_bar_root = 0x7f08000a; + public static final int action_bar_spinner = 0x7f08000b; + public static final int action_bar_subtitle = 0x7f08000c; + public static final int action_bar_title = 0x7f08000d; + public static final int action_context_bar = 0x7f08000e; + public static final int action_divider = 0x7f08000f; + public static final int action_menu_divider = 0x7f080011; + public static final int action_menu_presenter = 0x7f080013; + public static final int action_mode_bar = 0x7f080018; + public static final int action_mode_bar_stub = 0x7f080019; + public static final int action_mode_close_button = 0x7f08001a; + public static final int activity_chooser_view_content = 0x7f08001b; + public static final int alertTitle = 0x7f08001c; + public static final int always = 0x7f08001d; + public static final int beginning = 0x7f080020; + public static final int buttonPanel = 0x7f080025; + public static final int cancel_action = 0x7f080026; + public static final int checkbox = 0x7f080035; + public static final int chronometer = 0x7f080036; + public static final int collapseActionView = 0x7f080037; + public static final int contentPanel = 0x7f080039; + public static final int custom = 0x7f08003c; + public static final int customPanel = 0x7f08003d; + public static final int decor_content_parent = 0x7f08003e; + public static final int default_activity_button = 0x7f08003f; + public static final int disableHome = 0x7f080040; + public static final int edit_query = 0x7f080047; + public static final int end = 0x7f080049; + public static final int end_padder = 0x7f08004a; + public static final int expand_activities_button = 0x7f080078; + public static final int expanded_menu = 0x7f080079; + public static final int home = 0x7f080085; + public static final int homeAsUp = 0x7f080086; + public static final int icon = 0x7f080088; + public static final int ifRoom = 0x7f080089; + public static final int image = 0x7f08008a; + public static final int info = 0x7f08008c; + public static final int line1 = 0x7f080091; + public static final int line3 = 0x7f080092; + public static final int listMode = 0x7f080094; + public static final int list_item = 0x7f080096; + public static final int media_actions = 0x7f0800a0; + public static final int middle = 0x7f0800a2; + public static final int multiply = 0x7f0800a3; + public static final int never = 0x7f0800a5; + public static final int none = 0x7f0800a8; + public static final int normal = 0x7f0800a9; + public static final int parentPanel = 0x7f0800ab; + public static final int progress_circular = 0x7f0800ac; + public static final int progress_horizontal = 0x7f0800ad; + public static final int radio = 0x7f0800ae; + public static final int screen = 0x7f0800bf; + public static final int scrollIndicatorDown = 0x7f0800c0; + public static final int scrollIndicatorUp = 0x7f0800c1; + public static final int scrollView = 0x7f0800c2; + public static final int search_badge = 0x7f0800c3; + public static final int search_bar = 0x7f0800c4; + public static final int search_button = 0x7f0800c6; + public static final int search_close_btn = 0x7f0800c7; + public static final int search_edit_frame = 0x7f0800c8; + public static final int search_go_btn = 0x7f0800c9; + public static final int search_mag_icon = 0x7f0800ca; + public static final int search_plate = 0x7f0800cb; + public static final int search_src_text = 0x7f0800cc; + public static final int search_voice_btn = 0x7f0800cd; + public static final int select_dialog_listview = 0x7f0800ce; + public static final int shortcut = 0x7f0800cf; + public static final int showCustom = 0x7f0800d0; + public static final int showHome = 0x7f0800d1; + public static final int showTitle = 0x7f0800d2; + public static final int spacer = 0x7f0800d3; + public static final int split_action_bar = 0x7f0800d4; + public static final int src_atop = 0x7f0800d5; + public static final int src_in = 0x7f0800d6; + public static final int src_over = 0x7f0800d7; + public static final int status_bar_latest_event_content = 0x7f0800d8; + public static final int submit_area = 0x7f0800d9; + public static final int tabMode = 0x7f0800db; + public static final int text = 0x7f0800dc; + public static final int text2 = 0x7f0800dd; + public static final int textSpacerNoButtons = 0x7f0800de; + public static final int time = 0x7f0800df; + public static final int title = 0x7f080100; + public static final int title_template = 0x7f080101; + public static final int topPanel = 0x7f080102; + public static final int up = 0x7f080105; + public static final int useLogo = 0x7f080106; + public static final int withText = 0x7f08010f; + public static final int wrap_content = 0x7f080110; + } + public static final class integer { + public static final int abc_config_activityDefaultDur = 0x7f090000; + public static final int abc_config_activityShortDur = 0x7f090001; + public static final int abc_max_action_buttons = 0x7f090002; + public static final int cancel_button_image_alpha = 0x7f090003; + public static final int status_bar_notification_info_maxnum = 0x7f090006; + } + public static final class layout { + public static final int abc_action_bar_title_item = 0x7f0a0000; + public static final int abc_action_bar_up_container = 0x7f0a0001; + public static final int abc_action_bar_view_list_nav_layout = 0x7f0a0002; + public static final int abc_action_menu_item_layout = 0x7f0a0003; + public static final int abc_action_menu_layout = 0x7f0a0004; + public static final int abc_action_mode_bar = 0x7f0a0005; + public static final int abc_action_mode_close_item_material = 0x7f0a0006; + public static final int abc_activity_chooser_view = 0x7f0a0007; + public static final int abc_activity_chooser_view_list_item = 0x7f0a0008; + public static final int abc_alert_dialog_button_bar_material = 0x7f0a0009; + public static final int abc_alert_dialog_material = 0x7f0a000a; + public static final int abc_dialog_title_material = 0x7f0a000b; + public static final int abc_expanded_menu_layout = 0x7f0a000c; + public static final int abc_list_menu_item_checkbox = 0x7f0a000d; + public static final int abc_list_menu_item_icon = 0x7f0a000e; + public static final int abc_list_menu_item_layout = 0x7f0a000f; + public static final int abc_list_menu_item_radio = 0x7f0a0010; + public static final int abc_popup_menu_item_layout = 0x7f0a0011; + public static final int abc_screen_content_include = 0x7f0a0012; + public static final int abc_screen_simple = 0x7f0a0013; + public static final int abc_screen_simple_overlay_action_mode = 0x7f0a0014; + public static final int abc_screen_toolbar = 0x7f0a0015; + public static final int abc_search_dropdown_item_icons_2line = 0x7f0a0016; + public static final int abc_search_view = 0x7f0a0017; + public static final int abc_select_dialog_material = 0x7f0a0018; + public static final int notification_media_action = 0x7f0a002e; + public static final int notification_media_cancel_action = 0x7f0a002f; + public static final int notification_template_big_media = 0x7f0a0030; + public static final int notification_template_big_media_narrow = 0x7f0a0031; + public static final int notification_template_lines = 0x7f0a0032; + public static final int notification_template_media = 0x7f0a0033; + public static final int notification_template_part_chronometer = 0x7f0a0034; + public static final int notification_template_part_time = 0x7f0a0035; + public static final int select_dialog_item_material = 0x7f0a003c; + public static final int select_dialog_multichoice_material = 0x7f0a003d; + public static final int select_dialog_singlechoice_material = 0x7f0a003e; + public static final int support_simple_spinner_dropdown_item = 0x7f0a003f; + } + public static final class string { + public static final int abc_action_bar_home_description = 0x7f0d0050; + public static final int abc_action_bar_home_description_format = 0x7f0d0051; + public static final int abc_action_bar_home_subtitle_description_format = 0x7f0d0052; + public static final int abc_action_bar_up_description = 0x7f0d0053; + public static final int abc_action_menu_overflow_description = 0x7f0d0054; + public static final int abc_action_mode_done = 0x7f0d0055; + public static final int abc_activity_chooser_view_see_all = 0x7f0d0056; + public static final int abc_activitychooserview_choose_application = 0x7f0d0057; + public static final int abc_capital_off = 0x7f0d0058; + public static final int abc_capital_on = 0x7f0d0059; + public static final int abc_search_hint = 0x7f0d005a; + public static final int abc_searchview_description_clear = 0x7f0d005b; + public static final int abc_searchview_description_query = 0x7f0d005c; + public static final int abc_searchview_description_search = 0x7f0d005d; + public static final int abc_searchview_description_submit = 0x7f0d005e; + public static final int abc_searchview_description_voice = 0x7f0d005f; + public static final int abc_shareactionprovider_share_with = 0x7f0d0060; + public static final int abc_shareactionprovider_share_with_application = 0x7f0d0061; + public static final int abc_toolbar_collapse_description = 0x7f0d0062; + public static final int status_bar_notification_info_overflow = 0x7f0d016b; + } + public static final class style { + public static final int AlertDialog_AppCompat = 0x7f0e0000; + public static final int AlertDialog_AppCompat_Light = 0x7f0e0001; + public static final int Animation_AppCompat_Dialog = 0x7f0e0002; + public static final int Animation_AppCompat_DropDownUp = 0x7f0e0003; + public static final int Base_AlertDialog_AppCompat = 0x7f0e0005; + public static final int Base_AlertDialog_AppCompat_Light = 0x7f0e0006; + public static final int Base_Animation_AppCompat_Dialog = 0x7f0e0007; + public static final int Base_Animation_AppCompat_DropDownUp = 0x7f0e0008; + public static final int Base_DialogWindowTitleBackground_AppCompat = 0x7f0e000a; + public static final int Base_DialogWindowTitle_AppCompat = 0x7f0e0009; + public static final int Base_TextAppearance_AppCompat = 0x7f0e000b; + public static final int Base_TextAppearance_AppCompat_Body1 = 0x7f0e000c; + public static final int Base_TextAppearance_AppCompat_Body2 = 0x7f0e000d; + public static final int Base_TextAppearance_AppCompat_Button = 0x7f0e000e; + public static final int Base_TextAppearance_AppCompat_Caption = 0x7f0e000f; + public static final int Base_TextAppearance_AppCompat_Display1 = 0x7f0e0010; + public static final int Base_TextAppearance_AppCompat_Display2 = 0x7f0e0011; + public static final int Base_TextAppearance_AppCompat_Display3 = 0x7f0e0012; + public static final int Base_TextAppearance_AppCompat_Display4 = 0x7f0e0013; + public static final int Base_TextAppearance_AppCompat_Headline = 0x7f0e0014; + public static final int Base_TextAppearance_AppCompat_Inverse = 0x7f0e0015; + public static final int Base_TextAppearance_AppCompat_Large = 0x7f0e0016; + public static final int Base_TextAppearance_AppCompat_Large_Inverse = 0x7f0e0017; + public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0e0018; + public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0e0019; + public static final int Base_TextAppearance_AppCompat_Medium = 0x7f0e001a; + public static final int Base_TextAppearance_AppCompat_Medium_Inverse = 0x7f0e001b; + public static final int Base_TextAppearance_AppCompat_Menu = 0x7f0e001c; + public static final int Base_TextAppearance_AppCompat_SearchResult = 0x7f0e001d; + public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0e001e; + public static final int Base_TextAppearance_AppCompat_SearchResult_Title = 0x7f0e001f; + public static final int Base_TextAppearance_AppCompat_Small = 0x7f0e0020; + public static final int Base_TextAppearance_AppCompat_Small_Inverse = 0x7f0e0021; + public static final int Base_TextAppearance_AppCompat_Subhead = 0x7f0e0022; + public static final int Base_TextAppearance_AppCompat_Subhead_Inverse = 0x7f0e0023; + public static final int Base_TextAppearance_AppCompat_Title = 0x7f0e0024; + public static final int Base_TextAppearance_AppCompat_Title_Inverse = 0x7f0e0025; + public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0e0026; + public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0e0027; + public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0e0028; + public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0e0029; + public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0e002a; + public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0e002b; + public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0e002c; + public static final int Base_TextAppearance_AppCompat_Widget_Button = 0x7f0e002d; + public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0e002e; + public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0e002f; + public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0e0030; + public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0e0031; + public static final int Base_TextAppearance_AppCompat_Widget_Switch = 0x7f0e0032; + public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0e0033; + public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0e0034; + public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0e0035; + public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0e0036; + public static final int Base_ThemeOverlay_AppCompat = 0x7f0e0045; + public static final int Base_ThemeOverlay_AppCompat_ActionBar = 0x7f0e0046; + public static final int Base_ThemeOverlay_AppCompat_Dark = 0x7f0e0047; + public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0e0048; + public static final int Base_ThemeOverlay_AppCompat_Light = 0x7f0e0049; + public static final int Base_Theme_AppCompat = 0x7f0e0037; + public static final int Base_Theme_AppCompat_CompactMenu = 0x7f0e0038; + public static final int Base_Theme_AppCompat_Dialog = 0x7f0e0039; + public static final int Base_Theme_AppCompat_DialogWhenLarge = 0x7f0e003d; + public static final int Base_Theme_AppCompat_Dialog_Alert = 0x7f0e003a; + public static final int Base_Theme_AppCompat_Dialog_FixedSize = 0x7f0e003b; + public static final int Base_Theme_AppCompat_Dialog_MinWidth = 0x7f0e003c; + public static final int Base_Theme_AppCompat_Light = 0x7f0e003e; + public static final int Base_Theme_AppCompat_Light_DarkActionBar = 0x7f0e003f; + public static final int Base_Theme_AppCompat_Light_Dialog = 0x7f0e0040; + public static final int Base_Theme_AppCompat_Light_DialogWhenLarge = 0x7f0e0044; + public static final int Base_Theme_AppCompat_Light_Dialog_Alert = 0x7f0e0041; + public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize = 0x7f0e0042; + public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0e0043; + public static final int Base_V11_Theme_AppCompat_Dialog = 0x7f0e004a; + public static final int Base_V11_Theme_AppCompat_Light_Dialog = 0x7f0e004b; + public static final int Base_V12_Widget_AppCompat_AutoCompleteTextView = 0x7f0e004c; + public static final int Base_V12_Widget_AppCompat_EditText = 0x7f0e004d; + public static final int Base_V21_Theme_AppCompat = 0x7f0e004e; + public static final int Base_V21_Theme_AppCompat_Dialog = 0x7f0e004f; + public static final int Base_V21_Theme_AppCompat_Light = 0x7f0e0050; + public static final int Base_V21_Theme_AppCompat_Light_Dialog = 0x7f0e0051; + public static final int Base_V22_Theme_AppCompat = 0x7f0e0052; + public static final int Base_V22_Theme_AppCompat_Light = 0x7f0e0053; + public static final int Base_V23_Theme_AppCompat = 0x7f0e0054; + public static final int Base_V23_Theme_AppCompat_Light = 0x7f0e0055; + public static final int Base_V7_Theme_AppCompat = 0x7f0e0056; + public static final int Base_V7_Theme_AppCompat_Dialog = 0x7f0e0057; + public static final int Base_V7_Theme_AppCompat_Light = 0x7f0e0058; + public static final int Base_V7_Theme_AppCompat_Light_Dialog = 0x7f0e0059; + public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView = 0x7f0e005a; + public static final int Base_V7_Widget_AppCompat_EditText = 0x7f0e005b; + public static final int Base_Widget_AppCompat_ActionBar = 0x7f0e005c; + public static final int Base_Widget_AppCompat_ActionBar_Solid = 0x7f0e005d; + public static final int Base_Widget_AppCompat_ActionBar_TabBar = 0x7f0e005e; + public static final int Base_Widget_AppCompat_ActionBar_TabText = 0x7f0e005f; + public static final int Base_Widget_AppCompat_ActionBar_TabView = 0x7f0e0060; + public static final int Base_Widget_AppCompat_ActionButton = 0x7f0e0061; + public static final int Base_Widget_AppCompat_ActionButton_CloseMode = 0x7f0e0062; + public static final int Base_Widget_AppCompat_ActionButton_Overflow = 0x7f0e0063; + public static final int Base_Widget_AppCompat_ActionMode = 0x7f0e0064; + public static final int Base_Widget_AppCompat_ActivityChooserView = 0x7f0e0065; + public static final int Base_Widget_AppCompat_AutoCompleteTextView = 0x7f0e0066; + public static final int Base_Widget_AppCompat_Button = 0x7f0e0067; + public static final int Base_Widget_AppCompat_ButtonBar = 0x7f0e006d; + public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0e006e; + public static final int Base_Widget_AppCompat_Button_Borderless = 0x7f0e0068; + public static final int Base_Widget_AppCompat_Button_Borderless_Colored = 0x7f0e0069; + public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0e006a; + public static final int Base_Widget_AppCompat_Button_Colored = 0x7f0e006b; + public static final int Base_Widget_AppCompat_Button_Small = 0x7f0e006c; + public static final int Base_Widget_AppCompat_CompoundButton_CheckBox = 0x7f0e006f; + public static final int Base_Widget_AppCompat_CompoundButton_RadioButton = 0x7f0e0070; + public static final int Base_Widget_AppCompat_CompoundButton_Switch = 0x7f0e0071; + public static final int Base_Widget_AppCompat_DrawerArrowToggle = 0x7f0e0072; + public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common = 0x7f0e0073; + public static final int Base_Widget_AppCompat_DropDownItem_Spinner = 0x7f0e0074; + public static final int Base_Widget_AppCompat_EditText = 0x7f0e0075; + public static final int Base_Widget_AppCompat_ImageButton = 0x7f0e0076; + public static final int Base_Widget_AppCompat_Light_ActionBar = 0x7f0e0077; + public static final int Base_Widget_AppCompat_Light_ActionBar_Solid = 0x7f0e0078; + public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0e0079; + public static final int Base_Widget_AppCompat_Light_ActionBar_TabText = 0x7f0e007a; + public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0e007b; + public static final int Base_Widget_AppCompat_Light_ActionBar_TabView = 0x7f0e007c; + public static final int Base_Widget_AppCompat_Light_PopupMenu = 0x7f0e007d; + public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0e007e; + public static final int Base_Widget_AppCompat_ListPopupWindow = 0x7f0e007f; + public static final int Base_Widget_AppCompat_ListView = 0x7f0e0080; + public static final int Base_Widget_AppCompat_ListView_DropDown = 0x7f0e0081; + public static final int Base_Widget_AppCompat_ListView_Menu = 0x7f0e0082; + public static final int Base_Widget_AppCompat_PopupMenu = 0x7f0e0083; + public static final int Base_Widget_AppCompat_PopupMenu_Overflow = 0x7f0e0084; + public static final int Base_Widget_AppCompat_PopupWindow = 0x7f0e0085; + public static final int Base_Widget_AppCompat_ProgressBar = 0x7f0e0086; + public static final int Base_Widget_AppCompat_ProgressBar_Horizontal = 0x7f0e0087; + public static final int Base_Widget_AppCompat_RatingBar = 0x7f0e0088; + public static final int Base_Widget_AppCompat_RatingBar_Indicator = 0x7f0e0089; + public static final int Base_Widget_AppCompat_RatingBar_Small = 0x7f0e008a; + public static final int Base_Widget_AppCompat_SearchView = 0x7f0e008b; + public static final int Base_Widget_AppCompat_SearchView_ActionBar = 0x7f0e008c; + public static final int Base_Widget_AppCompat_SeekBar = 0x7f0e008d; + public static final int Base_Widget_AppCompat_Spinner = 0x7f0e008e; + public static final int Base_Widget_AppCompat_Spinner_Underlined = 0x7f0e008f; + public static final int Base_Widget_AppCompat_TextView_SpinnerItem = 0x7f0e0090; + public static final int Base_Widget_AppCompat_Toolbar = 0x7f0e0091; + public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0e0092; + public static final int Platform_AppCompat = 0x7f0e0096; + public static final int Platform_AppCompat_Light = 0x7f0e0097; + public static final int Platform_ThemeOverlay_AppCompat = 0x7f0e0098; + public static final int Platform_ThemeOverlay_AppCompat_Dark = 0x7f0e0099; + public static final int Platform_ThemeOverlay_AppCompat_Light = 0x7f0e009a; + public static final int Platform_V11_AppCompat = 0x7f0e009b; + public static final int Platform_V11_AppCompat_Light = 0x7f0e009c; + public static final int Platform_V14_AppCompat = 0x7f0e009d; + public static final int Platform_V14_AppCompat_Light = 0x7f0e009e; + public static final int Platform_Widget_AppCompat_Spinner = 0x7f0e009f; + public static final int RtlOverlay_DialogWindowTitle_AppCompat = 0x7f0e00a1; + public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 0x7f0e00a2; + public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 0x7f0e00a3; + public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem = 0x7f0e00a4; + public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 0x7f0e00a5; + public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 0x7f0e00a6; + public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 0x7f0e00ac; + public static final int RtlOverlay_Widget_AppCompat_Search_DropDown = 0x7f0e00a7; + public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 0x7f0e00a8; + public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 0x7f0e00a9; + public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 0x7f0e00aa; + public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 0x7f0e00ab; + public static final int RtlUnderlay_Widget_AppCompat_ActionButton = 0x7f0e00ad; + public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 0x7f0e00ae; + public static final int TextAppearance_AppCompat = 0x7f0e00af; + public static final int TextAppearance_AppCompat_Body1 = 0x7f0e00b0; + public static final int TextAppearance_AppCompat_Body2 = 0x7f0e00b1; + public static final int TextAppearance_AppCompat_Button = 0x7f0e00b2; + public static final int TextAppearance_AppCompat_Caption = 0x7f0e00b3; + public static final int TextAppearance_AppCompat_Display1 = 0x7f0e00b4; + public static final int TextAppearance_AppCompat_Display2 = 0x7f0e00b5; + public static final int TextAppearance_AppCompat_Display3 = 0x7f0e00b6; + public static final int TextAppearance_AppCompat_Display4 = 0x7f0e00b7; + public static final int TextAppearance_AppCompat_Headline = 0x7f0e00b8; + public static final int TextAppearance_AppCompat_Inverse = 0x7f0e00b9; + public static final int TextAppearance_AppCompat_Large = 0x7f0e00ba; + public static final int TextAppearance_AppCompat_Large_Inverse = 0x7f0e00bb; + public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 0x7f0e00bc; + public static final int TextAppearance_AppCompat_Light_SearchResult_Title = 0x7f0e00bd; + public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 0x7f0e00be; + public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 0x7f0e00bf; + public static final int TextAppearance_AppCompat_Medium = 0x7f0e00c0; + public static final int TextAppearance_AppCompat_Medium_Inverse = 0x7f0e00c1; + public static final int TextAppearance_AppCompat_Menu = 0x7f0e00c2; + public static final int TextAppearance_AppCompat_SearchResult_Subtitle = 0x7f0e00c3; + public static final int TextAppearance_AppCompat_SearchResult_Title = 0x7f0e00c4; + public static final int TextAppearance_AppCompat_Small = 0x7f0e00c5; + public static final int TextAppearance_AppCompat_Small_Inverse = 0x7f0e00c6; + public static final int TextAppearance_AppCompat_Subhead = 0x7f0e00c7; + public static final int TextAppearance_AppCompat_Subhead_Inverse = 0x7f0e00c8; + public static final int TextAppearance_AppCompat_Title = 0x7f0e00c9; + public static final int TextAppearance_AppCompat_Title_Inverse = 0x7f0e00ca; + public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu = 0x7f0e00cb; + public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 0x7f0e00cc; + public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 0x7f0e00cd; + public static final int TextAppearance_AppCompat_Widget_ActionBar_Title = 0x7f0e00ce; + public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 0x7f0e00cf; + public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 0x7f0e00d0; + public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 0x7f0e00d1; + public static final int TextAppearance_AppCompat_Widget_ActionMode_Title = 0x7f0e00d2; + public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 0x7f0e00d3; + public static final int TextAppearance_AppCompat_Widget_Button = 0x7f0e00d4; + public static final int TextAppearance_AppCompat_Widget_Button_Inverse = 0x7f0e00d5; + public static final int TextAppearance_AppCompat_Widget_DropDownItem = 0x7f0e00d6; + public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large = 0x7f0e00d7; + public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small = 0x7f0e00d8; + public static final int TextAppearance_AppCompat_Widget_Switch = 0x7f0e00d9; + public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 0x7f0e00da; + public static final int TextAppearance_StatusBar_EventContent = 0x7f0e00db; + public static final int TextAppearance_StatusBar_EventContent_Info = 0x7f0e00dc; + public static final int TextAppearance_StatusBar_EventContent_Line2 = 0x7f0e00dd; + public static final int TextAppearance_StatusBar_EventContent_Time = 0x7f0e00de; + public static final int TextAppearance_StatusBar_EventContent_Title = 0x7f0e00df; + public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 0x7f0e00e0; + public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 0x7f0e00e1; + public static final int TextAppearance_Widget_AppCompat_Toolbar_Title = 0x7f0e00e2; + public static final int ThemeOverlay_AppCompat = 0x7f0e00f9; + public static final int ThemeOverlay_AppCompat_ActionBar = 0x7f0e00fa; + public static final int ThemeOverlay_AppCompat_Dark = 0x7f0e00fb; + public static final int ThemeOverlay_AppCompat_Dark_ActionBar = 0x7f0e00fc; + public static final int ThemeOverlay_AppCompat_Light = 0x7f0e00fd; + public static final int Theme_AppCompat = 0x7f0e00e3; + public static final int Theme_AppCompat_CompactMenu = 0x7f0e00e4; + public static final int Theme_AppCompat_DayNight = 0x7f0e00e5; + public static final int Theme_AppCompat_DayNight_DarkActionBar = 0x7f0e00e6; + public static final int Theme_AppCompat_DayNight_Dialog = 0x7f0e00e7; + public static final int Theme_AppCompat_DayNight_DialogWhenLarge = 0x7f0e00ea; + public static final int Theme_AppCompat_DayNight_Dialog_Alert = 0x7f0e00e8; + public static final int Theme_AppCompat_DayNight_Dialog_MinWidth = 0x7f0e00e9; + public static final int Theme_AppCompat_DayNight_NoActionBar = 0x7f0e00eb; + public static final int Theme_AppCompat_Dialog = 0x7f0e00ec; + public static final int Theme_AppCompat_DialogWhenLarge = 0x7f0e00ef; + public static final int Theme_AppCompat_Dialog_Alert = 0x7f0e00ed; + public static final int Theme_AppCompat_Dialog_MinWidth = 0x7f0e00ee; + public static final int Theme_AppCompat_Light = 0x7f0e00f0; + public static final int Theme_AppCompat_Light_DarkActionBar = 0x7f0e00f1; + public static final int Theme_AppCompat_Light_Dialog = 0x7f0e00f2; + public static final int Theme_AppCompat_Light_DialogWhenLarge = 0x7f0e00f5; + public static final int Theme_AppCompat_Light_Dialog_Alert = 0x7f0e00f3; + public static final int Theme_AppCompat_Light_Dialog_MinWidth = 0x7f0e00f4; + public static final int Theme_AppCompat_Light_NoActionBar = 0x7f0e00f6; + public static final int Theme_AppCompat_NoActionBar = 0x7f0e00f7; + public static final int Widget_AppCompat_ActionBar = 0x7f0e00fe; + public static final int Widget_AppCompat_ActionBar_Solid = 0x7f0e00ff; + public static final int Widget_AppCompat_ActionBar_TabBar = 0x7f0e0100; + public static final int Widget_AppCompat_ActionBar_TabText = 0x7f0e0101; + public static final int Widget_AppCompat_ActionBar_TabView = 0x7f0e0102; + public static final int Widget_AppCompat_ActionButton = 0x7f0e0103; + public static final int Widget_AppCompat_ActionButton_CloseMode = 0x7f0e0104; + public static final int Widget_AppCompat_ActionButton_Overflow = 0x7f0e0105; + public static final int Widget_AppCompat_ActionMode = 0x7f0e0106; + public static final int Widget_AppCompat_ActivityChooserView = 0x7f0e0107; + public static final int Widget_AppCompat_AutoCompleteTextView = 0x7f0e0108; + public static final int Widget_AppCompat_Button = 0x7f0e0109; + public static final int Widget_AppCompat_ButtonBar = 0x7f0e010f; + public static final int Widget_AppCompat_ButtonBar_AlertDialog = 0x7f0e0110; + public static final int Widget_AppCompat_Button_Borderless = 0x7f0e010a; + public static final int Widget_AppCompat_Button_Borderless_Colored = 0x7f0e010b; + public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog = 0x7f0e010c; + public static final int Widget_AppCompat_Button_Colored = 0x7f0e010d; + public static final int Widget_AppCompat_Button_Small = 0x7f0e010e; + public static final int Widget_AppCompat_CompoundButton_CheckBox = 0x7f0e0111; + public static final int Widget_AppCompat_CompoundButton_RadioButton = 0x7f0e0112; + public static final int Widget_AppCompat_CompoundButton_Switch = 0x7f0e0113; + public static final int Widget_AppCompat_DrawerArrowToggle = 0x7f0e0114; + public static final int Widget_AppCompat_DropDownItem_Spinner = 0x7f0e0115; + public static final int Widget_AppCompat_EditText = 0x7f0e0116; + public static final int Widget_AppCompat_ImageButton = 0x7f0e0117; + public static final int Widget_AppCompat_Light_ActionBar = 0x7f0e0118; + public static final int Widget_AppCompat_Light_ActionBar_Solid = 0x7f0e0119; + public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 0x7f0e011a; + public static final int Widget_AppCompat_Light_ActionBar_TabBar = 0x7f0e011b; + public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 0x7f0e011c; + public static final int Widget_AppCompat_Light_ActionBar_TabText = 0x7f0e011d; + public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 0x7f0e011e; + public static final int Widget_AppCompat_Light_ActionBar_TabView = 0x7f0e011f; + public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 0x7f0e0120; + public static final int Widget_AppCompat_Light_ActionButton = 0x7f0e0121; + public static final int Widget_AppCompat_Light_ActionButton_CloseMode = 0x7f0e0122; + public static final int Widget_AppCompat_Light_ActionButton_Overflow = 0x7f0e0123; + public static final int Widget_AppCompat_Light_ActionMode_Inverse = 0x7f0e0124; + public static final int Widget_AppCompat_Light_ActivityChooserView = 0x7f0e0125; + public static final int Widget_AppCompat_Light_AutoCompleteTextView = 0x7f0e0126; + public static final int Widget_AppCompat_Light_DropDownItem_Spinner = 0x7f0e0127; + public static final int Widget_AppCompat_Light_ListPopupWindow = 0x7f0e0128; + public static final int Widget_AppCompat_Light_ListView_DropDown = 0x7f0e0129; + public static final int Widget_AppCompat_Light_PopupMenu = 0x7f0e012a; + public static final int Widget_AppCompat_Light_PopupMenu_Overflow = 0x7f0e012b; + public static final int Widget_AppCompat_Light_SearchView = 0x7f0e012c; + public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 0x7f0e012d; + public static final int Widget_AppCompat_ListPopupWindow = 0x7f0e012e; + public static final int Widget_AppCompat_ListView = 0x7f0e012f; + public static final int Widget_AppCompat_ListView_DropDown = 0x7f0e0130; + public static final int Widget_AppCompat_ListView_Menu = 0x7f0e0131; + public static final int Widget_AppCompat_PopupMenu = 0x7f0e0132; + public static final int Widget_AppCompat_PopupMenu_Overflow = 0x7f0e0133; + public static final int Widget_AppCompat_PopupWindow = 0x7f0e0134; + public static final int Widget_AppCompat_ProgressBar = 0x7f0e0135; + public static final int Widget_AppCompat_ProgressBar_Horizontal = 0x7f0e0136; + public static final int Widget_AppCompat_RatingBar = 0x7f0e0137; + public static final int Widget_AppCompat_RatingBar_Indicator = 0x7f0e0138; + public static final int Widget_AppCompat_RatingBar_Small = 0x7f0e0139; + public static final int Widget_AppCompat_SearchView = 0x7f0e013a; + public static final int Widget_AppCompat_SearchView_ActionBar = 0x7f0e013b; + public static final int Widget_AppCompat_SeekBar = 0x7f0e013c; + public static final int Widget_AppCompat_Spinner = 0x7f0e013d; + public static final int Widget_AppCompat_Spinner_DropDown = 0x7f0e013e; + public static final int Widget_AppCompat_Spinner_DropDown_ActionBar = 0x7f0e013f; + public static final int Widget_AppCompat_Spinner_Underlined = 0x7f0e0140; + public static final int Widget_AppCompat_TextView_SpinnerItem = 0x7f0e0141; + public static final int Widget_AppCompat_Toolbar = 0x7f0e0142; + public static final int Widget_AppCompat_Toolbar_Button_Navigation = 0x7f0e0143; + } + public static final class styleable { + public static final int[] ActionBar = { 0x7f03002a, 0x7f03002b, 0x7f03002c, 0x7f03004e, 0x7f03004f, 0x7f030050, 0x7f030051, 0x7f030054, 0x7f030058, 0x7f030059, 0x7f030064, 0x7f03006f, 0x7f030070, 0x7f030071, 0x7f030072, 0x7f030073, 0x7f030076, 0x7f030079, 0x7f030087, 0x7f03008e, 0x7f030098, 0x7f03009b, 0x7f03009c, 0x7f0300bd, 0x7f0300c0, 0x7f0300d4, 0x7f0300de }; + public static final int ActionBar_background = 0; + public static final int ActionBar_backgroundSplit = 1; + public static final int ActionBar_backgroundStacked = 2; + public static final int ActionBar_contentInsetEnd = 3; + public static final int ActionBar_contentInsetLeft = 4; + public static final int ActionBar_contentInsetRight = 5; + public static final int ActionBar_contentInsetStart = 6; + public static final int ActionBar_customNavigationLayout = 7; + public static final int ActionBar_displayOptions = 8; + public static final int ActionBar_divider = 9; + public static final int ActionBar_elevation = 10; + public static final int ActionBar_height = 11; + public static final int ActionBar_hideOnContentScroll = 12; + public static final int ActionBar_homeAsUpIndicator = 13; + public static final int ActionBar_homeLayout = 14; + public static final int ActionBar_icon = 15; + public static final int ActionBar_indeterminateProgressStyle = 16; + public static final int ActionBar_itemPadding = 17; + public static final int ActionBar_logo = 18; + public static final int ActionBar_navigationMode = 19; + public static final int ActionBar_popupTheme = 20; + public static final int ActionBar_progressBarPadding = 21; + public static final int ActionBar_progressBarStyle = 22; + public static final int ActionBar_subtitle = 23; + public static final int ActionBar_subtitleTextStyle = 24; + public static final int ActionBar_title = 25; + public static final int ActionBar_titleTextStyle = 26; + public static final int[] ActionBarLayout = { 0x010100b3 }; + public static final int ActionBarLayout_android_layout_gravity = 0; + public static final int[] ActionMenuItemView = { 0x0101013f }; + public static final int ActionMenuItemView_android_minWidth = 0; + public static final int[] ActionMenuView = { }; + public static final int[] ActionMode = { 0x7f03002a, 0x7f03002b, 0x7f030041, 0x7f03006f, 0x7f0300c0, 0x7f0300de }; + public static final int ActionMode_background = 0; + public static final int ActionMode_backgroundSplit = 1; + public static final int ActionMode_closeItemLayout = 2; + public static final int ActionMode_height = 3; + public static final int ActionMode_subtitleTextStyle = 4; + public static final int ActionMode_titleTextStyle = 5; + public static final int[] ActivityChooserView = { 0x7f030065, 0x7f030077 }; + public static final int ActivityChooserView_expandActivityOverflowButtonDrawable = 0; + public static final int ActivityChooserView_initialActivityCount = 1; + public static final int[] AlertDialog = { 0x010100f2, 0x7f030036, 0x7f03007f, 0x7f030080, 0x7f03008b, 0x7f0300b0 }; + public static final int AlertDialog_android_layout = 0; + public static final int AlertDialog_buttonPanelSideLayout = 1; + public static final int AlertDialog_listItemLayout = 2; + public static final int AlertDialog_listLayout = 3; + public static final int AlertDialog_multiChoiceItemLayout = 4; + public static final int AlertDialog_singleChoiceItemLayout = 5; + public static final int[] AppCompatImageView = { 0x01010119, 0x7f0300b7 }; + public static final int AppCompatImageView_android_src = 0; + public static final int AppCompatImageView_srcCompat = 1; + public static final int[] AppCompatTextView = { 0x01010034, 0x7f0300c6 }; + public static final int AppCompatTextView_android_textAppearance = 0; + public static final int AppCompatTextView_textAllCaps = 1; + public static final int[] AppCompatTheme = { 0x01010057, 0x010100ae, 0x7f030000, 0x7f030001, 0x7f030002, 0x7f030003, 0x7f030004, 0x7f030005, 0x7f030006, 0x7f030007, 0x7f030008, 0x7f030009, 0x7f03000a, 0x7f03000b, 0x7f03000c, 0x7f03000e, 0x7f03000f, 0x7f030010, 0x7f030011, 0x7f030012, 0x7f030013, 0x7f030014, 0x7f030015, 0x7f030016, 0x7f030017, 0x7f030018, 0x7f030019, 0x7f03001a, 0x7f03001b, 0x7f03001c, 0x7f03001d, 0x7f03001e, 0x7f030021, 0x7f030022, 0x7f030023, 0x7f030024, 0x7f030025, 0x7f030029, 0x7f030030, 0x7f030031, 0x7f030032, 0x7f030033, 0x7f030034, 0x7f030035, 0x7f030037, 0x7f030038, 0x7f03003c, 0x7f03003d, 0x7f030045, 0x7f030046, 0x7f030047, 0x7f030048, 0x7f030049, 0x7f03004a, 0x7f03004b, 0x7f03004c, 0x7f030052, 0x7f030056, 0x7f030057, 0x7f03005a, 0x7f03005c, 0x7f03005f, 0x7f030060, 0x7f030061, 0x7f030062, 0x7f030063, 0x7f030071, 0x7f030075, 0x7f03007d, 0x7f03007e, 0x7f030081, 0x7f030082, 0x7f030083, 0x7f030084, 0x7f030085, 0x7f030086, 0x7f030094, 0x7f030095, 0x7f030096, 0x7f030097, 0x7f030099, 0x7f03009f, 0x7f0300a1, 0x7f0300a2, 0x7f0300a3, 0x7f0300a7, 0x7f0300a8, 0x7f0300a9, 0x7f0300aa, 0x7f0300b4, 0x7f0300b5, 0x7f0300c4, 0x7f0300c7, 0x7f0300c8, 0x7f0300c9, 0x7f0300ca, 0x7f0300cb, 0x7f0300cc, 0x7f0300ce, 0x7f0300cf, 0x7f0300df, 0x7f0300e0, 0x7f0300e4, 0x7f0300e5, 0x7f0300e6, 0x7f0300e7, 0x7f0300e8, 0x7f0300e9, 0x7f0300ea, 0x7f0300eb, 0x7f0300ec, 0x7f0300ed }; + public static final int AppCompatTheme_android_windowIsFloating = 0; + public static final int AppCompatTheme_android_windowAnimationStyle = 1; + public static final int AppCompatTheme_actionBarDivider = 2; + public static final int AppCompatTheme_actionBarItemBackground = 3; + public static final int AppCompatTheme_actionBarPopupTheme = 4; + public static final int AppCompatTheme_actionBarSize = 5; + public static final int AppCompatTheme_actionBarSplitStyle = 6; + public static final int AppCompatTheme_actionBarStyle = 7; + public static final int AppCompatTheme_actionBarTabBarStyle = 8; + public static final int AppCompatTheme_actionBarTabStyle = 9; + public static final int AppCompatTheme_actionBarTabTextStyle = 10; + public static final int AppCompatTheme_actionBarTheme = 11; + public static final int AppCompatTheme_actionBarWidgetTheme = 12; + public static final int AppCompatTheme_actionButtonStyle = 13; + public static final int AppCompatTheme_actionDropDownStyle = 14; + public static final int AppCompatTheme_actionMenuTextAppearance = 15; + public static final int AppCompatTheme_actionMenuTextColor = 16; + public static final int AppCompatTheme_actionModeBackground = 17; + public static final int AppCompatTheme_actionModeCloseButtonStyle = 18; + public static final int AppCompatTheme_actionModeCloseDrawable = 19; + public static final int AppCompatTheme_actionModeCopyDrawable = 20; + public static final int AppCompatTheme_actionModeCutDrawable = 21; + public static final int AppCompatTheme_actionModeFindDrawable = 22; + public static final int AppCompatTheme_actionModePasteDrawable = 23; + public static final int AppCompatTheme_actionModePopupWindowStyle = 24; + public static final int AppCompatTheme_actionModeSelectAllDrawable = 25; + public static final int AppCompatTheme_actionModeShareDrawable = 26; + public static final int AppCompatTheme_actionModeSplitBackground = 27; + public static final int AppCompatTheme_actionModeStyle = 28; + public static final int AppCompatTheme_actionModeWebSearchDrawable = 29; + public static final int AppCompatTheme_actionOverflowButtonStyle = 30; + public static final int AppCompatTheme_actionOverflowMenuStyle = 31; + public static final int AppCompatTheme_activityChooserViewStyle = 32; + public static final int AppCompatTheme_alertDialogButtonGroupStyle = 33; + public static final int AppCompatTheme_alertDialogCenterButtons = 34; + public static final int AppCompatTheme_alertDialogStyle = 35; + public static final int AppCompatTheme_alertDialogTheme = 36; + public static final int AppCompatTheme_autoCompleteTextViewStyle = 37; + public static final int AppCompatTheme_borderlessButtonStyle = 38; + public static final int AppCompatTheme_buttonBarButtonStyle = 39; + public static final int AppCompatTheme_buttonBarNegativeButtonStyle = 40; + public static final int AppCompatTheme_buttonBarNeutralButtonStyle = 41; + public static final int AppCompatTheme_buttonBarPositiveButtonStyle = 42; + public static final int AppCompatTheme_buttonBarStyle = 43; + public static final int AppCompatTheme_buttonStyle = 44; + public static final int AppCompatTheme_buttonStyleSmall = 45; + public static final int AppCompatTheme_checkboxStyle = 46; + public static final int AppCompatTheme_checkedTextViewStyle = 47; + public static final int AppCompatTheme_colorAccent = 48; + public static final int AppCompatTheme_colorButtonNormal = 49; + public static final int AppCompatTheme_colorControlActivated = 50; + public static final int AppCompatTheme_colorControlHighlight = 51; + public static final int AppCompatTheme_colorControlNormal = 52; + public static final int AppCompatTheme_colorPrimary = 53; + public static final int AppCompatTheme_colorPrimaryDark = 54; + public static final int AppCompatTheme_colorSwitchThumbNormal = 55; + public static final int AppCompatTheme_controlBackground = 56; + public static final int AppCompatTheme_dialogPreferredPadding = 57; + public static final int AppCompatTheme_dialogTheme = 58; + public static final int AppCompatTheme_dividerHorizontal = 59; + public static final int AppCompatTheme_dividerVertical = 60; + public static final int AppCompatTheme_dropDownListViewStyle = 61; + public static final int AppCompatTheme_dropdownListPreferredItemHeight = 62; + public static final int AppCompatTheme_editTextBackground = 63; + public static final int AppCompatTheme_editTextColor = 64; + public static final int AppCompatTheme_editTextStyle = 65; + public static final int AppCompatTheme_homeAsUpIndicator = 66; + public static final int AppCompatTheme_imageButtonStyle = 67; + public static final int AppCompatTheme_listChoiceBackgroundIndicator = 68; + public static final int AppCompatTheme_listDividerAlertDialog = 69; + public static final int AppCompatTheme_listPopupWindowStyle = 70; + public static final int AppCompatTheme_listPreferredItemHeight = 71; + public static final int AppCompatTheme_listPreferredItemHeightLarge = 72; + public static final int AppCompatTheme_listPreferredItemHeightSmall = 73; + public static final int AppCompatTheme_listPreferredItemPaddingLeft = 74; + public static final int AppCompatTheme_listPreferredItemPaddingRight = 75; + public static final int AppCompatTheme_panelBackground = 76; + public static final int AppCompatTheme_panelMenuListTheme = 77; + public static final int AppCompatTheme_panelMenuListWidth = 78; + public static final int AppCompatTheme_popupMenuStyle = 79; + public static final int AppCompatTheme_popupWindowStyle = 80; + public static final int AppCompatTheme_radioButtonStyle = 81; + public static final int AppCompatTheme_ratingBarStyle = 82; + public static final int AppCompatTheme_ratingBarStyleIndicator = 83; + public static final int AppCompatTheme_ratingBarStyleSmall = 84; + public static final int AppCompatTheme_searchViewStyle = 85; + public static final int AppCompatTheme_seekBarStyle = 86; + public static final int AppCompatTheme_selectableItemBackground = 87; + public static final int AppCompatTheme_selectableItemBackgroundBorderless = 88; + public static final int AppCompatTheme_spinnerDropDownItemStyle = 89; + public static final int AppCompatTheme_spinnerStyle = 90; + public static final int AppCompatTheme_switchStyle = 91; + public static final int AppCompatTheme_textAppearanceLargePopupMenu = 92; + public static final int AppCompatTheme_textAppearanceListItem = 93; + public static final int AppCompatTheme_textAppearanceListItemSmall = 94; + public static final int AppCompatTheme_textAppearanceSearchResultSubtitle = 95; + public static final int AppCompatTheme_textAppearanceSearchResultTitle = 96; + public static final int AppCompatTheme_textAppearanceSmallPopupMenu = 97; + public static final int AppCompatTheme_textColorAlertDialogListItem = 98; + public static final int AppCompatTheme_textColorSearchUrl = 99; + public static final int AppCompatTheme_toolbarNavigationButtonStyle = 100; + public static final int AppCompatTheme_toolbarStyle = 101; + public static final int AppCompatTheme_windowActionBar = 102; + public static final int AppCompatTheme_windowActionBarOverlay = 103; + public static final int AppCompatTheme_windowActionModeOverlay = 104; + public static final int AppCompatTheme_windowFixedHeightMajor = 105; + public static final int AppCompatTheme_windowFixedHeightMinor = 106; + public static final int AppCompatTheme_windowFixedWidthMajor = 107; + public static final int AppCompatTheme_windowFixedWidthMinor = 108; + public static final int AppCompatTheme_windowMinWidthMajor = 109; + public static final int AppCompatTheme_windowMinWidthMinor = 110; + public static final int AppCompatTheme_windowNoTitle = 111; + public static final int[] ButtonBarLayout = { 0x7f030026 }; + public static final int ButtonBarLayout_allowStacking = 0; + public static final int[] CompoundButton = { 0x01010107, 0x7f030039, 0x7f03003a }; + public static final int CompoundButton_android_button = 0; + public static final int CompoundButton_buttonTint = 1; + public static final int CompoundButton_buttonTintMode = 2; + public static final int[] DrawerArrowToggle = { 0x7f030027, 0x7f030028, 0x7f03002f, 0x7f030044, 0x7f03005d, 0x7f03006d, 0x7f0300b3, 0x7f0300d2 }; + public static final int DrawerArrowToggle_arrowHeadLength = 0; + public static final int DrawerArrowToggle_arrowShaftLength = 1; + public static final int DrawerArrowToggle_barLength = 2; + public static final int DrawerArrowToggle_color = 3; + public static final int DrawerArrowToggle_drawableSize = 4; + public static final int DrawerArrowToggle_gapBetweenBars = 5; + public static final int DrawerArrowToggle_spinBars = 6; + public static final int DrawerArrowToggle_thickness = 7; + public static final int[] LinearLayoutCompat = { 0x010100af, 0x010100c4, 0x01010126, 0x01010127, 0x01010128, 0x7f030059, 0x7f03005b, 0x7f03008a, 0x7f0300ae }; + public static final int LinearLayoutCompat_android_gravity = 0; + public static final int LinearLayoutCompat_android_orientation = 1; + public static final int LinearLayoutCompat_android_baselineAligned = 2; + public static final int LinearLayoutCompat_android_baselineAlignedChildIndex = 3; + public static final int LinearLayoutCompat_android_weightSum = 4; + public static final int LinearLayoutCompat_divider = 5; + public static final int LinearLayoutCompat_dividerPadding = 6; + public static final int LinearLayoutCompat_measureWithLargestChild = 7; + public static final int LinearLayoutCompat_showDividers = 8; + public static final int[] LinearLayoutCompat_Layout = { 0x010100b3, 0x010100f4, 0x010100f5, 0x01010181 }; + public static final int LinearLayoutCompat_Layout_android_layout_gravity = 0; + public static final int LinearLayoutCompat_Layout_android_layout_width = 1; + public static final int LinearLayoutCompat_Layout_android_layout_height = 2; + public static final int LinearLayoutCompat_Layout_android_layout_weight = 3; + public static final int[] ListPopupWindow = { 0x010102ac, 0x010102ad }; + public static final int ListPopupWindow_android_dropDownHorizontalOffset = 0; + public static final int ListPopupWindow_android_dropDownVerticalOffset = 1; + public static final int[] MenuGroup = { 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, 0x010101df, 0x010101e0 }; + public static final int MenuGroup_android_enabled = 0; + public static final int MenuGroup_android_id = 1; + public static final int MenuGroup_android_visible = 2; + public static final int MenuGroup_android_menuCategory = 3; + public static final int MenuGroup_android_orderInCategory = 4; + public static final int MenuGroup_android_checkableBehavior = 5; + public static final int[] MenuItem = { 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, 0x01010194, 0x010101de, 0x010101df, 0x010101e1, 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, 0x0101026f, 0x7f03000d, 0x7f03001f, 0x7f030020, 0x7f0300ad }; + public static final int MenuItem_android_icon = 0; + public static final int MenuItem_android_enabled = 1; + public static final int MenuItem_android_id = 2; + public static final int MenuItem_android_checked = 3; + public static final int MenuItem_android_visible = 4; + public static final int MenuItem_android_menuCategory = 5; + public static final int MenuItem_android_orderInCategory = 6; + public static final int MenuItem_android_title = 7; + public static final int MenuItem_android_titleCondensed = 8; + public static final int MenuItem_android_alphabeticShortcut = 9; + public static final int MenuItem_android_numericShortcut = 10; + public static final int MenuItem_android_checkable = 11; + public static final int MenuItem_android_onClick = 12; + public static final int MenuItem_actionLayout = 13; + public static final int MenuItem_actionProviderClass = 14; + public static final int MenuItem_actionViewClass = 15; + public static final int MenuItem_showAsAction = 16; + public static final int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x7f03009a }; + public static final int MenuView_android_windowAnimationStyle = 0; + public static final int MenuView_android_itemTextAppearance = 1; + public static final int MenuView_android_horizontalDivider = 2; + public static final int MenuView_android_verticalDivider = 3; + public static final int MenuView_android_headerBackground = 4; + public static final int MenuView_android_itemBackground = 5; + public static final int MenuView_android_itemIconDisabledAlpha = 6; + public static final int MenuView_preserveIconSpacing = 7; + public static final int[] PopupWindow = { 0x01010176, 0x7f030091 }; + public static final int PopupWindow_android_popupBackground = 0; + public static final int PopupWindow_overlapAnchor = 1; + public static final int[] PopupWindowBackgroundState = { 0x7f0300b9 }; + public static final int PopupWindowBackgroundState_state_above_anchor = 0; + public static final int[] SearchView = { 0x010100da, 0x0101011f, 0x01010220, 0x01010264, 0x7f030040, 0x7f03004d, 0x7f030055, 0x7f03006e, 0x7f030074, 0x7f03007a, 0x7f03009d, 0x7f03009e, 0x7f0300a5, 0x7f0300a6, 0x7f0300bc, 0x7f0300c1, 0x7f0300e3 }; + public static final int SearchView_android_focusable = 0; + public static final int SearchView_android_maxWidth = 1; + public static final int SearchView_android_inputType = 2; + public static final int SearchView_android_imeOptions = 3; + public static final int SearchView_closeIcon = 4; + public static final int SearchView_commitIcon = 5; + public static final int SearchView_defaultQueryHint = 6; + public static final int SearchView_goIcon = 7; + public static final int SearchView_iconifiedByDefault = 8; + public static final int SearchView_layout = 9; + public static final int SearchView_queryBackground = 10; + public static final int SearchView_queryHint = 11; + public static final int SearchView_searchHintIcon = 12; + public static final int SearchView_searchIcon = 13; + public static final int SearchView_submitBackground = 14; + public static final int SearchView_suggestionRowLayout = 15; + public static final int SearchView_voiceIcon = 16; + public static final int[] Spinner = { 0x010100b2, 0x01010176, 0x0101017b, 0x01010262, 0x7f030098 }; + public static final int Spinner_android_entries = 0; + public static final int Spinner_android_popupBackground = 1; + public static final int Spinner_android_prompt = 2; + public static final int Spinner_android_dropDownWidth = 3; + public static final int Spinner_popupTheme = 4; + public static final int[] SwitchCompat = { 0x01010124, 0x01010125, 0x01010142, 0x7f0300af, 0x7f0300b6, 0x7f0300c2, 0x7f0300c3, 0x7f0300c5, 0x7f0300d3, 0x7f0300e2 }; + public static final int SwitchCompat_android_textOn = 0; + public static final int SwitchCompat_android_textOff = 1; + public static final int SwitchCompat_android_thumb = 2; + public static final int SwitchCompat_showText = 3; + public static final int SwitchCompat_splitTrack = 4; + public static final int SwitchCompat_switchMinWidth = 5; + public static final int SwitchCompat_switchPadding = 6; + public static final int SwitchCompat_switchTextAppearance = 7; + public static final int SwitchCompat_thumbTextPadding = 8; + public static final int SwitchCompat_track = 9; + public static final int[] TextAppearance = { 0x01010095, 0x01010096, 0x01010097, 0x01010098, 0x01010161, 0x01010162, 0x01010163, 0x01010164, 0x7f0300c6 }; + public static final int TextAppearance_android_textSize = 0; + public static final int TextAppearance_android_typeface = 1; + public static final int TextAppearance_android_textStyle = 2; + public static final int TextAppearance_android_textColor = 3; + public static final int TextAppearance_android_shadowColor = 4; + public static final int TextAppearance_android_shadowDx = 5; + public static final int TextAppearance_android_shadowDy = 6; + public static final int TextAppearance_android_shadowRadius = 7; + public static final int TextAppearance_textAllCaps = 8; + public static final int[] Toolbar = { 0x010100af, 0x01010140, 0x7f030042, 0x7f030043, 0x7f03004e, 0x7f03004f, 0x7f030050, 0x7f030051, 0x7f030087, 0x7f030088, 0x7f030089, 0x7f03008c, 0x7f03008d, 0x7f030098, 0x7f0300bd, 0x7f0300be, 0x7f0300bf, 0x7f0300d4, 0x7f0300d5, 0x7f0300d6, 0x7f0300d7, 0x7f0300d8, 0x7f0300d9, 0x7f0300dc, 0x7f0300dd }; + public static final int Toolbar_android_gravity = 0; + public static final int Toolbar_android_minHeight = 1; + public static final int Toolbar_collapseContentDescription = 2; + public static final int Toolbar_collapseIcon = 3; + public static final int Toolbar_contentInsetEnd = 4; + public static final int Toolbar_contentInsetLeft = 5; + public static final int Toolbar_contentInsetRight = 6; + public static final int Toolbar_contentInsetStart = 7; + public static final int Toolbar_logo = 8; + public static final int Toolbar_logoDescription = 9; + public static final int Toolbar_maxButtonHeight = 10; + public static final int Toolbar_navigationContentDescription = 11; + public static final int Toolbar_navigationIcon = 12; + public static final int Toolbar_popupTheme = 13; + public static final int Toolbar_subtitle = 14; + public static final int Toolbar_subtitleTextAppearance = 15; + public static final int Toolbar_subtitleTextColor = 16; + public static final int Toolbar_title = 17; + public static final int Toolbar_titleMarginBottom = 18; + public static final int Toolbar_titleMarginEnd = 19; + public static final int Toolbar_titleMarginStart = 20; + public static final int Toolbar_titleMarginTop = 21; + public static final int Toolbar_titleMargins = 22; + public static final int Toolbar_titleTextAppearance = 23; + public static final int Toolbar_titleTextColor = 24; + public static final int[] View = { 0x01010000, 0x010100da, 0x7f030092, 0x7f030093, 0x7f0300d1 }; + public static final int View_android_theme = 0; + public static final int View_android_focusable = 1; + public static final int View_paddingEnd = 2; + public static final int View_paddingStart = 3; + public static final int View_theme = 4; + public static final int[] ViewBackgroundHelper = { 0x010100d4, 0x7f03002d, 0x7f03002e }; + public static final int ViewBackgroundHelper_android_background = 0; + public static final int ViewBackgroundHelper_backgroundTint = 1; + public static final int ViewBackgroundHelper_backgroundTintMode = 2; + public static final int[] ViewStubCompat = { 0x010100d0, 0x010100f2, 0x010100f3 }; + public static final int ViewStubCompat_android_id = 0; + public static final int ViewStubCompat_android_layout = 1; + public static final int ViewStubCompat_android_inflatedId = 2; + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/build/generated/source/r/debug/de/bjusystems/vdrmanager/R.java b/vdrmanager/de.bjusystems.vdrmanager/build/generated/source/r/debug/de/bjusystems/vdrmanager/R.java new file mode 100644 index 0000000..bffcde8 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/build/generated/source/r/debug/de/bjusystems/vdrmanager/R.java @@ -0,0 +1,8641 @@ +/* AUTO-GENERATED FILE. DO NOT MODIFY. + * + * This class was automatically generated by the + * aapt tool from the resource data it found. It + * should not be modified by hand. + */ + +package de.bjusystems.vdrmanager; + +public final class R { + public static final class anim { + public static final int abc_fade_in=0x7f010000; + public static final int abc_fade_out=0x7f010001; + public static final int abc_grow_fade_in_from_bottom=0x7f010002; + public static final int abc_popup_enter=0x7f010003; + public static final int abc_popup_exit=0x7f010004; + public static final int abc_shrink_fade_out_from_bottom=0x7f010005; + public static final int abc_slide_in_bottom=0x7f010006; + public static final int abc_slide_in_top=0x7f010007; + public static final int abc_slide_out_bottom=0x7f010008; + public static final int abc_slide_out_top=0x7f010009; + public static final int slide_down_in=0x7f01000a; + public static final int slide_down_out=0x7f01000b; + public static final int slide_left_in=0x7f01000c; + public static final int slide_left_out=0x7f01000d; + public static final int slide_right_in=0x7f01000e; + public static final int slide_right_out=0x7f01000f; + public static final int slide_up_in=0x7f010010; + public static final int slide_up_out=0x7f010011; + } + public static final class array { + public static final int channels_group_by=0x7f020000; + public static final int epg_sort_by_channels_alpha=0x7f020001; + public static final int epg_sort_by_time_alpha=0x7f020002; + public static final int epg_sort_by_time_alpha_channel=0x7f020003; + public static final int font=0x7f020004; + public static final int imdb_urls=0x7f020005; + public static final int imdb_urls_velues=0x7f020006; + public static final int lang=0x7f020007; + public static final int lang_values=0x7f020008; + public static final int livetv_streamformat=0x7f020009; + public static final int livetv_streamformat_values=0x7f02000a; + public static final int navigation_array=0x7f02000b; + public static final int recent_channels_order_entries=0x7f02000c; + public static final int recent_channels_order_entry_values=0x7f02000d; + public static final int recordings_group_by=0x7f02000e; + public static final int recstream_entries=0x7f02000f; + public static final int recstream_entry_values=0x7f020010; + public static final int recstream_smarttvweb_entries=0x7f020011; + public static final int recstream_smarttvweb_entry_values=0x7f020012; + public static final int remux_entries=0x7f020013; + public static final int remux_entry_values=0x7f020014; + public static final int wakeup_methods=0x7f020015; + public static final int wakeup_methods_values=0x7f020016; + } + public static final class attr { + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionBarDivider=0x7f030000; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionBarItemBackground=0x7f030001; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionBarPopupTheme=0x7f030002; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>wrap_content</td><td>0</td><td></td></tr> + * </table> + */ + public static final int actionBarSize=0x7f030003; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionBarSplitStyle=0x7f030004; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionBarStyle=0x7f030005; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionBarTabBarStyle=0x7f030006; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionBarTabStyle=0x7f030007; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionBarTabTextStyle=0x7f030008; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionBarTheme=0x7f030009; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionBarWidgetTheme=0x7f03000a; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionButtonStyle=0x7f03000b; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionDropDownStyle=0x7f03000c; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionLayout=0x7f03000d; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionMenuTextAppearance=0x7f03000e; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int actionMenuTextColor=0x7f03000f; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionModeBackground=0x7f030010; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionModeCloseButtonStyle=0x7f030011; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionModeCloseDrawable=0x7f030012; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionModeCopyDrawable=0x7f030013; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionModeCutDrawable=0x7f030014; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionModeFindDrawable=0x7f030015; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionModePasteDrawable=0x7f030016; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionModePopupWindowStyle=0x7f030017; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionModeSelectAllDrawable=0x7f030018; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionModeShareDrawable=0x7f030019; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionModeSplitBackground=0x7f03001a; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionModeStyle=0x7f03001b; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionModeWebSearchDrawable=0x7f03001c; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionOverflowButtonStyle=0x7f03001d; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int actionOverflowMenuStyle=0x7f03001e; + /** + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + */ + public static final int actionProviderClass=0x7f03001f; + /** + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + */ + public static final int actionViewClass=0x7f030020; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int activityChooserViewStyle=0x7f030021; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int alertDialogButtonGroupStyle=0x7f030022; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int alertDialogCenterButtons=0x7f030023; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int alertDialogStyle=0x7f030024; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int alertDialogTheme=0x7f030025; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int allowStacking=0x7f030026; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int arrowHeadLength=0x7f030027; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int arrowShaftLength=0x7f030028; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int autoCompleteTextViewStyle=0x7f030029; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int background=0x7f03002a; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int backgroundSplit=0x7f03002b; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int backgroundStacked=0x7f03002c; + /** + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int backgroundTint=0x7f03002d; + /** + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>multiply</td><td>e</td><td></td></tr> + * <tr><td>screen</td><td>f</td><td></td></tr> + * <tr><td>src_atop</td><td>9</td><td></td></tr> + * <tr><td>src_in</td><td>5</td><td></td></tr> + * <tr><td>src_over</td><td>3</td><td></td></tr> + * </table> + */ + public static final int backgroundTintMode=0x7f03002e; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int barLength=0x7f03002f; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int borderlessButtonStyle=0x7f030030; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int buttonBarButtonStyle=0x7f030031; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int buttonBarNegativeButtonStyle=0x7f030032; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int buttonBarNeutralButtonStyle=0x7f030033; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int buttonBarPositiveButtonStyle=0x7f030034; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int buttonBarStyle=0x7f030035; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int buttonPanelSideLayout=0x7f030036; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int buttonStyle=0x7f030037; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int buttonStyleSmall=0x7f030038; + /** + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int buttonTint=0x7f030039; + /** + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>multiply</td><td>e</td><td></td></tr> + * <tr><td>screen</td><td>f</td><td></td></tr> + * <tr><td>src_atop</td><td>9</td><td></td></tr> + * <tr><td>src_in</td><td>5</td><td></td></tr> + * <tr><td>src_over</td><td>3</td><td></td></tr> + * </table> + */ + public static final int buttonTintMode=0x7f03003a; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int centered=0x7f03003b; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int checkboxStyle=0x7f03003c; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int checkedTextViewStyle=0x7f03003d; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int circlePageIndicatorStyle=0x7f03003e; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int clipPadding=0x7f03003f; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int closeIcon=0x7f030040; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int closeItemLayout=0x7f030041; + /** + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + */ + public static final int collapseContentDescription=0x7f030042; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int collapseIcon=0x7f030043; + /** + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int color=0x7f030044; + /** + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int colorAccent=0x7f030045; + /** + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int colorButtonNormal=0x7f030046; + /** + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int colorControlActivated=0x7f030047; + /** + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int colorControlHighlight=0x7f030048; + /** + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int colorControlNormal=0x7f030049; + /** + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int colorPrimary=0x7f03004a; + /** + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int colorPrimaryDark=0x7f03004b; + /** + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int colorSwitchThumbNormal=0x7f03004c; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int commitIcon=0x7f03004d; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int contentInsetEnd=0x7f03004e; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int contentInsetLeft=0x7f03004f; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int contentInsetRight=0x7f030050; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int contentInsetStart=0x7f030051; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int controlBackground=0x7f030052; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int cornerRadius=0x7f030053; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int customNavigationLayout=0x7f030054; + /** + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + */ + public static final int defaultQueryHint=0x7f030055; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int dialogPreferredPadding=0x7f030056; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int dialogTheme=0x7f030057; + /** + * <p>Must be one or more (separated by '|') of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>disableHome</td><td>20</td><td></td></tr> + * <tr><td>homeAsUp</td><td>4</td><td></td></tr> + * <tr><td>none</td><td>0</td><td></td></tr> + * <tr><td>showCustom</td><td>10</td><td></td></tr> + * <tr><td>showHome</td><td>2</td><td></td></tr> + * <tr><td>showTitle</td><td>8</td><td></td></tr> + * <tr><td>useLogo</td><td>1</td><td></td></tr> + * </table> + */ + public static final int displayOptions=0x7f030058; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int divider=0x7f030059; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int dividerHorizontal=0x7f03005a; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int dividerPadding=0x7f03005b; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int dividerVertical=0x7f03005c; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int drawableSize=0x7f03005d; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int drawerArrowStyle=0x7f03005e; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int dropDownListViewStyle=0x7f03005f; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int dropdownListPreferredItemHeight=0x7f030060; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int editTextBackground=0x7f030061; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int editTextColor=0x7f030062; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int editTextStyle=0x7f030063; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int elevation=0x7f030064; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int expandActivityOverflowButtonDrawable=0x7f030065; + /** + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int fillColor=0x7f030066; + /** + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int footerColor=0x7f030067; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int footerIndicatorHeight=0x7f030068; + /** + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>none</td><td>0</td><td></td></tr> + * <tr><td>triangle</td><td>1</td><td></td></tr> + * <tr><td>underline</td><td>2</td><td></td></tr> + * </table> + */ + public static final int footerIndicatorStyle=0x7f030069; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int footerIndicatorUnderlinePadding=0x7f03006a; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int footerLineHeight=0x7f03006b; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int footerPadding=0x7f03006c; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int gapBetweenBars=0x7f03006d; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int goIcon=0x7f03006e; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int height=0x7f03006f; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int hideOnContentScroll=0x7f030070; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int homeAsUpIndicator=0x7f030071; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int homeLayout=0x7f030072; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int icon=0x7f030073; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int iconifiedByDefault=0x7f030074; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int imageButtonStyle=0x7f030075; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int indeterminateProgressStyle=0x7f030076; + /** + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + */ + public static final int initialActivityCount=0x7f030077; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int isLightTheme=0x7f030078; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int itemPadding=0x7f030079; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int layout=0x7f03007a; + /** + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + */ + public static final int layoutManager=0x7f03007b; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int list=0x7f03007c; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int listChoiceBackgroundIndicator=0x7f03007d; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int listDividerAlertDialog=0x7f03007e; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int listItemLayout=0x7f03007f; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int listLayout=0x7f030080; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int listPopupWindowStyle=0x7f030081; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int listPreferredItemHeight=0x7f030082; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int listPreferredItemHeightLarge=0x7f030083; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int listPreferredItemHeightSmall=0x7f030084; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int listPreferredItemPaddingLeft=0x7f030085; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int listPreferredItemPaddingRight=0x7f030086; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int logo=0x7f030087; + /** + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + */ + public static final int logoDescription=0x7f030088; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int maxButtonHeight=0x7f030089; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int measureWithLargestChild=0x7f03008a; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int multiChoiceItemLayout=0x7f03008b; + /** + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + */ + public static final int navigationContentDescription=0x7f03008c; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int navigationIcon=0x7f03008d; + /** + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>listMode</td><td>1</td><td></td></tr> + * <tr><td>normal</td><td>0</td><td></td></tr> + * <tr><td>tabMode</td><td>2</td><td></td></tr> + * </table> + */ + public static final int navigationMode=0x7f03008e; + /** + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + */ + public static final int normalStateColor=0x7f03008f; + /** + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>horizontal</td><td>0</td><td></td></tr> + * <tr><td>vertical</td><td>1</td><td></td></tr> + * </table> + */ + public static final int orientation=0x7f030090; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int overlapAnchor=0x7f030091; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int paddingEnd=0x7f030092; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int paddingStart=0x7f030093; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int panelBackground=0x7f030094; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int panelMenuListTheme=0x7f030095; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int panelMenuListWidth=0x7f030096; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int popupMenuStyle=0x7f030097; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int popupTheme=0x7f030098; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int popupWindowStyle=0x7f030099; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int preserveIconSpacing=0x7f03009a; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int progressBarPadding=0x7f03009b; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int progressBarStyle=0x7f03009c; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int queryBackground=0x7f03009d; + /** + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + */ + public static final int queryHint=0x7f03009e; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int radioButtonStyle=0x7f03009f; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int radius=0x7f0300a0; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int ratingBarStyle=0x7f0300a1; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int ratingBarStyleIndicator=0x7f0300a2; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int ratingBarStyleSmall=0x7f0300a3; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int reverseLayout=0x7f0300a4; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int searchHintIcon=0x7f0300a5; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int searchIcon=0x7f0300a6; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int searchViewStyle=0x7f0300a7; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int seekBarStyle=0x7f0300a8; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int selectableItemBackground=0x7f0300a9; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int selectableItemBackgroundBorderless=0x7f0300aa; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int selectedBold=0x7f0300ab; + /** + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int selectedColor=0x7f0300ac; + /** + * <p>Must be one or more (separated by '|') of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>always</td><td>2</td><td></td></tr> + * <tr><td>collapseActionView</td><td>8</td><td></td></tr> + * <tr><td>ifRoom</td><td>1</td><td></td></tr> + * <tr><td>never</td><td>0</td><td></td></tr> + * <tr><td>withText</td><td>4</td><td></td></tr> + * </table> + */ + public static final int showAsAction=0x7f0300ad; + /** + * <p>Must be one or more (separated by '|') of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>beginning</td><td>1</td><td></td></tr> + * <tr><td>end</td><td>4</td><td></td></tr> + * <tr><td>middle</td><td>2</td><td></td></tr> + * <tr><td>none</td><td>0</td><td></td></tr> + * </table> + */ + public static final int showDividers=0x7f0300ae; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int showText=0x7f0300af; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int singleChoiceItemLayout=0x7f0300b0; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int snap=0x7f0300b1; + /** + * <p>May be an integer value, such as "<code>100</code>". + */ + public static final int spanCount=0x7f0300b2; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int spinBars=0x7f0300b3; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int spinnerDropDownItemStyle=0x7f0300b4; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int spinnerStyle=0x7f0300b5; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int splitTrack=0x7f0300b6; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int srcCompat=0x7f0300b7; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int stackFromEnd=0x7f0300b8; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int state_above_anchor=0x7f0300b9; + /** + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int strokeColor=0x7f0300ba; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int strokeWidth=0x7f0300bb; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int submitBackground=0x7f0300bc; + /** + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + */ + public static final int subtitle=0x7f0300bd; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int subtitleTextAppearance=0x7f0300be; + /** + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int subtitleTextColor=0x7f0300bf; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int subtitleTextStyle=0x7f0300c0; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int suggestionRowLayout=0x7f0300c1; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int switchMinWidth=0x7f0300c2; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int switchPadding=0x7f0300c3; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int switchStyle=0x7f0300c4; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int switchTextAppearance=0x7f0300c5; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int textAllCaps=0x7f0300c6; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int textAppearanceLargePopupMenu=0x7f0300c7; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int textAppearanceListItem=0x7f0300c8; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int textAppearanceListItemSmall=0x7f0300c9; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int textAppearanceSearchResultSubtitle=0x7f0300ca; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int textAppearanceSearchResultTitle=0x7f0300cb; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int textAppearanceSmallPopupMenu=0x7f0300cc; + /** + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int textColor=0x7f0300cd; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int textColorAlertDialogListItem=0x7f0300ce; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int textColorSearchUrl=0x7f0300cf; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int textSize=0x7f0300d0; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int theme=0x7f0300d1; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int thickness=0x7f0300d2; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int thumbTextPadding=0x7f0300d3; + /** + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + */ + public static final int title=0x7f0300d4; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int titleMarginBottom=0x7f0300d5; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int titleMarginEnd=0x7f0300d6; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int titleMarginStart=0x7f0300d7; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int titleMarginTop=0x7f0300d8; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int titleMargins=0x7f0300d9; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int titlePadding=0x7f0300da; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int titlePageIndicatorStyle=0x7f0300db; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int titleTextAppearance=0x7f0300dc; + /** + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + */ + public static final int titleTextColor=0x7f0300dd; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int titleTextStyle=0x7f0300de; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int toolbarNavigationButtonStyle=0x7f0300df; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int toolbarStyle=0x7f0300e0; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + */ + public static final int topPadding=0x7f0300e1; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int track=0x7f0300e2; + /** + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + */ + public static final int voiceIcon=0x7f0300e3; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int windowActionBar=0x7f0300e4; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int windowActionBarOverlay=0x7f0300e5; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int windowActionModeOverlay=0x7f0300e6; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * <p>May be a fractional value, which is a floating point number appended with + * either % or %p, such as "<code>14.5%</code>". + * The % suffix always means a percentage of the base size; + * the optional %p suffix provides a size relative to some parent container. + */ + public static final int windowFixedHeightMajor=0x7f0300e7; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * <p>May be a fractional value, which is a floating point number appended with + * either % or %p, such as "<code>14.5%</code>". + * The % suffix always means a percentage of the base size; + * the optional %p suffix provides a size relative to some parent container. + */ + public static final int windowFixedHeightMinor=0x7f0300e8; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * <p>May be a fractional value, which is a floating point number appended with + * either % or %p, such as "<code>14.5%</code>". + * The % suffix always means a percentage of the base size; + * the optional %p suffix provides a size relative to some parent container. + */ + public static final int windowFixedWidthMajor=0x7f0300e9; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * <p>May be a fractional value, which is a floating point number appended with + * either % or %p, such as "<code>14.5%</code>". + * The % suffix always means a percentage of the base size; + * the optional %p suffix provides a size relative to some parent container. + */ + public static final int windowFixedWidthMinor=0x7f0300ea; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * <p>May be a fractional value, which is a floating point number appended with + * either % or %p, such as "<code>14.5%</code>". + * The % suffix always means a percentage of the base size; + * the optional %p suffix provides a size relative to some parent container. + */ + public static final int windowMinWidthMajor=0x7f0300eb; + /** + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * <p>May be a fractional value, which is a floating point number appended with + * either % or %p, such as "<code>14.5%</code>". + * The % suffix always means a percentage of the base size; + * the optional %p suffix provides a size relative to some parent container. + */ + public static final int windowMinWidthMinor=0x7f0300ec; + /** + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + */ + public static final int windowNoTitle=0x7f0300ed; + } + public static final class bool { + public static final int abc_action_bar_embed_tabs=0x7f040000; + public static final int abc_action_bar_embed_tabs_pre_jb=0x7f040001; + public static final int abc_action_bar_expanded_action_views_exclusive=0x7f040002; + public static final int abc_allow_stacked_button_bar=0x7f040003; + public static final int abc_config_actionMenuItemAllCaps=0x7f040004; + public static final int abc_config_allowActionMenuItemTextWithIcon=0x7f040005; + public static final int abc_config_closeDialogWhenTouchOutside=0x7f040006; + public static final int abc_config_showMenuShortcutsWhenKeyboardPresent=0x7f040007; + public static final int default_circle_indicator_centered=0x7f040008; + public static final int default_circle_indicator_snap=0x7f040009; + public static final int default_title_indicator_selected_bold=0x7f04000a; + } + public static final class color { + public static final int abc_background_cache_hint_selector_material_dark=0x7f050000; + public static final int abc_background_cache_hint_selector_material_light=0x7f050001; + public static final int abc_color_highlight_material=0x7f050002; + public static final int abc_input_method_navigation_guard=0x7f050003; + public static final int abc_primary_text_disable_only_material_dark=0x7f050004; + public static final int abc_primary_text_disable_only_material_light=0x7f050005; + public static final int abc_primary_text_material_dark=0x7f050006; + public static final int abc_primary_text_material_light=0x7f050007; + public static final int abc_search_url_text=0x7f050008; + public static final int abc_search_url_text_normal=0x7f050009; + public static final int abc_search_url_text_pressed=0x7f05000a; + public static final int abc_search_url_text_selected=0x7f05000b; + public static final int abc_secondary_text_material_dark=0x7f05000c; + public static final int abc_secondary_text_material_light=0x7f05000d; + public static final int accent_material_dark=0x7f05000e; + public static final int accent_material_light=0x7f05000f; + public static final int background_floating_material_dark=0x7f050010; + public static final int background_floating_material_light=0x7f050011; + public static final int background_material_dark=0x7f050012; + public static final int background_material_light=0x7f050013; + public static final int black=0x7f050014; + public static final int blue=0x7f050015; + public static final int bright_foreground_disabled_material_dark=0x7f050016; + public static final int bright_foreground_disabled_material_light=0x7f050017; + public static final int bright_foreground_inverse_material_dark=0x7f050018; + public static final int bright_foreground_inverse_material_light=0x7f050019; + public static final int bright_foreground_material_dark=0x7f05001a; + public static final int bright_foreground_material_light=0x7f05001b; + public static final int button_material_dark=0x7f05001c; + public static final int button_material_light=0x7f05001d; + public static final int default_circle_indicator_fill_color=0x7f05001e; + public static final int default_circle_indicator_stroke_color=0x7f05001f; + public static final int default_title_indicator_footer_color=0x7f050020; + public static final int default_title_indicator_selected_color=0x7f050021; + public static final int default_title_indicator_text_color=0x7f050022; + public static final int dim_foreground_disabled_material_dark=0x7f050023; + public static final int dim_foreground_disabled_material_light=0x7f050024; + public static final int dim_foreground_material_dark=0x7f050025; + public static final int dim_foreground_material_light=0x7f050026; + public static final int foreground_material_dark=0x7f050027; + public static final int foreground_material_light=0x7f050028; + public static final int green=0x7f050029; + public static final int highlighted_text_material_dark=0x7f05002a; + public static final int highlighted_text_material_light=0x7f05002b; + public static final int hint_foreground_material_dark=0x7f05002c; + public static final int hint_foreground_material_light=0x7f05002d; + public static final int material_blue_grey_800=0x7f05002e; + public static final int material_blue_grey_900=0x7f05002f; + public static final int material_blue_grey_950=0x7f050030; + public static final int material_deep_teal_200=0x7f050031; + public static final int material_deep_teal_500=0x7f050032; + public static final int material_grey_100=0x7f050033; + public static final int material_grey_300=0x7f050034; + public static final int material_grey_50=0x7f050035; + public static final int material_grey_600=0x7f050036; + public static final int material_grey_800=0x7f050037; + public static final int material_grey_850=0x7f050038; + public static final int material_grey_900=0x7f050039; + public static final int primary_dark_material_dark=0x7f05003a; + public static final int primary_dark_material_light=0x7f05003b; + public static final int primary_material_dark=0x7f05003c; + public static final int primary_material_light=0x7f05003d; + public static final int primary_text_default_material_dark=0x7f05003e; + public static final int primary_text_default_material_light=0x7f05003f; + public static final int primary_text_disabled_material_dark=0x7f050040; + public static final int primary_text_disabled_material_light=0x7f050041; + public static final int red=0x7f050042; + public static final int ripple_material_dark=0x7f050043; + public static final int ripple_material_light=0x7f050044; + public static final int secondary_text_default_material_dark=0x7f050045; + public static final int secondary_text_default_material_light=0x7f050046; + public static final int secondary_text_disabled_material_dark=0x7f050047; + public static final int secondary_text_disabled_material_light=0x7f050048; + public static final int switch_thumb_disabled_material_dark=0x7f050049; + public static final int switch_thumb_disabled_material_light=0x7f05004a; + public static final int switch_thumb_material_dark=0x7f05004b; + public static final int switch_thumb_material_light=0x7f05004c; + public static final int switch_thumb_normal_material_dark=0x7f05004d; + public static final int switch_thumb_normal_material_light=0x7f05004e; + public static final int white=0x7f05004f; + public static final int yellow=0x7f050050; + } + public static final class dimen { + public static final int abc_action_bar_content_inset_material=0x7f060000; + public static final int abc_action_bar_default_height_material=0x7f060001; + public static final int abc_action_bar_default_padding_end_material=0x7f060002; + public static final int abc_action_bar_default_padding_start_material=0x7f060003; + public static final int abc_action_bar_icon_vertical_padding_material=0x7f060004; + public static final int abc_action_bar_overflow_padding_end_material=0x7f060005; + public static final int abc_action_bar_overflow_padding_start_material=0x7f060006; + public static final int abc_action_bar_progress_bar_size=0x7f060007; + public static final int abc_action_bar_stacked_max_height=0x7f060008; + public static final int abc_action_bar_stacked_tab_max_width=0x7f060009; + public static final int abc_action_bar_subtitle_bottom_margin_material=0x7f06000a; + public static final int abc_action_bar_subtitle_top_margin_material=0x7f06000b; + public static final int abc_action_button_min_height_material=0x7f06000c; + public static final int abc_action_button_min_width_material=0x7f06000d; + public static final int abc_action_button_min_width_overflow_material=0x7f06000e; + public static final int abc_alert_dialog_button_bar_height=0x7f06000f; + public static final int abc_button_inset_horizontal_material=0x7f060010; + public static final int abc_button_inset_vertical_material=0x7f060011; + public static final int abc_button_padding_horizontal_material=0x7f060012; + public static final int abc_button_padding_vertical_material=0x7f060013; + public static final int abc_config_prefDialogWidth=0x7f060014; + public static final int abc_control_corner_material=0x7f060015; + public static final int abc_control_inset_material=0x7f060016; + public static final int abc_control_padding_material=0x7f060017; + public static final int abc_dialog_fixed_height_major=0x7f060018; + public static final int abc_dialog_fixed_height_minor=0x7f060019; + public static final int abc_dialog_fixed_width_major=0x7f06001a; + public static final int abc_dialog_fixed_width_minor=0x7f06001b; + public static final int abc_dialog_list_padding_vertical_material=0x7f06001c; + public static final int abc_dialog_min_width_major=0x7f06001d; + public static final int abc_dialog_min_width_minor=0x7f06001e; + public static final int abc_dialog_padding_material=0x7f06001f; + public static final int abc_dialog_padding_top_material=0x7f060020; + public static final int abc_disabled_alpha_material_dark=0x7f060021; + public static final int abc_disabled_alpha_material_light=0x7f060022; + public static final int abc_dropdownitem_icon_width=0x7f060023; + public static final int abc_dropdownitem_text_padding_left=0x7f060024; + public static final int abc_dropdownitem_text_padding_right=0x7f060025; + public static final int abc_edit_text_inset_bottom_material=0x7f060026; + public static final int abc_edit_text_inset_horizontal_material=0x7f060027; + public static final int abc_edit_text_inset_top_material=0x7f060028; + public static final int abc_floating_window_z=0x7f060029; + public static final int abc_list_item_padding_horizontal_material=0x7f06002a; + public static final int abc_panel_menu_list_width=0x7f06002b; + public static final int abc_search_view_preferred_width=0x7f06002c; + public static final int abc_search_view_text_min_width=0x7f06002d; + public static final int abc_seekbar_track_background_height_material=0x7f06002e; + public static final int abc_seekbar_track_progress_height_material=0x7f06002f; + public static final int abc_select_dialog_padding_start_material=0x7f060030; + public static final int abc_switch_padding=0x7f060031; + public static final int abc_text_size_body_1_material=0x7f060032; + public static final int abc_text_size_body_2_material=0x7f060033; + public static final int abc_text_size_button_material=0x7f060034; + public static final int abc_text_size_caption_material=0x7f060035; + public static final int abc_text_size_display_1_material=0x7f060036; + public static final int abc_text_size_display_2_material=0x7f060037; + public static final int abc_text_size_display_3_material=0x7f060038; + public static final int abc_text_size_display_4_material=0x7f060039; + public static final int abc_text_size_headline_material=0x7f06003a; + public static final int abc_text_size_large_material=0x7f06003b; + public static final int abc_text_size_medium_material=0x7f06003c; + public static final int abc_text_size_menu_material=0x7f06003d; + public static final int abc_text_size_small_material=0x7f06003e; + public static final int abc_text_size_subhead_material=0x7f06003f; + public static final int abc_text_size_subtitle_material_toolbar=0x7f060040; + public static final int abc_text_size_title_material=0x7f060041; + public static final int abc_text_size_title_material_toolbar=0x7f060042; + public static final int default_circle_indicator_radius=0x7f060043; + public static final int default_circle_indicator_stroke_width=0x7f060044; + public static final int default_title_indicator_clip_padding=0x7f060045; + public static final int default_title_indicator_footer_indicator_height=0x7f060046; + public static final int default_title_indicator_footer_indicator_underline_padding=0x7f060047; + public static final int default_title_indicator_footer_line_height=0x7f060048; + public static final int default_title_indicator_footer_padding=0x7f060049; + public static final int default_title_indicator_text_size=0x7f06004a; + public static final int default_title_indicator_title_padding=0x7f06004b; + public static final int default_title_indicator_top_padding=0x7f06004c; + public static final int disabled_alpha_material_dark=0x7f06004d; + public static final int disabled_alpha_material_light=0x7f06004e; + public static final int highlight_alpha_material_colored=0x7f06004f; + public static final int highlight_alpha_material_dark=0x7f060050; + public static final int highlight_alpha_material_light=0x7f060051; + public static final int item_height=0x7f060052; + public static final int item_inset=0x7f060053; + public static final int item_margin=0x7f060054; + public static final int item_touch_helper_max_drag_scroll_per_frame=0x7f060055; + public static final int item_touch_helper_swipe_escape_max_velocity=0x7f060056; + public static final int item_touch_helper_swipe_escape_velocity=0x7f060057; + public static final int notification_large_icon_height=0x7f060058; + public static final int notification_large_icon_width=0x7f060059; + public static final int notification_subtext_size=0x7f06005a; + public static final int recycler_height=0x7f06005b; + } + public static final class drawable { + public static final int abc_ab_share_pack_mtrl_alpha=0x7f070000; + public static final int abc_action_bar_item_background_material=0x7f070001; + public static final int abc_btn_borderless_material=0x7f070002; + public static final int abc_btn_check_material=0x7f070003; + public static final int abc_btn_check_to_on_mtrl_000=0x7f070004; + public static final int abc_btn_check_to_on_mtrl_015=0x7f070005; + public static final int abc_btn_colored_material=0x7f070006; + public static final int abc_btn_default_mtrl_shape=0x7f070007; + public static final int abc_btn_radio_material=0x7f070008; + public static final int abc_btn_radio_to_on_mtrl_000=0x7f070009; + public static final int abc_btn_radio_to_on_mtrl_015=0x7f07000a; + public static final int abc_btn_rating_star_off_mtrl_alpha=0x7f07000b; + public static final int abc_btn_rating_star_on_mtrl_alpha=0x7f07000c; + public static final int abc_btn_switch_to_on_mtrl_00001=0x7f07000d; + public static final int abc_btn_switch_to_on_mtrl_00012=0x7f07000e; + public static final int abc_cab_background_internal_bg=0x7f07000f; + public static final int abc_cab_background_top_material=0x7f070010; + public static final int abc_cab_background_top_mtrl_alpha=0x7f070011; + public static final int abc_control_background_material=0x7f070012; + public static final int abc_dialog_material_background_dark=0x7f070013; + public static final int abc_dialog_material_background_light=0x7f070014; + public static final int abc_edit_text_material=0x7f070015; + public static final int abc_ic_ab_back_mtrl_am_alpha=0x7f070016; + public static final int abc_ic_clear_mtrl_alpha=0x7f070017; + public static final int abc_ic_commit_search_api_mtrl_alpha=0x7f070018; + public static final int abc_ic_go_search_api_mtrl_alpha=0x7f070019; + public static final int abc_ic_menu_copy_mtrl_am_alpha=0x7f07001a; + public static final int abc_ic_menu_cut_mtrl_alpha=0x7f07001b; + public static final int abc_ic_menu_moreoverflow_mtrl_alpha=0x7f07001c; + public static final int abc_ic_menu_paste_mtrl_am_alpha=0x7f07001d; + public static final int abc_ic_menu_selectall_mtrl_alpha=0x7f07001e; + public static final int abc_ic_menu_share_mtrl_alpha=0x7f07001f; + public static final int abc_ic_search_api_mtrl_alpha=0x7f070020; + public static final int abc_ic_star_black_16dp=0x7f070021; + public static final int abc_ic_star_black_36dp=0x7f070022; + public static final int abc_ic_star_half_black_16dp=0x7f070023; + public static final int abc_ic_star_half_black_36dp=0x7f070024; + public static final int abc_ic_voice_search_api_mtrl_alpha=0x7f070025; + public static final int abc_item_background_holo_dark=0x7f070026; + public static final int abc_item_background_holo_light=0x7f070027; + public static final int abc_list_divider_mtrl_alpha=0x7f070028; + public static final int abc_list_focused_holo=0x7f070029; + public static final int abc_list_longpressed_holo=0x7f07002a; + public static final int abc_list_pressed_holo_dark=0x7f07002b; + public static final int abc_list_pressed_holo_light=0x7f07002c; + public static final int abc_list_selector_background_transition_holo_dark=0x7f07002d; + public static final int abc_list_selector_background_transition_holo_light=0x7f07002e; + public static final int abc_list_selector_disabled_holo_dark=0x7f07002f; + public static final int abc_list_selector_disabled_holo_light=0x7f070030; + public static final int abc_list_selector_holo_dark=0x7f070031; + public static final int abc_list_selector_holo_light=0x7f070032; + public static final int abc_menu_hardkey_panel_mtrl_mult=0x7f070033; + public static final int abc_popup_background_mtrl_mult=0x7f070034; + public static final int abc_ratingbar_full_material=0x7f070035; + public static final int abc_ratingbar_indicator_material=0x7f070036; + public static final int abc_ratingbar_small_material=0x7f070037; + public static final int abc_scrubber_control_off_mtrl_alpha=0x7f070038; + public static final int abc_scrubber_control_to_pressed_mtrl_000=0x7f070039; + public static final int abc_scrubber_control_to_pressed_mtrl_005=0x7f07003a; + public static final int abc_scrubber_primary_mtrl_alpha=0x7f07003b; + public static final int abc_scrubber_track_mtrl_alpha=0x7f07003c; + public static final int abc_seekbar_thumb_material=0x7f07003d; + public static final int abc_seekbar_track_material=0x7f07003e; + public static final int abc_spinner_mtrl_am_alpha=0x7f07003f; + public static final int abc_spinner_textfield_background_material=0x7f070040; + public static final int abc_switch_thumb_material=0x7f070041; + public static final int abc_switch_track_mtrl_alpha=0x7f070042; + public static final int abc_tab_indicator_material=0x7f070043; + public static final int abc_tab_indicator_mtrl_alpha=0x7f070044; + public static final int abc_text_cursor_material=0x7f070045; + public static final int abc_textfield_activated_mtrl_alpha=0x7f070046; + public static final int abc_textfield_default_mtrl_alpha=0x7f070047; + public static final int abc_textfield_search_activated_mtrl_alpha=0x7f070048; + public static final int abc_textfield_search_default_mtrl_alpha=0x7f070049; + public static final int abc_textfield_search_material=0x7f07004a; + public static final int action_search=0x7f07004b; + public static final int app_logo=0x7f07004c; + public static final int back=0x7f07004d; + public static final int btn_channels=0x7f07004e; + public static final int btn_circle=0x7f07004f; + public static final int btn_circle_disable=0x7f070050; + public static final int btn_circle_disable_focused=0x7f070051; + public static final int btn_circle_normal=0x7f070052; + public static final int btn_circle_pressed=0x7f070053; + public static final int btn_circle_selected=0x7f070054; + public static final int btn_clock=0x7f070055; + public static final int btn_epglist=0x7f070056; + public static final int btn_recordings=0x7f070057; + public static final int btn_remote=0x7f070058; + public static final int btn_search=0x7f070059; + public static final int btn_search_times=0x7f07005a; + public static final int btn_timer=0x7f07005b; + public static final int btn_wakeup=0x7f07005c; + public static final int drawer_shadow=0x7f07005d; + public static final int folder=0x7f07005e; + public static final int ic_btn_round_minus=0x7f07005f; + public static final int ic_btn_round_plus=0x7f070060; + public static final int ic_drawer=0x7f070061; + public static final int ic_drive=0x7f070062; + public static final int ic_menu_3d_globe=0x7f070063; + public static final int ic_menu_back=0x7f070064; + public static final int ic_menu_filter=0x7f070065; + public static final int ic_menu_forward=0x7f070066; + public static final int ic_menu_goto=0x7f070067; + public static final int ic_menu_moreoverflow=0x7f070068; + public static final int ic_menu_play_clip=0x7f070069; + public static final int ic_menu_recent_history=0x7f07006a; + public static final int ic_menu_refresh=0x7f07006b; + public static final int ic_menu_revert=0x7f07006c; + public static final int ic_menu_video=0x7f07006d; + public static final int ic_menu_view=0x7f07006e; + public static final int ic_video_small=0x7f07006f; + public static final int ic_volume_small=0x7f070070; + public static final int icon=0x7f070071; + public static final int imdb=0x7f070072; + public static final int left=0x7f070073; + public static final int line_gradient=0x7f070074; + public static final int newrecording=0x7f070075; + public static final int notification_template_icon_bg=0x7f070076; + public static final int omdb=0x7f070077; + public static final int red_button=0x7f070078; + public static final int right=0x7f070079; + public static final int roundedbutton=0x7f07007a; + public static final int sad=0x7f07007b; + public static final int schere=0x7f07007c; + public static final int timer=0x7f07007d; + public static final int timer_active=0x7f07007e; + public static final int timer_active_begin=0x7f07007f; + public static final int timer_active_conflict=0x7f070080; + public static final int timer_active_end=0x7f070081; + public static final int timer_inactive=0x7f070082; + public static final int timer_inactive_begin=0x7f070083; + public static final int timer_inactive_end=0x7f070084; + public static final int timer_none=0x7f070085; + public static final int timer_recording=0x7f070086; + public static final int timer_recording_begin=0x7f070087; + public static final int timer_recording_conflict=0x7f070088; + public static final int timer_recording_end=0x7f070089; + public static final int timer_vps=0x7f07008a; + public static final int tmdb=0x7f07008b; + public static final int tv=0x7f07008c; + public static final int vdr_logo=0x7f07008d; + } + public static final class id { + public static final int ChannelDown=0x7f080000; + public static final int ChannelUp=0x7f080001; + public static final int LinearLayout01=0x7f080002; + public static final int Power=0x7f080003; + public static final int VolumeDown=0x7f080004; + public static final int VolumeUp=0x7f080005; + public static final int action0=0x7f080006; + public static final int action_bar=0x7f080007; + public static final int action_bar_activity_content=0x7f080008; + public static final int action_bar_container=0x7f080009; + public static final int action_bar_root=0x7f08000a; + public static final int action_bar_spinner=0x7f08000b; + public static final int action_bar_subtitle=0x7f08000c; + public static final int action_bar_title=0x7f08000d; + public static final int action_context_bar=0x7f08000e; + public static final int action_divider=0x7f08000f; + public static final int action_menu_channels=0x7f080010; + public static final int action_menu_divider=0x7f080011; + public static final int action_menu_epg=0x7f080012; + public static final int action_menu_presenter=0x7f080013; + public static final int action_menu_recordings=0x7f080014; + public static final int action_menu_remote=0x7f080015; + public static final int action_menu_timers=0x7f080016; + public static final int action_menu_wakeup=0x7f080017; + public static final int action_mode_bar=0x7f080018; + public static final int action_mode_bar_stub=0x7f080019; + public static final int action_mode_close_button=0x7f08001a; + public static final int activity_chooser_view_content=0x7f08001b; + public static final int alertTitle=0x7f08001c; + public static final int always=0x7f08001d; + public static final int audio_block=0x7f08001e; + public static final int audio_image=0x7f08001f; + public static final int beginning=0x7f080020; + public static final int blue=0x7f080021; + public static final int button=0x7f080022; + public static final int button6=0x7f080023; + public static final int button7=0x7f080024; + public static final int buttonPanel=0x7f080025; + public static final int cancel_action=0x7f080026; + public static final int channel_audio=0x7f080027; + public static final int channel_aux=0x7f080028; + public static final int channel_count=0x7f080029; + public static final int channel_group_menu_hide=0x7f08002a; + public static final int channel_group_menu_hide_permanent=0x7f08002b; + public static final int channel_info=0x7f08002c; + public static final int channel_item=0x7f08002d; + public static final int channel_item_menu_stream=0x7f08002e; + public static final int channel_item_menu_switch=0x7f08002f; + public static final int channel_list=0x7f080030; + public static final int channel_name=0x7f080031; + public static final int channel_type=0x7f080032; + public static final int channels_groupby=0x7f080033; + public static final int channels_recent_channels=0x7f080034; + public static final int checkbox=0x7f080035; + public static final int chronometer=0x7f080036; + public static final int collapseActionView=0x7f080037; + public static final int colorButtons=0x7f080038; + public static final int contentPanel=0x7f080039; + public static final int count=0x7f08003a; + public static final int current_count=0x7f08003b; + public static final int custom=0x7f08003c; + public static final int customPanel=0x7f08003d; + public static final int decor_content_parent=0x7f08003e; + public static final int default_activity_button=0x7f08003f; + public static final int disableHome=0x7f080040; + public static final int down=0x7f080041; + public static final int drawer_layout=0x7f080042; + public static final int drive_info=0x7f080043; + public static final int drive_info_pb=0x7f080044; + public static final int driver_info_container=0x7f080045; + public static final int edit=0x7f080046; + public static final int edit_query=0x7f080047; + public static final int empty_view=0x7f080048; + public static final int end=0x7f080049; + public static final int end_padder=0x7f08004a; + public static final int epg_detail_audio=0x7f08004b; + public static final int epg_detail_cats=0x7f08004c; + public static final int epg_detail_channel=0x7f08004d; + public static final int epg_detail_description=0x7f08004e; + public static final int epg_detail_description_scroll=0x7f08004f; + public static final int epg_detail_duration=0x7f080050; + public static final int epg_detail_progress=0x7f080051; + public static final int epg_detail_separator_0=0x7f080052; + public static final int epg_detail_separator_2=0x7f080053; + public static final int epg_detail_separator_3=0x7f080054; + public static final int epg_detail_shorttext=0x7f080055; + public static final int epg_detail_time=0x7f080056; + public static final int epg_detail_time_channel=0x7f080057; + public static final int epg_detail_title=0x7f080058; + public static final int epg_details_menu_add_to_cal=0x7f080059; + public static final int epg_details_menu_search_repeat=0x7f08005a; + public static final int epg_details_menu_share=0x7f08005b; + public static final int epg_details_menu_switch=0x7f08005c; + public static final int epg_event_create_timer=0x7f08005d; + public static final int epg_event_imdb=0x7f08005e; + public static final int epg_event_livetv=0x7f08005f; + public static final int epg_event_omdb=0x7f080060; + public static final int epg_event_tmdb=0x7f080061; + public static final int epg_item_menu_live_tv=0x7f080062; + public static final int epg_item_menu_switchto=0x7f080063; + public static final int epg_item_menu_timer_add=0x7f080064; + public static final int epg_item_menu_timer_delete=0x7f080065; + public static final int epg_item_menu_timer_modify=0x7f080066; + public static final int epg_item_menu_timer_toggle=0x7f080067; + public static final int epg_list_channel_spinner=0x7f080068; + public static final int epg_list_search_label=0x7f080069; + public static final int epg_list_sort_menu=0x7f08006a; + public static final int epg_list_stream=0x7f08006b; + public static final int epg_list_time_label=0x7f08006c; + public static final int epg_list_time_spinner=0x7f08006d; + public static final int epg_list_times=0x7f08006e; + public static final int epg_search=0x7f08006f; + public static final int epg_search_button=0x7f080070; + public static final int epg_search_text=0x7f080071; + public static final int epg_search_time_delete=0x7f080072; + public static final int epg_search_times_add=0x7f080073; + public static final int epg_search_times_list=0x7f080074; + public static final int epg_search_title=0x7f080075; + public static final int epg_timer_state=0x7f080076; + public static final int event_item_description=0x7f080077; + public static final int expand_activities_button=0x7f080078; + public static final int expanded_menu=0x7f080079; + public static final int exprt=0x7f08007a; + public static final int filter=0x7f08007b; + public static final int first_row=0x7f08007c; + public static final int flipper=0x7f08007d; + public static final int folder_info=0x7f08007e; + public static final int green=0x7f08007f; + public static final int group_name=0x7f080080; + public static final int header_item=0x7f080081; + public static final int hitk=0x7f080082; + public static final int hitkLabel=0x7f080083; + public static final int hitkSpinner=0x7f080084; + public static final int home=0x7f080085; + public static final int homeAsUp=0x7f080086; + public static final int horizontal=0x7f080087; + public static final int icon=0x7f080088; + public static final int ifRoom=0x7f080089; + public static final int image=0x7f08008a; + public static final int imprt=0x7f08008b; + public static final int info=0x7f08008c; + public static final int item_touch_helper_previous_elevation=0x7f08008d; + public static final int layout=0x7f08008e; + public static final int left=0x7f08008f; + public static final int left_drawer=0x7f080090; + public static final int line1=0x7f080091; + public static final int line3=0x7f080092; + public static final int list=0x7f080093; + public static final int listMode=0x7f080094; + public static final int list_filter=0x7f080095; + public static final int list_item=0x7f080096; + public static final int list_refresh=0x7f080097; + public static final int main_content=0x7f080098; + public static final int main_logo=0x7f080099; + public static final int main_menu_clear_search=0x7f08009a; + public static final int main_menu_exit=0x7f08009b; + public static final int main_menu_goto=0x7f08009c; + public static final int main_menu_info=0x7f08009d; + public static final int main_menu_preferences=0x7f08009e; + public static final int main_menu_vdrlist_restore=0x7f08009f; + public static final int media_actions=0x7f0800a0; + public static final int menu_search=0x7f0800a1; + public static final int middle=0x7f0800a2; + public static final int multiply=0x7f0800a3; + public static final int navigation=0x7f0800a4; + public static final int never=0x7f0800a5; + public static final int new_vdr=0x7f0800a6; + public static final int no_connection_layout=0x7f0800a7; + public static final int none=0x7f0800a8; + public static final int normal=0x7f0800a9; + public static final int ok=0x7f0800aa; + public static final int parentPanel=0x7f0800ab; + public static final int progress_circular=0x7f0800ac; + public static final int progress_horizontal=0x7f0800ad; + public static final int radio=0x7f0800ae; + public static final int rec_folder_info=0x7f0800af; + public static final int recording_item_menu_delete=0x7f0800b0; + public static final int recording_item_menu_stream=0x7f0800b1; + public static final int recording_list=0x7f0800b2; + public static final int red=0x7f0800b3; + public static final int remapback=0x7f0800b4; + public static final int remoteroot=0x7f0800b5; + public static final int reset=0x7f0800b6; + public static final int result=0x7f0800b7; + public static final int resultwrapper=0x7f0800b8; + public static final int retry_button=0x7f0800b9; + public static final int right=0x7f0800ba; + public static final int root=0x7f0800bb; + public static final int rows0=0x7f0800bc; + public static final int rows1=0x7f0800bd; + public static final int rows2=0x7f0800be; + public static final int screen=0x7f0800bf; + public static final int scrollIndicatorDown=0x7f0800c0; + public static final int scrollIndicatorUp=0x7f0800c1; + public static final int scrollView=0x7f0800c2; + public static final int search_badge=0x7f0800c3; + public static final int search_bar=0x7f0800c4; + public static final int search_box=0x7f0800c5; + public static final int search_button=0x7f0800c6; + public static final int search_close_btn=0x7f0800c7; + public static final int search_edit_frame=0x7f0800c8; + public static final int search_go_btn=0x7f0800c9; + public static final int search_mag_icon=0x7f0800ca; + public static final int search_plate=0x7f0800cb; + public static final int search_src_text=0x7f0800cc; + public static final int search_voice_btn=0x7f0800cd; + public static final int select_dialog_listview=0x7f0800ce; + public static final int shortcut=0x7f0800cf; + public static final int showCustom=0x7f0800d0; + public static final int showHome=0x7f0800d1; + public static final int showTitle=0x7f0800d2; + public static final int spacer=0x7f0800d3; + public static final int split_action_bar=0x7f0800d4; + public static final int src_atop=0x7f0800d5; + public static final int src_in=0x7f0800d6; + public static final int src_over=0x7f0800d7; + public static final int status_bar_latest_event_content=0x7f0800d8; + public static final int submit_area=0x7f0800d9; + public static final int switch_epg_view=0x7f0800da; + public static final int tabMode=0x7f0800db; + public static final int text=0x7f0800dc; + public static final int text2=0x7f0800dd; + public static final int textSpacerNoButtons=0x7f0800de; + public static final int time=0x7f0800df; + public static final int timer_block=0x7f0800e0; + public static final int timer_detail_channel=0x7f0800e1; + public static final int timer_detail_channel_title=0x7f0800e2; + public static final int timer_detail_day=0x7f0800e3; + public static final int timer_detail_end=0x7f0800e4; + public static final int timer_detail_end_title=0x7f0800e5; + public static final int timer_detail_fill=0x7f0800e6; + public static final int timer_detail_layout=0x7f0800e7; + public static final int timer_detail_lifetime=0x7f0800e8; + public static final int timer_detail_priority=0x7f0800e9; + public static final int timer_detail_repeat=0x7f0800ea; + public static final int timer_detail_scroll=0x7f0800eb; + public static final int timer_detail_start=0x7f0800ec; + public static final int timer_detail_start_daytime=0x7f0800ed; + public static final int timer_detail_start_title=0x7f0800ee; + public static final int timer_detail_title=0x7f0800ef; + public static final int timer_detail_title_title=0x7f0800f0; + public static final int timer_detail_vps=0x7f0800f1; + public static final int timer_details_cancel=0x7f0800f2; + public static final int timer_details_modify=0x7f0800f3; + public static final int timer_details_save=0x7f0800f4; + public static final int timer_item=0x7f0800f5; + public static final int timer_item_channel=0x7f0800f6; + public static final int timer_item_duration=0x7f0800f7; + public static final int timer_item_other=0x7f0800f8; + public static final int timer_item_shorttext=0x7f0800f9; + public static final int timer_item_state=0x7f0800fa; + public static final int timer_item_time=0x7f0800fb; + public static final int timer_item_title=0x7f0800fc; + public static final int timer_list=0x7f0800fd; + public static final int timer_menu_add=0x7f0800fe; + public static final int timer_progress=0x7f0800ff; + public static final int title=0x7f080100; + public static final int title_template=0x7f080101; + public static final int topPanel=0x7f080102; + public static final int triangle=0x7f080103; + public static final int underline=0x7f080104; + public static final int up=0x7f080105; + public static final int useLogo=0x7f080106; + public static final int vdr_list=0x7f080107; + public static final int vdrmanager_menu_item=0x7f080108; + public static final int vertical=0x7f080109; + public static final int video_button=0x7f08010a; + public static final int video_video=0x7f08010b; + public static final int viewpager=0x7f08010c; + public static final int whatson_list=0x7f08010d; + public static final int whatson_time=0x7f08010e; + public static final int withText=0x7f08010f; + public static final int wrap_content=0x7f080110; + public static final int yellow=0x7f080111; + } + public static final class integer { + public static final int abc_config_activityDefaultDur=0x7f090000; + public static final int abc_config_activityShortDur=0x7f090001; + public static final int abc_max_action_buttons=0x7f090002; + public static final int cancel_button_image_alpha=0x7f090003; + public static final int default_circle_indicator_orientation=0x7f090004; + public static final int default_title_indicator_footer_indicator_style=0x7f090005; + public static final int status_bar_notification_info_maxnum=0x7f090006; + public static final int svdrp_default_port=0x7f090007; + } + public static final class layout { + public static final int abc_action_bar_title_item=0x7f0a0000; + public static final int abc_action_bar_up_container=0x7f0a0001; + public static final int abc_action_bar_view_list_nav_layout=0x7f0a0002; + public static final int abc_action_menu_item_layout=0x7f0a0003; + public static final int abc_action_menu_layout=0x7f0a0004; + public static final int abc_action_mode_bar=0x7f0a0005; + public static final int abc_action_mode_close_item_material=0x7f0a0006; + public static final int abc_activity_chooser_view=0x7f0a0007; + public static final int abc_activity_chooser_view_list_item=0x7f0a0008; + public static final int abc_alert_dialog_button_bar_material=0x7f0a0009; + public static final int abc_alert_dialog_material=0x7f0a000a; + public static final int abc_dialog_title_material=0x7f0a000b; + public static final int abc_expanded_menu_layout=0x7f0a000c; + public static final int abc_list_menu_item_checkbox=0x7f0a000d; + public static final int abc_list_menu_item_icon=0x7f0a000e; + public static final int abc_list_menu_item_layout=0x7f0a000f; + public static final int abc_list_menu_item_radio=0x7f0a0010; + public static final int abc_popup_menu_item_layout=0x7f0a0011; + public static final int abc_screen_content_include=0x7f0a0012; + public static final int abc_screen_simple=0x7f0a0013; + public static final int abc_screen_simple_overlay_action_mode=0x7f0a0014; + public static final int abc_screen_toolbar=0x7f0a0015; + public static final int abc_search_dropdown_item_icons_2line=0x7f0a0016; + public static final int abc_search_view=0x7f0a0017; + public static final int abc_select_dialog_material=0x7f0a0018; + public static final int channel_item=0x7f0a0019; + public static final int channel_list=0x7f0a001a; + public static final int channel_list_fragment=0x7f0a001b; + public static final int child_layout=0x7f0a001c; + public static final int dialog_dropdown=0x7f0a001d; + public static final int drawer_list_item=0x7f0a001e; + public static final int edit_remote_key=0x7f0a001f; + public static final int epg_detail=0x7f0a0020; + public static final int epg_event_item=0x7f0a0021; + public static final int epg_search=0x7f0a0022; + public static final int epg_search_times_item=0x7f0a0023; + public static final int epg_search_times_list=0x7f0a0024; + public static final int epgdetails=0x7f0a0025; + public static final int event_epg_list=0x7f0a0026; + public static final int fetch_preference=0x7f0a0027; + public static final int folder_item=0x7f0a0028; + public static final int group_layout=0x7f0a0029; + public static final int header_item=0x7f0a002a; + public static final int left_drawer=0x7f0a002b; + public static final int main=0x7f0a002c; + public static final int no_connection=0x7f0a002d; + public static final int notification_media_action=0x7f0a002e; + public static final int notification_media_cancel_action=0x7f0a002f; + public static final int notification_template_big_media=0x7f0a0030; + public static final int notification_template_big_media_narrow=0x7f0a0031; + public static final int notification_template_lines=0x7f0a0032; + public static final int notification_template_media=0x7f0a0033; + public static final int notification_template_part_chronometer=0x7f0a0034; + public static final int notification_template_part_time=0x7f0a0035; + public static final int recording_detail=0x7f0a0036; + public static final int recording_list=0x7f0a0037; + public static final int recycler_buffer_item=0x7f0a0038; + public static final int recycler_itemviews=0x7f0a0039; + public static final int remote=0x7f0a003a; + public static final int search_epg_list=0x7f0a003b; + public static final int select_dialog_item_material=0x7f0a003c; + public static final int select_dialog_multichoice_material=0x7f0a003d; + public static final int select_dialog_singlechoice_material=0x7f0a003e; + public static final int support_simple_spinner_dropdown_item=0x7f0a003f; + public static final int time_epg_list=0x7f0a0040; + public static final int timer_detail=0x7f0a0041; + public static final int timer_list=0x7f0a0042; + public static final int timer_operation_list_item=0x7f0a0043; + public static final int vdr_list_add_delete=0x7f0a0044; + public static final int vdrlist=0x7f0a0045; + public static final int vdrmanager=0x7f0a0046; + public static final int vdrmanager_menu_item=0x7f0a0047; + public static final int video=0x7f0a0048; + } + public static final class menu { + public static final int channel_list_group_menu=0x7f0b0000; + public static final int channel_list_item_menu=0x7f0b0001; + public static final int channellist=0x7f0b0002; + public static final int epg_details=0x7f0b0003; + public static final int epg_event_list_menu=0x7f0b0004; + public static final int epg_list_item_menu=0x7f0b0005; + public static final int epg_list_menu=0x7f0b0006; + public static final int epg_search_menu=0x7f0b0007; + public static final int epg_search_time_item_menu=0x7f0b0008; + public static final int main_menu=0x7f0b0009; + public static final int recording_list_item_menu=0x7f0b000a; + public static final int recording_list_menu=0x7f0b000b; + public static final int refresh_filter_menu=0x7f0b000c; + public static final int refresh_menu=0x7f0b000d; + public static final int remote_menu=0x7f0b000e; + public static final int timer_list_menu=0x7f0b000f; + public static final int vdrlist=0x7f0b0010; + } + public static final class raw { + public static final int ormlite_config=0x7f0c0000; + } + public static final class string { + public static final int Content_Adult_Movie__Drama=0x7f0d0000; + public static final int Content_Adventure__Western__War=0x7f0d0001; + public static final int Content_Advertisement__Shopping=0x7f0d0002; + public static final int Content_Arts__Culture=0x7f0d0003; + public static final int Content_Arts__Culture_Magazine=0x7f0d0004; + public static final int Content_Athletics=0x7f0d0005; + public static final int Content_Ballet=0x7f0d0006; + public static final int Content_Black_and_White=0x7f0d0007; + public static final int Content_Broadcasting__Press=0x7f0d0008; + public static final int Content_Cartoons__Puppets=0x7f0d0009; + public static final int Content_Childrens__Youth_Programme=0x7f0d000a; + public static final int Content_Comedy=0x7f0d000b; + public static final int Content_Cooking=0x7f0d000c; + public static final int Content_Detective__Thriller=0x7f0d000d; + public static final int Content_Discussion__Inverview__Debate=0x7f0d000e; + public static final int Content_Documentary=0x7f0d000f; + public static final int Content_Economics__Social_Advisory=0x7f0d0010; + public static final int Content_Education__Science__Factual=0x7f0d0011; + public static final int Content_Entertainment_Programme_for_10_to_16=0x7f0d0012; + public static final int Content_Entertainment_Programme_for_6_to_14=0x7f0d0013; + public static final int Content_Equestrian=0x7f0d0014; + public static final int Content_Experimental_Film__Video=0x7f0d0015; + public static final int Content_Fashion=0x7f0d0016; + public static final int Content_Film__Cinema=0x7f0d0017; + public static final int Content_Fine_Arts=0x7f0d0018; + public static final int Content_Fitness_and_Health=0x7f0d0019; + public static final int Content_Folk__Tradional_Music=0x7f0d001a; + public static final int Content_Football__Soccer=0x7f0d001b; + public static final int Content_Foreign_Countries__Expeditions=0x7f0d001c; + public static final int Content_Further_Education=0x7f0d001d; + public static final int Content_Game_Show__Quiz__Contest=0x7f0d001e; + public static final int Content_Gardening=0x7f0d001f; + public static final int Content_Handicraft=0x7f0d0020; + public static final int Content_Informational__Educational__School_Programme=0x7f0d0021; + public static final int Content_Jazz=0x7f0d0022; + public static final int Content_Languages=0x7f0d0023; + public static final int Content_Leisure__Hobbies=0x7f0d0024; + public static final int Content_Literature=0x7f0d0025; + public static final int Content_Live_Broadcast=0x7f0d0026; + public static final int Content_Magazine__Report__Documentary=0x7f0d0027; + public static final int Content_Martial_Sports=0x7f0d0028; + public static final int Content_Medicine__Physiology__Psychology=0x7f0d0029; + public static final int Content_Motor_Sport=0x7f0d002a; + public static final int Content_Motoring=0x7f0d002b; + public static final int Content_Movie__Drama=0x7f0d002c; + public static final int Content_Music__Ballet__Dance=0x7f0d002d; + public static final int Content_Musical__Opera=0x7f0d002e; + public static final int Content_Nature__Animals__Environment=0x7f0d002f; + public static final int Content_New_Media=0x7f0d0030; + public static final int Content_News_Magazine=0x7f0d0031; + public static final int Content_News__Current_Affairs=0x7f0d0032; + public static final int Content_News__Weather_Report=0x7f0d0033; + public static final int Content_Original_Language=0x7f0d0034; + public static final int Content_Performing_Arts=0x7f0d0035; + public static final int Content_Popular_Culture__Traditional_Arts=0x7f0d0036; + public static final int Content_Preschool_Childrens_Programme=0x7f0d0037; + public static final int Content_Religion=0x7f0d0038; + public static final int Content_Remarkable_People=0x7f0d0039; + public static final int Content_Rock__Pop=0x7f0d003a; + public static final int Content_Romance=0x7f0d003b; + public static final int Content_Science_Fiction__Fantasy__Horror=0x7f0d003c; + public static final int Content_Serious__Classical_Music=0x7f0d003d; + public static final int Content_Serious__Classical__Religious__Historical_Movie__Drama=0x7f0d003e; + public static final int Content_Show__Game_Show=0x7f0d003f; + public static final int Content_Soap__Melodrama__Folkloric=0x7f0d0040; + public static final int Content_Social__Political__Economics=0x7f0d0041; + public static final int Content_Social__Spiritual_Sciences=0x7f0d0042; + public static final int Content_Special_Event=0x7f0d0043; + public static final int Content_Sport_Magazine=0x7f0d0044; + public static final int Content_Sports=0x7f0d0045; + public static final int Content_Talk_Show=0x7f0d0046; + public static final int Content_Team_Sports=0x7f0d0047; + public static final int Content_Technology__Natural_Sciences=0x7f0d0048; + public static final int Content_Tennis__Squash=0x7f0d0049; + public static final int Content_Tourism__Travel=0x7f0d004a; + public static final int Content_Unknown=0x7f0d004b; + public static final int Content_Unpublished=0x7f0d004c; + public static final int Content_Variety_Show=0x7f0d004d; + public static final int Content_Water_Sport=0x7f0d004e; + public static final int Content_Winter_Sports=0x7f0d004f; + public static final int abc_action_bar_home_description=0x7f0d0050; + public static final int abc_action_bar_home_description_format=0x7f0d0051; + public static final int abc_action_bar_home_subtitle_description_format=0x7f0d0052; + public static final int abc_action_bar_up_description=0x7f0d0053; + public static final int abc_action_menu_overflow_description=0x7f0d0054; + public static final int abc_action_mode_done=0x7f0d0055; + public static final int abc_activity_chooser_view_see_all=0x7f0d0056; + public static final int abc_activitychooserview_choose_application=0x7f0d0057; + public static final int abc_capital_off=0x7f0d0058; + public static final int abc_capital_on=0x7f0d0059; + public static final int abc_search_hint=0x7f0d005a; + public static final int abc_searchview_description_clear=0x7f0d005b; + public static final int abc_searchview_description_query=0x7f0d005c; + public static final int abc_searchview_description_search=0x7f0d005d; + public static final int abc_searchview_description_submit=0x7f0d005e; + public static final int abc_searchview_description_voice=0x7f0d005f; + public static final int abc_shareactionprovider_share_with=0x7f0d0060; + public static final int abc_shareactionprovider_share_with_application=0x7f0d0061; + public static final int abc_toolbar_collapse_description=0x7f0d0062; + public static final int aborted=0x7f0d0063; + public static final int about_text=0x7f0d0064; + public static final int about_title=0x7f0d0065; + public static final int action_menu_channels=0x7f0d0066; + public static final int action_menu_epg=0x7f0d0067; + public static final int action_menu_recordings=0x7f0d0068; + public static final int action_menu_remote=0x7f0d0069; + public static final int action_menu_search=0x7f0d006a; + public static final int action_menu_timers=0x7f0d006b; + public static final int action_menu_wakeup=0x7f0d006c; + public static final int action_websearch=0x7f0d006d; + public static final int addtocal=0x7f0d006e; + public static final int alive_check_enabled_key=0x7f0d006f; + public static final int alive_check_interval_key=0x7f0d0070; + public static final int app_name=0x7f0d0071; + public static final int audio_track_dolby=0x7f0d0072; + public static final int audio_tracks_template=0x7f0d0073; + public static final int certificate_accept_once=0x7f0d0074; + public static final int certificate_accepted_forever=0x7f0d0075; + public static final int certificate_not_accepted=0x7f0d0076; + public static final int certificate_problem_message_text=0x7f0d0077; + public static final int certificate_problem_message_title=0x7f0d0078; + public static final int channel_filter_filter_key=0x7f0d0079; + public static final int channel_filter_filter_summary=0x7f0d007a; + public static final int channel_filter_filter_title=0x7f0d007b; + public static final int channel_filter_last_key=0x7f0d007c; + public static final int channel_filter_last_summary=0x7f0d007d; + public static final int channel_filter_last_title=0x7f0d007e; + public static final int channel_filter_preferences=0x7f0d007f; + public static final int channel_group_menu_hide=0x7f0d0080; + public static final int channel_group_menu_hide_permanent=0x7f0d0081; + public static final int channel_item_menu_epg=0x7f0d0082; + public static final int channel_item_menu_hide=0x7f0d0083; + public static final int channel_item_menu_hide_permanent=0x7f0d0084; + public static final int channel_item_menu_stream=0x7f0d0085; + public static final int channel_item_menu_switch=0x7f0d0086; + public static final int channels_window_title_count=0x7f0d0087; + public static final int choose=0x7f0d0088; + public static final int clear_term_after_search_key=0x7f0d0089; + public static final int clear_term_after_search_summary_off=0x7f0d008a; + public static final int clear_term_after_search_summary_on=0x7f0d008b; + public static final int clear_term_after_search_title=0x7f0d008c; + public static final int common_delete=0x7f0d008d; + public static final int current_vdr_id_key=0x7f0d008e; + public static final int day_concat=0x7f0d008f; + public static final int default_wakeup_method=0x7f0d0090; + public static final int done=0x7f0d0091; + public static final int drawer_close=0x7f0d0092; + public static final int drawer_open=0x7f0d0093; + public static final int drive_img=0x7f0d0094; + public static final int drive_info=0x7f0d0095; + public static final int epg_by_channel=0x7f0d0096; + public static final int epg_by_search=0x7f0d0097; + public static final int epg_by_search_param=0x7f0d0098; + public static final int epg_by_time=0x7f0d0099; + public static final int epg_by_time_args=0x7f0d009a; + public static final int epg_client_errors=0x7f0d009b; + public static final int epg_duration_template=0x7f0d009c; + public static final int epg_duration_template_live=0x7f0d009d; + public static final int epg_eent_livetv_text=0x7f0d009e; + public static final int epg_event_create_timer_text=0x7f0d009f; + public static final int epg_event_imdb_text=0x7f0d00a0; + public static final int epg_event_modify_timer_text=0x7f0d00a1; + public static final int epg_event_omdb_text=0x7f0d00a2; + public static final int epg_event_share_text=0x7f0d00a3; + public static final int epg_event_tmdb_text=0x7f0d00a4; + public static final int epg_item_menu_timer_add=0x7f0d00a5; + public static final int epg_item_menu_timer_delete=0x7f0d00a6; + public static final int epg_item_menu_timer_disable=0x7f0d00a7; + public static final int epg_item_menu_timer_enable=0x7f0d00a8; + public static final int epg_item_menu_timer_modify=0x7f0d00a9; + public static final int epg_item_menu_timer_record=0x7f0d00aa; + public static final int epg_list_channel_spinner=0x7f0d00ab; + public static final int epg_list_search_label=0x7f0d00ac; + public static final int epg_list_time_adhoc=0x7f0d00ad; + public static final int epg_list_time_label=0x7f0d00ae; + public static final int epg_list_time_next=0x7f0d00af; + public static final int epg_list_time_now=0x7f0d00b0; + public static final int epg_menu_search=0x7f0d00b1; + public static final int epg_menu_times=0x7f0d00b2; + public static final int epg_no_items=0x7f0d00b3; + public static final int epg_of_a_channel=0x7f0d00b4; + public static final int epg_search_button=0x7f0d00b5; + public static final int epg_search_settings_description=0x7f0d00b6; + public static final int epg_search_times_add=0x7f0d00b7; + public static final int epg_search_times_key=0x7f0d00b8; + public static final int epg_search_times_window=0x7f0d00b9; + public static final int epg_window_title_count=0x7f0d00ba; + public static final int every_day=0x7f0d00bb; + public static final int export_custom_key_mapping=0x7f0d00bc; + public static final int filter=0x7f0d00bd; + public static final int generic_confirm_title=0x7f0d00be; + public static final int generic_progress_title=0x7f0d00bf; + public static final int groupby_channel=0x7f0d00c0; + public static final int groupby_date=0x7f0d00c1; + public static final int groupby_group=0x7f0d00c2; + public static final int groupby_name=0x7f0d00c3; + public static final int groupby_name_all_channels_group=0x7f0d00c4; + public static final int groupby_provider=0x7f0d00c5; + public static final int groupby_source=0x7f0d00c6; + public static final int groupby_window_title_templte=0x7f0d00c7; + public static final int gui_channels_show_channel_numbers_key=0x7f0d00c8; + public static final int gui_channels_show_channel_numbers_summary=0x7f0d00c9; + public static final int gui_channels_show_channel_numbers_title=0x7f0d00ca; + public static final int gui_custom_locale_key=0x7f0d00cb; + public static final int gui_custom_locale_sum=0x7f0d00cc; + public static final int gui_custom_locale_title=0x7f0d00cd; + public static final int gui_enable_24h_format_key=0x7f0d00ce; + public static final int gui_enable_24h_format_summary_off=0x7f0d00cf; + public static final int gui_enable_24h_format_summary_on=0x7f0d00d0; + public static final int gui_enable_24h_format_title=0x7f0d00d1; + public static final int gui_max_recent_channels_key=0x7f0d00d2; + public static final int gui_max_recent_channels_summary=0x7f0d00d3; + public static final int gui_max_recent_channels_title=0x7f0d00d4; + public static final int gui_preferences=0x7f0d00d5; + public static final int gui_quit_on_back_summary_off=0x7f0d00d6; + public static final int gui_quit_on_back_summary_on=0x7f0d00d7; + public static final int gui_quit_on_back_title=0x7f0d00d8; + public static final int gui_recent_channels_order_summary=0x7f0d00d9; + public static final int gui_recent_channels_order_title=0x7f0d00da; + public static final int hitkcommand=0x7f0d00db; + public static final int key_remux_command=0x7f0d00dc; + public static final int key_remux_enable=0x7f0d00dd; + public static final int key_remux_parameter=0x7f0d00de; + public static final int label=0x7f0d00df; + public static final int livetv=0x7f0d00e0; + public static final int main_menu_clear_search=0x7f0d00e1; + public static final int main_menu_exit=0x7f0d00e2; + public static final int main_menu_goto=0x7f0d00e3; + public static final int main_menu_goto_no_vdr=0x7f0d00e4; + public static final int main_menu_goto_title=0x7f0d00e5; + public static final int main_menu_info=0x7f0d00e6; + public static final int main_menu_preferences=0x7f0d00e7; + public static final int main_menu_switched_to=0x7f0d00e8; + public static final int menu_exprt=0x7f0d00e9; + public static final int menu_groupby=0x7f0d00ea; + public static final int menu_imprt=0x7f0d00eb; + public static final int menu_remapback=0x7f0d00ec; + public static final int menu_reset=0x7f0d00ed; + public static final int navigae_at_the_end=0x7f0d00ee; + public static final int navigae_at_the_start=0x7f0d00ef; + public static final int never=0x7f0d00f0; + public static final int new_timer=0x7f0d00f1; + public static final int new_vdr=0x7f0d00f2; + public static final int no_connection=0x7f0d00f3; + public static final int no_connection_retry=0x7f0d00f4; + public static final int no_internet_connection=0x7f0d00f5; + public static final int no_results=0x7f0d00f6; + public static final int no_vdr=0x7f0d00f7; + public static final int not_yet_implemented=0x7f0d00f8; + public static final int prefs_current_value=0x7f0d00f9; + public static final int prefs_current_value_not_set=0x7f0d00fa; + public static final int prefs_current_value_template=0x7f0d00fb; + public static final int probing=0x7f0d00fc; + public static final int processing=0x7f0d00fd; + public static final int progress_cache_hit=0x7f0d00fe; + public static final int progress_channels_loading=0x7f0d00ff; + public static final int progress_connect=0x7f0d0100; + public static final int progress_connect_error=0x7f0d0101; + public static final int progress_connect_finished_abnormal=0x7f0d0102; + public static final int progress_connect_finished_abnormal_arg=0x7f0d0103; + public static final int progress_connect_timeout=0x7f0d0104; + public static final int progress_disconnect=0x7f0d0105; + public static final int progress_loading=0x7f0d0106; + public static final int progress_login=0x7f0d0107; + public static final int progress_login_error=0x7f0d0108; + public static final int progress_recording_delete=0x7f0d0109; + public static final int progress_recordings_loading=0x7f0d010a; + public static final int progress_switching=0x7f0d010b; + public static final int progress_timer_delete=0x7f0d010c; + public static final int progress_timer_disable=0x7f0d010d; + public static final int progress_timer_enable=0x7f0d010e; + public static final int progress_timer_modify=0x7f0d010f; + public static final int progress_timer_save=0x7f0d0110; + public static final int progress_timers_loading=0x7f0d0111; + public static final int progress_wakeup_error=0x7f0d0112; + public static final int progress_wakeup_sending=0x7f0d0113; + public static final int progress_wakeup_sent=0x7f0d0114; + public static final int progress_whatson_loading=0x7f0d0115; + public static final int qui_imdb_url_key=0x7f0d0116; + public static final int qui_imdb_url_summary=0x7f0d0117; + public static final int qui_imdb_url_title=0x7f0d0118; + public static final int qui_quit_on_back_key=0x7f0d0119; + public static final int qui_show_imdb_button_key=0x7f0d011a; + public static final int qui_show_imdb_button_summary_off=0x7f0d011b; + public static final int qui_show_imdb_button_summary_on=0x7f0d011c; + public static final int qui_show_imdb_button_title=0x7f0d011d; + public static final int qui_show_omdb_button_key=0x7f0d011e; + public static final int qui_show_omdb_button_summary_off=0x7f0d011f; + public static final int qui_show_omdb_button_summary_on=0x7f0d0120; + public static final int qui_show_omdb_button_title=0x7f0d0121; + public static final int qui_show_tmdb_button_key=0x7f0d0122; + public static final int qui_show_tmdb_button_summary_off=0x7f0d0123; + public static final int qui_show_tmdb_button_summary_on=0x7f0d0124; + public static final int qui_show_tmdb_button_title=0x7f0d0125; + public static final int recent_channels=0x7f0d0126; + public static final int recent_channels_no_history=0x7f0d0127; + public static final int recording_item_menu_delete=0x7f0d0128; + public static final int recording_item_menu_stream=0x7f0d0129; + public static final int recording_started=0x7f0d012a; + public static final int recstream=0x7f0d012b; + public static final int recstream_enable_summary=0x7f0d012c; + public static final int recstream_enable_title=0x7f0d012d; + public static final int recstream_method_summary=0x7f0d012e; + public static final int recstream_method_title=0x7f0d012f; + public static final int recstream_smarttvweb_method_summary=0x7f0d0130; + public static final int recstream_smarttvweb_method_title=0x7f0d0131; + public static final int refresh=0x7f0d0132; + public static final int remapback_hint=0x7f0d0133; + public static final int remote=0x7f0d0134; + public static final int remote_enable_summary=0x7f0d0135; + public static final int remote_enable_title=0x7f0d0136; + public static final int remux_command_summary=0x7f0d0137; + public static final int remux_command_title=0x7f0d0138; + public static final int remux_enable_summary=0x7f0d0139; + public static final int remux_enable_title=0x7f0d013a; + public static final int remux_parameter_summary=0x7f0d013b; + public static final int remux_parameter_title=0x7f0d013c; + public static final int remux_title=0x7f0d013d; + public static final int sad_img=0x7f0d013e; + public static final int sd_card_canceled=0x7f0d013f; + public static final int sd_card_error_no_storage=0x7f0d0140; + public static final int sd_card_import_error=0x7f0d0141; + public static final int sd_card_import_error_no_file=0x7f0d0142; + public static final int sd_card_import_progress_message=0x7f0d0143; + public static final int sd_card_import_success=0x7f0d0144; + public static final int sd_card_save_error=0x7f0d0145; + public static final int sd_card_save_error_create_dir=0x7f0d0146; + public static final int sd_card_save_progress_message=0x7f0d0147; + public static final int sd_card_save_success=0x7f0d0148; + public static final int search=0x7f0d0149; + public static final int search_epg_hint=0x7f0d014a; + public static final int search_reapt=0x7f0d014b; + public static final int set_time=0x7f0d014c; + public static final int settings_backup=0x7f0d014d; + public static final int settings_backup_key=0x7f0d014e; + public static final int settings_backup_now=0x7f0d014f; + public static final int settings_backup_now_key=0x7f0d0150; + public static final int settings_backup_now_progress_message=0x7f0d0151; + public static final int settings_backup_now_summary=0x7f0d0152; + public static final int settings_backup_restore=0x7f0d0153; + public static final int settings_backup_restore_confirm_message=0x7f0d0154; + public static final int settings_backup_restore_key=0x7f0d0155; + public static final int settings_backup_restore_no_backup=0x7f0d0156; + public static final int settings_backup_restore_progress_message=0x7f0d0157; + public static final int settings_backup_restore_select_title=0x7f0d0158; + public static final int settings_backup_restore_summary=0x7f0d0159; + public static final int settings_backup_summary=0x7f0d015a; + public static final int settings_live_port=0x7f0d015b; + public static final int settings_live_port_summary=0x7f0d015c; + public static final int settings_livetv_port=0x7f0d015d; + public static final int settings_livetv_port_summary=0x7f0d015e; + public static final int settings_livetv_streamformat=0x7f0d015f; + public static final int settings_livetv_summary=0x7f0d0160; + public static final int settings_smarttvweb_port=0x7f0d0161; + public static final int settings_smarttvweb_port_summary=0x7f0d0162; + public static final int share=0x7f0d0163; + public static final int share_chooser=0x7f0d0164; + public static final int sort=0x7f0d0165; + public static final int sortby=0x7f0d0166; + public static final int sortby_alphabet=0x7f0d0167; + public static final int sortby_channel=0x7f0d0168; + public static final int sortby_channellist=0x7f0d0169; + public static final int sortby_time=0x7f0d016a; + public static final int status_bar_notification_info_overflow=0x7f0d016b; + public static final int stream_as=0x7f0d016c; + public static final int stream_choose_audio=0x7f0d016d; + public static final int stream_via=0x7f0d016e; + public static final int stream_via_as=0x7f0d016f; + public static final int streaming_password_key=0x7f0d0170; + public static final int streaming_password_sum=0x7f0d0171; + public static final int streaming_password_title=0x7f0d0172; + public static final int streaming_username_key=0x7f0d0173; + public static final int streaming_username_sum=0x7f0d0174; + public static final int streaming_username_title=0x7f0d0175; + public static final int svdrp_port_summary=0x7f0d0176; + public static final int svdrp_port_title=0x7f0d0177; + public static final int switch_to_channel=0x7f0d0178; + public static final int switching_failed=0x7f0d0179; + public static final int switching_success=0x7f0d017a; + public static final int timer_already_exists=0x7f0d017b; + public static final int timer_created=0x7f0d017c; + public static final int timer_default_lifetime_key=0x7f0d017d; + public static final int timer_default_lifetime_summary=0x7f0d017e; + public static final int timer_default_lifetime_title=0x7f0d017f; + public static final int timer_default_primary_limit_key=0x7f0d0180; + public static final int timer_default_primary_limit_summary=0x7f0d0181; + public static final int timer_default_primary_limit_title=0x7f0d0182; + public static final int timer_default_priority_key=0x7f0d0183; + public static final int timer_default_priority_summary=0x7f0d0184; + public static final int timer_default_priority_title=0x7f0d0185; + public static final int timer_detail_channel_title=0x7f0d0186; + public static final int timer_detail_day_title=0x7f0d0187; + public static final int timer_detail_end_title=0x7f0d0188; + public static final int timer_detail_lifetime=0x7f0d0189; + public static final int timer_detail_lifetime_hint=0x7f0d018a; + public static final int timer_detail_priority=0x7f0d018b; + public static final int timer_detail_priority_hint=0x7f0d018c; + public static final int timer_detail_repeat_title=0x7f0d018d; + public static final int timer_detail_start_title=0x7f0d018e; + public static final int timer_detail_title_title=0x7f0d018f; + public static final int timer_detail_title_vps=0x7f0d0190; + public static final int timer_detail_use_vps=0x7f0d0191; + public static final int timer_details_add_title=0x7f0d0192; + public static final int timer_details_create_title=0x7f0d0193; + public static final int timer_details_delete_title=0x7f0d0194; + public static final int timer_details_modify_title=0x7f0d0195; + public static final int timer_details_save_title=0x7f0d0196; + public static final int timer_error=0x7f0d0197; + public static final int timer_post_end_buffer_key=0x7f0d0198; + public static final int timer_post_end_buffer_summary=0x7f0d0199; + public static final int timer_post_end_buffer_title=0x7f0d019a; + public static final int timer_pre_start_buffer_key=0x7f0d019b; + public static final int timer_pre_start_buffer_summary=0x7f0d019c; + public static final int timer_pre_start_buffer_title=0x7f0d019d; + public static final int timer_preferences=0x7f0d019e; + public static final int timezone_key=0x7f0d019f; + public static final int type_to_filter=0x7f0d01a0; + public static final int update_will_start_in=0x7f0d01a1; + public static final int vdr_advanced_preferences=0x7f0d01a2; + public static final int vdr_advanced_preferences_summary=0x7f0d01a3; + public static final int vdr_conntimeout_key=0x7f0d01a4; + public static final int vdr_conntimeout_sum=0x7f0d01a5; + public static final int vdr_conntimeout_title=0x7f0d01a6; + public static final int vdr_device_delete_qeustion=0x7f0d01a7; + public static final int vdr_devices=0x7f0d01a8; + public static final int vdr_devices_category=0x7f0d01a9; + public static final int vdr_devices_summary=0x7f0d01aa; + public static final int vdr_encoding_key=0x7f0d01ab; + public static final int vdr_encoding_summary=0x7f0d01ac; + public static final int vdr_encoding_title=0x7f0d01ad; + public static final int vdr_error_text=0x7f0d01ae; + public static final int vdr_host_key=0x7f0d01af; + public static final int vdr_host_not_defined=0x7f0d01b0; + public static final int vdr_host_summary=0x7f0d01b1; + public static final int vdr_host_title=0x7f0d01b2; + public static final int vdr_name_key=0x7f0d01b3; + public static final int vdr_name_summary=0x7f0d01b4; + public static final int vdr_name_title=0x7f0d01b5; + public static final int vdr_password_key=0x7f0d01b6; + public static final int vdr_password_summary=0x7f0d01b7; + public static final int vdr_password_title=0x7f0d01b8; + public static final int vdr_port_default=0x7f0d01b9; + public static final int vdr_port_key=0x7f0d01ba; + public static final int vdr_port_summary=0x7f0d01bb; + public static final int vdr_port_title=0x7f0d01bc; + public static final int vdr_preferences=0x7f0d01bd; + public static final int vdr_prefs_category=0x7f0d01be; + public static final int vdr_readtimeout_key=0x7f0d01bf; + public static final int vdr_readtimeout_sum=0x7f0d01c0; + public static final int vdr_readtimeout_title=0x7f0d01c1; + public static final int vdr_ssl_key=0x7f0d01c2; + public static final int vdr_ssl_summary=0x7f0d01c3; + public static final int vdr_ssl_title=0x7f0d01c4; + public static final int vdr_stream_format=0x7f0d01c5; + public static final int vdr_stream_port=0x7f0d01c6; + public static final int vdr_stream_proxy_key=0x7f0d01c7; + public static final int vdr_timeout_key=0x7f0d01c8; + public static final int vdr_timeout_sum=0x7f0d01c9; + public static final int vdr_timeout_title=0x7f0d01ca; + public static final int vdr_timezone_summary=0x7f0d01cb; + public static final int vdr_timezone_title=0x7f0d01cc; + public static final int wakeup_enabled_key=0x7f0d01cd; + public static final int wakeup_enabled_summary=0x7f0d01ce; + public static final int wakeup_enabled_title=0x7f0d01cf; + public static final int wakeup_method_key=0x7f0d01d0; + public static final int wakeup_method_summary=0x7f0d01d1; + public static final int wakeup_method_title=0x7f0d01d2; + public static final int wakeup_password_key=0x7f0d01d3; + public static final int wakeup_password_summary=0x7f0d01d4; + public static final int wakeup_password_title=0x7f0d01d5; + public static final int wakeup_preferences=0x7f0d01d6; + public static final int wakeup_url_key=0x7f0d01d7; + public static final int wakeup_url_summary=0x7f0d01d8; + public static final int wakeup_url_title=0x7f0d01d9; + public static final int wakeup_user_key=0x7f0d01da; + public static final int wakeup_user_summary=0x7f0d01db; + public static final int wakeup_user_title=0x7f0d01dc; + public static final int wakeup_wol_custom_boradcast_summary=0x7f0d01dd; + public static final int wakeup_wol_custom_boradcast_title=0x7f0d01de; + public static final int wakeup_wol_custom_broadcast_key=0x7f0d01df; + public static final int wakeup_wol_mac_key=0x7f0d01e0; + public static final int wakeup_wol_mac_summary=0x7f0d01e1; + public static final int wakeup_wol_mac_title=0x7f0d01e2; + public static final int zone_list_menu_sort_alphabetically=0x7f0d01e3; + public static final int zone_list_menu_sort_by_timezone=0x7f0d01e4; + } + public static final class style { + public static final int AlertDialog_AppCompat=0x7f0e0000; + public static final int AlertDialog_AppCompat_Light=0x7f0e0001; + public static final int Animation_AppCompat_Dialog=0x7f0e0002; + public static final int Animation_AppCompat_DropDownUp=0x7f0e0003; + public static final int AppTheme=0x7f0e0004; + public static final int Base_AlertDialog_AppCompat=0x7f0e0005; + public static final int Base_AlertDialog_AppCompat_Light=0x7f0e0006; + public static final int Base_Animation_AppCompat_Dialog=0x7f0e0007; + public static final int Base_Animation_AppCompat_DropDownUp=0x7f0e0008; + public static final int Base_DialogWindowTitleBackground_AppCompat=0x7f0e000a; + public static final int Base_DialogWindowTitle_AppCompat=0x7f0e0009; + public static final int Base_TextAppearance_AppCompat=0x7f0e000b; + public static final int Base_TextAppearance_AppCompat_Body1=0x7f0e000c; + public static final int Base_TextAppearance_AppCompat_Body2=0x7f0e000d; + public static final int Base_TextAppearance_AppCompat_Button=0x7f0e000e; + public static final int Base_TextAppearance_AppCompat_Caption=0x7f0e000f; + public static final int Base_TextAppearance_AppCompat_Display1=0x7f0e0010; + public static final int Base_TextAppearance_AppCompat_Display2=0x7f0e0011; + public static final int Base_TextAppearance_AppCompat_Display3=0x7f0e0012; + public static final int Base_TextAppearance_AppCompat_Display4=0x7f0e0013; + public static final int Base_TextAppearance_AppCompat_Headline=0x7f0e0014; + public static final int Base_TextAppearance_AppCompat_Inverse=0x7f0e0015; + public static final int Base_TextAppearance_AppCompat_Large=0x7f0e0016; + public static final int Base_TextAppearance_AppCompat_Large_Inverse=0x7f0e0017; + public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0e0018; + public static final int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0e0019; + public static final int Base_TextAppearance_AppCompat_Medium=0x7f0e001a; + public static final int Base_TextAppearance_AppCompat_Medium_Inverse=0x7f0e001b; + public static final int Base_TextAppearance_AppCompat_Menu=0x7f0e001c; + public static final int Base_TextAppearance_AppCompat_SearchResult=0x7f0e001d; + public static final int Base_TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0e001e; + public static final int Base_TextAppearance_AppCompat_SearchResult_Title=0x7f0e001f; + public static final int Base_TextAppearance_AppCompat_Small=0x7f0e0020; + public static final int Base_TextAppearance_AppCompat_Small_Inverse=0x7f0e0021; + public static final int Base_TextAppearance_AppCompat_Subhead=0x7f0e0022; + public static final int Base_TextAppearance_AppCompat_Subhead_Inverse=0x7f0e0023; + public static final int Base_TextAppearance_AppCompat_Title=0x7f0e0024; + public static final int Base_TextAppearance_AppCompat_Title_Inverse=0x7f0e0025; + public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0e0026; + public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0e0027; + public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0e0028; + public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0e0029; + public static final int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0e002a; + public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0e002b; + public static final int Base_TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0e002c; + public static final int Base_TextAppearance_AppCompat_Widget_Button=0x7f0e002d; + public static final int Base_TextAppearance_AppCompat_Widget_Button_Inverse=0x7f0e002e; + public static final int Base_TextAppearance_AppCompat_Widget_DropDownItem=0x7f0e002f; + public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0e0030; + public static final int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0e0031; + public static final int Base_TextAppearance_AppCompat_Widget_Switch=0x7f0e0032; + public static final int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem=0x7f0e0033; + public static final int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0e0034; + public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0e0035; + public static final int Base_TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0e0036; + public static final int Base_ThemeOverlay_AppCompat=0x7f0e0045; + public static final int Base_ThemeOverlay_AppCompat_ActionBar=0x7f0e0046; + public static final int Base_ThemeOverlay_AppCompat_Dark=0x7f0e0047; + public static final int Base_ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0e0048; + public static final int Base_ThemeOverlay_AppCompat_Light=0x7f0e0049; + public static final int Base_Theme_AppCompat=0x7f0e0037; + public static final int Base_Theme_AppCompat_CompactMenu=0x7f0e0038; + public static final int Base_Theme_AppCompat_Dialog=0x7f0e0039; + public static final int Base_Theme_AppCompat_DialogWhenLarge=0x7f0e003d; + public static final int Base_Theme_AppCompat_Dialog_Alert=0x7f0e003a; + public static final int Base_Theme_AppCompat_Dialog_FixedSize=0x7f0e003b; + public static final int Base_Theme_AppCompat_Dialog_MinWidth=0x7f0e003c; + public static final int Base_Theme_AppCompat_Light=0x7f0e003e; + public static final int Base_Theme_AppCompat_Light_DarkActionBar=0x7f0e003f; + public static final int Base_Theme_AppCompat_Light_Dialog=0x7f0e0040; + public static final int Base_Theme_AppCompat_Light_DialogWhenLarge=0x7f0e0044; + public static final int Base_Theme_AppCompat_Light_Dialog_Alert=0x7f0e0041; + public static final int Base_Theme_AppCompat_Light_Dialog_FixedSize=0x7f0e0042; + public static final int Base_Theme_AppCompat_Light_Dialog_MinWidth=0x7f0e0043; + public static final int Base_V11_Theme_AppCompat_Dialog=0x7f0e004a; + public static final int Base_V11_Theme_AppCompat_Light_Dialog=0x7f0e004b; + public static final int Base_V12_Widget_AppCompat_AutoCompleteTextView=0x7f0e004c; + public static final int Base_V12_Widget_AppCompat_EditText=0x7f0e004d; + public static final int Base_V21_Theme_AppCompat=0x7f0e004e; + public static final int Base_V21_Theme_AppCompat_Dialog=0x7f0e004f; + public static final int Base_V21_Theme_AppCompat_Light=0x7f0e0050; + public static final int Base_V21_Theme_AppCompat_Light_Dialog=0x7f0e0051; + public static final int Base_V22_Theme_AppCompat=0x7f0e0052; + public static final int Base_V22_Theme_AppCompat_Light=0x7f0e0053; + public static final int Base_V23_Theme_AppCompat=0x7f0e0054; + public static final int Base_V23_Theme_AppCompat_Light=0x7f0e0055; + public static final int Base_V7_Theme_AppCompat=0x7f0e0056; + public static final int Base_V7_Theme_AppCompat_Dialog=0x7f0e0057; + public static final int Base_V7_Theme_AppCompat_Light=0x7f0e0058; + public static final int Base_V7_Theme_AppCompat_Light_Dialog=0x7f0e0059; + public static final int Base_V7_Widget_AppCompat_AutoCompleteTextView=0x7f0e005a; + public static final int Base_V7_Widget_AppCompat_EditText=0x7f0e005b; + public static final int Base_Widget_AppCompat_ActionBar=0x7f0e005c; + public static final int Base_Widget_AppCompat_ActionBar_Solid=0x7f0e005d; + public static final int Base_Widget_AppCompat_ActionBar_TabBar=0x7f0e005e; + public static final int Base_Widget_AppCompat_ActionBar_TabText=0x7f0e005f; + public static final int Base_Widget_AppCompat_ActionBar_TabView=0x7f0e0060; + public static final int Base_Widget_AppCompat_ActionButton=0x7f0e0061; + public static final int Base_Widget_AppCompat_ActionButton_CloseMode=0x7f0e0062; + public static final int Base_Widget_AppCompat_ActionButton_Overflow=0x7f0e0063; + public static final int Base_Widget_AppCompat_ActionMode=0x7f0e0064; + public static final int Base_Widget_AppCompat_ActivityChooserView=0x7f0e0065; + public static final int Base_Widget_AppCompat_AutoCompleteTextView=0x7f0e0066; + public static final int Base_Widget_AppCompat_Button=0x7f0e0067; + public static final int Base_Widget_AppCompat_ButtonBar=0x7f0e006d; + public static final int Base_Widget_AppCompat_ButtonBar_AlertDialog=0x7f0e006e; + public static final int Base_Widget_AppCompat_Button_Borderless=0x7f0e0068; + public static final int Base_Widget_AppCompat_Button_Borderless_Colored=0x7f0e0069; + public static final int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog=0x7f0e006a; + public static final int Base_Widget_AppCompat_Button_Colored=0x7f0e006b; + public static final int Base_Widget_AppCompat_Button_Small=0x7f0e006c; + public static final int Base_Widget_AppCompat_CompoundButton_CheckBox=0x7f0e006f; + public static final int Base_Widget_AppCompat_CompoundButton_RadioButton=0x7f0e0070; + public static final int Base_Widget_AppCompat_CompoundButton_Switch=0x7f0e0071; + public static final int Base_Widget_AppCompat_DrawerArrowToggle=0x7f0e0072; + public static final int Base_Widget_AppCompat_DrawerArrowToggle_Common=0x7f0e0073; + public static final int Base_Widget_AppCompat_DropDownItem_Spinner=0x7f0e0074; + public static final int Base_Widget_AppCompat_EditText=0x7f0e0075; + public static final int Base_Widget_AppCompat_ImageButton=0x7f0e0076; + public static final int Base_Widget_AppCompat_Light_ActionBar=0x7f0e0077; + public static final int Base_Widget_AppCompat_Light_ActionBar_Solid=0x7f0e0078; + public static final int Base_Widget_AppCompat_Light_ActionBar_TabBar=0x7f0e0079; + public static final int Base_Widget_AppCompat_Light_ActionBar_TabText=0x7f0e007a; + public static final int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0e007b; + public static final int Base_Widget_AppCompat_Light_ActionBar_TabView=0x7f0e007c; + public static final int Base_Widget_AppCompat_Light_PopupMenu=0x7f0e007d; + public static final int Base_Widget_AppCompat_Light_PopupMenu_Overflow=0x7f0e007e; + public static final int Base_Widget_AppCompat_ListPopupWindow=0x7f0e007f; + public static final int Base_Widget_AppCompat_ListView=0x7f0e0080; + public static final int Base_Widget_AppCompat_ListView_DropDown=0x7f0e0081; + public static final int Base_Widget_AppCompat_ListView_Menu=0x7f0e0082; + public static final int Base_Widget_AppCompat_PopupMenu=0x7f0e0083; + public static final int Base_Widget_AppCompat_PopupMenu_Overflow=0x7f0e0084; + public static final int Base_Widget_AppCompat_PopupWindow=0x7f0e0085; + public static final int Base_Widget_AppCompat_ProgressBar=0x7f0e0086; + public static final int Base_Widget_AppCompat_ProgressBar_Horizontal=0x7f0e0087; + public static final int Base_Widget_AppCompat_RatingBar=0x7f0e0088; + public static final int Base_Widget_AppCompat_RatingBar_Indicator=0x7f0e0089; + public static final int Base_Widget_AppCompat_RatingBar_Small=0x7f0e008a; + public static final int Base_Widget_AppCompat_SearchView=0x7f0e008b; + public static final int Base_Widget_AppCompat_SearchView_ActionBar=0x7f0e008c; + public static final int Base_Widget_AppCompat_SeekBar=0x7f0e008d; + public static final int Base_Widget_AppCompat_Spinner=0x7f0e008e; + public static final int Base_Widget_AppCompat_Spinner_Underlined=0x7f0e008f; + public static final int Base_Widget_AppCompat_TextView_SpinnerItem=0x7f0e0090; + public static final int Base_Widget_AppCompat_Toolbar=0x7f0e0091; + public static final int Base_Widget_AppCompat_Toolbar_Button_Navigation=0x7f0e0092; + public static final int Line=0x7f0e0093; + public static final int Line2=0x7f0e0094; + public static final int MinusButton=0x7f0e0095; + public static final int Platform_AppCompat=0x7f0e0096; + public static final int Platform_AppCompat_Light=0x7f0e0097; + public static final int Platform_ThemeOverlay_AppCompat=0x7f0e0098; + public static final int Platform_ThemeOverlay_AppCompat_Dark=0x7f0e0099; + public static final int Platform_ThemeOverlay_AppCompat_Light=0x7f0e009a; + public static final int Platform_V11_AppCompat=0x7f0e009b; + public static final int Platform_V11_AppCompat_Light=0x7f0e009c; + public static final int Platform_V14_AppCompat=0x7f0e009d; + public static final int Platform_V14_AppCompat_Light=0x7f0e009e; + public static final int Platform_Widget_AppCompat_Spinner=0x7f0e009f; + public static final int PlusButton=0x7f0e00a0; + public static final int RtlOverlay_DialogWindowTitle_AppCompat=0x7f0e00a1; + public static final int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem=0x7f0e00a2; + public static final int RtlOverlay_Widget_AppCompat_DialogTitle_Icon=0x7f0e00a3; + public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem=0x7f0e00a4; + public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup=0x7f0e00a5; + public static final int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text=0x7f0e00a6; + public static final int RtlOverlay_Widget_AppCompat_SearchView_MagIcon=0x7f0e00ac; + public static final int RtlOverlay_Widget_AppCompat_Search_DropDown=0x7f0e00a7; + public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1=0x7f0e00a8; + public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2=0x7f0e00a9; + public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Query=0x7f0e00aa; + public static final int RtlOverlay_Widget_AppCompat_Search_DropDown_Text=0x7f0e00ab; + public static final int RtlUnderlay_Widget_AppCompat_ActionButton=0x7f0e00ad; + public static final int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow=0x7f0e00ae; + public static final int TextAppearance_AppCompat=0x7f0e00af; + public static final int TextAppearance_AppCompat_Body1=0x7f0e00b0; + public static final int TextAppearance_AppCompat_Body2=0x7f0e00b1; + public static final int TextAppearance_AppCompat_Button=0x7f0e00b2; + public static final int TextAppearance_AppCompat_Caption=0x7f0e00b3; + public static final int TextAppearance_AppCompat_Display1=0x7f0e00b4; + public static final int TextAppearance_AppCompat_Display2=0x7f0e00b5; + public static final int TextAppearance_AppCompat_Display3=0x7f0e00b6; + public static final int TextAppearance_AppCompat_Display4=0x7f0e00b7; + public static final int TextAppearance_AppCompat_Headline=0x7f0e00b8; + public static final int TextAppearance_AppCompat_Inverse=0x7f0e00b9; + public static final int TextAppearance_AppCompat_Large=0x7f0e00ba; + public static final int TextAppearance_AppCompat_Large_Inverse=0x7f0e00bb; + public static final int TextAppearance_AppCompat_Light_SearchResult_Subtitle=0x7f0e00bc; + public static final int TextAppearance_AppCompat_Light_SearchResult_Title=0x7f0e00bd; + public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large=0x7f0e00be; + public static final int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small=0x7f0e00bf; + public static final int TextAppearance_AppCompat_Medium=0x7f0e00c0; + public static final int TextAppearance_AppCompat_Medium_Inverse=0x7f0e00c1; + public static final int TextAppearance_AppCompat_Menu=0x7f0e00c2; + public static final int TextAppearance_AppCompat_SearchResult_Subtitle=0x7f0e00c3; + public static final int TextAppearance_AppCompat_SearchResult_Title=0x7f0e00c4; + public static final int TextAppearance_AppCompat_Small=0x7f0e00c5; + public static final int TextAppearance_AppCompat_Small_Inverse=0x7f0e00c6; + public static final int TextAppearance_AppCompat_Subhead=0x7f0e00c7; + public static final int TextAppearance_AppCompat_Subhead_Inverse=0x7f0e00c8; + public static final int TextAppearance_AppCompat_Title=0x7f0e00c9; + public static final int TextAppearance_AppCompat_Title_Inverse=0x7f0e00ca; + public static final int TextAppearance_AppCompat_Widget_ActionBar_Menu=0x7f0e00cb; + public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle=0x7f0e00cc; + public static final int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse=0x7f0e00cd; + public static final int TextAppearance_AppCompat_Widget_ActionBar_Title=0x7f0e00ce; + public static final int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse=0x7f0e00cf; + public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle=0x7f0e00d0; + public static final int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse=0x7f0e00d1; + public static final int TextAppearance_AppCompat_Widget_ActionMode_Title=0x7f0e00d2; + public static final int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse=0x7f0e00d3; + public static final int TextAppearance_AppCompat_Widget_Button=0x7f0e00d4; + public static final int TextAppearance_AppCompat_Widget_Button_Inverse=0x7f0e00d5; + public static final int TextAppearance_AppCompat_Widget_DropDownItem=0x7f0e00d6; + public static final int TextAppearance_AppCompat_Widget_PopupMenu_Large=0x7f0e00d7; + public static final int TextAppearance_AppCompat_Widget_PopupMenu_Small=0x7f0e00d8; + public static final int TextAppearance_AppCompat_Widget_Switch=0x7f0e00d9; + public static final int TextAppearance_AppCompat_Widget_TextView_SpinnerItem=0x7f0e00da; + public static final int TextAppearance_StatusBar_EventContent=0x7f0e00db; + public static final int TextAppearance_StatusBar_EventContent_Info=0x7f0e00dc; + public static final int TextAppearance_StatusBar_EventContent_Line2=0x7f0e00dd; + public static final int TextAppearance_StatusBar_EventContent_Time=0x7f0e00de; + public static final int TextAppearance_StatusBar_EventContent_Title=0x7f0e00df; + public static final int TextAppearance_Widget_AppCompat_ExpandedMenu_Item=0x7f0e00e0; + public static final int TextAppearance_Widget_AppCompat_Toolbar_Subtitle=0x7f0e00e1; + public static final int TextAppearance_Widget_AppCompat_Toolbar_Title=0x7f0e00e2; + public static final int ThemeOverlay_AppCompat=0x7f0e00f9; + public static final int ThemeOverlay_AppCompat_ActionBar=0x7f0e00fa; + public static final int ThemeOverlay_AppCompat_Dark=0x7f0e00fb; + public static final int ThemeOverlay_AppCompat_Dark_ActionBar=0x7f0e00fc; + public static final int ThemeOverlay_AppCompat_Light=0x7f0e00fd; + public static final int Theme_AppCompat=0x7f0e00e3; + public static final int Theme_AppCompat_CompactMenu=0x7f0e00e4; + public static final int Theme_AppCompat_DayNight=0x7f0e00e5; + public static final int Theme_AppCompat_DayNight_DarkActionBar=0x7f0e00e6; + public static final int Theme_AppCompat_DayNight_Dialog=0x7f0e00e7; + public static final int Theme_AppCompat_DayNight_DialogWhenLarge=0x7f0e00ea; + public static final int Theme_AppCompat_DayNight_Dialog_Alert=0x7f0e00e8; + public static final int Theme_AppCompat_DayNight_Dialog_MinWidth=0x7f0e00e9; + public static final int Theme_AppCompat_DayNight_NoActionBar=0x7f0e00eb; + public static final int Theme_AppCompat_Dialog=0x7f0e00ec; + public static final int Theme_AppCompat_DialogWhenLarge=0x7f0e00ef; + public static final int Theme_AppCompat_Dialog_Alert=0x7f0e00ed; + public static final int Theme_AppCompat_Dialog_MinWidth=0x7f0e00ee; + public static final int Theme_AppCompat_Light=0x7f0e00f0; + public static final int Theme_AppCompat_Light_DarkActionBar=0x7f0e00f1; + public static final int Theme_AppCompat_Light_Dialog=0x7f0e00f2; + public static final int Theme_AppCompat_Light_DialogWhenLarge=0x7f0e00f5; + public static final int Theme_AppCompat_Light_Dialog_Alert=0x7f0e00f3; + public static final int Theme_AppCompat_Light_Dialog_MinWidth=0x7f0e00f4; + public static final int Theme_AppCompat_Light_NoActionBar=0x7f0e00f6; + public static final int Theme_AppCompat_NoActionBar=0x7f0e00f7; + public static final int Theme_PageIndicatorDefaults=0x7f0e00f8; + public static final int Widget_AppCompat_ActionBar=0x7f0e00fe; + public static final int Widget_AppCompat_ActionBar_Solid=0x7f0e00ff; + public static final int Widget_AppCompat_ActionBar_TabBar=0x7f0e0100; + public static final int Widget_AppCompat_ActionBar_TabText=0x7f0e0101; + public static final int Widget_AppCompat_ActionBar_TabView=0x7f0e0102; + public static final int Widget_AppCompat_ActionButton=0x7f0e0103; + public static final int Widget_AppCompat_ActionButton_CloseMode=0x7f0e0104; + public static final int Widget_AppCompat_ActionButton_Overflow=0x7f0e0105; + public static final int Widget_AppCompat_ActionMode=0x7f0e0106; + public static final int Widget_AppCompat_ActivityChooserView=0x7f0e0107; + public static final int Widget_AppCompat_AutoCompleteTextView=0x7f0e0108; + public static final int Widget_AppCompat_Button=0x7f0e0109; + public static final int Widget_AppCompat_ButtonBar=0x7f0e010f; + public static final int Widget_AppCompat_ButtonBar_AlertDialog=0x7f0e0110; + public static final int Widget_AppCompat_Button_Borderless=0x7f0e010a; + public static final int Widget_AppCompat_Button_Borderless_Colored=0x7f0e010b; + public static final int Widget_AppCompat_Button_ButtonBar_AlertDialog=0x7f0e010c; + public static final int Widget_AppCompat_Button_Colored=0x7f0e010d; + public static final int Widget_AppCompat_Button_Small=0x7f0e010e; + public static final int Widget_AppCompat_CompoundButton_CheckBox=0x7f0e0111; + public static final int Widget_AppCompat_CompoundButton_RadioButton=0x7f0e0112; + public static final int Widget_AppCompat_CompoundButton_Switch=0x7f0e0113; + public static final int Widget_AppCompat_DrawerArrowToggle=0x7f0e0114; + public static final int Widget_AppCompat_DropDownItem_Spinner=0x7f0e0115; + public static final int Widget_AppCompat_EditText=0x7f0e0116; + public static final int Widget_AppCompat_ImageButton=0x7f0e0117; + public static final int Widget_AppCompat_Light_ActionBar=0x7f0e0118; + public static final int Widget_AppCompat_Light_ActionBar_Solid=0x7f0e0119; + public static final int Widget_AppCompat_Light_ActionBar_Solid_Inverse=0x7f0e011a; + public static final int Widget_AppCompat_Light_ActionBar_TabBar=0x7f0e011b; + public static final int Widget_AppCompat_Light_ActionBar_TabBar_Inverse=0x7f0e011c; + public static final int Widget_AppCompat_Light_ActionBar_TabText=0x7f0e011d; + public static final int Widget_AppCompat_Light_ActionBar_TabText_Inverse=0x7f0e011e; + public static final int Widget_AppCompat_Light_ActionBar_TabView=0x7f0e011f; + public static final int Widget_AppCompat_Light_ActionBar_TabView_Inverse=0x7f0e0120; + public static final int Widget_AppCompat_Light_ActionButton=0x7f0e0121; + public static final int Widget_AppCompat_Light_ActionButton_CloseMode=0x7f0e0122; + public static final int Widget_AppCompat_Light_ActionButton_Overflow=0x7f0e0123; + public static final int Widget_AppCompat_Light_ActionMode_Inverse=0x7f0e0124; + public static final int Widget_AppCompat_Light_ActivityChooserView=0x7f0e0125; + public static final int Widget_AppCompat_Light_AutoCompleteTextView=0x7f0e0126; + public static final int Widget_AppCompat_Light_DropDownItem_Spinner=0x7f0e0127; + public static final int Widget_AppCompat_Light_ListPopupWindow=0x7f0e0128; + public static final int Widget_AppCompat_Light_ListView_DropDown=0x7f0e0129; + public static final int Widget_AppCompat_Light_PopupMenu=0x7f0e012a; + public static final int Widget_AppCompat_Light_PopupMenu_Overflow=0x7f0e012b; + public static final int Widget_AppCompat_Light_SearchView=0x7f0e012c; + public static final int Widget_AppCompat_Light_Spinner_DropDown_ActionBar=0x7f0e012d; + public static final int Widget_AppCompat_ListPopupWindow=0x7f0e012e; + public static final int Widget_AppCompat_ListView=0x7f0e012f; + public static final int Widget_AppCompat_ListView_DropDown=0x7f0e0130; + public static final int Widget_AppCompat_ListView_Menu=0x7f0e0131; + public static final int Widget_AppCompat_PopupMenu=0x7f0e0132; + public static final int Widget_AppCompat_PopupMenu_Overflow=0x7f0e0133; + public static final int Widget_AppCompat_PopupWindow=0x7f0e0134; + public static final int Widget_AppCompat_ProgressBar=0x7f0e0135; + public static final int Widget_AppCompat_ProgressBar_Horizontal=0x7f0e0136; + public static final int Widget_AppCompat_RatingBar=0x7f0e0137; + public static final int Widget_AppCompat_RatingBar_Indicator=0x7f0e0138; + public static final int Widget_AppCompat_RatingBar_Small=0x7f0e0139; + public static final int Widget_AppCompat_SearchView=0x7f0e013a; + public static final int Widget_AppCompat_SearchView_ActionBar=0x7f0e013b; + public static final int Widget_AppCompat_SeekBar=0x7f0e013c; + public static final int Widget_AppCompat_Spinner=0x7f0e013d; + public static final int Widget_AppCompat_Spinner_DropDown=0x7f0e013e; + public static final int Widget_AppCompat_Spinner_DropDown_ActionBar=0x7f0e013f; + public static final int Widget_AppCompat_Spinner_Underlined=0x7f0e0140; + public static final int Widget_AppCompat_TextView_SpinnerItem=0x7f0e0141; + public static final int Widget_AppCompat_Toolbar=0x7f0e0142; + public static final int Widget_AppCompat_Toolbar_Button_Navigation=0x7f0e0143; + public static final int Widget_CirclePageIndicator=0x7f0e0144; + public static final int Widget_TitlePageIndicator=0x7f0e0145; + public static final int cursorButton=0x7f0e0146; + public static final int volChanButton=0x7f0e0147; + } + public static final class styleable { + /** + * Attributes that can be used with a ActionBar. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #ActionBar_background de.bjusystems.vdrmanager:background}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_backgroundSplit de.bjusystems.vdrmanager:backgroundSplit}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_backgroundStacked de.bjusystems.vdrmanager:backgroundStacked}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_contentInsetEnd de.bjusystems.vdrmanager:contentInsetEnd}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_contentInsetLeft de.bjusystems.vdrmanager:contentInsetLeft}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_contentInsetRight de.bjusystems.vdrmanager:contentInsetRight}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_contentInsetStart de.bjusystems.vdrmanager:contentInsetStart}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_customNavigationLayout de.bjusystems.vdrmanager:customNavigationLayout}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_displayOptions de.bjusystems.vdrmanager:displayOptions}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_divider de.bjusystems.vdrmanager:divider}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_elevation de.bjusystems.vdrmanager:elevation}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_height de.bjusystems.vdrmanager:height}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_hideOnContentScroll de.bjusystems.vdrmanager:hideOnContentScroll}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_homeAsUpIndicator de.bjusystems.vdrmanager:homeAsUpIndicator}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_homeLayout de.bjusystems.vdrmanager:homeLayout}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_icon de.bjusystems.vdrmanager:icon}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_indeterminateProgressStyle de.bjusystems.vdrmanager:indeterminateProgressStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_itemPadding de.bjusystems.vdrmanager:itemPadding}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_logo de.bjusystems.vdrmanager:logo}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_navigationMode de.bjusystems.vdrmanager:navigationMode}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_popupTheme de.bjusystems.vdrmanager:popupTheme}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_progressBarPadding de.bjusystems.vdrmanager:progressBarPadding}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_progressBarStyle de.bjusystems.vdrmanager:progressBarStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_subtitle de.bjusystems.vdrmanager:subtitle}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_subtitleTextStyle de.bjusystems.vdrmanager:subtitleTextStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_title de.bjusystems.vdrmanager:title}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionBar_titleTextStyle de.bjusystems.vdrmanager:titleTextStyle}</code></td><td></td></tr> + * </table> + * @see #ActionBar_background + * @see #ActionBar_backgroundSplit + * @see #ActionBar_backgroundStacked + * @see #ActionBar_contentInsetEnd + * @see #ActionBar_contentInsetLeft + * @see #ActionBar_contentInsetRight + * @see #ActionBar_contentInsetStart + * @see #ActionBar_customNavigationLayout + * @see #ActionBar_displayOptions + * @see #ActionBar_divider + * @see #ActionBar_elevation + * @see #ActionBar_height + * @see #ActionBar_hideOnContentScroll + * @see #ActionBar_homeAsUpIndicator + * @see #ActionBar_homeLayout + * @see #ActionBar_icon + * @see #ActionBar_indeterminateProgressStyle + * @see #ActionBar_itemPadding + * @see #ActionBar_logo + * @see #ActionBar_navigationMode + * @see #ActionBar_popupTheme + * @see #ActionBar_progressBarPadding + * @see #ActionBar_progressBarStyle + * @see #ActionBar_subtitle + * @see #ActionBar_subtitleTextStyle + * @see #ActionBar_title + * @see #ActionBar_titleTextStyle + */ + public static final int[] ActionBar={ + 0x7f03002a, 0x7f03002b, 0x7f03002c, 0x7f03004e, + 0x7f03004f, 0x7f030050, 0x7f030051, 0x7f030054, + 0x7f030058, 0x7f030059, 0x7f030064, 0x7f03006f, + 0x7f030070, 0x7f030071, 0x7f030072, 0x7f030073, + 0x7f030076, 0x7f030079, 0x7f030087, 0x7f03008e, + 0x7f030098, 0x7f03009b, 0x7f03009c, 0x7f0300bd, + 0x7f0300c0, 0x7f0300d4, 0x7f0300de + }; + /** + * Attributes that can be used with a ActionBarLayout. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #ActionBarLayout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr> + * </table> + * @see #ActionBarLayout_android_layout_gravity + */ + public static final int[] ActionBarLayout={ + 0x010100b3 + }; + /** + * <p>This symbol is the offset where the {@link android.R.attr#layout_gravity} + * attribute's value can be found in the {@link #ActionBarLayout} array. + * + * <p>Must be one or more (separated by '|') of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>end</td><td>800005</td><td></td></tr> + * <tr><td>start</td><td>800003</td><td></td></tr> + * <tr><td>bottom</td><td>50</td><td></td></tr> + * <tr><td>center</td><td>11</td><td></td></tr> + * <tr><td>center_horizontal</td><td>1</td><td></td></tr> + * <tr><td>center_vertical</td><td>10</td><td></td></tr> + * <tr><td>clip_horizontal</td><td>8</td><td></td></tr> + * <tr><td>clip_vertical</td><td>80</td><td></td></tr> + * <tr><td>fill</td><td>77</td><td></td></tr> + * <tr><td>fill_horizontal</td><td>7</td><td></td></tr> + * <tr><td>fill_vertical</td><td>70</td><td></td></tr> + * <tr><td>left</td><td>3</td><td></td></tr> + * <tr><td>right</td><td>5</td><td></td></tr> + * <tr><td>top</td><td>30</td><td></td></tr> + * </table> + * + * @attr name android:layout_gravity + */ + public static final int ActionBarLayout_android_layout_gravity=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#background} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:background + */ + public static final int ActionBar_background=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#backgroundSplit} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:backgroundSplit + */ + public static final int ActionBar_backgroundSplit=1; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#backgroundStacked} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:backgroundStacked + */ + public static final int ActionBar_backgroundStacked=2; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#contentInsetEnd} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:contentInsetEnd + */ + public static final int ActionBar_contentInsetEnd=3; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#contentInsetLeft} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:contentInsetLeft + */ + public static final int ActionBar_contentInsetLeft=4; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#contentInsetRight} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:contentInsetRight + */ + public static final int ActionBar_contentInsetRight=5; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#contentInsetStart} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:contentInsetStart + */ + public static final int ActionBar_contentInsetStart=6; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#customNavigationLayout} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:customNavigationLayout + */ + public static final int ActionBar_customNavigationLayout=7; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#displayOptions} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>Must be one or more (separated by '|') of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>disableHome</td><td>20</td><td></td></tr> + * <tr><td>homeAsUp</td><td>4</td><td></td></tr> + * <tr><td>none</td><td>0</td><td></td></tr> + * <tr><td>showCustom</td><td>10</td><td></td></tr> + * <tr><td>showHome</td><td>2</td><td></td></tr> + * <tr><td>showTitle</td><td>8</td><td></td></tr> + * <tr><td>useLogo</td><td>1</td><td></td></tr> + * </table> + * + * @attr name de.bjusystems.vdrmanager:displayOptions + */ + public static final int ActionBar_displayOptions=8; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#divider} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:divider + */ + public static final int ActionBar_divider=9; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#elevation} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:elevation + */ + public static final int ActionBar_elevation=10; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#height} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:height + */ + public static final int ActionBar_height=11; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#hideOnContentScroll} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:hideOnContentScroll + */ + public static final int ActionBar_hideOnContentScroll=12; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#homeAsUpIndicator} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:homeAsUpIndicator + */ + public static final int ActionBar_homeAsUpIndicator=13; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#homeLayout} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:homeLayout + */ + public static final int ActionBar_homeLayout=14; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#icon} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:icon + */ + public static final int ActionBar_icon=15; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#indeterminateProgressStyle} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:indeterminateProgressStyle + */ + public static final int ActionBar_indeterminateProgressStyle=16; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#itemPadding} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:itemPadding + */ + public static final int ActionBar_itemPadding=17; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#logo} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:logo + */ + public static final int ActionBar_logo=18; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#navigationMode} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>listMode</td><td>1</td><td></td></tr> + * <tr><td>normal</td><td>0</td><td></td></tr> + * <tr><td>tabMode</td><td>2</td><td></td></tr> + * </table> + * + * @attr name de.bjusystems.vdrmanager:navigationMode + */ + public static final int ActionBar_navigationMode=19; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#popupTheme} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:popupTheme + */ + public static final int ActionBar_popupTheme=20; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#progressBarPadding} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:progressBarPadding + */ + public static final int ActionBar_progressBarPadding=21; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#progressBarStyle} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:progressBarStyle + */ + public static final int ActionBar_progressBarStyle=22; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#subtitle} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name de.bjusystems.vdrmanager:subtitle + */ + public static final int ActionBar_subtitle=23; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#subtitleTextStyle} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:subtitleTextStyle + */ + public static final int ActionBar_subtitleTextStyle=24; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#title} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name de.bjusystems.vdrmanager:title + */ + public static final int ActionBar_title=25; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#titleTextStyle} + * attribute's value can be found in the {@link #ActionBar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:titleTextStyle + */ + public static final int ActionBar_titleTextStyle=26; + /** + * Attributes that can be used with a ActionMenuItemView. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #ActionMenuItemView_android_minWidth android:minWidth}</code></td><td></td></tr> + * </table> + * @see #ActionMenuItemView_android_minWidth + */ + public static final int[] ActionMenuItemView={ + 0x0101013f + }; + /** + * <p>This symbol is the offset where the {@link android.R.attr#minWidth} + * attribute's value can be found in the {@link #ActionMenuItemView} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name android:minWidth + */ + public static final int ActionMenuItemView_android_minWidth=0; + public static final int[] ActionMenuView={ + }; + /** + * Attributes that can be used with a ActionMode. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #ActionMode_background de.bjusystems.vdrmanager:background}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionMode_backgroundSplit de.bjusystems.vdrmanager:backgroundSplit}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionMode_closeItemLayout de.bjusystems.vdrmanager:closeItemLayout}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionMode_height de.bjusystems.vdrmanager:height}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionMode_subtitleTextStyle de.bjusystems.vdrmanager:subtitleTextStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #ActionMode_titleTextStyle de.bjusystems.vdrmanager:titleTextStyle}</code></td><td></td></tr> + * </table> + * @see #ActionMode_background + * @see #ActionMode_backgroundSplit + * @see #ActionMode_closeItemLayout + * @see #ActionMode_height + * @see #ActionMode_subtitleTextStyle + * @see #ActionMode_titleTextStyle + */ + public static final int[] ActionMode={ + 0x7f03002a, 0x7f03002b, 0x7f030041, 0x7f03006f, + 0x7f0300c0, 0x7f0300de + }; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#background} + * attribute's value can be found in the {@link #ActionMode} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:background + */ + public static final int ActionMode_background=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#backgroundSplit} + * attribute's value can be found in the {@link #ActionMode} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:backgroundSplit + */ + public static final int ActionMode_backgroundSplit=1; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#closeItemLayout} + * attribute's value can be found in the {@link #ActionMode} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:closeItemLayout + */ + public static final int ActionMode_closeItemLayout=2; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#height} + * attribute's value can be found in the {@link #ActionMode} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:height + */ + public static final int ActionMode_height=3; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#subtitleTextStyle} + * attribute's value can be found in the {@link #ActionMode} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:subtitleTextStyle + */ + public static final int ActionMode_subtitleTextStyle=4; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#titleTextStyle} + * attribute's value can be found in the {@link #ActionMode} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:titleTextStyle + */ + public static final int ActionMode_titleTextStyle=5; + /** + * Attributes that can be used with a ActivityChooserView. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #ActivityChooserView_expandActivityOverflowButtonDrawable de.bjusystems.vdrmanager:expandActivityOverflowButtonDrawable}</code></td><td></td></tr> + * <tr><td><code>{@link #ActivityChooserView_initialActivityCount de.bjusystems.vdrmanager:initialActivityCount}</code></td><td></td></tr> + * </table> + * @see #ActivityChooserView_expandActivityOverflowButtonDrawable + * @see #ActivityChooserView_initialActivityCount + */ + public static final int[] ActivityChooserView={ + 0x7f030065, 0x7f030077 + }; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#expandActivityOverflowButtonDrawable} + * attribute's value can be found in the {@link #ActivityChooserView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:expandActivityOverflowButtonDrawable + */ + public static final int ActivityChooserView_expandActivityOverflowButtonDrawable=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#initialActivityCount} + * attribute's value can be found in the {@link #ActivityChooserView} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name de.bjusystems.vdrmanager:initialActivityCount + */ + public static final int ActivityChooserView_initialActivityCount=1; + /** + * Attributes that can be used with a AlertDialog. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #AlertDialog_android_layout android:layout}</code></td><td></td></tr> + * <tr><td><code>{@link #AlertDialog_buttonPanelSideLayout de.bjusystems.vdrmanager:buttonPanelSideLayout}</code></td><td></td></tr> + * <tr><td><code>{@link #AlertDialog_listItemLayout de.bjusystems.vdrmanager:listItemLayout}</code></td><td></td></tr> + * <tr><td><code>{@link #AlertDialog_listLayout de.bjusystems.vdrmanager:listLayout}</code></td><td></td></tr> + * <tr><td><code>{@link #AlertDialog_multiChoiceItemLayout de.bjusystems.vdrmanager:multiChoiceItemLayout}</code></td><td></td></tr> + * <tr><td><code>{@link #AlertDialog_singleChoiceItemLayout de.bjusystems.vdrmanager:singleChoiceItemLayout}</code></td><td></td></tr> + * </table> + * @see #AlertDialog_android_layout + * @see #AlertDialog_buttonPanelSideLayout + * @see #AlertDialog_listItemLayout + * @see #AlertDialog_listLayout + * @see #AlertDialog_multiChoiceItemLayout + * @see #AlertDialog_singleChoiceItemLayout + */ + public static final int[] AlertDialog={ + 0x010100f2, 0x7f030036, 0x7f03007f, 0x7f030080, + 0x7f03008b, 0x7f0300b0 + }; + /** + * <p>This symbol is the offset where the {@link android.R.attr#layout} + * attribute's value can be found in the {@link #AlertDialog} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name android:layout + */ + public static final int AlertDialog_android_layout=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#buttonPanelSideLayout} + * attribute's value can be found in the {@link #AlertDialog} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:buttonPanelSideLayout + */ + public static final int AlertDialog_buttonPanelSideLayout=1; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#listItemLayout} + * attribute's value can be found in the {@link #AlertDialog} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:listItemLayout + */ + public static final int AlertDialog_listItemLayout=2; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#listLayout} + * attribute's value can be found in the {@link #AlertDialog} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:listLayout + */ + public static final int AlertDialog_listLayout=3; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#multiChoiceItemLayout} + * attribute's value can be found in the {@link #AlertDialog} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:multiChoiceItemLayout + */ + public static final int AlertDialog_multiChoiceItemLayout=4; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#singleChoiceItemLayout} + * attribute's value can be found in the {@link #AlertDialog} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:singleChoiceItemLayout + */ + public static final int AlertDialog_singleChoiceItemLayout=5; + /** + * Attributes that can be used with a AppCompatImageView. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #AppCompatImageView_android_src android:src}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatImageView_srcCompat de.bjusystems.vdrmanager:srcCompat}</code></td><td></td></tr> + * </table> + * @see #AppCompatImageView_android_src + * @see #AppCompatImageView_srcCompat + */ + public static final int[] AppCompatImageView={ + 0x01010119, 0x7f0300b7 + }; + /** + * <p>This symbol is the offset where the {@link android.R.attr#src} + * attribute's value can be found in the {@link #AppCompatImageView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name android:src + */ + public static final int AppCompatImageView_android_src=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#srcCompat} + * attribute's value can be found in the {@link #AppCompatImageView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:srcCompat + */ + public static final int AppCompatImageView_srcCompat=1; + /** + * Attributes that can be used with a AppCompatTextView. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #AppCompatTextView_android_textAppearance android:textAppearance}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTextView_textAllCaps de.bjusystems.vdrmanager:textAllCaps}</code></td><td></td></tr> + * </table> + * @see #AppCompatTextView_android_textAppearance + * @see #AppCompatTextView_textAllCaps + */ + public static final int[] AppCompatTextView={ + 0x01010034, 0x7f0300c6 + }; + /** + * <p>This symbol is the offset where the {@link android.R.attr#textAppearance} + * attribute's value can be found in the {@link #AppCompatTextView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name android:textAppearance + */ + public static final int AppCompatTextView_android_textAppearance=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#textAllCaps} + * attribute's value can be found in the {@link #AppCompatTextView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:textAllCaps + */ + public static final int AppCompatTextView_textAllCaps=1; + /** + * Attributes that can be used with a AppCompatTheme. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #AppCompatTheme_android_windowIsFloating android:windowIsFloating}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionBarDivider de.bjusystems.vdrmanager:actionBarDivider}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionBarItemBackground de.bjusystems.vdrmanager:actionBarItemBackground}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionBarPopupTheme de.bjusystems.vdrmanager:actionBarPopupTheme}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionBarSize de.bjusystems.vdrmanager:actionBarSize}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionBarSplitStyle de.bjusystems.vdrmanager:actionBarSplitStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionBarStyle de.bjusystems.vdrmanager:actionBarStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionBarTabBarStyle de.bjusystems.vdrmanager:actionBarTabBarStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionBarTabStyle de.bjusystems.vdrmanager:actionBarTabStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionBarTabTextStyle de.bjusystems.vdrmanager:actionBarTabTextStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionBarTheme de.bjusystems.vdrmanager:actionBarTheme}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionBarWidgetTheme de.bjusystems.vdrmanager:actionBarWidgetTheme}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionButtonStyle de.bjusystems.vdrmanager:actionButtonStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionDropDownStyle de.bjusystems.vdrmanager:actionDropDownStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionMenuTextAppearance de.bjusystems.vdrmanager:actionMenuTextAppearance}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionMenuTextColor de.bjusystems.vdrmanager:actionMenuTextColor}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionModeBackground de.bjusystems.vdrmanager:actionModeBackground}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionModeCloseButtonStyle de.bjusystems.vdrmanager:actionModeCloseButtonStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionModeCloseDrawable de.bjusystems.vdrmanager:actionModeCloseDrawable}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionModeCopyDrawable de.bjusystems.vdrmanager:actionModeCopyDrawable}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionModeCutDrawable de.bjusystems.vdrmanager:actionModeCutDrawable}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionModeFindDrawable de.bjusystems.vdrmanager:actionModeFindDrawable}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionModePasteDrawable de.bjusystems.vdrmanager:actionModePasteDrawable}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionModePopupWindowStyle de.bjusystems.vdrmanager:actionModePopupWindowStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionModeSelectAllDrawable de.bjusystems.vdrmanager:actionModeSelectAllDrawable}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionModeShareDrawable de.bjusystems.vdrmanager:actionModeShareDrawable}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionModeSplitBackground de.bjusystems.vdrmanager:actionModeSplitBackground}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionModeStyle de.bjusystems.vdrmanager:actionModeStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionModeWebSearchDrawable de.bjusystems.vdrmanager:actionModeWebSearchDrawable}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionOverflowButtonStyle de.bjusystems.vdrmanager:actionOverflowButtonStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_actionOverflowMenuStyle de.bjusystems.vdrmanager:actionOverflowMenuStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_activityChooserViewStyle de.bjusystems.vdrmanager:activityChooserViewStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_alertDialogButtonGroupStyle de.bjusystems.vdrmanager:alertDialogButtonGroupStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_alertDialogCenterButtons de.bjusystems.vdrmanager:alertDialogCenterButtons}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_alertDialogStyle de.bjusystems.vdrmanager:alertDialogStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_alertDialogTheme de.bjusystems.vdrmanager:alertDialogTheme}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_autoCompleteTextViewStyle de.bjusystems.vdrmanager:autoCompleteTextViewStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_borderlessButtonStyle de.bjusystems.vdrmanager:borderlessButtonStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_buttonBarButtonStyle de.bjusystems.vdrmanager:buttonBarButtonStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_buttonBarNegativeButtonStyle de.bjusystems.vdrmanager:buttonBarNegativeButtonStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_buttonBarNeutralButtonStyle de.bjusystems.vdrmanager:buttonBarNeutralButtonStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_buttonBarPositiveButtonStyle de.bjusystems.vdrmanager:buttonBarPositiveButtonStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_buttonBarStyle de.bjusystems.vdrmanager:buttonBarStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_buttonStyle de.bjusystems.vdrmanager:buttonStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_buttonStyleSmall de.bjusystems.vdrmanager:buttonStyleSmall}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_checkboxStyle de.bjusystems.vdrmanager:checkboxStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_checkedTextViewStyle de.bjusystems.vdrmanager:checkedTextViewStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_colorAccent de.bjusystems.vdrmanager:colorAccent}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_colorButtonNormal de.bjusystems.vdrmanager:colorButtonNormal}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_colorControlActivated de.bjusystems.vdrmanager:colorControlActivated}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_colorControlHighlight de.bjusystems.vdrmanager:colorControlHighlight}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_colorControlNormal de.bjusystems.vdrmanager:colorControlNormal}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_colorPrimary de.bjusystems.vdrmanager:colorPrimary}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_colorPrimaryDark de.bjusystems.vdrmanager:colorPrimaryDark}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_colorSwitchThumbNormal de.bjusystems.vdrmanager:colorSwitchThumbNormal}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_controlBackground de.bjusystems.vdrmanager:controlBackground}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_dialogPreferredPadding de.bjusystems.vdrmanager:dialogPreferredPadding}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_dialogTheme de.bjusystems.vdrmanager:dialogTheme}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_dividerHorizontal de.bjusystems.vdrmanager:dividerHorizontal}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_dividerVertical de.bjusystems.vdrmanager:dividerVertical}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_dropDownListViewStyle de.bjusystems.vdrmanager:dropDownListViewStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_dropdownListPreferredItemHeight de.bjusystems.vdrmanager:dropdownListPreferredItemHeight}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_editTextBackground de.bjusystems.vdrmanager:editTextBackground}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_editTextColor de.bjusystems.vdrmanager:editTextColor}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_editTextStyle de.bjusystems.vdrmanager:editTextStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_homeAsUpIndicator de.bjusystems.vdrmanager:homeAsUpIndicator}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_imageButtonStyle de.bjusystems.vdrmanager:imageButtonStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_listChoiceBackgroundIndicator de.bjusystems.vdrmanager:listChoiceBackgroundIndicator}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_listDividerAlertDialog de.bjusystems.vdrmanager:listDividerAlertDialog}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_listPopupWindowStyle de.bjusystems.vdrmanager:listPopupWindowStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_listPreferredItemHeight de.bjusystems.vdrmanager:listPreferredItemHeight}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_listPreferredItemHeightLarge de.bjusystems.vdrmanager:listPreferredItemHeightLarge}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_listPreferredItemHeightSmall de.bjusystems.vdrmanager:listPreferredItemHeightSmall}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_listPreferredItemPaddingLeft de.bjusystems.vdrmanager:listPreferredItemPaddingLeft}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_listPreferredItemPaddingRight de.bjusystems.vdrmanager:listPreferredItemPaddingRight}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_panelBackground de.bjusystems.vdrmanager:panelBackground}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_panelMenuListTheme de.bjusystems.vdrmanager:panelMenuListTheme}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_panelMenuListWidth de.bjusystems.vdrmanager:panelMenuListWidth}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_popupMenuStyle de.bjusystems.vdrmanager:popupMenuStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_popupWindowStyle de.bjusystems.vdrmanager:popupWindowStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_radioButtonStyle de.bjusystems.vdrmanager:radioButtonStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_ratingBarStyle de.bjusystems.vdrmanager:ratingBarStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_ratingBarStyleIndicator de.bjusystems.vdrmanager:ratingBarStyleIndicator}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_ratingBarStyleSmall de.bjusystems.vdrmanager:ratingBarStyleSmall}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_searchViewStyle de.bjusystems.vdrmanager:searchViewStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_seekBarStyle de.bjusystems.vdrmanager:seekBarStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_selectableItemBackground de.bjusystems.vdrmanager:selectableItemBackground}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_selectableItemBackgroundBorderless de.bjusystems.vdrmanager:selectableItemBackgroundBorderless}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_spinnerDropDownItemStyle de.bjusystems.vdrmanager:spinnerDropDownItemStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_spinnerStyle de.bjusystems.vdrmanager:spinnerStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_switchStyle de.bjusystems.vdrmanager:switchStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_textAppearanceLargePopupMenu de.bjusystems.vdrmanager:textAppearanceLargePopupMenu}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_textAppearanceListItem de.bjusystems.vdrmanager:textAppearanceListItem}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_textAppearanceListItemSmall de.bjusystems.vdrmanager:textAppearanceListItemSmall}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_textAppearanceSearchResultSubtitle de.bjusystems.vdrmanager:textAppearanceSearchResultSubtitle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_textAppearanceSearchResultTitle de.bjusystems.vdrmanager:textAppearanceSearchResultTitle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_textAppearanceSmallPopupMenu de.bjusystems.vdrmanager:textAppearanceSmallPopupMenu}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_textColorAlertDialogListItem de.bjusystems.vdrmanager:textColorAlertDialogListItem}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_textColorSearchUrl de.bjusystems.vdrmanager:textColorSearchUrl}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_toolbarNavigationButtonStyle de.bjusystems.vdrmanager:toolbarNavigationButtonStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_toolbarStyle de.bjusystems.vdrmanager:toolbarStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_windowActionBar de.bjusystems.vdrmanager:windowActionBar}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_windowActionBarOverlay de.bjusystems.vdrmanager:windowActionBarOverlay}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_windowActionModeOverlay de.bjusystems.vdrmanager:windowActionModeOverlay}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_windowFixedHeightMajor de.bjusystems.vdrmanager:windowFixedHeightMajor}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_windowFixedHeightMinor de.bjusystems.vdrmanager:windowFixedHeightMinor}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_windowFixedWidthMajor de.bjusystems.vdrmanager:windowFixedWidthMajor}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_windowFixedWidthMinor de.bjusystems.vdrmanager:windowFixedWidthMinor}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_windowMinWidthMajor de.bjusystems.vdrmanager:windowMinWidthMajor}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_windowMinWidthMinor de.bjusystems.vdrmanager:windowMinWidthMinor}</code></td><td></td></tr> + * <tr><td><code>{@link #AppCompatTheme_windowNoTitle de.bjusystems.vdrmanager:windowNoTitle}</code></td><td></td></tr> + * </table> + * @see #AppCompatTheme_android_windowIsFloating + * @see #AppCompatTheme_android_windowAnimationStyle + * @see #AppCompatTheme_actionBarDivider + * @see #AppCompatTheme_actionBarItemBackground + * @see #AppCompatTheme_actionBarPopupTheme + * @see #AppCompatTheme_actionBarSize + * @see #AppCompatTheme_actionBarSplitStyle + * @see #AppCompatTheme_actionBarStyle + * @see #AppCompatTheme_actionBarTabBarStyle + * @see #AppCompatTheme_actionBarTabStyle + * @see #AppCompatTheme_actionBarTabTextStyle + * @see #AppCompatTheme_actionBarTheme + * @see #AppCompatTheme_actionBarWidgetTheme + * @see #AppCompatTheme_actionButtonStyle + * @see #AppCompatTheme_actionDropDownStyle + * @see #AppCompatTheme_actionMenuTextAppearance + * @see #AppCompatTheme_actionMenuTextColor + * @see #AppCompatTheme_actionModeBackground + * @see #AppCompatTheme_actionModeCloseButtonStyle + * @see #AppCompatTheme_actionModeCloseDrawable + * @see #AppCompatTheme_actionModeCopyDrawable + * @see #AppCompatTheme_actionModeCutDrawable + * @see #AppCompatTheme_actionModeFindDrawable + * @see #AppCompatTheme_actionModePasteDrawable + * @see #AppCompatTheme_actionModePopupWindowStyle + * @see #AppCompatTheme_actionModeSelectAllDrawable + * @see #AppCompatTheme_actionModeShareDrawable + * @see #AppCompatTheme_actionModeSplitBackground + * @see #AppCompatTheme_actionModeStyle + * @see #AppCompatTheme_actionModeWebSearchDrawable + * @see #AppCompatTheme_actionOverflowButtonStyle + * @see #AppCompatTheme_actionOverflowMenuStyle + * @see #AppCompatTheme_activityChooserViewStyle + * @see #AppCompatTheme_alertDialogButtonGroupStyle + * @see #AppCompatTheme_alertDialogCenterButtons + * @see #AppCompatTheme_alertDialogStyle + * @see #AppCompatTheme_alertDialogTheme + * @see #AppCompatTheme_autoCompleteTextViewStyle + * @see #AppCompatTheme_borderlessButtonStyle + * @see #AppCompatTheme_buttonBarButtonStyle + * @see #AppCompatTheme_buttonBarNegativeButtonStyle + * @see #AppCompatTheme_buttonBarNeutralButtonStyle + * @see #AppCompatTheme_buttonBarPositiveButtonStyle + * @see #AppCompatTheme_buttonBarStyle + * @see #AppCompatTheme_buttonStyle + * @see #AppCompatTheme_buttonStyleSmall + * @see #AppCompatTheme_checkboxStyle + * @see #AppCompatTheme_checkedTextViewStyle + * @see #AppCompatTheme_colorAccent + * @see #AppCompatTheme_colorButtonNormal + * @see #AppCompatTheme_colorControlActivated + * @see #AppCompatTheme_colorControlHighlight + * @see #AppCompatTheme_colorControlNormal + * @see #AppCompatTheme_colorPrimary + * @see #AppCompatTheme_colorPrimaryDark + * @see #AppCompatTheme_colorSwitchThumbNormal + * @see #AppCompatTheme_controlBackground + * @see #AppCompatTheme_dialogPreferredPadding + * @see #AppCompatTheme_dialogTheme + * @see #AppCompatTheme_dividerHorizontal + * @see #AppCompatTheme_dividerVertical + * @see #AppCompatTheme_dropDownListViewStyle + * @see #AppCompatTheme_dropdownListPreferredItemHeight + * @see #AppCompatTheme_editTextBackground + * @see #AppCompatTheme_editTextColor + * @see #AppCompatTheme_editTextStyle + * @see #AppCompatTheme_homeAsUpIndicator + * @see #AppCompatTheme_imageButtonStyle + * @see #AppCompatTheme_listChoiceBackgroundIndicator + * @see #AppCompatTheme_listDividerAlertDialog + * @see #AppCompatTheme_listPopupWindowStyle + * @see #AppCompatTheme_listPreferredItemHeight + * @see #AppCompatTheme_listPreferredItemHeightLarge + * @see #AppCompatTheme_listPreferredItemHeightSmall + * @see #AppCompatTheme_listPreferredItemPaddingLeft + * @see #AppCompatTheme_listPreferredItemPaddingRight + * @see #AppCompatTheme_panelBackground + * @see #AppCompatTheme_panelMenuListTheme + * @see #AppCompatTheme_panelMenuListWidth + * @see #AppCompatTheme_popupMenuStyle + * @see #AppCompatTheme_popupWindowStyle + * @see #AppCompatTheme_radioButtonStyle + * @see #AppCompatTheme_ratingBarStyle + * @see #AppCompatTheme_ratingBarStyleIndicator + * @see #AppCompatTheme_ratingBarStyleSmall + * @see #AppCompatTheme_searchViewStyle + * @see #AppCompatTheme_seekBarStyle + * @see #AppCompatTheme_selectableItemBackground + * @see #AppCompatTheme_selectableItemBackgroundBorderless + * @see #AppCompatTheme_spinnerDropDownItemStyle + * @see #AppCompatTheme_spinnerStyle + * @see #AppCompatTheme_switchStyle + * @see #AppCompatTheme_textAppearanceLargePopupMenu + * @see #AppCompatTheme_textAppearanceListItem + * @see #AppCompatTheme_textAppearanceListItemSmall + * @see #AppCompatTheme_textAppearanceSearchResultSubtitle + * @see #AppCompatTheme_textAppearanceSearchResultTitle + * @see #AppCompatTheme_textAppearanceSmallPopupMenu + * @see #AppCompatTheme_textColorAlertDialogListItem + * @see #AppCompatTheme_textColorSearchUrl + * @see #AppCompatTheme_toolbarNavigationButtonStyle + * @see #AppCompatTheme_toolbarStyle + * @see #AppCompatTheme_windowActionBar + * @see #AppCompatTheme_windowActionBarOverlay + * @see #AppCompatTheme_windowActionModeOverlay + * @see #AppCompatTheme_windowFixedHeightMajor + * @see #AppCompatTheme_windowFixedHeightMinor + * @see #AppCompatTheme_windowFixedWidthMajor + * @see #AppCompatTheme_windowFixedWidthMinor + * @see #AppCompatTheme_windowMinWidthMajor + * @see #AppCompatTheme_windowMinWidthMinor + * @see #AppCompatTheme_windowNoTitle + */ + public static final int[] AppCompatTheme={ + 0x01010057, 0x010100ae, 0x7f030000, 0x7f030001, + 0x7f030002, 0x7f030003, 0x7f030004, 0x7f030005, + 0x7f030006, 0x7f030007, 0x7f030008, 0x7f030009, + 0x7f03000a, 0x7f03000b, 0x7f03000c, 0x7f03000e, + 0x7f03000f, 0x7f030010, 0x7f030011, 0x7f030012, + 0x7f030013, 0x7f030014, 0x7f030015, 0x7f030016, + 0x7f030017, 0x7f030018, 0x7f030019, 0x7f03001a, + 0x7f03001b, 0x7f03001c, 0x7f03001d, 0x7f03001e, + 0x7f030021, 0x7f030022, 0x7f030023, 0x7f030024, + 0x7f030025, 0x7f030029, 0x7f030030, 0x7f030031, + 0x7f030032, 0x7f030033, 0x7f030034, 0x7f030035, + 0x7f030037, 0x7f030038, 0x7f03003c, 0x7f03003d, + 0x7f030045, 0x7f030046, 0x7f030047, 0x7f030048, + 0x7f030049, 0x7f03004a, 0x7f03004b, 0x7f03004c, + 0x7f030052, 0x7f030056, 0x7f030057, 0x7f03005a, + 0x7f03005c, 0x7f03005f, 0x7f030060, 0x7f030061, + 0x7f030062, 0x7f030063, 0x7f030071, 0x7f030075, + 0x7f03007d, 0x7f03007e, 0x7f030081, 0x7f030082, + 0x7f030083, 0x7f030084, 0x7f030085, 0x7f030086, + 0x7f030094, 0x7f030095, 0x7f030096, 0x7f030097, + 0x7f030099, 0x7f03009f, 0x7f0300a1, 0x7f0300a2, + 0x7f0300a3, 0x7f0300a7, 0x7f0300a8, 0x7f0300a9, + 0x7f0300aa, 0x7f0300b4, 0x7f0300b5, 0x7f0300c4, + 0x7f0300c7, 0x7f0300c8, 0x7f0300c9, 0x7f0300ca, + 0x7f0300cb, 0x7f0300cc, 0x7f0300ce, 0x7f0300cf, + 0x7f0300df, 0x7f0300e0, 0x7f0300e4, 0x7f0300e5, + 0x7f0300e6, 0x7f0300e7, 0x7f0300e8, 0x7f0300e9, + 0x7f0300ea, 0x7f0300eb, 0x7f0300ec, 0x7f0300ed + }; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionBarDivider} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionBarDivider + */ + public static final int AppCompatTheme_actionBarDivider=2; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionBarItemBackground} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionBarItemBackground + */ + public static final int AppCompatTheme_actionBarItemBackground=3; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionBarPopupTheme} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionBarPopupTheme + */ + public static final int AppCompatTheme_actionBarPopupTheme=4; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionBarSize} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>wrap_content</td><td>0</td><td></td></tr> + * </table> + * + * @attr name de.bjusystems.vdrmanager:actionBarSize + */ + public static final int AppCompatTheme_actionBarSize=5; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionBarSplitStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionBarSplitStyle + */ + public static final int AppCompatTheme_actionBarSplitStyle=6; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionBarStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionBarStyle + */ + public static final int AppCompatTheme_actionBarStyle=7; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionBarTabBarStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionBarTabBarStyle + */ + public static final int AppCompatTheme_actionBarTabBarStyle=8; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionBarTabStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionBarTabStyle + */ + public static final int AppCompatTheme_actionBarTabStyle=9; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionBarTabTextStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionBarTabTextStyle + */ + public static final int AppCompatTheme_actionBarTabTextStyle=10; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionBarTheme} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionBarTheme + */ + public static final int AppCompatTheme_actionBarTheme=11; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionBarWidgetTheme} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionBarWidgetTheme + */ + public static final int AppCompatTheme_actionBarWidgetTheme=12; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionButtonStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionButtonStyle + */ + public static final int AppCompatTheme_actionButtonStyle=13; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionDropDownStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionDropDownStyle + */ + public static final int AppCompatTheme_actionDropDownStyle=14; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionMenuTextAppearance} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionMenuTextAppearance + */ + public static final int AppCompatTheme_actionMenuTextAppearance=15; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionMenuTextColor} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionMenuTextColor + */ + public static final int AppCompatTheme_actionMenuTextColor=16; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionModeBackground} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionModeBackground + */ + public static final int AppCompatTheme_actionModeBackground=17; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionModeCloseButtonStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionModeCloseButtonStyle + */ + public static final int AppCompatTheme_actionModeCloseButtonStyle=18; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionModeCloseDrawable} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionModeCloseDrawable + */ + public static final int AppCompatTheme_actionModeCloseDrawable=19; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionModeCopyDrawable} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionModeCopyDrawable + */ + public static final int AppCompatTheme_actionModeCopyDrawable=20; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionModeCutDrawable} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionModeCutDrawable + */ + public static final int AppCompatTheme_actionModeCutDrawable=21; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionModeFindDrawable} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionModeFindDrawable + */ + public static final int AppCompatTheme_actionModeFindDrawable=22; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionModePasteDrawable} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionModePasteDrawable + */ + public static final int AppCompatTheme_actionModePasteDrawable=23; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionModePopupWindowStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionModePopupWindowStyle + */ + public static final int AppCompatTheme_actionModePopupWindowStyle=24; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionModeSelectAllDrawable} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionModeSelectAllDrawable + */ + public static final int AppCompatTheme_actionModeSelectAllDrawable=25; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionModeShareDrawable} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionModeShareDrawable + */ + public static final int AppCompatTheme_actionModeShareDrawable=26; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionModeSplitBackground} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionModeSplitBackground + */ + public static final int AppCompatTheme_actionModeSplitBackground=27; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionModeStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionModeStyle + */ + public static final int AppCompatTheme_actionModeStyle=28; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionModeWebSearchDrawable} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionModeWebSearchDrawable + */ + public static final int AppCompatTheme_actionModeWebSearchDrawable=29; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionOverflowButtonStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionOverflowButtonStyle + */ + public static final int AppCompatTheme_actionOverflowButtonStyle=30; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionOverflowMenuStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionOverflowMenuStyle + */ + public static final int AppCompatTheme_actionOverflowMenuStyle=31; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#activityChooserViewStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:activityChooserViewStyle + */ + public static final int AppCompatTheme_activityChooserViewStyle=32; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#alertDialogButtonGroupStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:alertDialogButtonGroupStyle + */ + public static final int AppCompatTheme_alertDialogButtonGroupStyle=33; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#alertDialogCenterButtons} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:alertDialogCenterButtons + */ + public static final int AppCompatTheme_alertDialogCenterButtons=34; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#alertDialogStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:alertDialogStyle + */ + public static final int AppCompatTheme_alertDialogStyle=35; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#alertDialogTheme} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:alertDialogTheme + */ + public static final int AppCompatTheme_alertDialogTheme=36; + /** + * <p>This symbol is the offset where the {@link android.R.attr#windowAnimationStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name android:windowAnimationStyle + */ + public static final int AppCompatTheme_android_windowAnimationStyle=1; + /** + * <p>This symbol is the offset where the {@link android.R.attr#windowIsFloating} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name android:windowIsFloating + */ + public static final int AppCompatTheme_android_windowIsFloating=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#autoCompleteTextViewStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:autoCompleteTextViewStyle + */ + public static final int AppCompatTheme_autoCompleteTextViewStyle=37; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#borderlessButtonStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:borderlessButtonStyle + */ + public static final int AppCompatTheme_borderlessButtonStyle=38; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#buttonBarButtonStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:buttonBarButtonStyle + */ + public static final int AppCompatTheme_buttonBarButtonStyle=39; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#buttonBarNegativeButtonStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:buttonBarNegativeButtonStyle + */ + public static final int AppCompatTheme_buttonBarNegativeButtonStyle=40; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#buttonBarNeutralButtonStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:buttonBarNeutralButtonStyle + */ + public static final int AppCompatTheme_buttonBarNeutralButtonStyle=41; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#buttonBarPositiveButtonStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:buttonBarPositiveButtonStyle + */ + public static final int AppCompatTheme_buttonBarPositiveButtonStyle=42; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#buttonBarStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:buttonBarStyle + */ + public static final int AppCompatTheme_buttonBarStyle=43; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#buttonStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:buttonStyle + */ + public static final int AppCompatTheme_buttonStyle=44; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#buttonStyleSmall} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:buttonStyleSmall + */ + public static final int AppCompatTheme_buttonStyleSmall=45; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#checkboxStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:checkboxStyle + */ + public static final int AppCompatTheme_checkboxStyle=46; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#checkedTextViewStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:checkedTextViewStyle + */ + public static final int AppCompatTheme_checkedTextViewStyle=47; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#colorAccent} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:colorAccent + */ + public static final int AppCompatTheme_colorAccent=48; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#colorButtonNormal} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:colorButtonNormal + */ + public static final int AppCompatTheme_colorButtonNormal=49; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#colorControlActivated} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:colorControlActivated + */ + public static final int AppCompatTheme_colorControlActivated=50; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#colorControlHighlight} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:colorControlHighlight + */ + public static final int AppCompatTheme_colorControlHighlight=51; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#colorControlNormal} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:colorControlNormal + */ + public static final int AppCompatTheme_colorControlNormal=52; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#colorPrimary} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:colorPrimary + */ + public static final int AppCompatTheme_colorPrimary=53; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#colorPrimaryDark} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:colorPrimaryDark + */ + public static final int AppCompatTheme_colorPrimaryDark=54; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#colorSwitchThumbNormal} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:colorSwitchThumbNormal + */ + public static final int AppCompatTheme_colorSwitchThumbNormal=55; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#controlBackground} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:controlBackground + */ + public static final int AppCompatTheme_controlBackground=56; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#dialogPreferredPadding} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:dialogPreferredPadding + */ + public static final int AppCompatTheme_dialogPreferredPadding=57; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#dialogTheme} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:dialogTheme + */ + public static final int AppCompatTheme_dialogTheme=58; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#dividerHorizontal} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:dividerHorizontal + */ + public static final int AppCompatTheme_dividerHorizontal=59; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#dividerVertical} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:dividerVertical + */ + public static final int AppCompatTheme_dividerVertical=60; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#dropDownListViewStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:dropDownListViewStyle + */ + public static final int AppCompatTheme_dropDownListViewStyle=61; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#dropdownListPreferredItemHeight} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:dropdownListPreferredItemHeight + */ + public static final int AppCompatTheme_dropdownListPreferredItemHeight=62; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#editTextBackground} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:editTextBackground + */ + public static final int AppCompatTheme_editTextBackground=63; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#editTextColor} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:editTextColor + */ + public static final int AppCompatTheme_editTextColor=64; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#editTextStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:editTextStyle + */ + public static final int AppCompatTheme_editTextStyle=65; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#homeAsUpIndicator} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:homeAsUpIndicator + */ + public static final int AppCompatTheme_homeAsUpIndicator=66; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#imageButtonStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:imageButtonStyle + */ + public static final int AppCompatTheme_imageButtonStyle=67; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#listChoiceBackgroundIndicator} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:listChoiceBackgroundIndicator + */ + public static final int AppCompatTheme_listChoiceBackgroundIndicator=68; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#listDividerAlertDialog} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:listDividerAlertDialog + */ + public static final int AppCompatTheme_listDividerAlertDialog=69; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#listPopupWindowStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:listPopupWindowStyle + */ + public static final int AppCompatTheme_listPopupWindowStyle=70; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#listPreferredItemHeight} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:listPreferredItemHeight + */ + public static final int AppCompatTheme_listPreferredItemHeight=71; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#listPreferredItemHeightLarge} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:listPreferredItemHeightLarge + */ + public static final int AppCompatTheme_listPreferredItemHeightLarge=72; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#listPreferredItemHeightSmall} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:listPreferredItemHeightSmall + */ + public static final int AppCompatTheme_listPreferredItemHeightSmall=73; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#listPreferredItemPaddingLeft} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:listPreferredItemPaddingLeft + */ + public static final int AppCompatTheme_listPreferredItemPaddingLeft=74; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#listPreferredItemPaddingRight} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:listPreferredItemPaddingRight + */ + public static final int AppCompatTheme_listPreferredItemPaddingRight=75; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#panelBackground} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:panelBackground + */ + public static final int AppCompatTheme_panelBackground=76; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#panelMenuListTheme} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:panelMenuListTheme + */ + public static final int AppCompatTheme_panelMenuListTheme=77; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#panelMenuListWidth} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:panelMenuListWidth + */ + public static final int AppCompatTheme_panelMenuListWidth=78; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#popupMenuStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:popupMenuStyle + */ + public static final int AppCompatTheme_popupMenuStyle=79; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#popupWindowStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:popupWindowStyle + */ + public static final int AppCompatTheme_popupWindowStyle=80; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#radioButtonStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:radioButtonStyle + */ + public static final int AppCompatTheme_radioButtonStyle=81; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#ratingBarStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:ratingBarStyle + */ + public static final int AppCompatTheme_ratingBarStyle=82; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#ratingBarStyleIndicator} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:ratingBarStyleIndicator + */ + public static final int AppCompatTheme_ratingBarStyleIndicator=83; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#ratingBarStyleSmall} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:ratingBarStyleSmall + */ + public static final int AppCompatTheme_ratingBarStyleSmall=84; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#searchViewStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:searchViewStyle + */ + public static final int AppCompatTheme_searchViewStyle=85; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#seekBarStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:seekBarStyle + */ + public static final int AppCompatTheme_seekBarStyle=86; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#selectableItemBackground} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:selectableItemBackground + */ + public static final int AppCompatTheme_selectableItemBackground=87; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#selectableItemBackgroundBorderless} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:selectableItemBackgroundBorderless + */ + public static final int AppCompatTheme_selectableItemBackgroundBorderless=88; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#spinnerDropDownItemStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:spinnerDropDownItemStyle + */ + public static final int AppCompatTheme_spinnerDropDownItemStyle=89; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#spinnerStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:spinnerStyle + */ + public static final int AppCompatTheme_spinnerStyle=90; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#switchStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:switchStyle + */ + public static final int AppCompatTheme_switchStyle=91; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#textAppearanceLargePopupMenu} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:textAppearanceLargePopupMenu + */ + public static final int AppCompatTheme_textAppearanceLargePopupMenu=92; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#textAppearanceListItem} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:textAppearanceListItem + */ + public static final int AppCompatTheme_textAppearanceListItem=93; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#textAppearanceListItemSmall} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:textAppearanceListItemSmall + */ + public static final int AppCompatTheme_textAppearanceListItemSmall=94; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#textAppearanceSearchResultSubtitle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:textAppearanceSearchResultSubtitle + */ + public static final int AppCompatTheme_textAppearanceSearchResultSubtitle=95; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#textAppearanceSearchResultTitle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:textAppearanceSearchResultTitle + */ + public static final int AppCompatTheme_textAppearanceSearchResultTitle=96; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#textAppearanceSmallPopupMenu} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:textAppearanceSmallPopupMenu + */ + public static final int AppCompatTheme_textAppearanceSmallPopupMenu=97; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#textColorAlertDialogListItem} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:textColorAlertDialogListItem + */ + public static final int AppCompatTheme_textColorAlertDialogListItem=98; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#textColorSearchUrl} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:textColorSearchUrl + */ + public static final int AppCompatTheme_textColorSearchUrl=99; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#toolbarNavigationButtonStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:toolbarNavigationButtonStyle + */ + public static final int AppCompatTheme_toolbarNavigationButtonStyle=100; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#toolbarStyle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:toolbarStyle + */ + public static final int AppCompatTheme_toolbarStyle=101; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#windowActionBar} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:windowActionBar + */ + public static final int AppCompatTheme_windowActionBar=102; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#windowActionBarOverlay} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:windowActionBarOverlay + */ + public static final int AppCompatTheme_windowActionBarOverlay=103; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#windowActionModeOverlay} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:windowActionModeOverlay + */ + public static final int AppCompatTheme_windowActionModeOverlay=104; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#windowFixedHeightMajor} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * <p>May be a fractional value, which is a floating point number appended with + * either % or %p, such as "<code>14.5%</code>". + * The % suffix always means a percentage of the base size; + * the optional %p suffix provides a size relative to some parent container. + * + * @attr name de.bjusystems.vdrmanager:windowFixedHeightMajor + */ + public static final int AppCompatTheme_windowFixedHeightMajor=105; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#windowFixedHeightMinor} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * <p>May be a fractional value, which is a floating point number appended with + * either % or %p, such as "<code>14.5%</code>". + * The % suffix always means a percentage of the base size; + * the optional %p suffix provides a size relative to some parent container. + * + * @attr name de.bjusystems.vdrmanager:windowFixedHeightMinor + */ + public static final int AppCompatTheme_windowFixedHeightMinor=106; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#windowFixedWidthMajor} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * <p>May be a fractional value, which is a floating point number appended with + * either % or %p, such as "<code>14.5%</code>". + * The % suffix always means a percentage of the base size; + * the optional %p suffix provides a size relative to some parent container. + * + * @attr name de.bjusystems.vdrmanager:windowFixedWidthMajor + */ + public static final int AppCompatTheme_windowFixedWidthMajor=107; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#windowFixedWidthMinor} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * <p>May be a fractional value, which is a floating point number appended with + * either % or %p, such as "<code>14.5%</code>". + * The % suffix always means a percentage of the base size; + * the optional %p suffix provides a size relative to some parent container. + * + * @attr name de.bjusystems.vdrmanager:windowFixedWidthMinor + */ + public static final int AppCompatTheme_windowFixedWidthMinor=108; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#windowMinWidthMajor} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * <p>May be a fractional value, which is a floating point number appended with + * either % or %p, such as "<code>14.5%</code>". + * The % suffix always means a percentage of the base size; + * the optional %p suffix provides a size relative to some parent container. + * + * @attr name de.bjusystems.vdrmanager:windowMinWidthMajor + */ + public static final int AppCompatTheme_windowMinWidthMajor=109; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#windowMinWidthMinor} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * <p>May be a fractional value, which is a floating point number appended with + * either % or %p, such as "<code>14.5%</code>". + * The % suffix always means a percentage of the base size; + * the optional %p suffix provides a size relative to some parent container. + * + * @attr name de.bjusystems.vdrmanager:windowMinWidthMinor + */ + public static final int AppCompatTheme_windowMinWidthMinor=110; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#windowNoTitle} + * attribute's value can be found in the {@link #AppCompatTheme} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:windowNoTitle + */ + public static final int AppCompatTheme_windowNoTitle=111; + /** + * Attributes that can be used with a ButtonBarLayout. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #ButtonBarLayout_allowStacking de.bjusystems.vdrmanager:allowStacking}</code></td><td></td></tr> + * </table> + * @see #ButtonBarLayout_allowStacking + */ + public static final int[] ButtonBarLayout={ + 0x7f030026 + }; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#allowStacking} + * attribute's value can be found in the {@link #ButtonBarLayout} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:allowStacking + */ + public static final int ButtonBarLayout_allowStacking=0; + /** + * Attributes that can be used with a CirclePageIndicator. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #CirclePageIndicator_centered de.bjusystems.vdrmanager:centered}</code></td><td></td></tr> + * <tr><td><code>{@link #CirclePageIndicator_fillColor de.bjusystems.vdrmanager:fillColor}</code></td><td></td></tr> + * <tr><td><code>{@link #CirclePageIndicator_orientation de.bjusystems.vdrmanager:orientation}</code></td><td></td></tr> + * <tr><td><code>{@link #CirclePageIndicator_radius de.bjusystems.vdrmanager:radius}</code></td><td></td></tr> + * <tr><td><code>{@link #CirclePageIndicator_snap de.bjusystems.vdrmanager:snap}</code></td><td></td></tr> + * <tr><td><code>{@link #CirclePageIndicator_strokeColor de.bjusystems.vdrmanager:strokeColor}</code></td><td></td></tr> + * <tr><td><code>{@link #CirclePageIndicator_strokeWidth de.bjusystems.vdrmanager:strokeWidth}</code></td><td></td></tr> + * </table> + * @see #CirclePageIndicator_centered + * @see #CirclePageIndicator_fillColor + * @see #CirclePageIndicator_orientation + * @see #CirclePageIndicator_radius + * @see #CirclePageIndicator_snap + * @see #CirclePageIndicator_strokeColor + * @see #CirclePageIndicator_strokeWidth + */ + public static final int[] CirclePageIndicator={ + 0x7f03003b, 0x7f030066, 0x7f030090, 0x7f0300a0, + 0x7f0300b1, 0x7f0300ba, 0x7f0300bb + }; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#centered} + * attribute's value can be found in the {@link #CirclePageIndicator} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:centered + */ + public static final int CirclePageIndicator_centered=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#fillColor} + * attribute's value can be found in the {@link #CirclePageIndicator} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:fillColor + */ + public static final int CirclePageIndicator_fillColor=1; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#orientation} + * attribute's value can be found in the {@link #CirclePageIndicator} array. + * + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>horizontal</td><td>0</td><td></td></tr> + * <tr><td>vertical</td><td>1</td><td></td></tr> + * </table> + * + * @attr name de.bjusystems.vdrmanager:orientation + */ + public static final int CirclePageIndicator_orientation=2; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#radius} + * attribute's value can be found in the {@link #CirclePageIndicator} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:radius + */ + public static final int CirclePageIndicator_radius=3; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#snap} + * attribute's value can be found in the {@link #CirclePageIndicator} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:snap + */ + public static final int CirclePageIndicator_snap=4; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#strokeColor} + * attribute's value can be found in the {@link #CirclePageIndicator} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:strokeColor + */ + public static final int CirclePageIndicator_strokeColor=5; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#strokeWidth} + * attribute's value can be found in the {@link #CirclePageIndicator} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:strokeWidth + */ + public static final int CirclePageIndicator_strokeWidth=6; + /** + * Attributes that can be used with a ColoredButton. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #ColoredButton_cornerRadius de.bjusystems.vdrmanager:cornerRadius}</code></td><td></td></tr> + * <tr><td><code>{@link #ColoredButton_normalStateColor de.bjusystems.vdrmanager:normalStateColor}</code></td><td></td></tr> + * </table> + * @see #ColoredButton_cornerRadius + * @see #ColoredButton_normalStateColor + */ + public static final int[] ColoredButton={ + 0x7f030053, 0x7f03008f + }; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#cornerRadius} + * attribute's value can be found in the {@link #ColoredButton} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:cornerRadius + */ + public static final int ColoredButton_cornerRadius=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#normalStateColor} + * attribute's value can be found in the {@link #ColoredButton} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name de.bjusystems.vdrmanager:normalStateColor + */ + public static final int ColoredButton_normalStateColor=1; + /** + * Attributes that can be used with a CompoundButton. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #CompoundButton_android_button android:button}</code></td><td></td></tr> + * <tr><td><code>{@link #CompoundButton_buttonTint de.bjusystems.vdrmanager:buttonTint}</code></td><td></td></tr> + * <tr><td><code>{@link #CompoundButton_buttonTintMode de.bjusystems.vdrmanager:buttonTintMode}</code></td><td></td></tr> + * </table> + * @see #CompoundButton_android_button + * @see #CompoundButton_buttonTint + * @see #CompoundButton_buttonTintMode + */ + public static final int[] CompoundButton={ + 0x01010107, 0x7f030039, 0x7f03003a + }; + /** + * <p>This symbol is the offset where the {@link android.R.attr#button} + * attribute's value can be found in the {@link #CompoundButton} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name android:button + */ + public static final int CompoundButton_android_button=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#buttonTint} + * attribute's value can be found in the {@link #CompoundButton} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:buttonTint + */ + public static final int CompoundButton_buttonTint=1; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#buttonTintMode} + * attribute's value can be found in the {@link #CompoundButton} array. + * + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>multiply</td><td>e</td><td></td></tr> + * <tr><td>screen</td><td>f</td><td></td></tr> + * <tr><td>src_atop</td><td>9</td><td></td></tr> + * <tr><td>src_in</td><td>5</td><td></td></tr> + * <tr><td>src_over</td><td>3</td><td></td></tr> + * </table> + * + * @attr name de.bjusystems.vdrmanager:buttonTintMode + */ + public static final int CompoundButton_buttonTintMode=2; + /** + * Attributes that can be used with a DrawerArrowToggle. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #DrawerArrowToggle_arrowHeadLength de.bjusystems.vdrmanager:arrowHeadLength}</code></td><td></td></tr> + * <tr><td><code>{@link #DrawerArrowToggle_arrowShaftLength de.bjusystems.vdrmanager:arrowShaftLength}</code></td><td></td></tr> + * <tr><td><code>{@link #DrawerArrowToggle_barLength de.bjusystems.vdrmanager:barLength}</code></td><td></td></tr> + * <tr><td><code>{@link #DrawerArrowToggle_color de.bjusystems.vdrmanager:color}</code></td><td></td></tr> + * <tr><td><code>{@link #DrawerArrowToggle_drawableSize de.bjusystems.vdrmanager:drawableSize}</code></td><td></td></tr> + * <tr><td><code>{@link #DrawerArrowToggle_gapBetweenBars de.bjusystems.vdrmanager:gapBetweenBars}</code></td><td></td></tr> + * <tr><td><code>{@link #DrawerArrowToggle_spinBars de.bjusystems.vdrmanager:spinBars}</code></td><td></td></tr> + * <tr><td><code>{@link #DrawerArrowToggle_thickness de.bjusystems.vdrmanager:thickness}</code></td><td></td></tr> + * </table> + * @see #DrawerArrowToggle_arrowHeadLength + * @see #DrawerArrowToggle_arrowShaftLength + * @see #DrawerArrowToggle_barLength + * @see #DrawerArrowToggle_color + * @see #DrawerArrowToggle_drawableSize + * @see #DrawerArrowToggle_gapBetweenBars + * @see #DrawerArrowToggle_spinBars + * @see #DrawerArrowToggle_thickness + */ + public static final int[] DrawerArrowToggle={ + 0x7f030027, 0x7f030028, 0x7f03002f, 0x7f030044, + 0x7f03005d, 0x7f03006d, 0x7f0300b3, 0x7f0300d2 + }; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#arrowHeadLength} + * attribute's value can be found in the {@link #DrawerArrowToggle} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:arrowHeadLength + */ + public static final int DrawerArrowToggle_arrowHeadLength=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#arrowShaftLength} + * attribute's value can be found in the {@link #DrawerArrowToggle} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:arrowShaftLength + */ + public static final int DrawerArrowToggle_arrowShaftLength=1; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#barLength} + * attribute's value can be found in the {@link #DrawerArrowToggle} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:barLength + */ + public static final int DrawerArrowToggle_barLength=2; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#color} + * attribute's value can be found in the {@link #DrawerArrowToggle} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:color + */ + public static final int DrawerArrowToggle_color=3; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#drawableSize} + * attribute's value can be found in the {@link #DrawerArrowToggle} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:drawableSize + */ + public static final int DrawerArrowToggle_drawableSize=4; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#gapBetweenBars} + * attribute's value can be found in the {@link #DrawerArrowToggle} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:gapBetweenBars + */ + public static final int DrawerArrowToggle_gapBetweenBars=5; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#spinBars} + * attribute's value can be found in the {@link #DrawerArrowToggle} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:spinBars + */ + public static final int DrawerArrowToggle_spinBars=6; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#thickness} + * attribute's value can be found in the {@link #DrawerArrowToggle} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:thickness + */ + public static final int DrawerArrowToggle_thickness=7; + /** + * Attributes that can be used with a LinearLayoutCompat. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #LinearLayoutCompat_android_gravity android:gravity}</code></td><td></td></tr> + * <tr><td><code>{@link #LinearLayoutCompat_android_orientation android:orientation}</code></td><td></td></tr> + * <tr><td><code>{@link #LinearLayoutCompat_android_baselineAligned android:baselineAligned}</code></td><td></td></tr> + * <tr><td><code>{@link #LinearLayoutCompat_android_baselineAlignedChildIndex android:baselineAlignedChildIndex}</code></td><td></td></tr> + * <tr><td><code>{@link #LinearLayoutCompat_android_weightSum android:weightSum}</code></td><td></td></tr> + * <tr><td><code>{@link #LinearLayoutCompat_divider de.bjusystems.vdrmanager:divider}</code></td><td></td></tr> + * <tr><td><code>{@link #LinearLayoutCompat_dividerPadding de.bjusystems.vdrmanager:dividerPadding}</code></td><td></td></tr> + * <tr><td><code>{@link #LinearLayoutCompat_measureWithLargestChild de.bjusystems.vdrmanager:measureWithLargestChild}</code></td><td></td></tr> + * <tr><td><code>{@link #LinearLayoutCompat_showDividers de.bjusystems.vdrmanager:showDividers}</code></td><td></td></tr> + * </table> + * @see #LinearLayoutCompat_android_gravity + * @see #LinearLayoutCompat_android_orientation + * @see #LinearLayoutCompat_android_baselineAligned + * @see #LinearLayoutCompat_android_baselineAlignedChildIndex + * @see #LinearLayoutCompat_android_weightSum + * @see #LinearLayoutCompat_divider + * @see #LinearLayoutCompat_dividerPadding + * @see #LinearLayoutCompat_measureWithLargestChild + * @see #LinearLayoutCompat_showDividers + */ + public static final int[] LinearLayoutCompat={ + 0x010100af, 0x010100c4, 0x01010126, 0x01010127, + 0x01010128, 0x7f030059, 0x7f03005b, 0x7f03008a, + 0x7f0300ae + }; + /** + * Attributes that can be used with a LinearLayoutCompat_Layout. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_gravity android:layout_gravity}</code></td><td></td></tr> + * <tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_width android:layout_width}</code></td><td></td></tr> + * <tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_height android:layout_height}</code></td><td></td></tr> + * <tr><td><code>{@link #LinearLayoutCompat_Layout_android_layout_weight android:layout_weight}</code></td><td></td></tr> + * </table> + * @see #LinearLayoutCompat_Layout_android_layout_gravity + * @see #LinearLayoutCompat_Layout_android_layout_width + * @see #LinearLayoutCompat_Layout_android_layout_height + * @see #LinearLayoutCompat_Layout_android_layout_weight + */ + public static final int[] LinearLayoutCompat_Layout={ + 0x010100b3, 0x010100f4, 0x010100f5, 0x01010181 + }; + /** + * <p>This symbol is the offset where the {@link android.R.attr#layout_gravity} + * attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array. + * + * <p>Must be one or more (separated by '|') of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>end</td><td>800005</td><td></td></tr> + * <tr><td>start</td><td>800003</td><td></td></tr> + * <tr><td>bottom</td><td>50</td><td></td></tr> + * <tr><td>center</td><td>11</td><td></td></tr> + * <tr><td>center_horizontal</td><td>1</td><td></td></tr> + * <tr><td>center_vertical</td><td>10</td><td></td></tr> + * <tr><td>clip_horizontal</td><td>8</td><td></td></tr> + * <tr><td>clip_vertical</td><td>80</td><td></td></tr> + * <tr><td>fill</td><td>77</td><td></td></tr> + * <tr><td>fill_horizontal</td><td>7</td><td></td></tr> + * <tr><td>fill_vertical</td><td>70</td><td></td></tr> + * <tr><td>left</td><td>3</td><td></td></tr> + * <tr><td>right</td><td>5</td><td></td></tr> + * <tr><td>top</td><td>30</td><td></td></tr> + * </table> + * + * @attr name android:layout_gravity + */ + public static final int LinearLayoutCompat_Layout_android_layout_gravity=0; + /** + * <p>This symbol is the offset where the {@link android.R.attr#layout_height} + * attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>wrap_content</td><td>fffffffe</td><td></td></tr> + * <tr><td>fill_parent</td><td>ffffffff</td><td></td></tr> + * <tr><td>match_parent</td><td>ffffffff</td><td></td></tr> + * </table> + * + * @attr name android:layout_height + */ + public static final int LinearLayoutCompat_Layout_android_layout_height=2; + /** + * <p>This symbol is the offset where the {@link android.R.attr#layout_weight} + * attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array. + * + * <p>May be a floating point value, such as "<code>1.2</code>". + * + * @attr name android:layout_weight + */ + public static final int LinearLayoutCompat_Layout_android_layout_weight=3; + /** + * <p>This symbol is the offset where the {@link android.R.attr#layout_width} + * attribute's value can be found in the {@link #LinearLayoutCompat_Layout} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>wrap_content</td><td>fffffffe</td><td></td></tr> + * <tr><td>fill_parent</td><td>ffffffff</td><td></td></tr> + * <tr><td>match_parent</td><td>ffffffff</td><td></td></tr> + * </table> + * + * @attr name android:layout_width + */ + public static final int LinearLayoutCompat_Layout_android_layout_width=1; + /** + * <p>This symbol is the offset where the {@link android.R.attr#baselineAligned} + * attribute's value can be found in the {@link #LinearLayoutCompat} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name android:baselineAligned + */ + public static final int LinearLayoutCompat_android_baselineAligned=2; + /** + * <p>This symbol is the offset where the {@link android.R.attr#baselineAlignedChildIndex} + * attribute's value can be found in the {@link #LinearLayoutCompat} array. + * + * <p>May be an integer value, such as "<code>100</code>". + * + * @attr name android:baselineAlignedChildIndex + */ + public static final int LinearLayoutCompat_android_baselineAlignedChildIndex=3; + /** + * <p>This symbol is the offset where the {@link android.R.attr#gravity} + * attribute's value can be found in the {@link #LinearLayoutCompat} array. + * + * <p>Must be one or more (separated by '|') of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>end</td><td>800005</td><td></td></tr> + * <tr><td>start</td><td>800003</td><td></td></tr> + * <tr><td>bottom</td><td>50</td><td></td></tr> + * <tr><td>center</td><td>11</td><td></td></tr> + * <tr><td>center_horizontal</td><td>1</td><td></td></tr> + * <tr><td>center_vertical</td><td>10</td><td></td></tr> + * <tr><td>clip_horizontal</td><td>8</td><td></td></tr> + * <tr><td>clip_vertical</td><td>80</td><td></td></tr> + * <tr><td>fill</td><td>77</td><td></td></tr> + * <tr><td>fill_horizontal</td><td>7</td><td></td></tr> + * <tr><td>fill_vertical</td><td>70</td><td></td></tr> + * <tr><td>left</td><td>3</td><td></td></tr> + * <tr><td>right</td><td>5</td><td></td></tr> + * <tr><td>top</td><td>30</td><td></td></tr> + * </table> + * + * @attr name android:gravity + */ + public static final int LinearLayoutCompat_android_gravity=0; + /** + * <p>This symbol is the offset where the {@link android.R.attr#orientation} + * attribute's value can be found in the {@link #LinearLayoutCompat} array. + * + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>horizontal</td><td>0</td><td></td></tr> + * <tr><td>vertical</td><td>1</td><td></td></tr> + * </table> + * + * @attr name android:orientation + */ + public static final int LinearLayoutCompat_android_orientation=1; + /** + * <p>This symbol is the offset where the {@link android.R.attr#weightSum} + * attribute's value can be found in the {@link #LinearLayoutCompat} array. + * + * <p>May be a floating point value, such as "<code>1.2</code>". + * + * @attr name android:weightSum + */ + public static final int LinearLayoutCompat_android_weightSum=4; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#divider} + * attribute's value can be found in the {@link #LinearLayoutCompat} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:divider + */ + public static final int LinearLayoutCompat_divider=5; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#dividerPadding} + * attribute's value can be found in the {@link #LinearLayoutCompat} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:dividerPadding + */ + public static final int LinearLayoutCompat_dividerPadding=6; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#measureWithLargestChild} + * attribute's value can be found in the {@link #LinearLayoutCompat} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:measureWithLargestChild + */ + public static final int LinearLayoutCompat_measureWithLargestChild=7; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#showDividers} + * attribute's value can be found in the {@link #LinearLayoutCompat} array. + * + * <p>Must be one or more (separated by '|') of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>beginning</td><td>1</td><td></td></tr> + * <tr><td>end</td><td>4</td><td></td></tr> + * <tr><td>middle</td><td>2</td><td></td></tr> + * <tr><td>none</td><td>0</td><td></td></tr> + * </table> + * + * @attr name de.bjusystems.vdrmanager:showDividers + */ + public static final int LinearLayoutCompat_showDividers=8; + /** + * Attributes that can be used with a ListPopupWindow. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #ListPopupWindow_android_dropDownHorizontalOffset android:dropDownHorizontalOffset}</code></td><td></td></tr> + * <tr><td><code>{@link #ListPopupWindow_android_dropDownVerticalOffset android:dropDownVerticalOffset}</code></td><td></td></tr> + * </table> + * @see #ListPopupWindow_android_dropDownHorizontalOffset + * @see #ListPopupWindow_android_dropDownVerticalOffset + */ + public static final int[] ListPopupWindow={ + 0x010102ac, 0x010102ad + }; + /** + * <p>This symbol is the offset where the {@link android.R.attr#dropDownHorizontalOffset} + * attribute's value can be found in the {@link #ListPopupWindow} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name android:dropDownHorizontalOffset + */ + public static final int ListPopupWindow_android_dropDownHorizontalOffset=0; + /** + * <p>This symbol is the offset where the {@link android.R.attr#dropDownVerticalOffset} + * attribute's value can be found in the {@link #ListPopupWindow} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name android:dropDownVerticalOffset + */ + public static final int ListPopupWindow_android_dropDownVerticalOffset=1; + /** + * Attributes that can be used with a MenuGroup. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #MenuGroup_android_enabled android:enabled}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuGroup_android_id android:id}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuGroup_android_visible android:visible}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuGroup_android_menuCategory android:menuCategory}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuGroup_android_orderInCategory android:orderInCategory}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuGroup_android_checkableBehavior android:checkableBehavior}</code></td><td></td></tr> + * </table> + * @see #MenuGroup_android_enabled + * @see #MenuGroup_android_id + * @see #MenuGroup_android_visible + * @see #MenuGroup_android_menuCategory + * @see #MenuGroup_android_orderInCategory + * @see #MenuGroup_android_checkableBehavior + */ + public static final int[] MenuGroup={ + 0x0101000e, 0x010100d0, 0x01010194, 0x010101de, + 0x010101df, 0x010101e0 + }; + /** + * <p>This symbol is the offset where the {@link android.R.attr#checkableBehavior} + * attribute's value can be found in the {@link #MenuGroup} array. + * + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>none</td><td>0</td><td></td></tr> + * <tr><td>all</td><td>1</td><td></td></tr> + * <tr><td>single</td><td>2</td><td></td></tr> + * </table> + * + * @attr name android:checkableBehavior + */ + public static final int MenuGroup_android_checkableBehavior=5; + /** + * <p>This symbol is the offset where the {@link android.R.attr#enabled} + * attribute's value can be found in the {@link #MenuGroup} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name android:enabled + */ + public static final int MenuGroup_android_enabled=0; + /** + * <p>This symbol is the offset where the {@link android.R.attr#id} + * attribute's value can be found in the {@link #MenuGroup} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name android:id + */ + public static final int MenuGroup_android_id=1; + /** + * <p>This symbol is the offset where the {@link android.R.attr#menuCategory} + * attribute's value can be found in the {@link #MenuGroup} array. + * + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>alternative</td><td>40000</td><td></td></tr> + * <tr><td>container</td><td>10000</td><td></td></tr> + * <tr><td>secondary</td><td>30000</td><td></td></tr> + * <tr><td>system</td><td>20000</td><td></td></tr> + * </table> + * + * @attr name android:menuCategory + */ + public static final int MenuGroup_android_menuCategory=3; + /** + * <p>This symbol is the offset where the {@link android.R.attr#orderInCategory} + * attribute's value can be found in the {@link #MenuGroup} array. + * + * <p>May be an integer value, such as "<code>100</code>". + * + * @attr name android:orderInCategory + */ + public static final int MenuGroup_android_orderInCategory=4; + /** + * <p>This symbol is the offset where the {@link android.R.attr#visible} + * attribute's value can be found in the {@link #MenuGroup} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name android:visible + */ + public static final int MenuGroup_android_visible=2; + /** + * Attributes that can be used with a MenuItem. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #MenuItem_android_icon android:icon}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuItem_android_enabled android:enabled}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuItem_android_id android:id}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuItem_android_checked android:checked}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuItem_android_visible android:visible}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuItem_android_menuCategory android:menuCategory}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuItem_android_orderInCategory android:orderInCategory}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuItem_android_title android:title}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuItem_android_titleCondensed android:titleCondensed}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuItem_android_alphabeticShortcut android:alphabeticShortcut}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuItem_android_numericShortcut android:numericShortcut}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuItem_android_checkable android:checkable}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuItem_android_onClick android:onClick}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuItem_actionLayout de.bjusystems.vdrmanager:actionLayout}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuItem_actionProviderClass de.bjusystems.vdrmanager:actionProviderClass}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuItem_actionViewClass de.bjusystems.vdrmanager:actionViewClass}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuItem_showAsAction de.bjusystems.vdrmanager:showAsAction}</code></td><td></td></tr> + * </table> + * @see #MenuItem_android_icon + * @see #MenuItem_android_enabled + * @see #MenuItem_android_id + * @see #MenuItem_android_checked + * @see #MenuItem_android_visible + * @see #MenuItem_android_menuCategory + * @see #MenuItem_android_orderInCategory + * @see #MenuItem_android_title + * @see #MenuItem_android_titleCondensed + * @see #MenuItem_android_alphabeticShortcut + * @see #MenuItem_android_numericShortcut + * @see #MenuItem_android_checkable + * @see #MenuItem_android_onClick + * @see #MenuItem_actionLayout + * @see #MenuItem_actionProviderClass + * @see #MenuItem_actionViewClass + * @see #MenuItem_showAsAction + */ + public static final int[] MenuItem={ + 0x01010002, 0x0101000e, 0x010100d0, 0x01010106, + 0x01010194, 0x010101de, 0x010101df, 0x010101e1, + 0x010101e2, 0x010101e3, 0x010101e4, 0x010101e5, + 0x0101026f, 0x7f03000d, 0x7f03001f, 0x7f030020, + 0x7f0300ad + }; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionLayout} + * attribute's value can be found in the {@link #MenuItem} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:actionLayout + */ + public static final int MenuItem_actionLayout=13; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionProviderClass} + * attribute's value can be found in the {@link #MenuItem} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name de.bjusystems.vdrmanager:actionProviderClass + */ + public static final int MenuItem_actionProviderClass=14; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#actionViewClass} + * attribute's value can be found in the {@link #MenuItem} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name de.bjusystems.vdrmanager:actionViewClass + */ + public static final int MenuItem_actionViewClass=15; + /** + * <p>This symbol is the offset where the {@link android.R.attr#alphabeticShortcut} + * attribute's value can be found in the {@link #MenuItem} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name android:alphabeticShortcut + */ + public static final int MenuItem_android_alphabeticShortcut=9; + /** + * <p>This symbol is the offset where the {@link android.R.attr#checkable} + * attribute's value can be found in the {@link #MenuItem} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name android:checkable + */ + public static final int MenuItem_android_checkable=11; + /** + * <p>This symbol is the offset where the {@link android.R.attr#checked} + * attribute's value can be found in the {@link #MenuItem} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name android:checked + */ + public static final int MenuItem_android_checked=3; + /** + * <p>This symbol is the offset where the {@link android.R.attr#enabled} + * attribute's value can be found in the {@link #MenuItem} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name android:enabled + */ + public static final int MenuItem_android_enabled=1; + /** + * <p>This symbol is the offset where the {@link android.R.attr#icon} + * attribute's value can be found in the {@link #MenuItem} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name android:icon + */ + public static final int MenuItem_android_icon=0; + /** + * <p>This symbol is the offset where the {@link android.R.attr#id} + * attribute's value can be found in the {@link #MenuItem} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name android:id + */ + public static final int MenuItem_android_id=2; + /** + * <p>This symbol is the offset where the {@link android.R.attr#menuCategory} + * attribute's value can be found in the {@link #MenuItem} array. + * + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>alternative</td><td>40000</td><td></td></tr> + * <tr><td>container</td><td>10000</td><td></td></tr> + * <tr><td>secondary</td><td>30000</td><td></td></tr> + * <tr><td>system</td><td>20000</td><td></td></tr> + * </table> + * + * @attr name android:menuCategory + */ + public static final int MenuItem_android_menuCategory=5; + /** + * <p>This symbol is the offset where the {@link android.R.attr#numericShortcut} + * attribute's value can be found in the {@link #MenuItem} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name android:numericShortcut + */ + public static final int MenuItem_android_numericShortcut=10; + /** + * <p>This symbol is the offset where the {@link android.R.attr#onClick} + * attribute's value can be found in the {@link #MenuItem} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name android:onClick + */ + public static final int MenuItem_android_onClick=12; + /** + * <p>This symbol is the offset where the {@link android.R.attr#orderInCategory} + * attribute's value can be found in the {@link #MenuItem} array. + * + * <p>May be an integer value, such as "<code>100</code>". + * + * @attr name android:orderInCategory + */ + public static final int MenuItem_android_orderInCategory=6; + /** + * <p>This symbol is the offset where the {@link android.R.attr#title} + * attribute's value can be found in the {@link #MenuItem} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name android:title + */ + public static final int MenuItem_android_title=7; + /** + * <p>This symbol is the offset where the {@link android.R.attr#titleCondensed} + * attribute's value can be found in the {@link #MenuItem} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name android:titleCondensed + */ + public static final int MenuItem_android_titleCondensed=8; + /** + * <p>This symbol is the offset where the {@link android.R.attr#visible} + * attribute's value can be found in the {@link #MenuItem} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name android:visible + */ + public static final int MenuItem_android_visible=4; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#showAsAction} + * attribute's value can be found in the {@link #MenuItem} array. + * + * <p>Must be one or more (separated by '|') of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>always</td><td>2</td><td></td></tr> + * <tr><td>collapseActionView</td><td>8</td><td></td></tr> + * <tr><td>ifRoom</td><td>1</td><td></td></tr> + * <tr><td>never</td><td>0</td><td></td></tr> + * <tr><td>withText</td><td>4</td><td></td></tr> + * </table> + * + * @attr name de.bjusystems.vdrmanager:showAsAction + */ + public static final int MenuItem_showAsAction=16; + /** + * Attributes that can be used with a MenuView. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #MenuView_android_windowAnimationStyle android:windowAnimationStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuView_android_itemTextAppearance android:itemTextAppearance}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuView_android_horizontalDivider android:horizontalDivider}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuView_android_verticalDivider android:verticalDivider}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuView_android_headerBackground android:headerBackground}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuView_android_itemBackground android:itemBackground}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuView_android_itemIconDisabledAlpha android:itemIconDisabledAlpha}</code></td><td></td></tr> + * <tr><td><code>{@link #MenuView_preserveIconSpacing de.bjusystems.vdrmanager:preserveIconSpacing}</code></td><td></td></tr> + * </table> + * @see #MenuView_android_windowAnimationStyle + * @see #MenuView_android_itemTextAppearance + * @see #MenuView_android_horizontalDivider + * @see #MenuView_android_verticalDivider + * @see #MenuView_android_headerBackground + * @see #MenuView_android_itemBackground + * @see #MenuView_android_itemIconDisabledAlpha + * @see #MenuView_preserveIconSpacing + */ + public static final int[] MenuView={ + 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, + 0x0101012f, 0x01010130, 0x01010131, 0x7f03009a + }; + /** + * <p>This symbol is the offset where the {@link android.R.attr#headerBackground} + * attribute's value can be found in the {@link #MenuView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name android:headerBackground + */ + public static final int MenuView_android_headerBackground=4; + /** + * <p>This symbol is the offset where the {@link android.R.attr#horizontalDivider} + * attribute's value can be found in the {@link #MenuView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name android:horizontalDivider + */ + public static final int MenuView_android_horizontalDivider=2; + /** + * <p>This symbol is the offset where the {@link android.R.attr#itemBackground} + * attribute's value can be found in the {@link #MenuView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name android:itemBackground + */ + public static final int MenuView_android_itemBackground=5; + /** + * <p>This symbol is the offset where the {@link android.R.attr#itemIconDisabledAlpha} + * attribute's value can be found in the {@link #MenuView} array. + * + * <p>May be a floating point value, such as "<code>1.2</code>". + * + * @attr name android:itemIconDisabledAlpha + */ + public static final int MenuView_android_itemIconDisabledAlpha=6; + /** + * <p>This symbol is the offset where the {@link android.R.attr#itemTextAppearance} + * attribute's value can be found in the {@link #MenuView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name android:itemTextAppearance + */ + public static final int MenuView_android_itemTextAppearance=1; + /** + * <p>This symbol is the offset where the {@link android.R.attr#verticalDivider} + * attribute's value can be found in the {@link #MenuView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name android:verticalDivider + */ + public static final int MenuView_android_verticalDivider=3; + /** + * <p>This symbol is the offset where the {@link android.R.attr#windowAnimationStyle} + * attribute's value can be found in the {@link #MenuView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name android:windowAnimationStyle + */ + public static final int MenuView_android_windowAnimationStyle=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#preserveIconSpacing} + * attribute's value can be found in the {@link #MenuView} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:preserveIconSpacing + */ + public static final int MenuView_preserveIconSpacing=7; + /** + * Attributes that can be used with a PopupWindow. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #PopupWindow_android_popupBackground android:popupBackground}</code></td><td></td></tr> + * <tr><td><code>{@link #PopupWindow_overlapAnchor de.bjusystems.vdrmanager:overlapAnchor}</code></td><td></td></tr> + * </table> + * @see #PopupWindow_android_popupBackground + * @see #PopupWindow_overlapAnchor + */ + public static final int[] PopupWindow={ + 0x01010176, 0x7f030091 + }; + /** + * Attributes that can be used with a PopupWindowBackgroundState. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #PopupWindowBackgroundState_state_above_anchor de.bjusystems.vdrmanager:state_above_anchor}</code></td><td></td></tr> + * </table> + * @see #PopupWindowBackgroundState_state_above_anchor + */ + public static final int[] PopupWindowBackgroundState={ + 0x7f0300b9 + }; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#state_above_anchor} + * attribute's value can be found in the {@link #PopupWindowBackgroundState} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:state_above_anchor + */ + public static final int PopupWindowBackgroundState_state_above_anchor=0; + /** + * <p>This symbol is the offset where the {@link android.R.attr#popupBackground} + * attribute's value can be found in the {@link #PopupWindow} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name android:popupBackground + */ + public static final int PopupWindow_android_popupBackground=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#overlapAnchor} + * attribute's value can be found in the {@link #PopupWindow} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:overlapAnchor + */ + public static final int PopupWindow_overlapAnchor=1; + /** + * Attributes that can be used with a RecyclerView. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #RecyclerView_android_orientation android:orientation}</code></td><td></td></tr> + * <tr><td><code>{@link #RecyclerView_layoutManager de.bjusystems.vdrmanager:layoutManager}</code></td><td></td></tr> + * <tr><td><code>{@link #RecyclerView_reverseLayout de.bjusystems.vdrmanager:reverseLayout}</code></td><td></td></tr> + * <tr><td><code>{@link #RecyclerView_spanCount de.bjusystems.vdrmanager:spanCount}</code></td><td></td></tr> + * <tr><td><code>{@link #RecyclerView_stackFromEnd de.bjusystems.vdrmanager:stackFromEnd}</code></td><td></td></tr> + * </table> + * @see #RecyclerView_android_orientation + * @see #RecyclerView_layoutManager + * @see #RecyclerView_reverseLayout + * @see #RecyclerView_spanCount + * @see #RecyclerView_stackFromEnd + */ + public static final int[] RecyclerView={ + 0x010100c4, 0x7f03007b, 0x7f0300a4, 0x7f0300b2, + 0x7f0300b8 + }; + /** + * <p>This symbol is the offset where the {@link android.R.attr#orientation} + * attribute's value can be found in the {@link #RecyclerView} array. + * + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>horizontal</td><td>0</td><td></td></tr> + * <tr><td>vertical</td><td>1</td><td></td></tr> + * </table> + * + * @attr name android:orientation + */ + public static final int RecyclerView_android_orientation=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#layoutManager} + * attribute's value can be found in the {@link #RecyclerView} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name de.bjusystems.vdrmanager:layoutManager + */ + public static final int RecyclerView_layoutManager=1; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#reverseLayout} + * attribute's value can be found in the {@link #RecyclerView} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:reverseLayout + */ + public static final int RecyclerView_reverseLayout=2; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#spanCount} + * attribute's value can be found in the {@link #RecyclerView} array. + * + * <p>May be an integer value, such as "<code>100</code>". + * + * @attr name de.bjusystems.vdrmanager:spanCount + */ + public static final int RecyclerView_spanCount=3; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#stackFromEnd} + * attribute's value can be found in the {@link #RecyclerView} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:stackFromEnd + */ + public static final int RecyclerView_stackFromEnd=4; + /** + * Attributes that can be used with a SearchView. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #SearchView_android_focusable android:focusable}</code></td><td></td></tr> + * <tr><td><code>{@link #SearchView_android_maxWidth android:maxWidth}</code></td><td></td></tr> + * <tr><td><code>{@link #SearchView_android_inputType android:inputType}</code></td><td></td></tr> + * <tr><td><code>{@link #SearchView_android_imeOptions android:imeOptions}</code></td><td></td></tr> + * <tr><td><code>{@link #SearchView_closeIcon de.bjusystems.vdrmanager:closeIcon}</code></td><td></td></tr> + * <tr><td><code>{@link #SearchView_commitIcon de.bjusystems.vdrmanager:commitIcon}</code></td><td></td></tr> + * <tr><td><code>{@link #SearchView_defaultQueryHint de.bjusystems.vdrmanager:defaultQueryHint}</code></td><td></td></tr> + * <tr><td><code>{@link #SearchView_goIcon de.bjusystems.vdrmanager:goIcon}</code></td><td></td></tr> + * <tr><td><code>{@link #SearchView_iconifiedByDefault de.bjusystems.vdrmanager:iconifiedByDefault}</code></td><td></td></tr> + * <tr><td><code>{@link #SearchView_layout de.bjusystems.vdrmanager:layout}</code></td><td></td></tr> + * <tr><td><code>{@link #SearchView_queryBackground de.bjusystems.vdrmanager:queryBackground}</code></td><td></td></tr> + * <tr><td><code>{@link #SearchView_queryHint de.bjusystems.vdrmanager:queryHint}</code></td><td></td></tr> + * <tr><td><code>{@link #SearchView_searchHintIcon de.bjusystems.vdrmanager:searchHintIcon}</code></td><td></td></tr> + * <tr><td><code>{@link #SearchView_searchIcon de.bjusystems.vdrmanager:searchIcon}</code></td><td></td></tr> + * <tr><td><code>{@link #SearchView_submitBackground de.bjusystems.vdrmanager:submitBackground}</code></td><td></td></tr> + * <tr><td><code>{@link #SearchView_suggestionRowLayout de.bjusystems.vdrmanager:suggestionRowLayout}</code></td><td></td></tr> + * <tr><td><code>{@link #SearchView_voiceIcon de.bjusystems.vdrmanager:voiceIcon}</code></td><td></td></tr> + * </table> + * @see #SearchView_android_focusable + * @see #SearchView_android_maxWidth + * @see #SearchView_android_inputType + * @see #SearchView_android_imeOptions + * @see #SearchView_closeIcon + * @see #SearchView_commitIcon + * @see #SearchView_defaultQueryHint + * @see #SearchView_goIcon + * @see #SearchView_iconifiedByDefault + * @see #SearchView_layout + * @see #SearchView_queryBackground + * @see #SearchView_queryHint + * @see #SearchView_searchHintIcon + * @see #SearchView_searchIcon + * @see #SearchView_submitBackground + * @see #SearchView_suggestionRowLayout + * @see #SearchView_voiceIcon + */ + public static final int[] SearchView={ + 0x010100da, 0x0101011f, 0x01010220, 0x01010264, + 0x7f030040, 0x7f03004d, 0x7f030055, 0x7f03006e, + 0x7f030074, 0x7f03007a, 0x7f03009d, 0x7f03009e, + 0x7f0300a5, 0x7f0300a6, 0x7f0300bc, 0x7f0300c1, + 0x7f0300e3 + }; + /** + * <p>This symbol is the offset where the {@link android.R.attr#focusable} + * attribute's value can be found in the {@link #SearchView} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name android:focusable + */ + public static final int SearchView_android_focusable=0; + /** + * <p>This symbol is the offset where the {@link android.R.attr#imeOptions} + * attribute's value can be found in the {@link #SearchView} array. + * + * <p>Must be one or more (separated by '|') of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>normal</td><td>0</td><td></td></tr> + * <tr><td>actionDone</td><td>6</td><td></td></tr> + * <tr><td>actionGo</td><td>2</td><td></td></tr> + * <tr><td>actionNext</td><td>5</td><td></td></tr> + * <tr><td>actionNone</td><td>1</td><td></td></tr> + * <tr><td>actionPrevious</td><td>7</td><td></td></tr> + * <tr><td>actionSearch</td><td>3</td><td></td></tr> + * <tr><td>actionSend</td><td>4</td><td></td></tr> + * <tr><td>actionUnspecified</td><td>0</td><td></td></tr> + * <tr><td>flagForceAscii</td><td>80000000</td><td></td></tr> + * <tr><td>flagNavigateNext</td><td>8000000</td><td></td></tr> + * <tr><td>flagNavigatePrevious</td><td>4000000</td><td></td></tr> + * <tr><td>flagNoAccessoryAction</td><td>20000000</td><td></td></tr> + * <tr><td>flagNoEnterAction</td><td>40000000</td><td></td></tr> + * <tr><td>flagNoExtractUi</td><td>10000000</td><td></td></tr> + * <tr><td>flagNoFullscreen</td><td>2000000</td><td></td></tr> + * </table> + * + * @attr name android:imeOptions + */ + public static final int SearchView_android_imeOptions=3; + /** + * <p>This symbol is the offset where the {@link android.R.attr#inputType} + * attribute's value can be found in the {@link #SearchView} array. + * + * <p>Must be one or more (separated by '|') of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>none</td><td>0</td><td></td></tr> + * <tr><td>date</td><td>14</td><td></td></tr> + * <tr><td>datetime</td><td>4</td><td></td></tr> + * <tr><td>number</td><td>2</td><td></td></tr> + * <tr><td>numberDecimal</td><td>2002</td><td></td></tr> + * <tr><td>numberPassword</td><td>12</td><td></td></tr> + * <tr><td>numberSigned</td><td>1002</td><td></td></tr> + * <tr><td>phone</td><td>3</td><td></td></tr> + * <tr><td>text</td><td>1</td><td></td></tr> + * <tr><td>textAutoComplete</td><td>10001</td><td></td></tr> + * <tr><td>textAutoCorrect</td><td>8001</td><td></td></tr> + * <tr><td>textCapCharacters</td><td>1001</td><td></td></tr> + * <tr><td>textCapSentences</td><td>4001</td><td></td></tr> + * <tr><td>textCapWords</td><td>2001</td><td></td></tr> + * <tr><td>textEmailAddress</td><td>21</td><td></td></tr> + * <tr><td>textEmailSubject</td><td>31</td><td></td></tr> + * <tr><td>textFilter</td><td>b1</td><td></td></tr> + * <tr><td>textImeMultiLine</td><td>40001</td><td></td></tr> + * <tr><td>textLongMessage</td><td>51</td><td></td></tr> + * <tr><td>textMultiLine</td><td>20001</td><td></td></tr> + * <tr><td>textNoSuggestions</td><td>80001</td><td></td></tr> + * <tr><td>textPassword</td><td>81</td><td></td></tr> + * <tr><td>textPersonName</td><td>61</td><td></td></tr> + * <tr><td>textPhonetic</td><td>c1</td><td></td></tr> + * <tr><td>textPostalAddress</td><td>71</td><td></td></tr> + * <tr><td>textShortMessage</td><td>41</td><td></td></tr> + * <tr><td>textUri</td><td>11</td><td></td></tr> + * <tr><td>textVisiblePassword</td><td>91</td><td></td></tr> + * <tr><td>textWebEditText</td><td>a1</td><td></td></tr> + * <tr><td>textWebEmailAddress</td><td>d1</td><td></td></tr> + * <tr><td>textWebPassword</td><td>e1</td><td></td></tr> + * <tr><td>time</td><td>24</td><td></td></tr> + * </table> + * + * @attr name android:inputType + */ + public static final int SearchView_android_inputType=2; + /** + * <p>This symbol is the offset where the {@link android.R.attr#maxWidth} + * attribute's value can be found in the {@link #SearchView} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name android:maxWidth + */ + public static final int SearchView_android_maxWidth=1; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#closeIcon} + * attribute's value can be found in the {@link #SearchView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:closeIcon + */ + public static final int SearchView_closeIcon=4; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#commitIcon} + * attribute's value can be found in the {@link #SearchView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:commitIcon + */ + public static final int SearchView_commitIcon=5; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#defaultQueryHint} + * attribute's value can be found in the {@link #SearchView} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name de.bjusystems.vdrmanager:defaultQueryHint + */ + public static final int SearchView_defaultQueryHint=6; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#goIcon} + * attribute's value can be found in the {@link #SearchView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:goIcon + */ + public static final int SearchView_goIcon=7; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#iconifiedByDefault} + * attribute's value can be found in the {@link #SearchView} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:iconifiedByDefault + */ + public static final int SearchView_iconifiedByDefault=8; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#layout} + * attribute's value can be found in the {@link #SearchView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:layout + */ + public static final int SearchView_layout=9; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#queryBackground} + * attribute's value can be found in the {@link #SearchView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:queryBackground + */ + public static final int SearchView_queryBackground=10; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#queryHint} + * attribute's value can be found in the {@link #SearchView} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name de.bjusystems.vdrmanager:queryHint + */ + public static final int SearchView_queryHint=11; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#searchHintIcon} + * attribute's value can be found in the {@link #SearchView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:searchHintIcon + */ + public static final int SearchView_searchHintIcon=12; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#searchIcon} + * attribute's value can be found in the {@link #SearchView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:searchIcon + */ + public static final int SearchView_searchIcon=13; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#submitBackground} + * attribute's value can be found in the {@link #SearchView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:submitBackground + */ + public static final int SearchView_submitBackground=14; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#suggestionRowLayout} + * attribute's value can be found in the {@link #SearchView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:suggestionRowLayout + */ + public static final int SearchView_suggestionRowLayout=15; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#voiceIcon} + * attribute's value can be found in the {@link #SearchView} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:voiceIcon + */ + public static final int SearchView_voiceIcon=16; + /** + * Attributes that can be used with a SearchableSpinner. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #SearchableSpinner_list de.bjusystems.vdrmanager:list}</code></td><td></td></tr> + * </table> + * @see #SearchableSpinner_list + */ + public static final int[] SearchableSpinner={ + 0x7f03007c + }; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#list} + * attribute's value can be found in the {@link #SearchableSpinner} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:list + */ + public static final int SearchableSpinner_list=0; + /** + * Attributes that can be used with a Spinner. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #Spinner_android_entries android:entries}</code></td><td></td></tr> + * <tr><td><code>{@link #Spinner_android_popupBackground android:popupBackground}</code></td><td></td></tr> + * <tr><td><code>{@link #Spinner_android_prompt android:prompt}</code></td><td></td></tr> + * <tr><td><code>{@link #Spinner_android_dropDownWidth android:dropDownWidth}</code></td><td></td></tr> + * <tr><td><code>{@link #Spinner_popupTheme de.bjusystems.vdrmanager:popupTheme}</code></td><td></td></tr> + * </table> + * @see #Spinner_android_entries + * @see #Spinner_android_popupBackground + * @see #Spinner_android_prompt + * @see #Spinner_android_dropDownWidth + * @see #Spinner_popupTheme + */ + public static final int[] Spinner={ + 0x010100b2, 0x01010176, 0x0101017b, 0x01010262, + 0x7f030098 + }; + /** + * <p>This symbol is the offset where the {@link android.R.attr#dropDownWidth} + * attribute's value can be found in the {@link #Spinner} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>wrap_content</td><td>fffffffe</td><td></td></tr> + * <tr><td>fill_parent</td><td>ffffffff</td><td></td></tr> + * <tr><td>match_parent</td><td>ffffffff</td><td></td></tr> + * </table> + * + * @attr name android:dropDownWidth + */ + public static final int Spinner_android_dropDownWidth=3; + /** + * <p>This symbol is the offset where the {@link android.R.attr#entries} + * attribute's value can be found in the {@link #Spinner} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name android:entries + */ + public static final int Spinner_android_entries=0; + /** + * <p>This symbol is the offset where the {@link android.R.attr#popupBackground} + * attribute's value can be found in the {@link #Spinner} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name android:popupBackground + */ + public static final int Spinner_android_popupBackground=1; + /** + * <p>This symbol is the offset where the {@link android.R.attr#prompt} + * attribute's value can be found in the {@link #Spinner} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name android:prompt + */ + public static final int Spinner_android_prompt=2; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#popupTheme} + * attribute's value can be found in the {@link #Spinner} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:popupTheme + */ + public static final int Spinner_popupTheme=4; + /** + * Attributes that can be used with a SwitchCompat. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #SwitchCompat_android_textOn android:textOn}</code></td><td></td></tr> + * <tr><td><code>{@link #SwitchCompat_android_textOff android:textOff}</code></td><td></td></tr> + * <tr><td><code>{@link #SwitchCompat_android_thumb android:thumb}</code></td><td></td></tr> + * <tr><td><code>{@link #SwitchCompat_showText de.bjusystems.vdrmanager:showText}</code></td><td></td></tr> + * <tr><td><code>{@link #SwitchCompat_splitTrack de.bjusystems.vdrmanager:splitTrack}</code></td><td></td></tr> + * <tr><td><code>{@link #SwitchCompat_switchMinWidth de.bjusystems.vdrmanager:switchMinWidth}</code></td><td></td></tr> + * <tr><td><code>{@link #SwitchCompat_switchPadding de.bjusystems.vdrmanager:switchPadding}</code></td><td></td></tr> + * <tr><td><code>{@link #SwitchCompat_switchTextAppearance de.bjusystems.vdrmanager:switchTextAppearance}</code></td><td></td></tr> + * <tr><td><code>{@link #SwitchCompat_thumbTextPadding de.bjusystems.vdrmanager:thumbTextPadding}</code></td><td></td></tr> + * <tr><td><code>{@link #SwitchCompat_track de.bjusystems.vdrmanager:track}</code></td><td></td></tr> + * </table> + * @see #SwitchCompat_android_textOn + * @see #SwitchCompat_android_textOff + * @see #SwitchCompat_android_thumb + * @see #SwitchCompat_showText + * @see #SwitchCompat_splitTrack + * @see #SwitchCompat_switchMinWidth + * @see #SwitchCompat_switchPadding + * @see #SwitchCompat_switchTextAppearance + * @see #SwitchCompat_thumbTextPadding + * @see #SwitchCompat_track + */ + public static final int[] SwitchCompat={ + 0x01010124, 0x01010125, 0x01010142, 0x7f0300af, + 0x7f0300b6, 0x7f0300c2, 0x7f0300c3, 0x7f0300c5, + 0x7f0300d3, 0x7f0300e2 + }; + /** + * <p>This symbol is the offset where the {@link android.R.attr#textOff} + * attribute's value can be found in the {@link #SwitchCompat} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name android:textOff + */ + public static final int SwitchCompat_android_textOff=1; + /** + * <p>This symbol is the offset where the {@link android.R.attr#textOn} + * attribute's value can be found in the {@link #SwitchCompat} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name android:textOn + */ + public static final int SwitchCompat_android_textOn=0; + /** + * <p>This symbol is the offset where the {@link android.R.attr#thumb} + * attribute's value can be found in the {@link #SwitchCompat} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name android:thumb + */ + public static final int SwitchCompat_android_thumb=2; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#showText} + * attribute's value can be found in the {@link #SwitchCompat} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:showText + */ + public static final int SwitchCompat_showText=3; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#splitTrack} + * attribute's value can be found in the {@link #SwitchCompat} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:splitTrack + */ + public static final int SwitchCompat_splitTrack=4; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#switchMinWidth} + * attribute's value can be found in the {@link #SwitchCompat} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:switchMinWidth + */ + public static final int SwitchCompat_switchMinWidth=5; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#switchPadding} + * attribute's value can be found in the {@link #SwitchCompat} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:switchPadding + */ + public static final int SwitchCompat_switchPadding=6; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#switchTextAppearance} + * attribute's value can be found in the {@link #SwitchCompat} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:switchTextAppearance + */ + public static final int SwitchCompat_switchTextAppearance=7; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#thumbTextPadding} + * attribute's value can be found in the {@link #SwitchCompat} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:thumbTextPadding + */ + public static final int SwitchCompat_thumbTextPadding=8; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#track} + * attribute's value can be found in the {@link #SwitchCompat} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:track + */ + public static final int SwitchCompat_track=9; + /** + * Attributes that can be used with a TextAppearance. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #TextAppearance_android_textSize android:textSize}</code></td><td></td></tr> + * <tr><td><code>{@link #TextAppearance_android_typeface android:typeface}</code></td><td></td></tr> + * <tr><td><code>{@link #TextAppearance_android_textStyle android:textStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #TextAppearance_android_textColor android:textColor}</code></td><td></td></tr> + * <tr><td><code>{@link #TextAppearance_android_shadowColor android:shadowColor}</code></td><td></td></tr> + * <tr><td><code>{@link #TextAppearance_android_shadowDx android:shadowDx}</code></td><td></td></tr> + * <tr><td><code>{@link #TextAppearance_android_shadowDy android:shadowDy}</code></td><td></td></tr> + * <tr><td><code>{@link #TextAppearance_android_shadowRadius android:shadowRadius}</code></td><td></td></tr> + * <tr><td><code>{@link #TextAppearance_textAllCaps de.bjusystems.vdrmanager:textAllCaps}</code></td><td></td></tr> + * </table> + * @see #TextAppearance_android_textSize + * @see #TextAppearance_android_typeface + * @see #TextAppearance_android_textStyle + * @see #TextAppearance_android_textColor + * @see #TextAppearance_android_shadowColor + * @see #TextAppearance_android_shadowDx + * @see #TextAppearance_android_shadowDy + * @see #TextAppearance_android_shadowRadius + * @see #TextAppearance_textAllCaps + */ + public static final int[] TextAppearance={ + 0x01010095, 0x01010096, 0x01010097, 0x01010098, + 0x01010161, 0x01010162, 0x01010163, 0x01010164, + 0x7f0300c6 + }; + /** + * <p>This symbol is the offset where the {@link android.R.attr#shadowColor} + * attribute's value can be found in the {@link #TextAppearance} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name android:shadowColor + */ + public static final int TextAppearance_android_shadowColor=4; + /** + * <p>This symbol is the offset where the {@link android.R.attr#shadowDx} + * attribute's value can be found in the {@link #TextAppearance} array. + * + * <p>May be a floating point value, such as "<code>1.2</code>". + * + * @attr name android:shadowDx + */ + public static final int TextAppearance_android_shadowDx=5; + /** + * <p>This symbol is the offset where the {@link android.R.attr#shadowDy} + * attribute's value can be found in the {@link #TextAppearance} array. + * + * <p>May be a floating point value, such as "<code>1.2</code>". + * + * @attr name android:shadowDy + */ + public static final int TextAppearance_android_shadowDy=6; + /** + * <p>This symbol is the offset where the {@link android.R.attr#shadowRadius} + * attribute's value can be found in the {@link #TextAppearance} array. + * + * <p>May be a floating point value, such as "<code>1.2</code>". + * + * @attr name android:shadowRadius + */ + public static final int TextAppearance_android_shadowRadius=7; + /** + * <p>This symbol is the offset where the {@link android.R.attr#textColor} + * attribute's value can be found in the {@link #TextAppearance} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name android:textColor + */ + public static final int TextAppearance_android_textColor=3; + /** + * <p>This symbol is the offset where the {@link android.R.attr#textSize} + * attribute's value can be found in the {@link #TextAppearance} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name android:textSize + */ + public static final int TextAppearance_android_textSize=0; + /** + * <p>This symbol is the offset where the {@link android.R.attr#textStyle} + * attribute's value can be found in the {@link #TextAppearance} array. + * + * <p>Must be one or more (separated by '|') of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>normal</td><td>0</td><td></td></tr> + * <tr><td>bold</td><td>1</td><td></td></tr> + * <tr><td>italic</td><td>2</td><td></td></tr> + * </table> + * + * @attr name android:textStyle + */ + public static final int TextAppearance_android_textStyle=2; + /** + * <p>This symbol is the offset where the {@link android.R.attr#typeface} + * attribute's value can be found in the {@link #TextAppearance} array. + * + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>monospace</td><td>3</td><td></td></tr> + * <tr><td>normal</td><td>0</td><td></td></tr> + * <tr><td>sans</td><td>1</td><td></td></tr> + * <tr><td>serif</td><td>2</td><td></td></tr> + * </table> + * + * @attr name android:typeface + */ + public static final int TextAppearance_android_typeface=1; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#textAllCaps} + * attribute's value can be found in the {@link #TextAppearance} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:textAllCaps + */ + public static final int TextAppearance_textAllCaps=8; + /** + * Attributes that can be used with a TitlePageIndicator. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #TitlePageIndicator_clipPadding de.bjusystems.vdrmanager:clipPadding}</code></td><td></td></tr> + * <tr><td><code>{@link #TitlePageIndicator_footerColor de.bjusystems.vdrmanager:footerColor}</code></td><td></td></tr> + * <tr><td><code>{@link #TitlePageIndicator_footerIndicatorHeight de.bjusystems.vdrmanager:footerIndicatorHeight}</code></td><td></td></tr> + * <tr><td><code>{@link #TitlePageIndicator_footerIndicatorStyle de.bjusystems.vdrmanager:footerIndicatorStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #TitlePageIndicator_footerIndicatorUnderlinePadding de.bjusystems.vdrmanager:footerIndicatorUnderlinePadding}</code></td><td></td></tr> + * <tr><td><code>{@link #TitlePageIndicator_footerLineHeight de.bjusystems.vdrmanager:footerLineHeight}</code></td><td></td></tr> + * <tr><td><code>{@link #TitlePageIndicator_footerPadding de.bjusystems.vdrmanager:footerPadding}</code></td><td></td></tr> + * <tr><td><code>{@link #TitlePageIndicator_selectedBold de.bjusystems.vdrmanager:selectedBold}</code></td><td></td></tr> + * <tr><td><code>{@link #TitlePageIndicator_selectedColor de.bjusystems.vdrmanager:selectedColor}</code></td><td></td></tr> + * <tr><td><code>{@link #TitlePageIndicator_textColor de.bjusystems.vdrmanager:textColor}</code></td><td></td></tr> + * <tr><td><code>{@link #TitlePageIndicator_textSize de.bjusystems.vdrmanager:textSize}</code></td><td></td></tr> + * <tr><td><code>{@link #TitlePageIndicator_titlePadding de.bjusystems.vdrmanager:titlePadding}</code></td><td></td></tr> + * <tr><td><code>{@link #TitlePageIndicator_topPadding de.bjusystems.vdrmanager:topPadding}</code></td><td></td></tr> + * </table> + * @see #TitlePageIndicator_clipPadding + * @see #TitlePageIndicator_footerColor + * @see #TitlePageIndicator_footerIndicatorHeight + * @see #TitlePageIndicator_footerIndicatorStyle + * @see #TitlePageIndicator_footerIndicatorUnderlinePadding + * @see #TitlePageIndicator_footerLineHeight + * @see #TitlePageIndicator_footerPadding + * @see #TitlePageIndicator_selectedBold + * @see #TitlePageIndicator_selectedColor + * @see #TitlePageIndicator_textColor + * @see #TitlePageIndicator_textSize + * @see #TitlePageIndicator_titlePadding + * @see #TitlePageIndicator_topPadding + */ + public static final int[] TitlePageIndicator={ + 0x7f03003f, 0x7f030067, 0x7f030068, 0x7f030069, + 0x7f03006a, 0x7f03006b, 0x7f03006c, 0x7f0300ab, + 0x7f0300ac, 0x7f0300cd, 0x7f0300d0, 0x7f0300da, + 0x7f0300e1 + }; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#clipPadding} + * attribute's value can be found in the {@link #TitlePageIndicator} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:clipPadding + */ + public static final int TitlePageIndicator_clipPadding=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#footerColor} + * attribute's value can be found in the {@link #TitlePageIndicator} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:footerColor + */ + public static final int TitlePageIndicator_footerColor=1; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#footerIndicatorHeight} + * attribute's value can be found in the {@link #TitlePageIndicator} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:footerIndicatorHeight + */ + public static final int TitlePageIndicator_footerIndicatorHeight=2; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#footerIndicatorStyle} + * attribute's value can be found in the {@link #TitlePageIndicator} array. + * + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>none</td><td>0</td><td></td></tr> + * <tr><td>triangle</td><td>1</td><td></td></tr> + * <tr><td>underline</td><td>2</td><td></td></tr> + * </table> + * + * @attr name de.bjusystems.vdrmanager:footerIndicatorStyle + */ + public static final int TitlePageIndicator_footerIndicatorStyle=3; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#footerIndicatorUnderlinePadding} + * attribute's value can be found in the {@link #TitlePageIndicator} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:footerIndicatorUnderlinePadding + */ + public static final int TitlePageIndicator_footerIndicatorUnderlinePadding=4; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#footerLineHeight} + * attribute's value can be found in the {@link #TitlePageIndicator} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:footerLineHeight + */ + public static final int TitlePageIndicator_footerLineHeight=5; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#footerPadding} + * attribute's value can be found in the {@link #TitlePageIndicator} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:footerPadding + */ + public static final int TitlePageIndicator_footerPadding=6; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#selectedBold} + * attribute's value can be found in the {@link #TitlePageIndicator} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name de.bjusystems.vdrmanager:selectedBold + */ + public static final int TitlePageIndicator_selectedBold=7; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#selectedColor} + * attribute's value can be found in the {@link #TitlePageIndicator} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:selectedColor + */ + public static final int TitlePageIndicator_selectedColor=8; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#textColor} + * attribute's value can be found in the {@link #TitlePageIndicator} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:textColor + */ + public static final int TitlePageIndicator_textColor=9; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#textSize} + * attribute's value can be found in the {@link #TitlePageIndicator} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:textSize + */ + public static final int TitlePageIndicator_textSize=10; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#titlePadding} + * attribute's value can be found in the {@link #TitlePageIndicator} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:titlePadding + */ + public static final int TitlePageIndicator_titlePadding=11; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#topPadding} + * attribute's value can be found in the {@link #TitlePageIndicator} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:topPadding + */ + public static final int TitlePageIndicator_topPadding=12; + /** + * Attributes that can be used with a Toolbar. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #Toolbar_android_gravity android:gravity}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_android_minHeight android:minHeight}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_collapseContentDescription de.bjusystems.vdrmanager:collapseContentDescription}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_collapseIcon de.bjusystems.vdrmanager:collapseIcon}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_contentInsetEnd de.bjusystems.vdrmanager:contentInsetEnd}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_contentInsetLeft de.bjusystems.vdrmanager:contentInsetLeft}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_contentInsetRight de.bjusystems.vdrmanager:contentInsetRight}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_contentInsetStart de.bjusystems.vdrmanager:contentInsetStart}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_logo de.bjusystems.vdrmanager:logo}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_logoDescription de.bjusystems.vdrmanager:logoDescription}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_maxButtonHeight de.bjusystems.vdrmanager:maxButtonHeight}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_navigationContentDescription de.bjusystems.vdrmanager:navigationContentDescription}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_navigationIcon de.bjusystems.vdrmanager:navigationIcon}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_popupTheme de.bjusystems.vdrmanager:popupTheme}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_subtitle de.bjusystems.vdrmanager:subtitle}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_subtitleTextAppearance de.bjusystems.vdrmanager:subtitleTextAppearance}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_subtitleTextColor de.bjusystems.vdrmanager:subtitleTextColor}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_title de.bjusystems.vdrmanager:title}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_titleMarginBottom de.bjusystems.vdrmanager:titleMarginBottom}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_titleMarginEnd de.bjusystems.vdrmanager:titleMarginEnd}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_titleMarginStart de.bjusystems.vdrmanager:titleMarginStart}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_titleMarginTop de.bjusystems.vdrmanager:titleMarginTop}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_titleMargins de.bjusystems.vdrmanager:titleMargins}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_titleTextAppearance de.bjusystems.vdrmanager:titleTextAppearance}</code></td><td></td></tr> + * <tr><td><code>{@link #Toolbar_titleTextColor de.bjusystems.vdrmanager:titleTextColor}</code></td><td></td></tr> + * </table> + * @see #Toolbar_android_gravity + * @see #Toolbar_android_minHeight + * @see #Toolbar_collapseContentDescription + * @see #Toolbar_collapseIcon + * @see #Toolbar_contentInsetEnd + * @see #Toolbar_contentInsetLeft + * @see #Toolbar_contentInsetRight + * @see #Toolbar_contentInsetStart + * @see #Toolbar_logo + * @see #Toolbar_logoDescription + * @see #Toolbar_maxButtonHeight + * @see #Toolbar_navigationContentDescription + * @see #Toolbar_navigationIcon + * @see #Toolbar_popupTheme + * @see #Toolbar_subtitle + * @see #Toolbar_subtitleTextAppearance + * @see #Toolbar_subtitleTextColor + * @see #Toolbar_title + * @see #Toolbar_titleMarginBottom + * @see #Toolbar_titleMarginEnd + * @see #Toolbar_titleMarginStart + * @see #Toolbar_titleMarginTop + * @see #Toolbar_titleMargins + * @see #Toolbar_titleTextAppearance + * @see #Toolbar_titleTextColor + */ + public static final int[] Toolbar={ + 0x010100af, 0x01010140, 0x7f030042, 0x7f030043, + 0x7f03004e, 0x7f03004f, 0x7f030050, 0x7f030051, + 0x7f030087, 0x7f030088, 0x7f030089, 0x7f03008c, + 0x7f03008d, 0x7f030098, 0x7f0300bd, 0x7f0300be, + 0x7f0300bf, 0x7f0300d4, 0x7f0300d5, 0x7f0300d6, + 0x7f0300d7, 0x7f0300d8, 0x7f0300d9, 0x7f0300dc, + 0x7f0300dd + }; + /** + * <p>This symbol is the offset where the {@link android.R.attr#gravity} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>Must be one or more (separated by '|') of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>end</td><td>800005</td><td></td></tr> + * <tr><td>start</td><td>800003</td><td></td></tr> + * <tr><td>bottom</td><td>50</td><td></td></tr> + * <tr><td>center</td><td>11</td><td></td></tr> + * <tr><td>center_horizontal</td><td>1</td><td></td></tr> + * <tr><td>center_vertical</td><td>10</td><td></td></tr> + * <tr><td>clip_horizontal</td><td>8</td><td></td></tr> + * <tr><td>clip_vertical</td><td>80</td><td></td></tr> + * <tr><td>fill</td><td>77</td><td></td></tr> + * <tr><td>fill_horizontal</td><td>7</td><td></td></tr> + * <tr><td>fill_vertical</td><td>70</td><td></td></tr> + * <tr><td>left</td><td>3</td><td></td></tr> + * <tr><td>right</td><td>5</td><td></td></tr> + * <tr><td>top</td><td>30</td><td></td></tr> + * </table> + * + * @attr name android:gravity + */ + public static final int Toolbar_android_gravity=0; + /** + * <p>This symbol is the offset where the {@link android.R.attr#minHeight} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name android:minHeight + */ + public static final int Toolbar_android_minHeight=1; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#collapseContentDescription} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name de.bjusystems.vdrmanager:collapseContentDescription + */ + public static final int Toolbar_collapseContentDescription=2; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#collapseIcon} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:collapseIcon + */ + public static final int Toolbar_collapseIcon=3; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#contentInsetEnd} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:contentInsetEnd + */ + public static final int Toolbar_contentInsetEnd=4; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#contentInsetLeft} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:contentInsetLeft + */ + public static final int Toolbar_contentInsetLeft=5; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#contentInsetRight} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:contentInsetRight + */ + public static final int Toolbar_contentInsetRight=6; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#contentInsetStart} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:contentInsetStart + */ + public static final int Toolbar_contentInsetStart=7; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#logo} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:logo + */ + public static final int Toolbar_logo=8; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#logoDescription} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name de.bjusystems.vdrmanager:logoDescription + */ + public static final int Toolbar_logoDescription=9; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#maxButtonHeight} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:maxButtonHeight + */ + public static final int Toolbar_maxButtonHeight=10; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#navigationContentDescription} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name de.bjusystems.vdrmanager:navigationContentDescription + */ + public static final int Toolbar_navigationContentDescription=11; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#navigationIcon} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:navigationIcon + */ + public static final int Toolbar_navigationIcon=12; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#popupTheme} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:popupTheme + */ + public static final int Toolbar_popupTheme=13; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#subtitle} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name de.bjusystems.vdrmanager:subtitle + */ + public static final int Toolbar_subtitle=14; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#subtitleTextAppearance} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:subtitleTextAppearance + */ + public static final int Toolbar_subtitleTextAppearance=15; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#subtitleTextColor} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:subtitleTextColor + */ + public static final int Toolbar_subtitleTextColor=16; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#title} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a string value, using '\\;' to escape characters such as + * '\\n' or '\\uxxxx' for a unicode character; + * + * @attr name de.bjusystems.vdrmanager:title + */ + public static final int Toolbar_title=17; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#titleMarginBottom} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:titleMarginBottom + */ + public static final int Toolbar_titleMarginBottom=18; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#titleMarginEnd} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:titleMarginEnd + */ + public static final int Toolbar_titleMarginEnd=19; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#titleMarginStart} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:titleMarginStart + */ + public static final int Toolbar_titleMarginStart=20; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#titleMarginTop} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:titleMarginTop + */ + public static final int Toolbar_titleMarginTop=21; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#titleMargins} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:titleMargins + */ + public static final int Toolbar_titleMargins=22; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#titleTextAppearance} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:titleTextAppearance + */ + public static final int Toolbar_titleTextAppearance=23; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#titleTextColor} + * attribute's value can be found in the {@link #Toolbar} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:titleTextColor + */ + public static final int Toolbar_titleTextColor=24; + /** + * Attributes that can be used with a View. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #View_android_theme android:theme}</code></td><td></td></tr> + * <tr><td><code>{@link #View_android_focusable android:focusable}</code></td><td></td></tr> + * <tr><td><code>{@link #View_paddingEnd de.bjusystems.vdrmanager:paddingEnd}</code></td><td></td></tr> + * <tr><td><code>{@link #View_paddingStart de.bjusystems.vdrmanager:paddingStart}</code></td><td></td></tr> + * <tr><td><code>{@link #View_theme de.bjusystems.vdrmanager:theme}</code></td><td></td></tr> + * </table> + * @see #View_android_theme + * @see #View_android_focusable + * @see #View_paddingEnd + * @see #View_paddingStart + * @see #View_theme + */ + public static final int[] View={ + 0x01010000, 0x010100da, 0x7f030092, 0x7f030093, + 0x7f0300d1 + }; + /** + * Attributes that can be used with a ViewBackgroundHelper. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #ViewBackgroundHelper_android_background android:background}</code></td><td></td></tr> + * <tr><td><code>{@link #ViewBackgroundHelper_backgroundTint de.bjusystems.vdrmanager:backgroundTint}</code></td><td></td></tr> + * <tr><td><code>{@link #ViewBackgroundHelper_backgroundTintMode de.bjusystems.vdrmanager:backgroundTintMode}</code></td><td></td></tr> + * </table> + * @see #ViewBackgroundHelper_android_background + * @see #ViewBackgroundHelper_backgroundTint + * @see #ViewBackgroundHelper_backgroundTintMode + */ + public static final int[] ViewBackgroundHelper={ + 0x010100d4, 0x7f03002d, 0x7f03002e + }; + /** + * <p>This symbol is the offset where the {@link android.R.attr#background} + * attribute's value can be found in the {@link #ViewBackgroundHelper} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name android:background + */ + public static final int ViewBackgroundHelper_android_background=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#backgroundTint} + * attribute's value can be found in the {@link #ViewBackgroundHelper} array. + * + * <p>May be a color value, in the form of "<code>#<i>rgb</i></code>", + * "<code>#<i>argb</i></code>", "<code>#<i>rrggbb</i></code>", or + * "<code>#<i>aarrggbb</i></code>". + * + * @attr name de.bjusystems.vdrmanager:backgroundTint + */ + public static final int ViewBackgroundHelper_backgroundTint=1; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#backgroundTintMode} + * attribute's value can be found in the {@link #ViewBackgroundHelper} array. + * + * <p>Must be one of the following constant values.</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Constant</th><th>Value</th><th>Description</th></tr> + * <tr><td>multiply</td><td>e</td><td></td></tr> + * <tr><td>screen</td><td>f</td><td></td></tr> + * <tr><td>src_atop</td><td>9</td><td></td></tr> + * <tr><td>src_in</td><td>5</td><td></td></tr> + * <tr><td>src_over</td><td>3</td><td></td></tr> + * </table> + * + * @attr name de.bjusystems.vdrmanager:backgroundTintMode + */ + public static final int ViewBackgroundHelper_backgroundTintMode=2; + /** + * Attributes that can be used with a ViewPagerIndicator. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #ViewPagerIndicator_circlePageIndicatorStyle de.bjusystems.vdrmanager:circlePageIndicatorStyle}</code></td><td></td></tr> + * <tr><td><code>{@link #ViewPagerIndicator_titlePageIndicatorStyle de.bjusystems.vdrmanager:titlePageIndicatorStyle}</code></td><td></td></tr> + * </table> + * @see #ViewPagerIndicator_circlePageIndicatorStyle + * @see #ViewPagerIndicator_titlePageIndicatorStyle + */ + public static final int[] ViewPagerIndicator={ + 0x7f03003e, 0x7f0300db + }; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#circlePageIndicatorStyle} + * attribute's value can be found in the {@link #ViewPagerIndicator} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:circlePageIndicatorStyle + */ + public static final int ViewPagerIndicator_circlePageIndicatorStyle=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#titlePageIndicatorStyle} + * attribute's value can be found in the {@link #ViewPagerIndicator} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:titlePageIndicatorStyle + */ + public static final int ViewPagerIndicator_titlePageIndicatorStyle=1; + /** + * Attributes that can be used with a ViewStubCompat. + * <p>Includes the following attributes:</p> + * <table> + * <colgroup align="left" /> + * <colgroup align="left" /> + * <tr><th>Attribute</th><th>Description</th></tr> + * <tr><td><code>{@link #ViewStubCompat_android_id android:id}</code></td><td></td></tr> + * <tr><td><code>{@link #ViewStubCompat_android_layout android:layout}</code></td><td></td></tr> + * <tr><td><code>{@link #ViewStubCompat_android_inflatedId android:inflatedId}</code></td><td></td></tr> + * </table> + * @see #ViewStubCompat_android_id + * @see #ViewStubCompat_android_layout + * @see #ViewStubCompat_android_inflatedId + */ + public static final int[] ViewStubCompat={ + 0x010100d0, 0x010100f2, 0x010100f3 + }; + /** + * <p>This symbol is the offset where the {@link android.R.attr#id} + * attribute's value can be found in the {@link #ViewStubCompat} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name android:id + */ + public static final int ViewStubCompat_android_id=0; + /** + * <p>This symbol is the offset where the {@link android.R.attr#inflatedId} + * attribute's value can be found in the {@link #ViewStubCompat} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name android:inflatedId + */ + public static final int ViewStubCompat_android_inflatedId=2; + /** + * <p>This symbol is the offset where the {@link android.R.attr#layout} + * attribute's value can be found in the {@link #ViewStubCompat} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name android:layout + */ + public static final int ViewStubCompat_android_layout=1; + /** + * <p>This symbol is the offset where the {@link android.R.attr#focusable} + * attribute's value can be found in the {@link #View} array. + * + * <p>May be a boolean value, such as "<code>true</code>" or + * "<code>false</code>". + * + * @attr name android:focusable + */ + public static final int View_android_focusable=1; + /** + * <p>This symbol is the offset where the {@link android.R.attr#theme} + * attribute's value can be found in the {@link #View} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name android:theme + */ + public static final int View_android_theme=0; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#paddingEnd} + * attribute's value can be found in the {@link #View} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:paddingEnd + */ + public static final int View_paddingEnd=2; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#paddingStart} + * attribute's value can be found in the {@link #View} array. + * + * <p>May be a dimension value, which is a floating point number appended with a + * unit such as "<code>14.5sp</code>". + * Available units are: px (pixels), dp (density-independent pixels), + * sp (scaled pixels based on preferred font size), in (inches), and + * mm (millimeters). + * + * @attr name de.bjusystems.vdrmanager:paddingStart + */ + public static final int View_paddingStart=3; + /** + * <p>This symbol is the offset where the {@link de.bjusystems.vdrmanager.R.attr#theme} + * attribute's value can be found in the {@link #View} array. + * + * <p>May be a reference to another resource, in the form + * "<code>@[+][<i>package</i>:]<i>type</i>/<i>name</i></code>" or a theme + * attribute in the form + * "<code>?[<i>package</i>:]<i>type</i>/<i>name</i></code>". + * + * @attr name de.bjusystems.vdrmanager:theme + */ + public static final int View_theme=4; + } + public static final class xml { + public static final int backup_settings=0x7f100000; + public static final int preferences=0x7f100001; + public static final int searchable=0x7f100002; + public static final int timezones=0x7f100003; + public static final int vdr_prefs=0x7f100004; + } +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/build/intermediates/manifest/androidTest/debug/AndroidManifest.xml b/vdrmanager/de.bjusystems.vdrmanager/build/intermediates/manifest/androidTest/debug/AndroidManifest.xml new file mode 100644 index 0000000..7578565 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/build/intermediates/manifest/androidTest/debug/AndroidManifest.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="de.bjusystems.vdrmanager.test"> + + <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="23" /> + + <application android:debuggable="true" > + <uses-library android:name="android.test.runner" /> + </application> + + <instrumentation android:name="android.test.InstrumentationTestRunner" + android:targetPackage="de.bjusystems.vdrmanager" + android:handleProfiling="false" + android:functionalTest="false" + android:label="Tests for de.bjusystems.vdrmanager"/> +</manifest> diff --git a/vdrmanager/de.bjusystems.vdrmanager/libs/ormlite-android-4.47.jar b/vdrmanager/de.bjusystems.vdrmanager/libs/ormlite-android-4.47.jar Binary files differnew file mode 100644 index 0000000..79f89a9 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/libs/ormlite-android-4.47.jar diff --git a/vdrmanager/de.bjusystems.vdrmanager/libs/ormlite-core-4.47.jar b/vdrmanager/de.bjusystems.vdrmanager/libs/ormlite-core-4.47.jar Binary files differnew file mode 100644 index 0000000..c3c9384 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/libs/ormlite-core-4.47.jar diff --git a/vdrmanager/de.bjusystems.vdrmanager/libs/slf4j-android-1.6.1-RC1.jar b/vdrmanager/de.bjusystems.vdrmanager/libs/slf4j-android-1.6.1-RC1.jar Binary files differnew file mode 100644 index 0000000..480348f --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/libs/slf4j-android-1.6.1-RC1.jar diff --git a/vdrmanager/de.bjusystems.vdrmanager/libs/svdrp4j-1.1.0-SNAPSHOT.jar b/vdrmanager/de.bjusystems.vdrmanager/libs/svdrp4j-1.1.0-SNAPSHOT.jar Binary files differnew file mode 100644 index 0000000..affb337 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/libs/svdrp4j-1.1.0-SNAPSHOT.jar diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/AndroidManifest.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/AndroidManifest.xml new file mode 100644 index 0000000..cfedf7f --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/AndroidManifest.xml @@ -0,0 +1,162 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="de.bjusystems.vdrmanager" + android:versionCode="12700" + android:versionName="12.70" > + + <uses-permission android:name="android.permission.INTERNET" /> + <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> + <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> + <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> + + <uses-sdk + android:minSdkVersion="8" + android:targetSdkVersion="23" /> + + <application + android:name=".app.VdrManagerApp" + android:allowBackup="true" + android:hardwareAccelerated="true" + android:icon="@drawable/app_logo" + android:label="@string/app_name" + android:theme="@style/AppTheme" > + <activity + android:name=".gui.VdrManagerActivity" + android:configChanges="locale" + android:label="@string/app_name" > + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + <intent-filter> + <action android:name="android.intent.action.SEARCH" /> + </intent-filter> + + <meta-data + android:name="android.app.default_searchable" + android:value=".gui.EpgSearchListActivity" /> + </activity> + <activity + android:name=".gui.TimeEpgListActivity" + android:configChanges="orientation|locale|screenSize" /> + <activity + android:name=".gui.EventEpgListActivity" + android:configChanges="orientation|locale|screenSize" > + <intent-filter> + <action android:name="android.intent.action.SEARCH" /> + </intent-filter> + + <meta-data + android:name="android.app.default_searchable" + android:value=".gui.EpgSearchListActivity" /> + </activity> + <activity + android:name=".gui.TimerListActivity" + android:configChanges="orientation|locale|screenSize" > + <intent-filter> + <action android:name="android.intent.action.SEARCH" /> + </intent-filter> + + <meta-data + android:name="android.app.default_searchable" + android:value=".gui.EpgSearchListActivity" /> + </activity> + <activity + android:name=".gui.PreferencesActivity" + android:configChanges="orientation|locale|screenSize" /> + <activity + android:name=".gui.ChannelListActivity" + android:configChanges="orientation|locale|screenSize" > + <intent-filter> + <action android:name="android.intent.action.SEARCH" /> + </intent-filter> + + <meta-data + android:name="android.app.default_searchable" + android:value=".gui.EpgSearchListActivity" /> + </activity> + <activity + android:name=".gui.EpgDetailsActivity" + android:configChanges="orientation|locale|screenSize" > + <intent-filter> + <action android:name="android.intent.action.SEARCH" /> + </intent-filter> + + <meta-data + android:name="android.app.default_searchable" + android:value=".gui.EpgSearchListActivity" /> + </activity> + <activity + android:name=".gui.TimerDetailsActivity" + android:configChanges="orientation|locale|keyboardHidden|screenSize" + android:windowSoftInputMode="stateHidden" > + <intent-filter> + <action android:name="android.intent.action.SEARCH" /> + </intent-filter> + + <meta-data + android:name="android.app.default_searchable" + android:value=".gui.EpgSearchListActivity" /> + </activity> + <activity + android:name=".gui.RecordingListActivity" + android:configChanges="orientation|locale|screenSize" > + <intent-filter> + <action android:name="android.intent.action.SEARCH" /> + </intent-filter> + + <meta-data + android:name="android.app.default_searchable" + android:value=".gui.EpgSearchListActivity" /> + </activity> + <activity + android:name=".gui.EpgSearchListActivity" + android:configChanges="orientation|locale|screenSize" + android:launchMode="singleTask" > + <intent-filter> + <action android:name="android.intent.action.SEARCH" /> + </intent-filter> + + <meta-data + android:name="android.app.searchable" + android:resource="@xml/searchable" /> + </activity> + <activity + android:name=".gui.EpgSearchTimesListActivity" + android:configChanges="orientation|locale|screenSize" /> + <activity + android:name=".gui.VdrListActivity" + android:configChanges="orientation|locale|screenSize" /> + <activity + android:name=".gui.VdrPreferencesActivity" + android:configChanges="orientation|locale|screenSize" /> + <activity + android:name=".backup.BackupActivity" + android:configChanges="orientation|locale|screenSize" /> + <activity + android:name=".backup.RestoreActivity" + android:configChanges="orientation|locale|screenSize" /> + <activity + android:name=".backup.RestoreChooserActivity" + android:configChanges="orientation|locale|screenSize" /> + <activity + android:name=".backup.BackupSettingsActivity" + android:configChanges="orientation|locale|screenSize" /> + + <provider + android:name=".data.db.EPGSearchSuggestionsProvider" + android:authorities="de.bjusystems.vdrmanager.data.db.EPGSearchSuggestionsProvider" + android:exported="false" /> + + <activity + android:name=".ZonePicker" + android:configChanges="orientation|locale|screenSize" /> + <activity + android:name=".remote.RemoteActivity" + android:theme="@style/AppTheme" + android:configChanges="orientation|locale|screenSize" /> + </application> + +</manifest> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/assets/fonts/fontawesome-webfont.ttf b/vdrmanager/de.bjusystems.vdrmanager/src/main/assets/fonts/fontawesome-webfont.ttf Binary files differnew file mode 100644 index 0000000..ed9372f --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/assets/fonts/fontawesome-webfont.ttf diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/com/viewpagerindicator/CirclePageIndicator.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/com/viewpagerindicator/CirclePageIndicator.java new file mode 100644 index 0000000..901d45f --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/com/viewpagerindicator/CirclePageIndicator.java @@ -0,0 +1,437 @@ +/* + * Copyright (C) 2011 Patrik Akerfeldt + * 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. + */ +package com.viewpagerindicator; + +import de.bjusystems.vdrmanager.R; +import android.content.Context; +import android.content.res.Resources; +import android.content.res.TypedArray; +import android.graphics.Canvas; +import android.graphics.Paint; +import android.graphics.Paint.Style; +import android.os.Parcel; +import android.os.Parcelable; +import android.support.v4.view.ViewPager; +import android.util.AttributeSet; +import android.view.MotionEvent; +import android.view.View; + +/** + * Draws circles (one for each view). The current view position is filled and + * others are only stroked. + */ +public class CirclePageIndicator extends View implements PageIndicator { + public static final int HORIZONTAL = 0; + public static final int VERTICAL = 1; + + private float mRadius; + private final Paint mPaintStroke; + private final Paint mPaintFill; + private ViewPager mViewPager; + private ViewPager.OnPageChangeListener mListener; + private int mCurrentPage; + private int mSnapPage; + private int mCurrentOffset; + private int mScrollState; + private int mPageSize; + private int mOrientation; + private boolean mCentered; + private boolean mSnap; + + + public CirclePageIndicator(Context context) { + this(context, null); + } + + public CirclePageIndicator(Context context, AttributeSet attrs) { + this(context, attrs, R.attr.circlePageIndicatorStyle); + } + + public CirclePageIndicator(Context context, AttributeSet attrs, int defStyle) { + super(context, attrs, defStyle); + + //Load defaults from resources + final Resources res = getResources(); + final int defaultFillColor = res.getColor(R.color.default_circle_indicator_fill_color); + final int defaultOrientation = res.getInteger(R.integer.default_circle_indicator_orientation); + final int defaultStrokeColor = res.getColor(R.color.default_circle_indicator_stroke_color); + final float defaultStrokeWidth = res.getDimension(R.dimen.default_circle_indicator_stroke_width); + final float defaultRadius = res.getDimension(R.dimen.default_circle_indicator_radius); + final boolean defaultCentered = res.getBoolean(R.bool.default_circle_indicator_centered); + final boolean defaultSnap = res.getBoolean(R.bool.default_circle_indicator_snap); + + //Retrieve styles attributes + TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.CirclePageIndicator, defStyle, R.style.Widget_CirclePageIndicator); + + mCentered = a.getBoolean(R.styleable.CirclePageIndicator_centered, defaultCentered); + mOrientation = a.getInt(R.styleable.CirclePageIndicator_orientation, defaultOrientation); + mPaintStroke = new Paint(Paint.ANTI_ALIAS_FLAG); + mPaintStroke.setStyle(Style.STROKE); + mPaintStroke.setColor(a.getColor(R.styleable.CirclePageIndicator_strokeColor, defaultStrokeColor)); + mPaintStroke.setStrokeWidth(a.getDimension(R.styleable.CirclePageIndicator_strokeWidth, defaultStrokeWidth)); + mPaintFill = new Paint(Paint.ANTI_ALIAS_FLAG); + mPaintFill.setStyle(Style.FILL); + mPaintFill.setColor(a.getColor(R.styleable.CirclePageIndicator_fillColor, defaultFillColor)); + mRadius = a.getDimension(R.styleable.CirclePageIndicator_radius, defaultRadius); + mSnap = a.getBoolean(R.styleable.CirclePageIndicator_snap, defaultSnap); + + a.recycle(); + } + + + public void setCentered(boolean centered) { + mCentered = centered; + invalidate(); + } + + public boolean isCentered() { + return mCentered; + } + + public void setFillColor(int fillColor) { + mPaintFill.setColor(fillColor); + invalidate(); + } + + public int getFillColor() { + return mPaintFill.getColor(); + } + + public void setOrientation(int orientation) { + switch (orientation) { + case HORIZONTAL: + case VERTICAL: + mOrientation = orientation; + updatePageSize(); + requestLayout(); + break; + + default: + throw new IllegalArgumentException("Orientation must be either HORIZONTAL or VERTICAL."); + } + } + + public int getOrientation() { + return mOrientation; + } + + public void setStrokeColor(int strokeColor) { + mPaintStroke.setColor(strokeColor); + invalidate(); + } + + public int getStrokeColor() { + return mPaintStroke.getColor(); + } + + public void setStrokeWidth(float strokeWidth) { + mPaintStroke.setStrokeWidth(strokeWidth); + invalidate(); + } + + public float getStrokeWidth() { + return mPaintStroke.getStrokeWidth(); + } + + public void setRadius(float radius) { + mRadius = radius; + invalidate(); + } + + public float getRadius() { + return mRadius; + } + + public void setSnap(boolean snap) { + mSnap = snap; + invalidate(); + } + + public boolean isSnap() { + return mSnap; + } + + /* + * (non-Javadoc) + * + * @see android.view.View#onDraw(android.graphics.Canvas) + */ + @Override + protected void onDraw(Canvas canvas) { + super.onDraw(canvas); + + int longSize; + int longPaddingBefore; + int longPaddingAfter; + int shortPaddingBefore; + if (mOrientation == HORIZONTAL) { + longSize = getWidth(); + longPaddingBefore = getPaddingLeft(); + longPaddingAfter = getPaddingRight(); + shortPaddingBefore = getPaddingTop(); + } else { + longSize = getHeight(); + longPaddingBefore = getPaddingTop(); + longPaddingAfter = getPaddingBottom(); + shortPaddingBefore = getPaddingLeft(); + } + + final int count = mViewPager.getAdapter().getCount(); + final float threeRadius = mRadius * 3; + final float shortOffset = shortPaddingBefore + mRadius; + float longOffset = longPaddingBefore + mRadius; + if (mCentered) { + longOffset += ((longSize - longPaddingBefore - longPaddingAfter) / 2.0f) - ((count * threeRadius) / 2.0f); + } + + float dX; + float dY; + + //Draw stroked circles + for (int iLoop = 0; iLoop < count; iLoop++) { + float drawLong = longOffset + (iLoop * threeRadius); + if (mOrientation == HORIZONTAL) { + dX = drawLong; + dY = shortOffset; + } else { + dX = shortOffset; + dY = drawLong; + } + canvas.drawCircle(dX, dY, mRadius, mPaintStroke); + } + + //Draw the filled circle according to the current scroll + float cx = (mSnap ? mSnapPage : mCurrentPage) * threeRadius; + if (!mSnap && (mPageSize != 0)) { + cx += (mCurrentOffset * 1.0f / mPageSize) * threeRadius; + } + if (mOrientation == HORIZONTAL) { + dX = longOffset + cx; + dY = shortOffset; + } else { + dX = shortOffset; + dY = longOffset + cx; + } + canvas.drawCircle(dX, dY, mRadius, mPaintFill); + } + + @Override + public boolean onTouchEvent(MotionEvent event) { + if (event.getAction() == MotionEvent.ACTION_DOWN) { + final int count = mViewPager.getAdapter().getCount(); + final int longSize = (mOrientation == HORIZONTAL) ? getWidth() : getHeight(); + final float halfLongSize = longSize / 2; + final float halfCircleLongSize = (count * 3 * mRadius) / 2; + final float pointerValue = (mOrientation == HORIZONTAL) ? event.getX() : event.getY(); + + if ((mCurrentPage > 0) && (pointerValue < halfLongSize - halfCircleLongSize)) { + setCurrentItem(mCurrentPage - 1); + return true; + } else if ((mCurrentPage < count - 1) && (pointerValue > halfLongSize + halfCircleLongSize)) { + setCurrentItem(mCurrentPage + 1); + return true; + } + } + + return super.onTouchEvent(event); + } + + public void setViewPager(ViewPager view) { + if (view.getAdapter() == null) { + throw new IllegalStateException("ViewPager does not have adapter instance."); + } + mViewPager = view; + mViewPager.setOnPageChangeListener(this); + updatePageSize(); + invalidate(); + } + + private void updatePageSize() { + if (mViewPager != null) { + mPageSize = (mOrientation == HORIZONTAL) ? mViewPager.getWidth() : mViewPager.getHeight(); + } + } + + public void setViewPager(ViewPager view, int initialPosition) { + setViewPager(view); + setCurrentItem(initialPosition); + } + + + public void setCurrentItem(int item) { + if (mViewPager == null) { + throw new IllegalStateException("ViewPager has not been bound."); + } + mViewPager.setCurrentItem(item); + mCurrentPage = item; + invalidate(); + } + + + public void onPageScrollStateChanged(int state) { + mScrollState = state; + + if (mListener != null) { + mListener.onPageScrollStateChanged(state); + } + } + + + public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { + mCurrentPage = position; + mCurrentOffset = positionOffsetPixels; + updatePageSize(); + invalidate(); + + if (mListener != null) { + mListener.onPageScrolled(position, positionOffset, positionOffsetPixels); + } + } + + + public void onPageSelected(int position) { + if (mSnap || mScrollState == ViewPager.SCROLL_STATE_IDLE) { + mCurrentPage = position; + mSnapPage = position; + invalidate(); + } + + if (mListener != null) { + mListener.onPageSelected(position); + } + } + + + public void setOnPageChangeListener(ViewPager.OnPageChangeListener listener) { + mListener = listener; + } + + /* + * (non-Javadoc) + * + * @see android.view.View#onMeasure(int, int) + */ + @Override + protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { + if (mOrientation == HORIZONTAL) { + setMeasuredDimension(measureLong(widthMeasureSpec), measureShort(heightMeasureSpec)); + } else { + setMeasuredDimension(measureShort(widthMeasureSpec), measureLong(heightMeasureSpec)); + } + } + + /** + * Determines the width of this view + * + * @param measureSpec + * A measureSpec packed into an int + * @return The width of the view, honoring constraints from measureSpec + */ + private int measureLong(int measureSpec) { + int result = 0; + int specMode = MeasureSpec.getMode(measureSpec); + int specSize = MeasureSpec.getSize(measureSpec); + + if (specMode == MeasureSpec.EXACTLY) { + //We were told how big to be + result = specSize; + } else { + //Calculate the width according the views count + final int count = mViewPager.getAdapter().getCount(); + result = (int)(getPaddingLeft() + getPaddingRight() + + (count * 2 * mRadius) + (count - 1) * mRadius + 1); + //Respect AT_MOST value if that was what is called for by measureSpec + if (specMode == MeasureSpec.AT_MOST) { + result = Math.min(result, specSize); + } + } + return result; + } + + /** + * Determines the height of this view + * + * @param measureSpec + * A measureSpec packed into an int + * @return The height of the view, honoring constraints from measureSpec + */ + private int measureShort(int measureSpec) { + int result = 0; + int specMode = MeasureSpec.getMode(measureSpec); + int specSize = MeasureSpec.getSize(measureSpec); + + if (specMode == MeasureSpec.EXACTLY) { + //We were told how big to be + result = specSize; + } else { + //Measure the height + result = (int)(2 * mRadius + getPaddingTop() + getPaddingBottom() + 1); + //Respect AT_MOST value if that was what is called for by measureSpec + if (specMode == MeasureSpec.AT_MOST) { + result = Math.min(result, specSize); + } + } + return result; + } + + @Override + public void onRestoreInstanceState(Parcelable state) { + SavedState savedState = (SavedState)state; + super.onRestoreInstanceState(savedState.getSuperState()); + mCurrentPage = savedState.currentPage; + mSnapPage = savedState.currentPage; + requestLayout(); + } + + @Override + public Parcelable onSaveInstanceState() { + Parcelable superState = super.onSaveInstanceState(); + SavedState savedState = new SavedState(superState); + savedState.currentPage = mCurrentPage; + return savedState; + } + + static class SavedState extends BaseSavedState { + int currentPage; + + public SavedState(Parcelable superState) { + super(superState); + } + + private SavedState(Parcel in) { + super(in); + currentPage = in.readInt(); + } + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(currentPage); + } + + public static final Parcelable.Creator<SavedState> CREATOR = new Parcelable.Creator<SavedState>() { + + public SavedState createFromParcel(Parcel in) { + return new SavedState(in); + } + + public SavedState[] newArray(int size) { + return new SavedState[size]; + } + }; + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/com/viewpagerindicator/PageIndicator.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/com/viewpagerindicator/PageIndicator.java new file mode 100644 index 0000000..64786d2 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/com/viewpagerindicator/PageIndicator.java @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2011 Patrik Akerfeldt + * 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. + */ + +package com.viewpagerindicator; + +import android.support.v4.view.ViewPager; + +/** + * A PageIndicator is responsible to show an visual indicator on the total views + * number and the current visible view. + */ +public interface PageIndicator extends ViewPager.OnPageChangeListener { + /** + * Bind the indicator to a ViewPager. + * + * @param view + */ + public void setViewPager(ViewPager view); + + /** + * Bind the indicator to a ViewPager. + * + * @param view + * @param initialPosition + */ + public void setViewPager(ViewPager view, int initialPosition); + + /** + * <p>Set the current page of both the ViewPager and indicator.</p> + * + * <p>This <strong>must</strong> be used if you need to set the page before + * the views are drawn on screen (e.g., default start page).</p> + * + * @param item + */ + public void setCurrentItem(int item); + + /** + * Set a page change listener which will receive forwarded events. + * + * @param listener + */ + public void setOnPageChangeListener(ViewPager.OnPageChangeListener listener); +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/com/viewpagerindicator/TitlePageIndicator.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/com/viewpagerindicator/TitlePageIndicator.java new file mode 100644 index 0000000..c04f5ed --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/com/viewpagerindicator/TitlePageIndicator.java @@ -0,0 +1,672 @@ +/* + * Copyright (C) 2011 Patrik Akerfeldt + * Copyright (C) 2011 Francisco Figueiredo Jr. + * 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. + */ +package com.viewpagerindicator; + +import java.util.ArrayList; + +import de.bjusystems.vdrmanager.R; +import android.content.Context; +import android.content.res.Resources; +import android.content.res.TypedArray; +import android.graphics.Canvas; +import android.graphics.Paint; +import android.graphics.Path; +import android.graphics.RectF; +import android.os.Parcel; +import android.os.Parcelable; +import android.support.v4.view.ViewPager; +import android.util.AttributeSet; +import android.view.MotionEvent; +import android.view.View; + +/** + * A TitlePageIndicator is a PageIndicator which displays the title of left view + * (if exist), the title of the current select view (centered) and the title of + * the right view (if exist). When the user scrolls the ViewPager then titles are + * also scrolled. + */ +public class TitlePageIndicator extends View implements PageIndicator { + /** + * Percentage indicating what percentage of the screen width away from + * center should the underline be fully faded. A value of 0.25 means that + * halfway between the center of the screen and an edge. + */ + private static final float SELECTION_FADE_PERCENTAGE = 0.25f; + + /** + * Percentage indicating what percentage of the screen width away from + * center should the selected text bold turn off. A value of 0.05 means + * that 10% between the center and an edge. + */ + private static final float BOLD_FADE_PERCENTAGE = 0.05f; + + public enum IndicatorStyle { + None(0), Triangle(1), Underline(2); + + public final int value; + + private IndicatorStyle(int value) { + this.value = value; + } + + public static IndicatorStyle fromValue(int value) { + for (IndicatorStyle style : IndicatorStyle.values()) { + if (style.value == value) { + return style; + } + } + return null; + } + } + + private ViewPager mViewPager; + private ViewPager.OnPageChangeListener mListener; + private TitleProvider mTitleProvider; + private int mCurrentPage; + private int mCurrentOffset; + private int mScrollState; + private final Paint mPaintText; + private boolean mBoldText; + private int mColorText; + private int mColorSelected; + private Path mPath; + private final Paint mPaintFooterLine; + private IndicatorStyle mFooterIndicatorStyle; + private final Paint mPaintFooterIndicator; + private float mFooterIndicatorHeight; + private float mFooterIndicatorUnderlinePadding; + private float mFooterPadding; + private float mTitlePadding; + private float mTopPadding; + /** Left and right side padding for not active view titles. */ + private float mClipPadding; + private float mFooterLineHeight; + + + public TitlePageIndicator(Context context) { + this(context, null); + } + + public TitlePageIndicator(Context context, AttributeSet attrs) { + this(context, attrs, R.attr.titlePageIndicatorStyle); + } + + public TitlePageIndicator(Context context, AttributeSet attrs, int defStyle) { + super(context, attrs, defStyle); + + //Load defaults from resources + final Resources res = getResources(); + final int defaultFooterColor = res.getColor(R.color.default_title_indicator_footer_color); + final float defaultFooterLineHeight = res.getDimension(R.dimen.default_title_indicator_footer_line_height); + final int defaultFooterIndicatorStyle = res.getInteger(R.integer.default_title_indicator_footer_indicator_style); + final float defaultFooterIndicatorHeight = res.getDimension(R.dimen.default_title_indicator_footer_indicator_height); + final float defaultFooterIndicatorUnderlinePadding = res.getDimension(R.dimen.default_title_indicator_footer_indicator_underline_padding); + final float defaultFooterPadding = res.getDimension(R.dimen.default_title_indicator_footer_padding); + final int defaultSelectedColor = res.getColor(R.color.default_title_indicator_selected_color); + final boolean defaultSelectedBold = res.getBoolean(R.bool.default_title_indicator_selected_bold); + final int defaultTextColor = res.getColor(R.color.default_title_indicator_text_color); + final float defaultTextSize = res.getDimension(R.dimen.default_title_indicator_text_size); + final float defaultTitlePadding = res.getDimension(R.dimen.default_title_indicator_title_padding); + final float defaultClipPadding = res.getDimension(R.dimen.default_title_indicator_clip_padding); + final float defaultTopPadding = res.getDimension(R.dimen.default_title_indicator_top_padding); + + //Retrieve styles attributes + TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.TitlePageIndicator, defStyle, R.style.Widget_TitlePageIndicator); + + //Retrieve the colors to be used for this view and apply them. + mFooterLineHeight = a.getDimension(R.styleable.TitlePageIndicator_footerLineHeight, defaultFooterLineHeight); + mFooterIndicatorStyle = IndicatorStyle.fromValue(a.getInteger(R.styleable.TitlePageIndicator_footerIndicatorStyle, defaultFooterIndicatorStyle)); + mFooterIndicatorHeight = a.getDimension(R.styleable.TitlePageIndicator_footerIndicatorHeight, defaultFooterIndicatorHeight); + mFooterIndicatorUnderlinePadding = a.getDimension(R.styleable.TitlePageIndicator_footerIndicatorUnderlinePadding, defaultFooterIndicatorUnderlinePadding); + mFooterPadding = a.getDimension(R.styleable.TitlePageIndicator_footerPadding, defaultFooterPadding); + mTopPadding = a.getDimension(R.styleable.TitlePageIndicator_topPadding, defaultTopPadding); + mTitlePadding = a.getDimension(R.styleable.TitlePageIndicator_titlePadding, defaultTitlePadding); + mClipPadding = a.getDimension(R.styleable.TitlePageIndicator_clipPadding, defaultClipPadding); + mColorSelected = a.getColor(R.styleable.TitlePageIndicator_selectedColor, defaultSelectedColor); + mColorText = a.getColor(R.styleable.TitlePageIndicator_textColor, defaultTextColor); + mBoldText = a.getBoolean(R.styleable.TitlePageIndicator_selectedBold, defaultSelectedBold); + + final float textSize = a.getDimension(R.styleable.TitlePageIndicator_textSize, defaultTextSize); + final int footerColor = a.getColor(R.styleable.TitlePageIndicator_footerColor, defaultFooterColor); + mPaintText = new Paint(); + mPaintText.setTextSize(textSize); + mPaintText.setAntiAlias(true); + mPaintFooterLine = new Paint(); + mPaintFooterLine.setStyle(Paint.Style.FILL_AND_STROKE); + mPaintFooterLine.setStrokeWidth(mFooterLineHeight); + mPaintFooterLine.setColor(footerColor); + mPaintFooterIndicator = new Paint(); + mPaintFooterIndicator.setStyle(Paint.Style.FILL_AND_STROKE); + mPaintFooterIndicator.setColor(footerColor); + + a.recycle(); + } + + + public int getFooterColor() { + return mPaintFooterLine.getColor(); + } + + public void setFooterColor(int footerColor) { + mPaintFooterLine.setColor(footerColor); + mPaintFooterIndicator.setColor(footerColor); + invalidate(); + } + + public float getFooterLineHeight() { + return mFooterLineHeight; + } + + public void setFooterLineHeight(float footerLineHeight) { + mFooterLineHeight = footerLineHeight; + mPaintFooterLine.setStrokeWidth(mFooterLineHeight); + invalidate(); + } + + public float getFooterIndicatorHeight() { + return mFooterIndicatorHeight; + } + + public void setFooterIndicatorHeight(float footerTriangleHeight) { + mFooterIndicatorHeight = footerTriangleHeight; + invalidate(); + } + + public float getFooterIndicatorPadding() { + return mFooterPadding; + } + + public void setFooterIndicatorPadding(float footerIndicatorPadding) { + mFooterPadding = footerIndicatorPadding; + invalidate(); + } + + public IndicatorStyle getFooterIndicatorStyle() { + return mFooterIndicatorStyle; + } + + public void setFooterIndicatorStyle(IndicatorStyle indicatorStyle) { + mFooterIndicatorStyle = indicatorStyle; + invalidate(); + } + + public int getSelectedColor() { + return mColorSelected; + } + + public void setSelectedColor(int selectedColor) { + mColorSelected = selectedColor; + invalidate(); + } + + public boolean isSelectedBold() { + return mBoldText; + } + + public void setSelectedBold(boolean selectedBold) { + mBoldText = selectedBold; + invalidate(); + } + + public int getTextColor() { + return mColorText; + } + + public void setTextColor(int textColor) { + mPaintText.setColor(textColor); + mColorText = textColor; + invalidate(); + } + + public float getTextSize() { + return mPaintText.getTextSize(); + } + + public void setTextSize(float textSize) { + mPaintText.setTextSize(textSize); + invalidate(); + } + + public float getTitlePadding() { + return this.mTitlePadding; + } + + public void setTitlePadding(float titlePadding) { + mTitlePadding = titlePadding; + invalidate(); + } + + public float getTopPadding() { + return this.mTopPadding; + } + + public void setTopPadding(float topPadding) { + mTopPadding = topPadding; + invalidate(); + } + + public float getClipPadding() { + return this.mClipPadding; + } + + public void setClipPadding(float clipPadding) { + mClipPadding = clipPadding; + invalidate(); + } + + /* + * (non-Javadoc) + * + * @see android.view.View#onDraw(android.graphics.Canvas) + */ + @Override + protected void onDraw(Canvas canvas) { + super.onDraw(canvas); + + //Calculate views bounds + ArrayList<RectF> bounds = calculateAllBounds(mPaintText); + + final int count = mViewPager.getAdapter().getCount(); + final int countMinusOne = count - 1; + final float halfWidth = getWidth() / 2f; + final int left = getLeft(); + final float leftClip = left + mClipPadding; + final int width = getWidth(); + final int height = getHeight(); + final int right = left + width; + final float rightClip = right - mClipPadding; + + int page = mCurrentPage; + float offsetPercent; + if (mCurrentOffset <= halfWidth) { + offsetPercent = 1.0f * mCurrentOffset / width; + } else { + page += 1; + offsetPercent = 1.0f * (width - mCurrentOffset) / width; + } + final boolean currentSelected = (offsetPercent <= SELECTION_FADE_PERCENTAGE); + final boolean currentBold = (offsetPercent <= BOLD_FADE_PERCENTAGE); + final float selectedPercent = (SELECTION_FADE_PERCENTAGE - offsetPercent) / SELECTION_FADE_PERCENTAGE; + + //Verify if the current view must be clipped to the screen + RectF curPageBound = bounds.get(mCurrentPage); + float curPageWidth = curPageBound.right - curPageBound.left; + if (curPageBound.left < leftClip) { + //Try to clip to the screen (left side) + clipViewOnTheLeft(curPageBound, curPageWidth, left); + } + if (curPageBound.right > rightClip) { + //Try to clip to the screen (right side) + clipViewOnTheRight(curPageBound, curPageWidth, right); + } + + //Left views starting from the current position + if (mCurrentPage > 0) { + for (int i = mCurrentPage - 1; i >= 0; i--) { + RectF bound = bounds.get(i); + //Is left side is outside the screen + if (bound.left < leftClip) { + float w = bound.right - bound.left; + //Try to clip to the screen (left side) + clipViewOnTheLeft(bound, w, left); + //Except if there's an intersection with the right view + RectF rightBound = bounds.get(i + 1); + //Intersection + if (bound.right + mTitlePadding > rightBound.left) { + bound.left = rightBound.left - w - mTitlePadding; + bound.right = bound.left + w; + } + } + } + } + //Right views starting from the current position + if (mCurrentPage < countMinusOne) { + for (int i = mCurrentPage + 1 ; i < count; i++) { + RectF bound = bounds.get(i); + //If right side is outside the screen + if (bound.right > rightClip) { + float w = bound.right - bound.left; + //Try to clip to the screen (right side) + clipViewOnTheRight(bound, w, right); + //Except if there's an intersection with the left view + RectF leftBound = bounds.get(i - 1); + //Intersection + if (bound.left - mTitlePadding < leftBound.right) { + bound.left = leftBound.right + mTitlePadding; + bound.right = bound.left + w; + } + } + } + } + + //Now draw views + for (int i = 0; i < count; i++) { + //Get the title + RectF bound = bounds.get(i); + //Only if one side is visible + if ((bound.left > left && bound.left < right) || (bound.right > left && bound.right < right)) { + final boolean currentPage = (i == page); + //Only set bold if we are within bounds + mPaintText.setFakeBoldText(currentPage && currentBold && mBoldText); + + //Draw text as unselected + mPaintText.setColor(mColorText); + canvas.drawText(mTitleProvider.getTitle(i), bound.left, bound.bottom + mTopPadding, mPaintText); + + //If we are within the selected bounds draw the selected text + if (currentPage && currentSelected) { + mPaintText.setColor(mColorSelected); + mPaintText.setAlpha((int)((mColorSelected >>> 24) * selectedPercent)); + canvas.drawText(mTitleProvider.getTitle(i), bound.left, bound.bottom + mTopPadding, mPaintText); + } + } + } + + //Draw the footer line + mPath = new Path(); + mPath.moveTo(0, height - mFooterLineHeight / 2f); + mPath.lineTo(width, height - mFooterLineHeight / 2f); + mPath.close(); + canvas.drawPath(mPath, mPaintFooterLine); + + switch (mFooterIndicatorStyle) { + case Triangle: + mPath = new Path(); + mPath.moveTo(halfWidth, height - mFooterLineHeight - mFooterIndicatorHeight); + mPath.lineTo(halfWidth + mFooterIndicatorHeight, height - mFooterLineHeight); + mPath.lineTo(halfWidth - mFooterIndicatorHeight, height - mFooterLineHeight); + mPath.close(); + canvas.drawPath(mPath, mPaintFooterIndicator); + break; + + case Underline: + if (!currentSelected) { + break; + } + + RectF underlineBounds = bounds.get(page); + mPath = new Path(); + mPath.moveTo(underlineBounds.left - mFooterIndicatorUnderlinePadding, height - mFooterLineHeight); + mPath.lineTo(underlineBounds.right + mFooterIndicatorUnderlinePadding, height - mFooterLineHeight); + mPath.lineTo(underlineBounds.right + mFooterIndicatorUnderlinePadding, height - mFooterLineHeight - mFooterIndicatorHeight); + mPath.lineTo(underlineBounds.left - mFooterIndicatorUnderlinePadding, height - mFooterLineHeight - mFooterIndicatorHeight); + mPath.close(); + + mPaintFooterIndicator.setAlpha((int)(0xFF * selectedPercent)); + canvas.drawPath(mPath, mPaintFooterIndicator); + mPaintFooterIndicator.setAlpha(0xFF); + break; + } + } + + @Override + public boolean onTouchEvent(MotionEvent event) { + if (event.getAction() == MotionEvent.ACTION_DOWN) { + final int count = mViewPager.getAdapter().getCount(); + final int width = getWidth(); + final float halfWidth = width / 2f; + final float sixthWidth = width / 6f; + + if ((mCurrentPage > 0) && (event.getX() < halfWidth - sixthWidth)) { + mViewPager.setCurrentItem(mCurrentPage - 1); + return true; + } else if ((mCurrentPage < count - 1) && (event.getX() > halfWidth + sixthWidth)) { + mViewPager.setCurrentItem(mCurrentPage + 1); + return true; + } + } + + return super.onTouchEvent(event); + } + + /** + * Set bounds for the right textView including clip padding. + * + * @param curViewBound + * current bounds. + * @param curViewWidth + * width of the view. + */ + private void clipViewOnTheRight(RectF curViewBound, float curViewWidth, int right) { + curViewBound.right = right - mClipPadding; + curViewBound.left = curViewBound.right - curViewWidth; + } + + /** + * Set bounds for the left textView including clip padding. + * + * @param curViewBound + * current bounds. + * @param curViewWidth + * width of the view. + */ + private void clipViewOnTheLeft(RectF curViewBound, float curViewWidth, int left) { + curViewBound.left = left + mClipPadding; + curViewBound.right = mClipPadding + curViewWidth; + } + + /** + * Calculate views bounds and scroll them according to the current index + * + * @param paint + * @param currentIndex + * @return + */ + private ArrayList<RectF> calculateAllBounds(Paint paint) { + ArrayList<RectF> list = new ArrayList<RectF>(); + //For each views (If no values then add a fake one) + final int count = mViewPager.getAdapter().getCount(); + final int width = getWidth(); + final int halfWidth = width / 2; + for (int i = 0; i < count; i++) { + RectF bounds = calcBounds(i, paint); + float w = (bounds.right - bounds.left); + float h = (bounds.bottom - bounds.top); + bounds.left = (halfWidth) - (w / 2) - mCurrentOffset + ((i - mCurrentPage) * width); + bounds.right = bounds.left + w; + bounds.top = 0; + bounds.bottom = h; + list.add(bounds); + } + + return list; + } + + /** + * Calculate the bounds for a view's title + * + * @param index + * @param paint + * @return + */ + private RectF calcBounds(int index, Paint paint) { + //Calculate the text bounds + RectF bounds = new RectF(); + bounds.right = paint.measureText(mTitleProvider.getTitle(index)); + bounds.bottom = paint.descent() - paint.ascent(); + return bounds; + } + + + public void setViewPager(ViewPager view) { + if (view.getAdapter() == null) { + throw new IllegalStateException("ViewPager does not have adapter instance."); + } + if (!(view.getAdapter() instanceof TitleProvider)) { + throw new IllegalStateException("ViewPager adapter must implement TitleProvider to be used with TitlePageIndicator."); + } + mViewPager = view; + mViewPager.setOnPageChangeListener(this); + mTitleProvider = (TitleProvider)mViewPager.getAdapter(); + invalidate(); + } + + + public void setViewPager(ViewPager view, int initialPosition) { + setViewPager(view); + setCurrentItem(initialPosition); + } + + + public void setCurrentItem(int item) { + if (mViewPager == null) { + throw new IllegalStateException("ViewPager has not been bound."); + } + mViewPager.setCurrentItem(item); + mCurrentPage = item; + invalidate(); + } + + public void onPageScrollStateChanged(int state) { + mScrollState = state; + + if (mListener != null) { + mListener.onPageScrollStateChanged(state); + } + } + + + public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { + mCurrentPage = position; + mCurrentOffset = positionOffsetPixels; + invalidate(); + + if (mListener != null) { + mListener.onPageScrolled(position, positionOffset, positionOffsetPixels); + } + } + + + public void onPageSelected(int position) { + if (mScrollState == ViewPager.SCROLL_STATE_IDLE) { + mCurrentPage = position; + invalidate(); + } + + if (mListener != null) { + mListener.onPageSelected(position); + } + } + + public void setOnPageChangeListener(ViewPager.OnPageChangeListener listener) { + mListener = listener; + } + + /* + * (non-Javadoc) + * + * @see android.view.View#onMeasure(int, int) + */ + @Override + protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { + setMeasuredDimension(measureWidth(widthMeasureSpec), measureHeight(heightMeasureSpec)); + } + + /** + * Determines the width of this view + * + * @param measureSpec + * A measureSpec packed into an int + * @return The width of the view, honoring constraints from measureSpec + */ + private int measureWidth(int measureSpec) { + int result = 0; + int specMode = MeasureSpec.getMode(measureSpec); + int specSize = MeasureSpec.getSize(measureSpec); + + if (specMode != MeasureSpec.EXACTLY) { + throw new IllegalStateException(getClass().getSimpleName() + " can only be used in EXACTLY mode."); + } + result = specSize; + return result; + } + + /** + * Determines the height of this view + * + * @param measureSpec + * A measureSpec packed into an int + * @return The height of the view, honoring constraints from measureSpec + */ + private int measureHeight(int measureSpec) { + float result = 0; + int specMode = MeasureSpec.getMode(measureSpec); + int specSize = MeasureSpec.getSize(measureSpec); + + if (specMode == MeasureSpec.EXACTLY) { + //We were told how big to be + result = specSize; + } else { + //Calculate the text bounds + RectF bounds = new RectF(); + bounds.bottom = mPaintText.descent()-mPaintText.ascent(); + result = bounds.bottom - bounds.top + mFooterLineHeight + mFooterPadding + mTopPadding; + if (mFooterIndicatorStyle != IndicatorStyle.None) { + result += mFooterIndicatorHeight; + } + } + return (int)result; + } + + @Override + public void onRestoreInstanceState(Parcelable state) { + SavedState savedState = (SavedState)state; + super.onRestoreInstanceState(savedState.getSuperState()); + mCurrentPage = savedState.currentPage; + requestLayout(); + } + + @Override + public Parcelable onSaveInstanceState() { + Parcelable superState = super.onSaveInstanceState(); + SavedState savedState = new SavedState(superState); + savedState.currentPage = mCurrentPage; + return savedState; + } + + static class SavedState extends BaseSavedState { + int currentPage; + + public SavedState(Parcelable superState) { + super(superState); + } + + private SavedState(Parcel in) { + super(in); + currentPage = in.readInt(); + } + + @Override + public void writeToParcel(Parcel dest, int flags) { + super.writeToParcel(dest, flags); + dest.writeInt(currentPage); + } + + public static final Parcelable.Creator<SavedState> CREATOR = new Parcelable.Creator<SavedState>() { + + public SavedState createFromParcel(Parcel in) { + return new SavedState(in); + } + + + public SavedState[] newArray(int size) { + return new SavedState[size]; + } + }; + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/com/viewpagerindicator/TitleProvider.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/com/viewpagerindicator/TitleProvider.java new file mode 100644 index 0000000..2a04b65 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/com/viewpagerindicator/TitleProvider.java @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2011 Patrik Akerfeldt + * + * 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. + */ +package com.viewpagerindicator; + +/** + * A TitleProvider provides the title to display according to a view. + */ +public interface TitleProvider { + /** + * Returns the title of the view at position + * @param position + * @return + */ + public String getTitle(int position); +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/AnimatedTextView.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/AnimatedTextView.java new file mode 100644 index 0000000..b6c120b --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/AnimatedTextView.java @@ -0,0 +1,101 @@ +package de.androvdr.widget; + +import android.content.Context; +import android.util.AttributeSet; +import android.view.View; +import android.view.animation.AlphaAnimation; +import android.view.animation.Animation; +import android.view.animation.AnimationUtils; +import android.widget.TextView; + +/** + * Created by lado on 04.05.15. + */ +public class AnimatedTextView extends TextView { + private static final int IS_ANIMATING_TAG_ID = "isAnimating".hashCode(); + + private Animation fadeInAnimation; + private Animation fadeOutAnimation; + + public AnimatedTextView(Context context) { + super(context); + + initAnimations(context); + } + + public AnimatedTextView(Context context, AttributeSet attrs) { + super(context, attrs); + + initAnimations(context); + } + + public AnimatedTextView(Context context, AttributeSet attrs, int defStyle) { + super(context, attrs, defStyle); + + initAnimations(context); + } + + public void initAnimations(Context context) { + fadeInAnimation = AnimationUtils.loadAnimation(this.getContext(), android.R.anim.fade_in); + + fadeOutAnimation = new AlphaAnimation(1.0f, 0.0f); + fadeOutAnimation.setDuration(100); + fadeInAnimation.setAnimationListener(new Animation.AnimationListener() { + @Override + public void onAnimationStart(Animation animation) { + setAnimatingFlag(true); + } + + @Override + public void onAnimationEnd(Animation animation) { + setAnimatingFlag(false); + } + + @Override + public void onAnimationRepeat(Animation animation) { + + } + }); + + fadeOutAnimation.setAnimationListener(new Animation.AnimationListener() { + @Override + public void onAnimationStart(Animation animation) { + setAnimatingFlag(false); + } + + @Override + public void onAnimationEnd(Animation animation) { + } + + @Override + public void onAnimationRepeat(Animation animation) { + + } + + }); + + setAnimatingFlag(false); + } + + public void fadeOut() { + if (getVisibility() == View.VISIBLE) { + startAnimation(fadeOutAnimation); + setVisibility(View.INVISIBLE); + } + } + + public void fadeIn() { + //if (getVisibility() == View.INVISIBLE && !isAnimating()) { +// startAnimation(fadeInAnimation); + setVisibility(View.VISIBLE); + // } + } + + private boolean isAnimating() { + return (Boolean) getTag(IS_ANIMATING_TAG_ID) == true; + } + + private void setAnimatingFlag(boolean isAnimating) { + setTag(IS_ANIMATING_TAG_ID, new Boolean(isAnimating)); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/FontAwesome.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/FontAwesome.java new file mode 100644 index 0000000..77d7c07 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/FontAwesome.java @@ -0,0 +1,25 @@ +package de.androvdr.widget; + +import android.content.Context; +import android.graphics.Typeface; + +/** + * Created by lado on 04.05.15. + */ +public class FontAwesome { + + private static Typeface mFont; + + + public static Typeface getFontAwesome(Context context){ + + if(mFont != null){ + return mFont; + } + + mFont = Typeface.createFromAsset(context.getAssets(), "fonts/fontawesome-webfont.ttf"); + return mFont; + } + + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/FontAwesomeButton.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/FontAwesomeButton.java new file mode 100644 index 0000000..22c4de1 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/FontAwesomeButton.java @@ -0,0 +1,36 @@ +package de.androvdr.widget; + +import android.content.Context; +import android.util.AttributeSet; +import android.widget.Button; + +/** + * Created by lado on 04.05.15. + */ +public class FontAwesomeButton extends Button { + + + public FontAwesomeButton(Context context, AttributeSet attrs, int defStyle) { + super(context, attrs, defStyle); + initFontAwesome(); + + } + + public FontAwesomeButton(Context context, AttributeSet attrs) { + super(context, attrs); + initFontAwesome(); + + } + + public FontAwesomeButton(Context context) { + super(context); + initFontAwesome(); + } + + private void initFontAwesome(){ + if(isInEditMode() == false) { + setTypeface(FontAwesome.getFontAwesome(getContext().getApplicationContext().getApplicationContext())); + } + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/LruCache.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/LruCache.java new file mode 100644 index 0000000..9186b15 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/LruCache.java @@ -0,0 +1,396 @@ +package de.androvdr.widget; + +/** + * Created by lado on 04.05.15. + */ +/* + * Copyright (C) 2011 The Android Open Source Project + * + * 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. + */ + + + + import java.util.LinkedHashMap; + import java.util.Map; + +/** + * BEGIN LAYOUTLIB CHANGE + * This is a custom version that doesn't use the non standard LinkedHashMap#eldest. + * END LAYOUTLIB CHANGE + * + * A cache that holds strong references to a limited number of values. Each time + * a value is accessed, it is moved to the head of a queue. When a value is + * added to a full cache, the value at the end of that queue is evicted and may + * become eligible for garbage collection. + * + * <p>If your cached values hold resources that need to be explicitly released, + * override {@link #entryRemoved}. + * + * <p>If a cache miss should be computed on demand for the corresponding keys, + * override {@link #create}. This simplifies the calling code, allowing it to + * assume a value will always be returned, even when there's a cache miss. + * + * <p>By default, the cache size is measured in the number of entries. Override + * {@link #sizeOf} to size the cache in different units. For example, this cache + * is limited to 4MiB of bitmaps: + * <pre> {@code + * int cacheSize = 4 * 1024 * 1024; // 4MiB + * LruCache<String, Bitmap> bitmapCache = new LruCache<String, Bitmap>(cacheSize) { + * protected int sizeOf(String key, Bitmap value) { + * return value.getByteCount(); + * } + * }}</pre> + * + * <p>This class is thread-safe. Perform multiple cache operations atomically by + * synchronizing on the cache: <pre> {@code + * synchronized (cache) { + * if (cache.get(key) == null) { + * cache.put(key, value); + * } + * }}</pre> + * + * <p>This class does not allow null to be used as a key or value. A return + * value of null from {@link #get}, {@link #put} or {@link #remove} is + * unambiguous: the key was not in the cache. + * + * <p>This class appeared in Android 3.1 (Honeycomb MR1); it's available as part + * of <a href="http://developer.android.com/sdk/compatibility-library.html">Android's + * Support Package</a> for earlier releases. + */ +public class LruCache<K, V> { + private final LinkedHashMap<K, V> map; + + /** Size of this cache in units. Not necessarily the number of elements. */ + private int size; + private int maxSize; + + private int putCount; + private int createCount; + private int evictionCount; + private int hitCount; + private int missCount; + + /** + * @param maxSize for caches that do not override {@link #sizeOf}, this is + * the maximum number of entries in the cache. For all other caches, + * this is the maximum sum of the sizes of the entries in this cache. + */ + public LruCache(int maxSize) { + if (maxSize <= 0) { + throw new IllegalArgumentException("maxSize <= 0"); + } + this.maxSize = maxSize; + this.map = new LinkedHashMap<K, V>(0, 0.75f, true); + } + + /** + * Sets the size of the cache. + * @param maxSize The new maximum size. + * + * @hide + */ + public void resize(int maxSize) { + if (maxSize <= 0) { + throw new IllegalArgumentException("maxSize <= 0"); + } + + synchronized (this) { + this.maxSize = maxSize; + } + trimToSize(maxSize); + } + + /** + * Returns the value for {@code key} if it exists in the cache or can be + * created by {@code #create}. If a value was returned, it is moved to the + * head of the queue. This returns null if a value is not cached and cannot + * be created. + */ + public final V get(K key) { + if (key == null) { + throw new NullPointerException("key == null"); + } + + V mapValue; + synchronized (this) { + mapValue = map.get(key); + if (mapValue != null) { + hitCount++; + return mapValue; + } + missCount++; + } + + /* + * Attempt to create a value. This may take a long time, and the map + * may be different when create() returns. If a conflicting value was + * added to the map while create() was working, we leave that value in + * the map and release the created value. + */ + + V createdValue = create(key); + if (createdValue == null) { + return null; + } + + synchronized (this) { + createCount++; + mapValue = map.put(key, createdValue); + + if (mapValue != null) { + // There was a conflict so undo that last put + map.put(key, mapValue); + } else { + size += safeSizeOf(key, createdValue); + } + } + + if (mapValue != null) { + entryRemoved(false, key, createdValue, mapValue); + return mapValue; + } else { + trimToSize(maxSize); + return createdValue; + } + } + + /** + * Caches {@code value} for {@code key}. The value is moved to the head of + * the queue. + * + * @return the previous value mapped by {@code key}. + */ + public final V put(K key, V value) { + if (key == null || value == null) { + throw new NullPointerException("key == null || value == null"); + } + + V previous; + synchronized (this) { + putCount++; + size += safeSizeOf(key, value); + previous = map.put(key, value); + if (previous != null) { + size -= safeSizeOf(key, previous); + } + } + + if (previous != null) { + entryRemoved(false, key, previous, value); + } + + trimToSize(maxSize); + return previous; + } + + /** + * @param maxSize the maximum size of the cache before returning. May be -1 + * to evict even 0-sized elements. + */ + private void trimToSize(int maxSize) { + while (true) { + K key; + V value; + synchronized (this) { + if (size < 0 || (map.isEmpty() && size != 0)) { + throw new IllegalStateException(getClass().getName() + + ".sizeOf() is reporting inconsistent results!"); + } + + if (size <= maxSize) { + break; + } + + // BEGIN LAYOUTLIB CHANGE + // get the last item in the linked list. + // This is not efficient, the goal here is to minimize the changes + // compared to the platform version. + Map.Entry<K, V> toEvict = null; + for (Map.Entry<K, V> entry : map.entrySet()) { + toEvict = entry; + } + // END LAYOUTLIB CHANGE + + if (toEvict == null) { + break; + } + + key = toEvict.getKey(); + value = toEvict.getValue(); + map.remove(key); + size -= safeSizeOf(key, value); + evictionCount++; + } + + entryRemoved(true, key, value, null); + } + } + + /** + * Removes the entry for {@code key} if it exists. + * + * @return the previous value mapped by {@code key}. + */ + public final V remove(K key) { + if (key == null) { + throw new NullPointerException("key == null"); + } + + V previous; + synchronized (this) { + previous = map.remove(key); + if (previous != null) { + size -= safeSizeOf(key, previous); + } + } + + if (previous != null) { + entryRemoved(false, key, previous, null); + } + + return previous; + } + + /** + * Called for entries that have been evicted or removed. This method is + * invoked when a value is evicted to make space, removed by a call to + * {@link #remove}, or replaced by a call to {@link #put}. The default + * implementation does nothing. + * + * <p>The method is called without synchronization: other threads may + * access the cache while this method is executing. + * + * @param evicted true if the entry is being removed to make space, false + * if the removal was caused by a {@link #put} or {@link #remove}. + * @param newValue the new value for {@code key}, if it exists. If non-null, + * this removal was caused by a {@link #put}. Otherwise it was caused by + * an eviction or a {@link #remove}. + */ + protected void entryRemoved(boolean evicted, K key, V oldValue, V newValue) {} + + /** + * Called after a cache miss to compute a value for the corresponding key. + * Returns the computed value or null if no value can be computed. The + * default implementation returns null. + * + * <p>The method is called without synchronization: other threads may + * access the cache while this method is executing. + * + * <p>If a value for {@code key} exists in the cache when this method + * returns, the created value will be released with {@link #entryRemoved} + * and discarded. This can occur when multiple threads request the same key + * at the same time (causing multiple values to be created), or when one + * thread calls {@link #put} while another is creating a value for the same + * key. + */ + protected V create(K key) { + return null; + } + + private int safeSizeOf(K key, V value) { + int result = sizeOf(key, value); + if (result < 0) { + throw new IllegalStateException("Negative size: " + key + "=" + value); + } + return result; + } + + /** + * Returns the size of the entry for {@code key} and {@code value} in + * user-defined units. The default implementation returns 1 so that size + * is the number of entries and max size is the maximum number of entries. + * + * <p>An entry's size must not change while it is in the cache. + */ + protected int sizeOf(K key, V value) { + return 1; + } + + /** + * Clear the cache, calling {@link #entryRemoved} on each removed entry. + */ + public final void evictAll() { + trimToSize(-1); // -1 will evict 0-sized elements + } + + /** + * For caches that do not override {@link #sizeOf}, this returns the number + * of entries in the cache. For all other caches, this returns the sum of + * the sizes of the entries in this cache. + */ + public synchronized final int size() { + return size; + } + + /** + * For caches that do not override {@link #sizeOf}, this returns the maximum + * number of entries in the cache. For all other caches, this returns the + * maximum sum of the sizes of the entries in this cache. + */ + public synchronized final int maxSize() { + return maxSize; + } + + /** + * Returns the number of times {@link #get} returned a value that was + * already present in the cache. + */ + public synchronized final int hitCount() { + return hitCount; + } + + /** + * Returns the number of times {@link #get} returned null or required a new + * value to be created. + */ + public synchronized final int missCount() { + return missCount; + } + + /** + * Returns the number of times {@link #create(Object)} returned a value. + */ + public synchronized final int createCount() { + return createCount; + } + + /** + * Returns the number of times {@link #put} was called. + */ + public synchronized final int putCount() { + return putCount; + } + + /** + * Returns the number of values that have been evicted. + */ + public synchronized final int evictionCount() { + return evictionCount; + } + + /** + * Returns a copy of the current contents of the cache, ordered from least + * recently accessed to most recently accessed. + */ + public synchronized final Map<K, V> snapshot() { + return new LinkedHashMap<K, V>(map); + } + + @Override public synchronized final String toString() { + int accesses = hitCount + missCount; + int hitPercent = accesses != 0 ? (100 * hitCount / accesses) : 0; + return String.format("LruCache[maxSize=%d,hits=%d,misses=%d,hitRate=%d%%]", + maxSize, hitCount, missCount, hitPercent); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/SquareButton.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/SquareButton.java new file mode 100644 index 0000000..6c3ad29 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/androvdr/widget/SquareButton.java @@ -0,0 +1,35 @@ +package de.androvdr.widget; + +import android.content.Context; +import android.util.AttributeSet; +import android.widget.Button; + +public class SquareButton extends FontAwesomeButton { + + public SquareButton(Context context, AttributeSet attrs, int defStyle) { + super(context, attrs, defStyle); + } + + public SquareButton(Context context, AttributeSet attrs) { + super(context, attrs); + } + + public SquareButton(Context context) { + super(context); + } + + + + @Override + protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { + + //Get canvas width and height + int w = MeasureSpec.getSize(widthMeasureSpec); + int h = MeasureSpec.getSize(heightMeasureSpec); + + w = Math.min(w, h); + h = w; + + setMeasuredDimension(w, h); + } +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/QueuedWork.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/QueuedWork.java new file mode 100644 index 0000000..09bb15b --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/QueuedWork.java @@ -0,0 +1,101 @@ +/* + * Copyright (C) 2010 The Android Open Source Project + * + * 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. + */ + +package de.bjusystems.vdrmanager; + +import java.util.concurrent.ConcurrentLinkedQueue; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; + +/** + * Internal utility class to keep track of process-global work that's + * outstanding and hasn't been finished yet. + * + * This was created for writing SharedPreference edits out + * asynchronously so we'd have a mechanism to wait for the writes in + * Activity.onPause and similar places, but we may use this mechanism + * for other things in the future. + * + * + */ +public class QueuedWork { + + // The set of Runnables that will finish or wait on any async + // activities started by the application. + private static final ConcurrentLinkedQueue<Runnable> sPendingWorkFinishers = + new ConcurrentLinkedQueue<Runnable>(); + + private static ExecutorService sSingleThreadExecutor = null; // lazy, guarded by class + + /** + * Returns a single-thread Executor shared by the entire process, + * creating it if necessary. + */ + public static ExecutorService singleThreadExecutor() { + synchronized (QueuedWork.class) { + if (sSingleThreadExecutor == null) { + // TODO: can we give this single thread a thread name? + sSingleThreadExecutor = Executors.newSingleThreadExecutor(); + } + return sSingleThreadExecutor; + } + } + + /** + * Add a runnable to finish (or wait for) a deferred operation + * started in this context earlier. Typically finished by e.g. + * an Activity#onPause. Used by SharedPreferences$Editor#startCommit(). + * + * Note that this doesn't actually start it running. This is just + * a scratch set for callers doing async work to keep updated with + * what's in-flight. In the common case, caller code + * (e.g. SharedPreferences) will pretty quickly call remove() + * after an add(). The only time these Runnables are run is from + * waitToFinish(), below. + */ + public static void add(Runnable finisher) { + sPendingWorkFinishers.add(finisher); + } + + public static void remove(Runnable finisher) { + sPendingWorkFinishers.remove(finisher); + } + + /** + * Finishes or waits for async operations to complete. + * (e.g. SharedPreferences$Editor#startCommit writes) + * + * Is called from the Activity base class's onPause(), after + * BroadcastReceiver's onReceive, after Service command handling, + * etc. (so async work is never lost) + */ + public static void waitToFinish() { + Runnable toFinish; + while ((toFinish = sPendingWorkFinishers.poll()) != null) { + toFinish.run(); + } + } + + /** + * Returns true if there is pending work to be done. Note that the + * result is out of data as soon as you receive it, so be careful how you + * use it. + */ + public static boolean hasPendingWork() { + return !sPendingWorkFinishers.isEmpty(); + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/StringUtils.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/StringUtils.java new file mode 100644 index 0000000..97050dc --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/StringUtils.java @@ -0,0 +1,180 @@ + +package de.bjusystems.vdrmanager; + +import java.util.ArrayList; + + + +public class StringUtils { + + /** + * An empty immutable <code>String</code> array. + */ + public static final String[] EMPTY_STRING_ARRAY = new String[0]; + + + public static final String EMPTY_STRING = ""; + + + /** + * Performs the logic for the <code>split</code> and + * <code>splitPreserveAllTokens</code> methods that return a maximum array + * length. + * + * @param str the String to parse, may be <code>null</code> + * @param separatorChars the separate character + * @param max the maximum number of elements to include in the + * array. A zero or negative value implies no limit. + * @param preserveAllTokens if <code>true</code>, adjacent separators are + * treated as empty token separators; if <code>false</code>, adjacent + * separators are treated as one separator. + * @return an array of parsed Strings, <code>null</code> if null String input + */ + private static String[] splitWorker(String str, String separatorChars, int max, boolean preserveAllTokens) { + // Performance tuned for 2.0 (JDK1.4) + // Direct code is quicker than StringTokenizer. + // Also, StringTokenizer uses isSpace() not isWhitespace() + + if (str == null) { + return null; + } + int len = str.length(); + if (len == 0) { + return EMPTY_STRING_ARRAY; + } + ArrayList<String> list = new ArrayList<String>(); + int sizePlus1 = 1; + int i = 0, start = 0; + boolean match = false; + boolean lastMatch = false; + if (separatorChars == null) { + // Null separator means use whitespace + while (i < len) { + if (Character.isWhitespace(str.charAt(i))) { + if (match || preserveAllTokens) { + lastMatch = true; + if (sizePlus1++ == max) { + i = len; + lastMatch = false; + } + list.add(str.substring(start, i)); + match = false; + } + start = ++i; + continue; + } + lastMatch = false; + match = true; + i++; + } + } else if (separatorChars.length() == 1) { + // Optimise 1 character case + char sep = separatorChars.charAt(0); + while (i < len) { + if (str.charAt(i) == sep) { + if (match || preserveAllTokens) { + lastMatch = true; + if (sizePlus1++ == max) { + i = len; + lastMatch = false; + } + list.add(str.substring(start, i)); + match = false; + } + start = ++i; + continue; + } + lastMatch = false; + match = true; + i++; + } + } else { + // standard case + while (i < len) { + if (separatorChars.indexOf(str.charAt(i)) >= 0) { + if (match || preserveAllTokens) { + lastMatch = true; + if (sizePlus1++ == max) { + i = len; + lastMatch = false; + } + list.add(str.substring(start, i)); + match = false; + } + start = ++i; + continue; + } + lastMatch = false; + match = true; + i++; + } + } + if (match || (preserveAllTokens && lastMatch)) { + list.add(str.substring(start, i)); + } + return (String[]) list.toArray(new String[list.size()]); + } + + /** + * <p>Splits the provided text into an array, separators specified, + * preserving all tokens, including empty tokens created by adjacent + * separators. This is an alternative to using StringTokenizer.</p> + * + * <p>The separator is not included in the returned String array. + * Adjacent separators are treated as separators for empty tokens. + * For more control over the split use the StrTokenizer class.</p> + * + * <p>A <code>null</code> input String returns <code>null</code>. + * A <code>null</code> separatorChars splits on whitespace.</p> + * + * <pre> + * StringUtils.splitPreserveAllTokens(null, *) = null + * StringUtils.splitPreserveAllTokens("", *) = [] + * StringUtils.splitPreserveAllTokens("abc def", null) = ["abc", "def"] + * StringUtils.splitPreserveAllTokens("abc def", " ") = ["abc", "def"] + * StringUtils.splitPreserveAllTokens("abc def", " ") = ["abc", "", def"] + * StringUtils.splitPreserveAllTokens("ab:cd:ef", ":") = ["ab", "cd", "ef"] + * StringUtils.splitPreserveAllTokens("ab:cd:ef:", ":") = ["ab", "cd", "ef", ""] + * StringUtils.splitPreserveAllTokens("ab:cd:ef::", ":") = ["ab", "cd", "ef", "", ""] + * StringUtils.splitPreserveAllTokens("ab::cd:ef", ":") = ["ab", "", cd", "ef"] + * StringUtils.splitPreserveAllTokens(":cd:ef", ":") = ["", cd", "ef"] + * StringUtils.splitPreserveAllTokens("::cd:ef", ":") = ["", "", cd", "ef"] + * StringUtils.splitPreserveAllTokens(":cd:ef:", ":") = ["", cd", "ef", ""] + * </pre> + * + * @param str the String to parse, may be <code>null</code> + * @param separatorChars the characters used as the delimiters, + * <code>null</code> splits on whitespace + * @return an array of parsed Strings, <code>null</code> if null String input + * @since 2.1 + */ + public static String[] splitPreserveAllTokens(String str, String separatorChars) { + return splitWorker(str, separatorChars, -1, true); + } + + // Equals + //----------------------------------------------------------------------- + /** + * <p>Compares two Strings, returning <code>true</code> if they are equal.</p> + * + * <p><code>null</code>s are handled without exceptions. Two <code>null</code> + * references are considered to be equal. The comparison is case sensitive.</p> + * + * <pre> + * StringUtils.equals(null, null) = true + * StringUtils.equals(null, "abc") = false + * StringUtils.equals("abc", null) = false + * StringUtils.equals("abc", "abc") = true + * StringUtils.equals("abc", "ABC") = false + * </pre> + * + * @see java.lang.String#equals(Object) + * @param str1 the first String, may be null + * @param str2 the second String, may be null + * @return <code>true</code> if the Strings are equal, case sensitive, or + * both <code>null</code> + */ + public static boolean equals(String str1, String str2) { + return str1 == null ? str2 == null : str1.equals(str2); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/VdrSharedPreferencesImpl.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/VdrSharedPreferencesImpl.java new file mode 100644 index 0000000..97d6428 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/VdrSharedPreferencesImpl.java @@ -0,0 +1,527 @@ +/* + * Copyrigsht (C) 2010 The Android Open Source Project + * + * 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. + */ + +package de.bjusystems.vdrmanager; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.WeakHashMap; +import java.util.concurrent.CountDownLatch; + +import android.content.SharedPreferences; +import android.os.Looper; + +import com.j256.ormlite.dao.RuntimeExceptionDao; + +import de.bjusystems.vdrmanager.data.Vdr; + +public class VdrSharedPreferencesImpl implements SharedPreferences { + + private static final String TAG = VdrSharedPreferencesImpl.class.getSimpleName(); + + private static final boolean DEBUG = false; + + // Lock ordering rules: + // - acquire SharedPreferencesImpl.this before EditorImpl.this + // - acquire mWritingToDiskLock before EditorImpl.this + + Vdr mVdr; + + + public Vdr getVdr(){ + return mVdr; + } + + RuntimeExceptionDao<Vdr, Integer> dao; + + private Map<String, Object> mMap; // guarded by 'this' + private int mDiskWritesInFlight = 0; // guarded by 'this' + private boolean mLoaded = false; // guarded by 'this' + + private final Object mWritingToDiskLock = new Object(); + private static final Object mContent = new Object(); + private final WeakHashMap<OnSharedPreferenceChangeListener, Object> mListeners = new WeakHashMap<OnSharedPreferenceChangeListener, Object>(); + + public VdrSharedPreferencesImpl(Vdr vdr, RuntimeExceptionDao<Vdr, Integer> dao) { + mVdr = vdr; + this.dao = dao; + mLoaded = false; + mMap = null; + startLoadFromDisk(); + } + + private void startLoadFromDisk() { + synchronized (this) { + mLoaded = false; + } + new Thread("SharedPreferencesImpl-load") { + public void run() { + synchronized (VdrSharedPreferencesImpl.this) { + loadFromDiskLocked(); + } + } + }.start(); + } + + private void loadFromDiskLocked() { + if (mLoaded) { + return; + } + + Map map = mVdr.toMap(); + //StructStat stat = null; + //try { + //stat = Libcore.os.stat(mFile.getPath()); + //if (mFile.canRead()) { + //BufferedInputStream str = null; + //try { + //str = new BufferedInputStream(new FileInputStream(mFile), + // 16 * 1024); + //map = XmlUtils.readMapXml(str); + //} catch (XmlPullParserException e) { +// Log.w(TAG, "getSharedPreferences", e); + // } catch (FileNotFoundException e) { + // Log.w(TAG, "getSharedPreferences", e); + // } catch (IOException e) { + // Log.w(TAG, "getSharedPreferences", e); + //} finally { + //IoUtils.closeQuietly(str); + //} + //} + //} catch (ErrnoException e) { + //} + mLoaded = true; + if (map != null) { + mMap = map; + } else { + mMap = new HashMap<String, Object>(); + } + notifyAll(); + } + + + + public void registerOnSharedPreferenceChangeListener( + OnSharedPreferenceChangeListener listener) { + synchronized (this) { + mListeners.put(listener, mContent); + } + } + + public void unregisterOnSharedPreferenceChangeListener( + OnSharedPreferenceChangeListener listener) { + synchronized (this) { + mListeners.remove(listener); + } + } + + private void awaitLoadedLocked() { + // if (!mLoaded) { + // // Raise an explicit StrictMode onReadFromDisk for this + // // thread, since the real read will be in a different + // // thread and otherwise ignored by StrictMode. + // BlockGuard.getThreadPolicy().onReadFromDisk(); + // } + while (!mLoaded) { + try { + wait(); + } catch (InterruptedException unused) { + } + } + } + + public Map<String, ?> getAll() { + synchronized (this) { + awaitLoadedLocked(); + // noinspection unchecked + return new HashMap<String, Object>(mMap); + } + } + + public String getString(String key, String defValue) { + synchronized (this) { + awaitLoadedLocked(); + String v = String.valueOf(mMap.get(key)); + return v != null ? v : defValue; + } + } + + public Set<String> getStringSet(String key, Set<String> defValues) { + synchronized (this) { + awaitLoadedLocked(); + Set<String> v = (Set<String>) mMap.get(key); + return v != null ? v : defValues; + } + } + + public int getInt(String key, int defValue) { + synchronized (this) { + awaitLoadedLocked(); + Integer v = (Integer) mMap.get(key); + return v != null ? v : defValue; + } + } + + public long getLong(String key, long defValue) { + synchronized (this) { + awaitLoadedLocked(); + Long v = (Long) mMap.get(key); + return v != null ? v : defValue; + } + } + + public float getFloat(String key, float defValue) { + synchronized (this) { + awaitLoadedLocked(); + Float v = (Float) mMap.get(key); + return v != null ? v : defValue; + } + } + + public boolean getBoolean(String key, boolean defValue) { + synchronized (this) { + awaitLoadedLocked(); + Boolean v = (Boolean) mMap.get(key); + return v != null ? v : defValue; + } + } + + public boolean contains(String key) { + synchronized (this) { + awaitLoadedLocked(); + return mMap.containsKey(key); + } + } + + public Editor edit() { + // TODO: remove the need to call awaitLoadedLocked() when + // requesting an editor. will require some work on the + // Editor, but then we should be able to do: + // + // context.getSharedPreferences(..).edit().putString(..).apply() + // + // ... all without blocking. + synchronized (this) { + awaitLoadedLocked(); + } + + return new EditorImpl(); + } + + // Return value from EditorImpl#commitToMemory() + private static class MemoryCommitResult { + public boolean changesMade; // any keys different? + public List<String> keysModified; // may be null + public Set<OnSharedPreferenceChangeListener> listeners; // may be null + public Map<String, Object> mapToWriteToDisk; + public final CountDownLatch writtenToDiskLatch = new CountDownLatch(1); + public volatile boolean writeToDiskResult = false; + + public void setDiskWriteResult(boolean result) { + writeToDiskResult = result; + writtenToDiskLatch.countDown(); + } + } + + public final class EditorImpl implements Editor { + + private final Map<String, Object> mModified = new HashMap<String, Object>(); + + private boolean mClear = false; + + public Editor putString(String key, String value) { + synchronized (this) { + mModified.put(key, value); + return this; + } + } + + public Editor putStringSet(String key, Set<String> values) { + synchronized (this) { + mModified.put(key, (values == null) ? null + : new HashSet<String>(values)); + return this; + } + } + + public Editor putInt(String key, int value) { + synchronized (this) { + mModified.put(key, value); + return this; + } + } + + public Editor putLong(String key, long value) { + synchronized (this) { + mModified.put(key, value); + return this; + } + } + + public Editor putFloat(String key, float value) { + synchronized (this) { + mModified.put(key, value); + return this; + } + } + + public Editor putBoolean(String key, boolean value) { + synchronized (this) { + mModified.put(key, value); + return this; + } + } + + public Editor remove(String key) { + synchronized (this) { + mModified.put(key, this); + return this; + } + } + + public Editor clear() { + synchronized (this) { + mClear = true; + return this; + } + } + + public void apply() { + final MemoryCommitResult mcr = commitToMemory(); + final Runnable awaitCommit = new Runnable() { + public void run() { + try { + mcr.writtenToDiskLatch.await(); + } catch (InterruptedException ignored) { + } + } + }; + + QueuedWork.add(awaitCommit); + + Runnable postWriteRunnable = new Runnable() { + public void run() { + awaitCommit.run(); + QueuedWork.remove(awaitCommit); + } + }; + + VdrSharedPreferencesImpl.this.enqueueDiskWrite(mcr, postWriteRunnable); + + // Okay to notify the listeners before it's hit disk + // because the listeners should always get the same + // SharedPreferences instance back, which has the + // changes reflected in memory. + notifyListeners(mcr); + } + + // Returns true if any changes were made + private MemoryCommitResult commitToMemory() { + MemoryCommitResult mcr = new MemoryCommitResult(); + synchronized (VdrSharedPreferencesImpl.this) { + // We optimistically don't make a deep copy until + // a memory commit comes in when we're already + // writing to disk. + if (mDiskWritesInFlight > 0) { + // We can't modify our mMap as a currently + // in-flight write owns it. Clone it before + // modifying it. + // noinspection unchecked + mMap = new HashMap<String, Object>(mMap); + } + mcr.mapToWriteToDisk = mMap; + mDiskWritesInFlight++; + + boolean hasListeners = mListeners.size() > 0; + if (hasListeners) { + mcr.keysModified = new ArrayList<String>(); + mcr.listeners = new HashSet<OnSharedPreferenceChangeListener>( + mListeners.keySet()); + } + + synchronized (this) { + if (mClear) { + if (!mMap.isEmpty()) { + mcr.changesMade = true; + mMap.clear(); + } + mClear = false; + } + + for (Map.Entry<String, Object> e : mModified.entrySet()) { + String k = e.getKey(); + Object v = e.getValue(); + if (v == this) { // magic value for a removal mutation + if (!mMap.containsKey(k)) { + continue; + } + mMap.remove(k); + } else { + boolean isSame = false; + if (mMap.containsKey(k)) { + Object existingValue = mMap.get(k); + if (existingValue != null + && existingValue.equals(v)) { + continue; + } + } + mMap.put(k, v); + } + + mcr.changesMade = true; + if (hasListeners) { + mcr.keysModified.add(k); + } + } + + mModified.clear(); + } + } + return mcr; + } + + public boolean commit() { + MemoryCommitResult mcr = commitToMemory(); + VdrSharedPreferencesImpl.this.enqueueDiskWrite(mcr, null /* + * sync write on + * this thread + * okay + */); + try { + mcr.writtenToDiskLatch.await(); + } catch (InterruptedException e) { + return false; + } + notifyListeners(mcr); + return mcr.writeToDiskResult; + } + + private void notifyListeners(final MemoryCommitResult mcr) { + if (mcr.listeners == null || mcr.keysModified == null + || mcr.keysModified.size() == 0) { + return; + } + //if (Looper.myLooper() == Looper.getMainLooper()) { + for (int i = mcr.keysModified.size() - 1; i >= 0; i--) { + final String key = mcr.keysModified.get(i); + for (OnSharedPreferenceChangeListener listener : mcr.listeners) { + if (listener != null) { + listener.onSharedPreferenceChanged( + VdrSharedPreferencesImpl.this, key); + } + } + } + //} else { + // Run this function on the main thread. + // VdrManagerApp.sMainThreadHandler.post(new Runnable() { + // public void run() { + // notifyListeners(mcr); + // } + // }); + //} + } + } + + /** + * Enqueue an already-committed-to-memory result to be written to disk. + * + * They will be written to disk one-at-a-time in the order that they're + * enqueued. + * + * @param postWriteRunnable + * if non-null, we're being called from apply() and this is the + * runnable to run after the write proceeds. if null (from a + * regular commit()), then we're allowed to do this disk write on + * the main thread (which in addition to reducing allocations and + * creating a background thread, this has the advantage that we + * catch them in userdebug StrictMode reports to convert them + * where possible to apply() ...) + */ + private void enqueueDiskWrite(final MemoryCommitResult mcr, + final Runnable postWriteRunnable) { + final Runnable writeToDiskRunnable = new Runnable() { + public void run() { + synchronized (mWritingToDiskLock) { + writeToFile(mcr); + } + synchronized (VdrSharedPreferencesImpl.this) { + mDiskWritesInFlight--; + } + if (postWriteRunnable != null) { + postWriteRunnable.run(); + } + } + }; + + final boolean isFromSyncCommit = (postWriteRunnable == null); + + // Typical #commit() path with fewer allocations, doing a write on + // the current thread. + if (isFromSyncCommit) { + boolean wasEmpty = false; + synchronized (VdrSharedPreferencesImpl.this) { + wasEmpty = mDiskWritesInFlight == 1; + } + if (wasEmpty) { + writeToDiskRunnable.run(); + return; + } + } + + QueuedWork.singleThreadExecutor().execute(writeToDiskRunnable); + } + + // Note: must hold mWritingToDiskLock + private void writeToFile(MemoryCommitResult mcr) { + // Rename the current file so it may be used as a backup during the next + // read + + // Attempt to write the file, delete the backup and return true as + // atomically as + // possible. If any exception occurs, delete the new file; next time we + // will restore + // from the backup. + // FileOutputStream str = createFileOutputStream(mFile); + // if (str == null) { + // mcr.setDiskWriteResult(false); + // return; + // } + // + // XmlUtils.writeMapXml(mcr.mapToWriteToDisk, str); + mVdr.set(mcr.mapToWriteToDisk); + dao.createOrUpdate(mVdr); + // FileUtils.sync(str); + // str.close(); + // ContextImpl.setFilePermissionsFromMode(mFile.getPath(), mMode, 0); + // try { + // final StructStat stat = Libcore.os.stat(mFile.getPath()); + // synchronized (this) { + // mStatTimestamp = stat.st_mtime; + // mStatSize = stat.st_size; + // } + // } catch (ErrnoException e) { + // // Do nothing + // } + // Writing was successful, delete the backup file if there is one. + mcr.setDiskWriteResult(true); + return; + + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/ZonePicker.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/ZonePicker.java new file mode 100644 index 0000000..3b1dfbc --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/ZonePicker.java @@ -0,0 +1,336 @@ +/* + * Copyright (C) 2006 The Android Open Source Project + * + * 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. + */ + +package de.bjusystems.vdrmanager; + +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Collections; +import java.util.Comparator; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.TimeZone; + +import org.xmlpull.v1.XmlPullParserException; + +import android.app.ListActivity; +import android.content.Context; +import android.content.Intent; +import android.content.res.XmlResourceParser; +import android.os.Bundle; +import android.util.Log; +import android.view.Menu; +import android.view.MenuItem; +import android.view.View; +import android.widget.ListView; +import android.widget.SimpleAdapter; + +/** + * The class displaying a list of time zones that match a filter string + * such as "Africa", "Europe", etc. Choosing an item from the list will set + * the time zone. Pressing Back without choosing from the list will not + * result in a change in the time zone setting. + */ +public class ZonePicker extends ListActivity { + private static final String TAG = "ZonePicker"; + + public static interface ZoneSelectionListener { + // You can add any argument if you really need it... + public void onZoneSelected(TimeZone tz); + } + + private static final String KEY_ID = "id"; // value: String + private static final String KEY_DISPLAYNAME = "name"; // value: String + private static final String KEY_GMT = "gmt"; // value: String + private static final String KEY_OFFSET = "offset"; // value: int (Integer) + private static final String XMLTAG_TIMEZONE = "timezone"; + + private static final int HOURS_1 = 60 * 60000; + + private static final int MENU_TIMEZONE = Menu.FIRST+1; + private static final int MENU_ALPHABETICAL = Menu.FIRST; + + private boolean mSortedByTimezone; + + private SimpleAdapter mTimezoneSortedAdapter; + private SimpleAdapter mAlphabeticalAdapter; + + private ZoneSelectionListener mListener; + + private String selectedTimeZone; + + /** + * Constructs an adapter with TimeZone list. Sorted by TimeZone in default. + * + * @param sortedByName use Name for sorting the list. + */ + public static SimpleAdapter constructTimezoneAdapter(Context context, + boolean sortedByName) { + return constructTimezoneAdapter(context, sortedByName, + android.R.layout.simple_list_item_2); + } + + /** + * Constructs an adapter with TimeZone list. Sorted by TimeZone in default. + * + * @param sortedByName use Name for sorting the list. + */ + public static SimpleAdapter constructTimezoneAdapter(Context context, + boolean sortedByName, int layoutId) { + final String[] from = new String[] {KEY_DISPLAYNAME, KEY_GMT}; + final int[] to = new int[] {android.R.id.text1, android.R.id.text2}; + + final String sortKey = (sortedByName ? KEY_DISPLAYNAME : KEY_OFFSET); + final MyComparator comparator = new MyComparator(sortKey); + final List<HashMap<String, Object>> sortedList = getZones(context); + Collections.sort(sortedList, comparator); + final SimpleAdapter adapter = new SimpleAdapter(context, + sortedList, + layoutId, + from, + to); + + return adapter; + } + + /** + * Searches {@link TimeZone} from the given {@link SimpleAdapter} object, and returns + * the index for the TimeZone. + * + * @param adapter SimpleAdapter constructed by + * {@link #constructTimezoneAdapter(Context, boolean)}. + * @param tz TimeZone to be searched. + * @return Index for the given TimeZone. -1 when there's no corresponding list item. + * returned. + */ + public static int getTimeZoneIndex(SimpleAdapter adapter, TimeZone tz) { + final String defaultId = tz.getID(); + final int listSize = adapter.getCount(); + for (int i = 0; i < listSize; i++) { + // Using HashMap<String, Object> induces unnecessary warning. + final HashMap<?,?> map = (HashMap<?,?>)adapter.getItem(i); + final String id = (String)map.get(KEY_ID); + if (defaultId.equals(id)) { + // If current timezone is in this list, move focus to it + return i; + } + } + return -1; + } + + /** + * @param item one of items in adapters. The adapter should be constructed by + * {@link #constructTimezoneAdapter(Context, boolean)}. + * @return TimeZone object corresponding to the item. + */ + public static TimeZone obtainTimeZoneFromItem(Object item) { + return TimeZone.getTimeZone((String)((Map<?, ?>)item).get(KEY_ID)); + } + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + selectedTimeZone = getIntent().getStringExtra("current_tz"); + + mTimezoneSortedAdapter = constructTimezoneAdapter(this, false); + mAlphabeticalAdapter = constructTimezoneAdapter(this, true); + + // Sets the adapter + setSorting(true); + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + menu.add(0, MENU_ALPHABETICAL, 0, R.string.zone_list_menu_sort_alphabetically) + .setIcon(android.R.drawable.ic_menu_sort_alphabetically); + menu.add(0, MENU_TIMEZONE, 0, R.string.zone_list_menu_sort_by_timezone) + .setIcon(R.drawable.ic_menu_3d_globe); + return true; + } + + + @Override + public boolean onPrepareOptionsMenu(Menu menu) { + if (mSortedByTimezone) { + menu.findItem(MENU_TIMEZONE).setVisible(false); + menu.findItem(MENU_ALPHABETICAL).setVisible(true); + } else { + menu.findItem(MENU_TIMEZONE).setVisible(true); + menu.findItem(MENU_ALPHABETICAL).setVisible(false); + } + return true; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + switch (item.getItemId()) { + + case MENU_TIMEZONE: + setSorting(true); + return true; + + case MENU_ALPHABETICAL: + setSorting(false); + return true; + + default: + return false; + } + } + + public void setZoneSelectionListener(ZoneSelectionListener listener) { + mListener = listener; + } + + private void setSorting(boolean sortByTimezone) { + final SimpleAdapter adapter = + sortByTimezone ? mTimezoneSortedAdapter : mAlphabeticalAdapter; + setListAdapter(adapter); + mSortedByTimezone = sortByTimezone; + final int defaultIndex = getTimeZoneIndex(adapter, TimeZone.getDefault()); + if (defaultIndex >= 0) { + setSelection(defaultIndex); + } + } + + private static List<HashMap<String, Object>> getZones(Context context) { + final List<HashMap<String, Object>> myData = new ArrayList<HashMap<String, Object>>(); + final long date = Calendar.getInstance().getTimeInMillis(); + try { + XmlResourceParser xrp = context.getResources().getXml(R.xml.timezones); + while (xrp.next() != XmlResourceParser.START_TAG) + continue; + xrp.next(); + while (xrp.getEventType() != XmlResourceParser.END_TAG) { + while (xrp.getEventType() != XmlResourceParser.START_TAG) { + if (xrp.getEventType() == XmlResourceParser.END_DOCUMENT) { + return myData; + } + xrp.next(); + } + if (xrp.getName().equals(XMLTAG_TIMEZONE)) { + String id = xrp.getAttributeValue(0); + String displayName = xrp.nextText(); + addItem(myData, id, displayName, date); + } + while (xrp.getEventType() != XmlResourceParser.END_TAG) { + xrp.next(); + } + xrp.next(); + } + xrp.close(); + } catch (XmlPullParserException xppe) { + Log.e(TAG, "Ill-formatted timezones.xml file"); + } catch (java.io.IOException ioe) { + Log.e(TAG, "Unable to read timezones.xml file"); + } + + return myData; + } + + private static void addItem( + List<HashMap<String, Object>> myData, String id, String displayName, long date) { + final HashMap<String, Object> map = new HashMap<String, Object>(); + map.put(KEY_ID, id); + map.put(KEY_DISPLAYNAME, displayName); + final TimeZone tz = TimeZone.getTimeZone(id); + final int offset = tz.getOffset(date); + final int p = Math.abs(offset); + final StringBuilder name = new StringBuilder(); + name.append("GMT"); + + if (offset < 0) { + name.append('-'); + } else { + name.append('+'); + } + + name.append(p / (HOURS_1)); + name.append(':'); + + int min = p / 60000; + min %= 60; + + if (min < 10) { + name.append('0'); + } + name.append(min); + + map.put(KEY_GMT, name.toString()); + map.put(KEY_OFFSET, offset); + + myData.add(map); + } + + @Override + public void onListItemClick(ListView listView, View v, int position, long id) { + final Map<?, ?> map = (Map<?, ?>)listView.getItemAtPosition(position); + final String tzId = (String) map.get(KEY_ID); + + // Update the system timezone value + //final AlarmManager alarm = (AlarmManager) getSystemService(Context.ALARM_SERVICE); + //alarm.setTimeZone(tzId); + final TimeZone tz = TimeZone.getTimeZone(tzId); + //if (mListener != null) { + // mListener.onZoneSelected(tz); + //} else { + // onBackPressed(); + ///} + Intent returnIntent = new Intent(); + if(tz == null){ + setResult(RESULT_CANCELED, returnIntent); + } else { + returnIntent.putExtra("new_tz",tz.getID()); + setResult(RESULT_OK, returnIntent); + } + finish(); + } + + private static class MyComparator implements Comparator<HashMap<?, ?>> { + private String mSortingKey; + + public MyComparator(String sortingKey) { + mSortingKey = sortingKey; + } + + public void setSortingKey(String sortingKey) { + mSortingKey = sortingKey; + } + + public int compare(HashMap<?, ?> map1, HashMap<?, ?> map2) { + Object value1 = map1.get(mSortingKey); + Object value2 = map2.get(mSortingKey); + + /* + * This should never happen, but just in-case, put non-comparable + * items at the end. + */ + if (!isComparable(value1)) { + return isComparable(value2) ? 1 : 0; + } else if (!isComparable(value2)) { + return -1; + } + + return ((Comparable) value1).compareTo(value2); + } + + private boolean isComparable(Object value) { + return (value != null) && (value instanceof Comparable); + } + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/app/C.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/app/C.java new file mode 100644 index 0000000..8156f69 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/app/C.java @@ -0,0 +1,15 @@ +package de.bjusystems.vdrmanager.app; + +/** + * + * Some constants + * @author lado + * + * + */ +public interface C { + + public static final String DATA_SEPARATOR = ":"; + + public static final long ONE_MINUTE_IN_MILLIS = 60 * 1000; +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/app/Intents.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/app/Intents.java new file mode 100644 index 0000000..72feb99 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/app/Intents.java @@ -0,0 +1,19 @@ +package de.bjusystems.vdrmanager.app; + +public interface Intents { + + //public static final String CURRENT_CHANNEL = "CURRENT_CHANNEL"; + public static final String HIGHLIGHT = "HIGHLIGHT"; + public static final String TIMER_OP = "TIMER_OP"; + public static final int EDIT_TIMER = 0; + public static final int ADD_TIMER = 1; + + public static final String VDR_ID = "VDR_ID"; + + public static final int EDIT_VDR = 2; + + public static final String EMPTY_CONFIG = "EMPTY_CONFIG"; + + public static final String CURRENT_EPG = "CURRENT_EPG"; + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/app/VdrManagerApp.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/app/VdrManagerApp.java new file mode 100644 index 0000000..0d4f54c --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/app/VdrManagerApp.java @@ -0,0 +1,159 @@ +package de.bjusystems.vdrmanager.app; + +import android.app.Activity; +import android.app.Application; +import de.bjusystems.vdrmanager.data.Channel; +import de.bjusystems.vdrmanager.data.EpgSearchParams; +import de.bjusystems.vdrmanager.data.Event; +import de.bjusystems.vdrmanager.data.Preferences; +import de.bjusystems.vdrmanager.data.Timer; +import de.bjusystems.vdrmanager.data.Vdr; + +import java.security.KeyStore; +import java.util.ArrayList; +import java.util.List; +import java.util.Locale; + + +public class VdrManagerApp extends Application { + + + public VdrManagerApp() { + super(); + initSessionKeyStore(); + } + + public enum EpgListState { + EPG_TIME, EPG_CHANNEL, EPG_SEARCH + } + + private EpgListState epgListState; + private Event currentEvent; + private Timer currentTimer; + private Channel currentChannel; + + public static final Locale SYSTEM_LOCALE = Locale.getDefault(); + + private Vdr currentVDR; + + public Vdr getCurrentVDR() { + return currentVDR; + } + + public void setCurrentVDR(final Vdr currentVDR) { + this.currentVDR = currentVDR; + } + + private List<Event> currentEpgList = new ArrayList<Event>(); + + public List<Event> getCurrentEpgList() { + return currentEpgList; + } + + public void setCurrentEpgList(final List currentEpgList) { + this.currentEpgList = currentEpgList; + } + + private EpgSearchParams currentSearch; + private Class<? extends Activity> nextActivity; + private final List<Activity> activitiesToFinish = new ArrayList<Activity>(); + private boolean reload; + + @Override + public void onCreate() { + super.onCreate(); + Preferences.init(this); + } + + public void clear() { + this.currentEvent = null; + this.currentTimer = null; + this.currentChannel = null; + this.currentSearch = null; + this.currentEpgList = null; + this.epgListState = EpgListState.EPG_TIME; + } + + public Event getCurrentEvent() { + return currentEvent; + } + + public void setCurrentEvent(final Event currentEvent) { + this.currentEvent = currentEvent; + } + + public Timer getCurrentTimer() { + return currentTimer; + } + + public void setCurrentTimer(final Timer currentTimer) { + this.currentTimer = currentTimer; + } + + public Channel getCurrentChannel() { + return currentChannel; + } + + public void setCurrentChannel(final Channel currentChannel) { + clear(); + this.currentChannel = currentChannel; + this.epgListState = EpgListState.EPG_CHANNEL; + } + + public EpgSearchParams getCurrentSearch() { + return currentSearch; + } + + public void setCurrentSearch(final EpgSearchParams currentSearch) { + clear(); + this.currentSearch = currentSearch; + this.epgListState = EpgListState.EPG_SEARCH; + } + + public EpgListState getEpgListState() { + return epgListState; + } + + public Class<? extends Activity> getNextActivity() { + return nextActivity; + } + + public void setNextActivity(final Class<? extends Activity> nextActivity) { + this.nextActivity = nextActivity; + } + + public List<Activity> getActivitiesToFinish() { + return activitiesToFinish; + } + + public boolean isReload() { + return reload; + } + + public void setReload(final boolean reload) { + this.reload = reload; + } + + /** KeyStore for per app run accepted certificates */ + private KeyStore sessionKeyStore; + + /** + * Gets the temporary accepted certificates + * @return KeyStore + */ + public KeyStore getSessionKeyStore() { + return sessionKeyStore; + } + + /** + * Create a new and empty key store + */ + public void initSessionKeyStore() { + try { + sessionKeyStore = KeyStore.getInstance(KeyStore.getDefaultType()); + sessionKeyStore.load(null); + } catch (final Exception e) { + sessionKeyStore = null; + } + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/AbstractSettingsActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/AbstractSettingsActivity.java new file mode 100644 index 0000000..ef6dd5e --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/AbstractSettingsActivity.java @@ -0,0 +1,70 @@ +/* + * Copyright 2012 Google Inc. + * + * 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. + */ + +package de.bjusystems.vdrmanager.backup; + +import android.content.Context; +import android.os.Bundle; +import android.preference.PreferenceActivity; +import android.preference.PreferenceManager; +import android.speech.tts.TextToSpeech; +import android.view.MenuItem; + +/** + * An abstract activity for all the settings activities. + * + * @author Jimmy Shih + */ +public class AbstractSettingsActivity extends PreferenceActivity { + + private BackupPreferencesListener backupPreferencesListener; + + @SuppressWarnings("deprecation") + @Override + protected void onCreate(Bundle bundle) { + super.onCreate(bundle); + setVolumeControlStream(TextToSpeech.Engine.DEFAULT_STREAM); + ApiAdapterFactory.getApiAdapter().configureActionBarHomeAsUp(this); + + PreferenceManager preferenceManager = getPreferenceManager(); + preferenceManager.setSharedPreferencesName(Constants.SETTINGS_NAME); + preferenceManager.setSharedPreferencesMode(Context.MODE_PRIVATE); + + // Set up automatic preferences backup + backupPreferencesListener = ApiAdapterFactory.getApiAdapter() + .getBackupPreferencesListener(this); + preferenceManager.getSharedPreferences() + .registerOnSharedPreferenceChangeListener(backupPreferencesListener); + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + if (item.getItemId() != android.R.id.home) { + return super.onOptionsItemSelected(item); + } + finish(); + return true; + } + + @SuppressWarnings("deprecation") + @Override + protected void onDestroy() { + super.onDestroy(); + PreferenceManager preferenceManager = getPreferenceManager(); + preferenceManager.getSharedPreferences() + .unregisterOnSharedPreferenceChangeListener(backupPreferencesListener); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api10Adapter.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api10Adapter.java new file mode 100644 index 0000000..0527f89 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api10Adapter.java @@ -0,0 +1,30 @@ +/* + * Copyright 2012 Google Inc. + * + * 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. + */ +package de.bjusystems.vdrmanager.backup; + +import android.annotation.TargetApi; + + +/** + * API level 10 specific implementation of the {@link ApiAdapter}. + * + * @author Jimmy Shih + */ +@TargetApi(10) +public class Api10Adapter extends Api9Adapter { + + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api11Adapter.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api11Adapter.java new file mode 100644 index 0000000..ec26635 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api11Adapter.java @@ -0,0 +1,112 @@ +/* + * Copyright 2012 Google Inc. + * + * 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. + */ + +package de.bjusystems.vdrmanager.backup; + + +import java.util.List; + +import android.annotation.TargetApi; +import android.app.Activity; +import android.app.SearchManager; +import android.content.Context; +import android.view.MenuItem; +import android.widget.ArrayAdapter; +import android.widget.ListView; +import android.widget.SearchView; + +/** + * API level 11 specific implementation of the {@link ApiAdapter}. + * + * @author Jimmy Shih + */ +@TargetApi(11) +public class Api11Adapter extends Api10Adapter { + + @Override + public void hideTitle(Activity activity) { + // Do nothing + } + + @Override + public void configureActionBarHomeAsUp(Activity activity) { + activity.getActionBar().setDisplayHomeAsUpEnabled(true); + } + + @Override + public void configureListViewContextualMenu(final Activity activity, ListView listView, + final ContextualActionModeCallback contextualActionModeCallback) { + /* + + listView.setOnItemLongClickListener(new OnItemLongClickListener() { + ActionMode actionMode; + @Override + public boolean onItemLongClick( + AdapterView<?> parent, View view, final int position, final long id) { + if (actionMode != null) { + return false; + } + actionMode = activity.startActionMode(new ActionMode.Callback() { + @Override + public boolean onCreateActionMode(ActionMode mode, Menu menu) { + mode.getMenuInflater().inflate(R.menu.list_context_menu, menu); + return true; + } + @Override + public boolean onPrepareActionMode(ActionMode mode, Menu menu) { + // Return false to indicate no change. + return false; + } + @Override + public void onDestroyActionMode(ActionMode mode) { + actionMode = null; + } + @Override + public boolean onActionItemClicked(ActionMode mode, MenuItem item) { + mode.finish(); + return contextualActionModeCallback.onClick(item.getItemId(), position, id); + } + }); + TextView textView = (TextView) view.findViewById(R.id.list_item_name); + if (textView != null) { + actionMode.setTitle(textView.getText()); + } + view.setSelected(true); + return true; + } + }); + */ + }; + + @Override + public void configureSearchWidget(Activity activity, final MenuItem menuItem) { + SearchManager searchManager = (SearchManager) activity.getSystemService(Context.SEARCH_SERVICE); + SearchView searchView = (SearchView) menuItem.getActionView(); + searchView.setSearchableInfo(searchManager.getSearchableInfo(activity.getComponentName())); + searchView.setQueryRefinementEnabled(true); + } + + @Override + public boolean handleSearchMenuSelection(Activity activity) { + // Returns false to allow the platform to expand the search widget. + return false; + } + + @Override + public <T> void addAllToArrayAdapter(ArrayAdapter<T> arrayAdapter, List<T> items) { + arrayAdapter.addAll(items); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api14Adapter.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api14Adapter.java new file mode 100644 index 0000000..642ceb7 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api14Adapter.java @@ -0,0 +1,76 @@ +/* + * Copyright 2012 Google Inc. + * + * 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. + */ + +package de.bjusystems.vdrmanager.backup; + +import android.annotation.TargetApi; +import android.app.ActionBar; +import android.app.Activity; +import android.view.MenuItem; +import android.widget.SearchView; + +/** + * API level 14 specific implementation of the {@link ApiAdapter}. + * + * @author Jimmy Shih + */ +@TargetApi(14) +public class Api14Adapter extends Api11Adapter { + + @Override + public void configureActionBarHomeAsUp(Activity activity) { + ActionBar actionBar = activity.getActionBar(); + if(actionBar == null){ + return; + } + actionBar.setHomeButtonEnabled(true); + actionBar.setDisplayHomeAsUpEnabled(true); + } + + @Override + public void configureSearchWidget(Activity activity, final MenuItem menuItem) { + super.configureSearchWidget(activity, menuItem); + SearchView searchView = (SearchView) menuItem.getActionView(); + searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() { + @Override + public boolean onQueryTextSubmit(String query) { + menuItem.collapseActionView(); + return false; + } + @Override + public boolean onQueryTextChange(String newText) { + return false; + } + }); + searchView.setOnSuggestionListener(new SearchView.OnSuggestionListener() { + @Override + public boolean onSuggestionSelect(int position) { + return false; + } + @Override + public boolean onSuggestionClick(int position) { + menuItem.collapseActionView(); + return false; + } + }); + } + + @Override + public boolean handleSearchKey(MenuItem menuItem) { + menuItem.expandActionView(); + return true; + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api7Adapter.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api7Adapter.java new file mode 100644 index 0000000..b89168a --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api7Adapter.java @@ -0,0 +1,107 @@ +/* + * Copyright 2010 Google Inc. + * + * 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. + */ +package de.bjusystems.vdrmanager.backup; + + +import java.util.List; + +import android.app.Activity; +import android.content.Context; +import android.content.SharedPreferences; +import android.content.SharedPreferences.Editor; +import android.view.MenuItem; +import android.view.Window; +import android.widget.ArrayAdapter; +import android.widget.ListView; + +/** + * API level 7 specific implementation of the {@link ApiAdapter}. + * + * @author Bartlomiej Niechwiej + */ +public class Api7Adapter implements ApiAdapter { + + + @Override + public BackupPreferencesListener getBackupPreferencesListener(Context context) { + return new BackupPreferencesListener() { + @Override + public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { + // Do nothing + } + }; + } + + @Override + public void applyPreferenceChanges(Editor editor) { + editor.commit(); + } + + @Override + public void enableStrictMode() { + // Not supported + } + + @Override + public byte[] copyByteArray(byte[] input, int start, int end) { + int length = end - start; + byte[] output = new byte[length]; + System.arraycopy(input, start, output, 0, length); + return output; + } + + + + @Override + public void hideTitle(Activity activity) { + activity.requestWindowFeature(Window.FEATURE_NO_TITLE); + } + + @Override + public void configureActionBarHomeAsUp(Activity activity) { + // Do nothing + } + + @Override + public void configureListViewContextualMenu(Activity activity, ListView listView, + ContextualActionModeCallback contextualActionModeCallback) { + activity.registerForContextMenu(listView); + } + + @Override + public void configureSearchWidget(Activity activity, MenuItem menuItem) { + // Do nothing + } + + @Override + public boolean handleSearchMenuSelection(Activity activity) { + activity.onSearchRequested(); + return true; + } + + @Override + public <T> void addAllToArrayAdapter(ArrayAdapter<T> arrayAdapter, List<T> items) { + for (T item : items) { + arrayAdapter.add(item); + } + } + + @Override + public boolean handleSearchKey(MenuItem menuItem) { + // Return false and allow the framework to handle the search key. + return false; + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api8Adapter.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api8Adapter.java new file mode 100644 index 0000000..1fc61d3 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api8Adapter.java @@ -0,0 +1,32 @@ +/* + * Copyright 2012 Google Inc. + * + * 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. + */ +package de.bjusystems.vdrmanager.backup; + +import android.content.Context; + +/** + * API level 8 specific implementation of the {@link ApiAdapter}. + * + * @author Jimmy Shih + */ +public class Api8Adapter extends Api7Adapter { + + + @Override + public BackupPreferencesListener getBackupPreferencesListener(Context context) { + return new Api8BackupPreferencesListener(context); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api8BackupPreferencesListener.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api8BackupPreferencesListener.java new file mode 100644 index 0000000..90e3976 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api8BackupPreferencesListener.java @@ -0,0 +1,43 @@ +/* + * Copyright 2011 Google Inc. + * + * 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. + */ +package de.bjusystems.vdrmanager.backup; + +import android.annotation.TargetApi; +import android.app.backup.BackupManager; +import android.content.Context; +import android.content.SharedPreferences; + +/** + * Implementation of {@link BackupPreferencesListener} that calls the + * {@link BackupManager}. <br> + * For API Level 8 or higher. + * + * @author Jimmy Shih + */ +@TargetApi(8) +public class Api8BackupPreferencesListener implements BackupPreferencesListener { + + private final BackupManager backupManager; + + public Api8BackupPreferencesListener(Context context) { + this.backupManager = new BackupManager(context); + } + + @Override + public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { + backupManager.dataChanged(); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api9Adapter.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api9Adapter.java new file mode 100644 index 0000000..151f317 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Api9Adapter.java @@ -0,0 +1,58 @@ +/* + * Copyright 2012 Google Inc. + * + * 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. + */ +package de.bjusystems.vdrmanager.backup; + +import java.util.Arrays; + +import android.annotation.TargetApi; +import android.content.SharedPreferences.Editor; +import android.os.StrictMode; +import android.util.Log; + +/** + * API level 9 specific implementation of the {@link ApiAdapter}. + * + * @author Rodrigo Damazio + */ +@TargetApi(9) +public class Api9Adapter extends Api8Adapter { + + @Override + public void applyPreferenceChanges(Editor editor) { + // Apply asynchronously + editor.apply(); + } + + @Override + public void enableStrictMode() { + Log.d(Constants.TAG, "Enabling strict mode"); + StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder() + .detectDiskWrites() + .detectNetwork() + .penaltyLog() + .build()); + StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder() + .detectAll() + .penaltyLog() + .build()); + } + + @Override + public byte[] copyByteArray(byte[] input, int start, int end) { + return Arrays.copyOfRange(input, start, end); + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/ApiAdapter.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/ApiAdapter.java new file mode 100644 index 0000000..aa13297 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/ApiAdapter.java @@ -0,0 +1,152 @@ +/* + * Copyright 2010 Google Inc. + * + * 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. + */ +package de.bjusystems.vdrmanager.backup; + +import java.util.List; + +import android.app.Activity; +import android.content.Context; +import android.content.SharedPreferences; +import android.view.MenuItem; +import android.widget.ArrayAdapter; +import android.widget.ListView; + +/** + * A set of methods that may be implemented differently depending on the Android + * API level. + * + * @author Bartlomiej Niechwiej + */ +public interface ApiAdapter { + + + + /** + * Gets a {@link BackupPreferencesListener}. + * <p> + * Due to changes in API level 8. + * + * @param context the context + */ + public BackupPreferencesListener getBackupPreferencesListener(Context context); + + /** + * Applies all the changes done to a given preferences editor. Changes may or + * may not be applied immediately. + * <p> + * Due to changes in API level 9. + * + * @param editor the editor + */ + public void applyPreferenceChanges(SharedPreferences.Editor editor); + + /** + * Enables strict mode where supported, only if this is a development build. + * <p> + * Due to changes in API level 9. + */ + public void enableStrictMode(); + + /** + * Copies elements from an input byte array into a new byte array, from + * indexes start (inclusive) to end (exclusive). The end index must be less + * than or equal to the input length. + * <p> + * Due to changes in API level 9. + * + * @param input the input byte array + * @param start the start index + * @param end the end index + * @return a new array containing elements from the input byte array. + */ + public byte[] copyByteArray(byte[] input, int start, int end); + + + + + /** + * Hides the title. If the platform supports the action bar, do nothing. + * Ideally, with the action bar, we would like to collapse the navigation tabs + * into the action bar. However, collapsing is not supported by the + * compatibility library. + * <p> + * Due to changes in API level 11. + * + * @param activity the activity + */ + public void hideTitle(Activity activity); + + /** + * Configures the action bar with the Home button as an Up button. If the + * platform doesn't support the action bar, do nothing. + * <p> + * Due to changes in API level 11. + * + * @param activity the activity + */ + public void configureActionBarHomeAsUp(Activity activity); + + /** + * Configures the list view context menu. + * <p> + * Due to changes in API level 11. + * + * @param activity the activity + * @param listView the list view + * @param contextualActionModeCallback the callback when an item is selected + * in the contextual action mode + */ + public void configureListViewContextualMenu(Activity activity, ListView listView, + ContextualActionModeCallback contextualActionModeCallback); + + /** + * Configures the search widget. + * + * Due to changes in API level 11. + * + * @param activity the activity + * @param menuItem the search menu item + */ + public void configureSearchWidget(Activity activity, MenuItem menuItem); + + /** + * Handles the search menu selection. Returns true if handled. + * + * Due to changes in API level 11. + * + * @param activity the activity + */ + public boolean handleSearchMenuSelection(Activity activity); + + /** + * Adds all items to an array adapter. + * + * Due to changes in API level 11. + *s + * @param arrayAdapter the array adapter + * @param items list of items + */ + public <T> void addAllToArrayAdapter(ArrayAdapter<T> arrayAdapter, List<T> items); + + /** + * Handles the search key press. Returns true if handled. + * + * Due to changes in API level 14. + * + * @param menu the search menu + */ + public boolean handleSearchKey(MenuItem menu); +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/ApiAdapterFactory.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/ApiAdapterFactory.java new file mode 100644 index 0000000..5a14c10 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/ApiAdapterFactory.java @@ -0,0 +1,56 @@ +/* + * Copyright 2010 Google Inc. + * + * 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. + */ +package de.bjusystems.vdrmanager.backup; + +import android.os.Build; + +/** + * A factory to get the {@link ApiAdapter} for the current device. + * + * @author Rodrigo Damazio + */ +public class ApiAdapterFactory { + + private static ApiAdapter apiAdapter; + + /** + * Gets the {@link ApiAdapter} for the current device. + */ + public static ApiAdapter getApiAdapter() { + if (apiAdapter == null) { + if (Build.VERSION.SDK_INT >= 14) { + apiAdapter = new Api14Adapter(); + return apiAdapter; + } else if (Build.VERSION.SDK_INT >= 11) { + apiAdapter = new Api11Adapter(); + return apiAdapter; + } else if (Build.VERSION.SDK_INT >= 10) { + apiAdapter = new Api10Adapter(); + return apiAdapter; + } else if (Build.VERSION.SDK_INT >= 9) { + apiAdapter = new Api9Adapter(); + return apiAdapter; + } else if (Build.VERSION.SDK_INT >= 8) { + apiAdapter = new Api8Adapter(); + return apiAdapter; + } else { + apiAdapter = new Api7Adapter(); + return apiAdapter; + } + } + return apiAdapter; + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/BackupActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/BackupActivity.java new file mode 100644 index 0000000..ed0da12 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/BackupActivity.java @@ -0,0 +1,89 @@ +/* + * Copyright 2012 Google Inc. + * + * 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. + */ + +package de.bjusystems.vdrmanager.backup; + +import android.app.Activity; +import android.app.Dialog; +import android.content.DialogInterface; +import android.os.Bundle; +import android.widget.Toast; +import de.bjusystems.vdrmanager.R; + +/** + * Activity to backup data to the SD card. + * + * @author Jimmy Shih + */ +public class BackupActivity extends Activity { + + private static final int DIALOG_PROGRESS_ID = 0; + + private BackupAsyncTask backupAsyncTask; + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + Object retained = getLastNonConfigurationInstance(); + if (retained instanceof BackupAsyncTask) { + backupAsyncTask = (BackupAsyncTask) retained; + backupAsyncTask.setActivity(this); + } else { + backupAsyncTask = new BackupAsyncTask(this); + backupAsyncTask.execute(); + } + } + + @Override + public Object onRetainNonConfigurationInstance() { + backupAsyncTask.setActivity(null); + return backupAsyncTask; + } + + @Override + protected Dialog onCreateDialog(int id) { + if (id != DIALOG_PROGRESS_ID) { + return null; + } + return DialogUtils.createSpinnerProgressDialog( + this, R.string.settings_backup_now_progress_message, new DialogInterface.OnCancelListener() { + @Override + public void onCancel(DialogInterface dialog) { + finish(); + } + }); + } + + /** + * Invokes when the associated AsyncTask completes. + * + * @param success true if the AsyncTask is successful + * @param messageId message id to display to user + */ + public void onAsyncTaskCompleted(boolean success, int messageId) { + removeDialog(DIALOG_PROGRESS_ID); + Toast.makeText(this, messageId, success ? Toast.LENGTH_SHORT : Toast.LENGTH_LONG).show(); + finish(); + } + + /** + * Shows the progress dialog. + */ + public void showProgressDialog() { + showDialog(DIALOG_PROGRESS_ID); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/BackupAsyncTask.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/BackupAsyncTask.java new file mode 100644 index 0000000..8e98ac0 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/BackupAsyncTask.java @@ -0,0 +1,110 @@ +/* + * Copyright 2012 Google Inc. + * + * 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. + */ + +package de.bjusystems.vdrmanager.backup; + + +import java.io.IOException; + +import android.os.AsyncTask; +import android.util.Log; +import de.bjusystems.vdrmanager.R; + +/** + * AsyncTask to backup data to the SD card. + * + * @author Jimmy Shih + */ +public class BackupAsyncTask extends AsyncTask<Void, Integer, Boolean> { + + private static final String TAG = BackupAsyncTask.class.getSimpleName(); + + private BackupActivity backupActivity; + private final ExternalFileBackup externalFileBackup; + + // true if the AsyncTask result is success + private boolean success; + + // true if the AsyncTask has completed + private boolean completed; + + // message id to return to the activity + private int messageId; + + /** + * Creates an AsyncTask. + * + * @param backupActivity the activity currently associated with this + * AsyncTask + */ + public BackupAsyncTask(BackupActivity backupActivity) { + this.backupActivity = backupActivity; + this.externalFileBackup = new ExternalFileBackup(backupActivity); + success = false; + completed = false; + messageId = R.string.sd_card_save_error; + } + + /** + * Sets the current {@link BackupActivity} associated with this AyncTask. + * + * @param activity the current {@link BackupActivity}, can be null + */ + public void setActivity(BackupActivity activity) { + this.backupActivity = activity; + if (completed && backupActivity != null) { + backupActivity.onAsyncTaskCompleted(success, messageId); + } + } + + @Override + protected void onPreExecute() { + if (backupActivity != null) { + backupActivity.showProgressDialog(); + } + } + + @Override + protected Boolean doInBackground(Void... params) { + if (!FileUtils.isSdCardAvailable()) { + messageId = R.string.sd_card_error_no_storage; + return false; + } + + if (!externalFileBackup.isBackupsDirectoryAvailable(true)) { + messageId = R.string.sd_card_save_error_create_dir; + return false; + } + + try { + externalFileBackup.writeToDefaultFile(); + messageId = R.string.sd_card_save_success; + return true; + } catch (IOException e) { + Log.d(TAG, "IO exception", e); + return false; + } + } + + @Override + protected void onPostExecute(Boolean result) { + success = result; + completed = true; + if (backupActivity != null) { + backupActivity.onAsyncTaskCompleted(success, messageId); + } + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/BackupPreferencesListener.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/BackupPreferencesListener.java new file mode 100644 index 0000000..c9a5b2f --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/BackupPreferencesListener.java @@ -0,0 +1,27 @@ +/* + * Copyright 2010 Google Inc. + * + * 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. + */ +package de.bjusystems.vdrmanager.backup; + +import android.content.SharedPreferences.OnSharedPreferenceChangeListener; + +/** + * Shared preferences listener which notifies the backup system about new data + * being available for backup. + * + * @author Rodrigo Damazio + */ +public interface BackupPreferencesListener extends OnSharedPreferenceChangeListener { +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/BackupSettingsActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/BackupSettingsActivity.java new file mode 100644 index 0000000..e906a20 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/BackupSettingsActivity.java @@ -0,0 +1,121 @@ +/* + * Copyright 2012 Google Inc. + * + * 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. + */ + +package de.bjusystems.vdrmanager.backup; + + +import android.app.Dialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.content.SharedPreferences; +import android.content.SharedPreferences.OnSharedPreferenceChangeListener; +import android.os.Bundle; +import android.preference.Preference; +import android.preference.Preference.OnPreferenceClickListener; +import android.preference.PreferenceManager; +import de.bjusystems.vdrmanager.R; + +/** + * An activity for accessing the backup settings. + * + * @author Jimmy Shih + */ +public class BackupSettingsActivity extends AbstractSettingsActivity { + + private static final int DIALOG_CONFIRM_RESTORE_ID = 0; + + Preference backupPreference; + Preference restorePreference; + + /* + * Note that sharedPreferenceChangeListenr cannot be an anonymous inner class. + * Anonymous inner class will get garbage collected. + */ + private final OnSharedPreferenceChangeListener + sharedPreferenceChangeListener = new OnSharedPreferenceChangeListener() { + @Override + public void onSharedPreferenceChanged(SharedPreferences preferences, String key) { + // Note that key can be null + //if (PreferencesUtils.getKey(BackupSettingsActivity.this, R.string.recording_track_id_key) + // .equals(key)) { + //updateUi(); + //} + } + }; + + @SuppressWarnings("deprecation") + @Override + protected void onCreate(Bundle bundle) { + super.onCreate(bundle); + PreferenceManager.getDefaultSharedPreferences(this) + .registerOnSharedPreferenceChangeListener(sharedPreferenceChangeListener); + + addPreferencesFromResource(R.xml.backup_settings); + backupPreference = findPreference(getString(R.string.settings_backup_now_key)); + backupPreference.setOnPreferenceClickListener(new OnPreferenceClickListener() { + @Override + public boolean onPreferenceClick(Preference preference) { + Intent intent = IntentUtils.newIntent(BackupSettingsActivity.this, BackupActivity.class); + startActivity(intent); + return true; + } + }); + restorePreference = findPreference(getString(R.string.settings_backup_restore_key)); + restorePreference.setOnPreferenceClickListener(new OnPreferenceClickListener() { + @Override + public boolean onPreferenceClick(Preference preference) { + showDialog(DIALOG_CONFIRM_RESTORE_ID); + return true; + } + }); + } + + @Override + protected Dialog onCreateDialog(int id) { + if (id != DIALOG_CONFIRM_RESTORE_ID) { + return null; + } + return DialogUtils.createConfirmationDialog(this, + R.string.settings_backup_restore_confirm_message, new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + Intent intent = IntentUtils.newIntent( + BackupSettingsActivity.this, RestoreChooserActivity.class); + startActivity(intent); + } + }); + } + + @Override + protected void onResume() { + super.onResume(); + //updateUi(); + } + +// /** +// * Updates the UI based on the recording state. +// */ +// private void updateUi() { +// boolean isRecording = PreferencesUtils.getLong(this, R.string.recording_track_id_key) +// != PreferencesUtils.RECORDING_TRACK_ID_DEFAULT; +// backupPreference.setEnabled(!isRecording); +// restorePreference.setEnabled(!isRecording); +// backupPreference.setSummary(isRecording ? R.string.settings_not_while_recording +// : R.string.settings_backup_now_summary); +// restorePreference.setSummary(isRecording ? R.string.settings_not_while_recording +// : R.string.settings_backup_restore_summary); +// } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Constants.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Constants.java new file mode 100644 index 0000000..491ec6f --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/Constants.java @@ -0,0 +1,135 @@ +/* + * Copyright 2008 Google Inc. + * + * 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. + */ +package de.bjusystems.vdrmanager.backup; + +/** + * Constants used by the MyTracks application. + * + * @author Leif Hendrik Wilden + */ +public abstract class Constants { + + /** + * Should be used by all log statements + */ + public static final String TAG = "vdrmanager"; + + /** + * Name of the top-level directory inside the SD card where our files will + * be read from/written to. + */ + public static final String SDCARD_TOP_DIR = "vdrmanager"; + + /** + * The number of distance readings to smooth to get a stable signal. + */ + public static final int DISTANCE_SMOOTHING_FACTOR = 25; + + /** + * The number of elevation readings to smooth to get a somewhat accurate + * signal. + */ + public static final int ELEVATION_SMOOTHING_FACTOR = 25; + + /** + * The number of grade readings to smooth to get a somewhat accurate signal. + */ + public static final int GRADE_SMOOTHING_FACTOR = 5; + + /** + * The number of speed reading to smooth to get a somewhat accurate signal. + */ + public static final int SPEED_SMOOTHING_FACTOR = 25; + + /** + * Maximum number of track points displayed by the map overlay. + */ + public static final int MAX_DISPLAYED_TRACK_POINTS = 10000; + + /** + * Target number of track points displayed by the map overlay. + * We may display more than this number of points. + */ + public static final int TARGET_DISPLAYED_TRACK_POINTS = 5000; + + /** + * Maximum number of track points ever loaded at once from the provider into + * memory. + * With a recording frequency of 2 seconds, 15000 corresponds to 8.3 hours. + */ + public static final int MAX_LOADED_TRACK_POINTS = 20000; + + /** + * Maximum number of track points ever loaded at once from the provider into + * memory in a single call to read points. + */ + public static final int MAX_LOADED_TRACK_POINTS_PER_BATCH = 1000; + + /** + * Maximum number of way points displayed by the map overlay. + */ + public static final int MAX_DISPLAYED_WAYPOINTS_POINTS = 128; + + /** + * Maximum number of way points that will be loaded at one time. + */ + public static final int MAX_LOADED_WAYPOINTS_POINTS = 10000; + + /** + * Any time segment where the distance traveled is less than this value will + * not be considered moving. + */ + public static final double MAX_NO_MOVEMENT_DISTANCE = 2; + + /** + * Anything faster than that (in meters per second) will be considered moving. + */ + public static final double MAX_NO_MOVEMENT_SPEED = 0.224; + + /** + * Ignore any acceleration faster than this. + * Will ignore any speeds that imply accelaration greater than 2g's + * 2g = 19.6 m/s^2 = 0.0002 m/ms^2 = 0.02 m/(m*ms) + */ + public static final double MAX_ACCELERATION = 0.02; + + /** Maximum age of a GPS location to be considered current. */ + public static final long MAX_LOCATION_AGE_MS = 60 * 1000; // 1 minute + + /** Maximum age of a network location to be considered current. */ + public static final long MAX_NETWORK_AGE_MS = 1000 * 60 * 10; // 10 minutes + + /** + * The type of account that we can use for gdata uploads. + */ + public static final String ACCOUNT_TYPE = "com.google"; + + /** + * The name of extra intent property to indicate whether we want to resume + * a previously recorded track. + */ + public static final String + RESUME_TRACK_EXTRA_NAME = "com.google.android.apps.mytracks.RESUME_TRACK"; + + public static final String MAPSHOP_BASE_URL = "https://maps.google.com/maps/ms"; + + public static final String SETTINGS_NAME = "SettingsActivity"; + + /** + * This is an abstract utility class. + */ + protected Constants() { } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/ContentTypeIds.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/ContentTypeIds.java new file mode 100644 index 0000000..bf48983 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/ContentTypeIds.java @@ -0,0 +1,33 @@ +/* + * Copyright 2010 Google Inc. + * + * 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. + */ +package de.bjusystems.vdrmanager.backup; + +/** + * Utilities for serializing primitive types. + * + * @author Rodrigo Damazio + */ +public class ContentTypeIds { + public static final byte BOOLEAN_TYPE_ID = 0; + public static final byte LONG_TYPE_ID = 1; + public static final byte INT_TYPE_ID = 2; + public static final byte FLOAT_TYPE_ID = 3; + public static final byte DOUBLE_TYPE_ID = 4; + public static final byte STRING_TYPE_ID = 5; + public static final byte BLOB_TYPE_ID = 6; + + private ContentTypeIds() { /* Not instantiable */ } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/ContextualActionModeCallback.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/ContextualActionModeCallback.java new file mode 100644 index 0000000..d79d4be --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/ContextualActionModeCallback.java @@ -0,0 +1,34 @@ +/* + * Copyright 2012 Google Inc. + * + * 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. + */ + +package de.bjusystems.vdrmanager.backup; + +/** + * Callback when an item in the contextual action mode is selected. + * + * @author Jimmy Shih + */ +public interface ContextualActionModeCallback { + + /** + * Invoked when an item is selected. + * + * @param itemId the context menu item id + * @param position the position of the selected row + * @param id the id of the selected row, if available + */ + public boolean onClick(int itemId, int position, long id); +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/DialogUtils.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/DialogUtils.java new file mode 100644 index 0000000..c9b716c --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/DialogUtils.java @@ -0,0 +1,101 @@ +/* + * Copyright 2012 Google Inc. + * + * 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. + */ + +package de.bjusystems.vdrmanager.backup; + +import android.app.AlertDialog; +import android.app.Dialog; +import android.app.ProgressDialog; +import android.content.Context; +import android.content.DialogInterface; +import de.bjusystems.vdrmanager.R; + +/** + * Utilities for creating dialogs. + * + * @author Jimmy Shih + */ +public class DialogUtils { + + private DialogUtils() {} + + /** + * Creates a confirmation dialog. + * + * @param context the context + * @param messageId the confirmation message id + * @param onClickListener the listener to invoke when the user clicks OK + */ + public static Dialog createConfirmationDialog( + Context context, int messageId, DialogInterface.OnClickListener onClickListener) { + return new AlertDialog.Builder(context) + .setCancelable(true) + .setIcon(android.R.drawable.ic_dialog_alert) + .setMessage(context.getString(messageId)) + .setNegativeButton(android.R.string.cancel, null) + .setPositiveButton(android.R.string.ok, onClickListener) + .setTitle(R.string.generic_confirm_title) + .create(); + } + + /** + * Creates a spinner progress dialog. + * + * @param context the context + * @param messageId the progress message id + * @param onCancelListener the cancel listener + */ + public static ProgressDialog createSpinnerProgressDialog( + Context context, int messageId, DialogInterface.OnCancelListener onCancelListener) { + return createProgressDialog(true, context, messageId, onCancelListener); + } + + /** + * Creates a horizontal progress dialog. + * + * @param context the context + * @param messageId the progress message id + * @param onCancelListener the cancel listener + * @param formatArgs the format arguments for the messageId + */ + public static ProgressDialog createHorizontalProgressDialog(Context context, int messageId, + DialogInterface.OnCancelListener onCancelListener, Object... formatArgs) { + return createProgressDialog(false, context, messageId, onCancelListener, formatArgs); + } + + /** + * Creates a progress dialog. + * + * @param spinner true to use the spinner style + * @param context the context + * @param messageId the progress message id + * @param onCancelListener the cancel listener + * @param formatArgs the format arguments for the message id + */ + private static ProgressDialog createProgressDialog(boolean spinner, Context context, + int messageId, DialogInterface.OnCancelListener onCancelListener, Object... formatArgs) { + ProgressDialog progressDialog = new ProgressDialog(context); + progressDialog.setCancelable(true); + progressDialog.setIcon(android.R.drawable.ic_dialog_info); + progressDialog.setIndeterminate(true); + progressDialog.setMessage(context.getString(messageId, formatArgs)); + progressDialog.setOnCancelListener(onCancelListener); + progressDialog.setProgressStyle(spinner ? ProgressDialog.STYLE_SPINNER + : ProgressDialog.STYLE_HORIZONTAL); + progressDialog.setTitle(R.string.generic_progress_title); + return progressDialog; + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/ExternalFileBackup.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/ExternalFileBackup.java new file mode 100644 index 0000000..790375e --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/ExternalFileBackup.java @@ -0,0 +1,277 @@ +/* + * Copyright 2010 Google Inc. + * + * 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. + */ +package de.bjusystems.vdrmanager.backup; + +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.TimeZone; +import java.util.zip.ZipEntry; +import java.util.zip.ZipFile; +import java.util.zip.ZipOutputStream; + +import android.content.Context; +import android.content.SharedPreferences; +import android.preference.PreferenceManager; +import android.util.Log; +import de.bjusystems.vdrmanager.data.db.DBAccess; + + +/** + * Handler for writing or reading single-file backups. + * + * @author Rodrigo Damazio + */ +class ExternalFileBackup { + // Filename format - in UTC + private static final SimpleDateFormat BACKUP_FILENAME_FORMAT = new SimpleDateFormat( + "'backup-'yyyy-MM-dd_HH-mm-ss'.zip'"); + static { + BACKUP_FILENAME_FORMAT.setTimeZone(TimeZone.getTimeZone("UTC")); + } + + private static final String BACKUPS_SUBDIR = "backups"; + private static final int BACKUP_FORMAT_VERSION = 1; + private static final String ZIP_ENTRY_NAME = "backup.mybillingbuddy.v" + + BACKUP_FORMAT_VERSION; + private static final int COMPRESSION_LEVEL = 8; + + private final Context context; + + public ExternalFileBackup(Context context) { + this.context = context; + } + + /** + * Returns whether the backups directory is (or can be made) available. + * + * @param create + * whether to try creating the directory if it doesn't exist + */ + public boolean isBackupsDirectoryAvailable(boolean create) { + return getBackupsDirectory(create) != null; + } + + /** + * Returns the backup directory, or null if not available. + * + * @param create + * whether to try creating the directory if it doesn't exist + */ + private File getBackupsDirectory(boolean create) { + String dirName = FileUtils.buildExternalDirectoryPath(BACKUPS_SUBDIR); + final File dir = new File(dirName); + Log.d(Constants.TAG, "Dir: " + dir.getAbsolutePath()); + if (create) { + // Try to create - if that fails, return null + return FileUtils.ensureDirectoryExists(dir) ? dir : null; + } else { + // Return it if it already exists, otherwise return null + return dir.isDirectory() ? dir : null; + } + } + + /** + * Returns a list of available backups to be restored. + */ + public Date[] getAvailableBackups() { + File dir = getBackupsDirectory(false); + if (dir == null) { + return null; + } + String[] fileNames = dir.list(); + + List<Date> backupDates = new ArrayList<Date>(fileNames.length); + for (int i = 0; i < fileNames.length; i++) { + String fileName = fileNames[i]; + try { + backupDates.add(BACKUP_FILENAME_FORMAT.parse(fileName)); + } catch (ParseException e) { + // Not a backup file, ignore + } + } + + return backupDates.toArray(new Date[backupDates.size()]); + } + + /** + * Writes the backup to the default file. + */ + public void writeToDefaultFile() throws IOException { + writeToFile(getFileForDate(new Date())); + } + + /** + * Restores the backup from the given date. + */ + public void restoreFromDate(Date when) throws IOException { + restoreFromFile(getFileForDate(when)); + } + + public void restoreFromFile(String path ) throws IOException { + restoreFromFile(new File(path)); + } + + /** + * Produces the proper file descriptor for the given backup date. + */ + private File getFileForDate(Date when) { + File dir = getBackupsDirectory(false); + String fileName = BACKUP_FILENAME_FORMAT.format(when); + File file = new File(dir, fileName); + return file; + } + + /** + * Synchronously writes a backup to the given file. + */ + private void writeToFile(File outputFile) throws IOException { + Log.d(Constants.TAG, + "Writing backup to file " + outputFile.getAbsolutePath()); + + // Create all the auxiliary classes that will do the writing + //DatabaseDumper trackDumper = new DatabaseDumper( + // BackupColumns.TRACKS_BACKUP_COLUMNS, + //BackupColumns.TRACKS_BACKUP_COLUMN_TYPES, false); + //DatabaseDumper waypointDumper = new DatabaseDumper( + // BackupColumns.WAYPOINTS_BACKUP_COLUMNS, + //BackupColumns.WAYPOINTS_BACKUP_COLUMN_TYPES, false); + //DatabaseDumper pointDumper = new DatabaseDumper( + // BackupColumns.POINTS_BACKUP_COLUMNS, + //BackupColumns.POINTS_BACKUP_COLUMN_TYPES, false); + + // Open the target for writing + FileOutputStream outputStream = new FileOutputStream(outputFile); + ZipOutputStream compressedStream = new ZipOutputStream(outputStream); + compressedStream.setLevel(COMPRESSION_LEVEL); + compressedStream.putNextEntry(new ZipEntry(ZIP_ENTRY_NAME)); + DataOutputStream outWriter = new DataOutputStream(compressedStream); + + try { + // Dump the entire contents of each table +// ContentResolver contentResolver = context.getContentResolver(); +// Cursor tracksCursor = contentResolver.query( +// TracksColumns.CONTENT_URI, null, null, null, null); +// try { +// trackDumper.writeAllRows(tracksCursor, outWriter); +// } finally { +// tracksCursor.close(); +// } +// +// Cursor waypointsCursor = contentResolver.query( +// WaypointsColumns.CONTENT_URI, null, null, null, null); +// try { +// waypointDumper.writeAllRows(waypointsCursor, outWriter); +// } finally { +// waypointsCursor.close(); +// } +// +// Cursor pointsCursor = contentResolver.query( +// TrackPointsColumns.CONTENT_URI, null, null, null, null); +// try { +// pointDumper.writeAllRows(pointsCursor, outWriter); +// } finally { +// pointsCursor.close(); +// } + + // Dump preferences + SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); + PreferenceBackupHelper preferencesHelper = new PreferenceBackupHelper(); + preferencesHelper.exportPreferences(preferences, outWriter); + + + File f = new File(DBAccess.getDataBaseFile()); + if(f.exists()){ + compressedStream.putNextEntry(new ZipEntry(DBAccess.DATABASE_NAME)); + IOUtils.copy(new FileInputStream(DBAccess.getDataBaseFile()), outWriter); + } + + + + + + + } catch (IOException e) { + // We tried to delete the partially created file, but do nothing + // if that also fails. + if (!outputFile.delete()) { + Log.w(Constants.TAG, + "Failed to delete file " + outputFile.getAbsolutePath()); + } + + throw e; + } finally { + compressedStream.closeEntry(); + compressedStream.close(); + } + } + + /** + * Synchronously restores the backup from the given file. + */ + private void restoreFromFile(File inputFile) throws IOException { + Log.d(Constants.TAG, + "Restoring from file " + inputFile.getAbsolutePath()); + + + + ZipFile zipFile = new ZipFile(inputFile, ZipFile.OPEN_READ); + ZipEntry zipEntry = zipFile.getEntry(ZIP_ENTRY_NAME); + if (zipEntry == null) { + throw new IOException("Invalid backup ZIP file"); + } + + InputStream compressedStream = zipFile.getInputStream(zipEntry); + DataInputStream reader = new DataInputStream(compressedStream); + + try { + + // Restore preferences + SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); + PreferenceBackupHelper preferencesHelper = new PreferenceBackupHelper(); + preferencesHelper.importPreferences(reader, preferences); + + + + + zipEntry = zipFile.getEntry(DBAccess.DATABASE_NAME); + if (zipEntry != null) { + IOUtils.copy(zipFile.getInputStream(zipEntry), new FileOutputStream(DBAccess.getDataBaseFile())); + deleteJournal(DBAccess.getDataBaseFile()); + } + + } finally { + compressedStream.close(); + zipFile.close(); + } + } + + private static void deleteJournal(String db){ + if(db == null){ + return; + } + new File(db+"-journal").delete(); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/FileUtils.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/FileUtils.java new file mode 100644 index 0000000..d53a80b --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/FileUtils.java @@ -0,0 +1,199 @@ +/* + * Copyright 2010 Google Inc. + * + * 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. + */ +package de.bjusystems.vdrmanager.backup; + + +import android.os.Environment; + +import java.io.File; + +/** + * Utilities for dealing with files. + * + * @author Rodrigo Damazio + */ +public class FileUtils { + + private FileUtils() {} + + /** + * The maximum FAT32 path length. See the FAT32 spec at + * http://msdn.microsoft.com/en-us/windows/hardware/gg463080 + */ + static final int MAX_FAT32_PATH_LENGTH = 260; + + /** + * Returns whether the SD card is available. + */ + public static boolean isSdCardAvailable() { + return Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState()); + } + + /** + * Ensures the given directory exists by creating it and its parents if + * necessary. + * + * @return whether the directory exists (either already existed or was + * successfully created) + */ + public static boolean ensureDirectoryExists(File dir) { + if (dir.exists() && dir.isDirectory()) { + return true; + } + if (dir.mkdirs()) { + return true; + } + return false; + } + + /** + * Builds a path inside the My Tracks directory in the SD card. + * + * @param components the path components inside the mytracks directory + * @return the full path to the destination + */ + public static String buildExternalDirectoryPath(String... components) { + StringBuilder dirNameBuilder = new StringBuilder(); + dirNameBuilder.append(Environment.getExternalStorageDirectory()); + dirNameBuilder.append(File.separatorChar); + dirNameBuilder.append(Constants.SDCARD_TOP_DIR); + for (String component : components) { + dirNameBuilder.append(File.separatorChar); + dirNameBuilder.append(component); + } + return dirNameBuilder.toString(); + } + + /** + * Builds a filename with the given base name (prefix) and the given + * extension, possibly adding a suffix to ensure the file doesn't exist. + * + * @param directory the directory the file will live in + * @param fileBaseName the prefix for the file name + * @param extension the file's extension + * @return the complete file name, without the directory + */ + public static synchronized String buildUniqueFileName( + File directory, String fileBaseName, String extension) { + return buildUniqueFileName(directory, fileBaseName, extension, 0); + } + + /** + * Builds a filename with the given base and the given extension, possibly + * adding a suffix to ensure the file doesn't exist. + * + * @param directory the directory the filename will be located in + * @param base the base for the filename + * @param extension the extension for the filename + * @param suffix the first numeric suffix to try to use, or 0 for none + * @return the complete filename, without the directory + */ + private static String buildUniqueFileName( + File directory, String base, String extension, int suffix) { + String suffixName = ""; + if (suffix > 0) { + suffixName += "(" + Integer.toString(suffix) + ")"; + } + suffixName += "." + extension; + + String baseName = sanitizeFileName(base); + baseName = truncateFileName(directory, baseName, suffixName); + String fullName = baseName + suffixName; + + if (!new File(directory, fullName).exists()) { + return fullName; + } + return buildUniqueFileName(directory, base, extension, suffix + 1); + } + + /** + * Sanitizes the name as a valid fat32 filename. For simplicity, fat32 + * filename characters may be any combination of letters, digits, or + * characters with code point values greater than 127. Replaces the invalid + * characters with "_" and collapses multiple "_" together. + * + * @param name name + */ + static String sanitizeFileName(String name) { + StringBuffer buffer = new StringBuffer(name.length()); + for (int i = 0; i < name.length(); i++) { + int codePoint = name.codePointAt(i); + char character = name.charAt(i); + if (Character.isLetterOrDigit(character) || codePoint > 127 || isSpecialFat32(character)) { + buffer.appendCodePoint(codePoint); + } else { + buffer.append("_"); + } + } + String result = buffer.toString(); + return result.replaceAll("_+", "_"); + } + + /** + * Returns true if it is a special FAT32 character. + * + * @param character the character + */ + private static boolean isSpecialFat32(char character) { + switch (character) { + case '$': + case '%': + case '\'': + case '-': + case '_': + case '@': + case '~': + case '`': + case '!': + case '(': + case ')': + case '{': + case '}': + case '^': + case '#': + case '&': + case '+': + case ',': + case ';': + case '=': + case '[': + case ']': + case ' ': + return true; + default: + return false; + } + } + + /** + * Truncates the name if necessary so the filename path length (directory + + * name + suffix) meets the Fat32 path limit. + * + * @param directory directory + * @param name name + * @param suffix suffix + */ + static String truncateFileName(File directory, String name, String suffix) { + // 1 at the end accounts for the FAT32 filename trailing NUL character + int requiredLength = directory.getPath().length() + suffix.length() + 1; + if (name.length() + requiredLength > MAX_FAT32_PATH_LENGTH) { + int limit = MAX_FAT32_PATH_LENGTH - requiredLength; + return name.substring(0, limit); + } else { + return name; + } + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/IOUtils.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/IOUtils.java new file mode 100644 index 0000000..53be61c --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/IOUtils.java @@ -0,0 +1,217 @@ +package de.bjusystems.vdrmanager.backup; + +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with this + * work for additional information regarding copyright ownership. The ASF + * licenses this file to You 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. + */ + +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.io.PrintWriter; +import java.io.StringWriter; + +/** + * General IO stream manipulation utilities. + * <p> + * This class provides static utility methods for input/output operations. + * <ul> + * <li>closeQuietly - these methods close a stream ignoring nulls and exceptions + * <li>toXxx/read - these methods read data from a stream + * <li>write - these methods write data to a stream + * <li>copy - these methods copy all the data from one stream to another + * <li>contentEquals - these methods compare the content of two streams + * </ul> + * <p> + * The byte-to-char methods and char-to-byte methods involve a conversion step. + * Two methods are provided in each case, one that uses the platform default + * encoding and the other which allows you to specify an encoding. You are + * encouraged to always specify an encoding because relying on the platform + * default can lead to unexpected results, for example when moving from + * development to production. + * <p> + * All the methods in this class that read a stream are buffered internally. + * This means that there is no cause to use a <code>BufferedInputStream</code> + * or <code>BufferedReader</code>. The default buffer size of 4K has been shown + * to be efficient in tests. + * <p> + * Wherever possible, the methods in this class do <em>not</em> flush or close + * the stream. This is to avoid making non-portable assumptions about the + * streams' origin and further use. Thus the caller is still responsible for + * closing streams after use. + * <p> + * Origin of code: Excalibur. + * + * @author Peter Donald + * @author Jeff Turner + * @author Matthew Hawthorne + * @author Stephen Colebourne + * @author Gareth Davis + * @author Ian Springer + * @author Niall Pemberton + * @author Sandy McArthur + * @version $Id: IOUtils.java 481854 2006-12-03 18:30:07Z scolebourne $ + */ +public class IOUtils { + // NOTE: This class is focussed on InputStream, OutputStream, Reader and + // Writer. Each method should take at least one of these as a parameter, + // or return one of them. + + /** + * The Unix directory separator character. + */ + public static final char DIR_SEPARATOR_UNIX = '/'; + /** + * The Windows directory separator character. + */ + public static final char DIR_SEPARATOR_WINDOWS = '\\'; + /** + * The system directory separator character. + */ + public static final char DIR_SEPARATOR = File.separatorChar; + /** + * The Unix line separator string. + */ + public static final String LINE_SEPARATOR_UNIX = "\n"; + /** + * The Windows line separator string. + */ + public static final String LINE_SEPARATOR_WINDOWS = "\r\n"; + /** + * The system line separator string. + */ + public static final String LINE_SEPARATOR; + static { + // avoid security issues + StringWriter buf = new StringWriter(4); + PrintWriter out = new PrintWriter(buf); + out.println(); + LINE_SEPARATOR = buf.toString(); + } + + /** + * The default buffer size to use. + */ + private static final int DEFAULT_BUFFER_SIZE = 1024 * 4; + + /** + * Instances should NOT be constructed in standard programming. + */ + public IOUtils() { + super(); + } + + // copy from InputStream + // ----------------------------------------------------------------------- + /** + * Copy bytes from an <code>InputStream</code> to an + * <code>OutputStream</code>. + * <p> + * This method buffers the input internally, so there is no need to use a + * <code>BufferedInputStream</code>. + * <p> + * Large streams (over 2GB) will return a bytes copied value of + * <code>-1</code> after the copy has completed since the correct number of + * bytes cannot be returned as an int. For large streams use the + * <code>copyLarge(InputStream, OutputStream)</code> method. + * + * @param input + * the <code>InputStream</code> to read from + * @param output + * the <code>OutputStream</code> to write to + * @return the number of bytes copied + * @throws NullPointerException + * if the input or output is null + * @throws IOException + * if an I/O error occurs + * @throws ArithmeticException + * if the byte count is too large + * @since Commons IO 1.1 + */ + public static int copy(final InputStream input, final OutputStream output) + throws IOException { + long count = copyLarge(input, output); + if (count > Integer.MAX_VALUE) { + return -1; + } + return (int) count; + } + + /** + * Copy bytes from a large (over 2GB) <code>InputStream</code> to an + * <code>OutputStream</code>. + * <p> + * This method buffers the input internally, so there is no need to use a + * <code>BufferedInputStream</code>. + * + * @param input + * the <code>InputStream</code> to read from + * @param output + * the <code>OutputStream</code> to write to + * @return the number of bytes copied + * @throws NullPointerException + * if the input or output is null + * @throws IOException + * if an I/O error occurs + * @since Commons IO 1.3 + */ + public static long copyLarge(final InputStream input, + final OutputStream output) throws IOException { + byte[] buffer = new byte[DEFAULT_BUFFER_SIZE]; + long count = 0; + int n = 0; + while (-1 != (n = input.read(buffer))) { + output.write(buffer, 0, n); + count += n; + } + return count; + } + /** + * Unconditionally close an <code>InputStream</code>. + * <p> + * Equivalent to {@link InputStream#close()}, except any exceptions will be ignored. + * This is typically used in finally blocks. + * + * @param input the InputStream to close, may be null or already closed + */ + public static void closeQuietly(InputStream input) { + try { + if (input != null) { + input.close(); + } + } catch (IOException ioe) { + // ignore + } + } + + /** + * Unconditionally close an <code>OutputStream</code>. + * <p> + * Equivalent to {@link OutputStream#close()}, except any exceptions will be ignored. + * This is typically used in finally blocks. + * + * @param output the OutputStream to close, may be null or already closed + */ + public static void closeQuietly(OutputStream output) { + try { + if (output != null) { + output.close(); + } + } catch (IOException ioe) { + // ignore + } + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/IntentUtils.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/IntentUtils.java new file mode 100644 index 0000000..43131b4 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/IntentUtils.java @@ -0,0 +1,47 @@ +/* + * Copyright 2012 Google Inc. + * + * 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. + */ + +package de.bjusystems.vdrmanager.backup; + + +import android.content.Context; +import android.content.Intent; + +/** + * Utilities for creating intents. + * + * @author Jimmy Shih + */ +public class IntentUtils { + + public static final String TEXT_PLAIN_TYPE = "text/plain"; + + private IntentUtils() {} + + /** + * Creates an intent with {@link Intent#FLAG_ACTIVITY_CLEAR_TOP} and + * {@link Intent#FLAG_ACTIVITY_NEW_TASK}. + * + * @param context the context + * @param cls the class + */ + public static final Intent newIntent(Context context, Class<?> cls) { + return new Intent(context, cls).addFlags( + Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); + } + + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/LineIterator.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/LineIterator.java new file mode 100644 index 0000000..c60ee66 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/LineIterator.java @@ -0,0 +1,5 @@ +package de.bjusystems.vdrmanager.backup; + +public class LineIterator { + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/PreferenceBackupHelper.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/PreferenceBackupHelper.java new file mode 100644 index 0000000..30a32b4 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/PreferenceBackupHelper.java @@ -0,0 +1,172 @@ +/* + * Copyright 2010 Google Inc. + * + * 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. + */ +package de.bjusystems.vdrmanager.backup; + + +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.DataInputStream; +import java.io.DataOutputStream; +import java.io.IOException; +import java.util.Map; + +import android.content.SharedPreferences; +import android.content.SharedPreferences.Editor; + +/** + * Helper for backing up and restoring shared preferences. + * + * @author Rodrigo Damazio + */ +class PreferenceBackupHelper { + + private static final int BUFFER_SIZE = 2048; + + /** + * Exports all shared preferences from the given object as a byte array. + * + * @param preferences the preferences to export + * @return the corresponding byte array + * @throws IOException if there are any errors while writing to the byte array + */ + public byte[] exportPreferences(SharedPreferences preferences) + throws IOException { + ByteArrayOutputStream bufStream = new ByteArrayOutputStream(BUFFER_SIZE); + DataOutputStream outWriter = new DataOutputStream(bufStream); + exportPreferences(preferences, outWriter); + + return bufStream.toByteArray(); + } + + /** + * Exports all shared preferences from the given object into the given output + * stream. + * + * @param preferences the preferences to export + * @param outWriter the stream to write them to + * @throws IOException if there are any errors while writing the output + */ + public void exportPreferences( + SharedPreferences preferences, + DataOutputStream outWriter) throws IOException { + Map<String, ?> values = preferences.getAll(); + + outWriter.writeInt(values.size()); + for (Map.Entry<String, ?> entry : values.entrySet()) { + writePreference(entry.getKey(), entry.getValue(), outWriter); + } + outWriter.flush(); + } + + /** + * Imports all preferences from the given byte array. + * + * @param data the byte array to read preferences from + * @param preferences the shared preferences to edit + * @throws IOException if there are any errors while reading + */ + public void importPreferences(byte[] data, SharedPreferences preferences) + throws IOException { + ByteArrayInputStream bufStream = new ByteArrayInputStream(data); + DataInputStream reader = new DataInputStream(bufStream); + + importPreferences(reader, preferences); + } + + /** + * Imports all preferences from the given stream. + * + * @param reader the stream to read from + * @param preferences the shared preferences to edit + * @throws IOException if there are any errors while reading + */ + public void importPreferences(DataInputStream reader, + SharedPreferences preferences) throws IOException { + Editor editor = preferences.edit(); + editor.clear(); + + int numPreferences = reader.readInt(); + for (int i = 0; i < numPreferences; i++) { + String name = reader.readUTF(); + byte typeId = reader.readByte(); + readAndSetPreference(name, typeId, reader, editor); + } + ApiAdapterFactory.getApiAdapter().applyPreferenceChanges(editor); + } + + /** + * Reads a single preference and sets it into the given editor. + * + * @param name the name of the preference to read + * @param typeId the type ID of the preference to read + * @param reader the reader to read from + * @param editor the editor to set the preference in + * @throws IOException if there are errors while reading + */ + private void readAndSetPreference(String name, byte typeId, + DataInputStream reader, Editor editor) throws IOException { + switch (typeId) { + case ContentTypeIds.BOOLEAN_TYPE_ID: + editor.putBoolean(name, reader.readBoolean()); + return; + case ContentTypeIds.LONG_TYPE_ID: + editor.putLong(name, reader.readLong()); + return; + case ContentTypeIds.FLOAT_TYPE_ID: + editor.putFloat(name, reader.readFloat()); + return; + case ContentTypeIds.INT_TYPE_ID: + editor.putInt(name, reader.readInt()); + return; + case ContentTypeIds.STRING_TYPE_ID: + editor.putString(name, reader.readUTF()); + return; + } + } + + /** + * Writes a single preference. + * + * @param name the name of the preference to write + * @param value the correctly-typed value of the preference + * @param writer the writer to write to + * @throws IOException if there are errors while writing + */ + private void writePreference(String name, Object value, DataOutputStream writer) + throws IOException { + writer.writeUTF(name); + + if (value instanceof Boolean) { + writer.writeByte(ContentTypeIds.BOOLEAN_TYPE_ID); + writer.writeBoolean((Boolean) value); + } else if (value instanceof Integer) { + writer.writeByte(ContentTypeIds.INT_TYPE_ID); + writer.writeInt((Integer) value); + } else if (value instanceof Long) { + writer.writeByte(ContentTypeIds.LONG_TYPE_ID); + writer.writeLong((Long) value); + } else if (value instanceof Float) { + writer.writeByte(ContentTypeIds.FLOAT_TYPE_ID); + writer.writeFloat((Float) value); + } else if (value instanceof String) { + writer.writeByte(ContentTypeIds.STRING_TYPE_ID); + writer.writeUTF((String) value); + } else { + throw new IllegalArgumentException( + "Type " + value.getClass().getName() + " not supported"); + } + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/RestoreActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/RestoreActivity.java new file mode 100644 index 0000000..97e4749 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/RestoreActivity.java @@ -0,0 +1,114 @@ +/* + * Copyright 2012 Google Inc. + * + * 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. + */ + +package de.bjusystems.vdrmanager.backup; + + + +import java.util.Date; + +import android.app.Activity; +import android.app.Dialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.os.Bundle; +import android.util.Log; +import android.widget.Toast; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.gui.PreferencesActivity; + +/** + * An activity to restore data from the SD card. + * + * @author Jimmy Shih + */ +public class RestoreActivity extends Activity { + + public static final String EXTRA_DATE = "date"; + public static final String EXTRA_FILE = "file"; + + private static final String TAG = RestoreActivity.class.getSimpleName(); + private static final int DIALOG_PROGRESS_ID = 0; + + private RestoreAsyncTask restoreAsyncTask; + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + Object retained = getLastNonConfigurationInstance(); + if (retained instanceof RestoreAsyncTask) { + restoreAsyncTask = (RestoreAsyncTask) retained; + restoreAsyncTask.setActivity(this); + } else { + + long date = -1L; + String file = getIntent().getStringExtra(EXTRA_FILE); + if(file != null){ + restoreAsyncTask = new RestoreAsyncTask(this, file); + } else if( (date = getIntent().getLongExtra(EXTRA_DATE, -1L)) != -1L) { + restoreAsyncTask = new RestoreAsyncTask(this, new Date(date)); + } else { + Log.d(TAG, "Invalid date or file"); + finish(); + return; + } + restoreAsyncTask.execute(); + } + } + + @Override + public Object onRetainNonConfigurationInstance() { + restoreAsyncTask.setActivity(null); + return restoreAsyncTask; + } + + @Override + protected Dialog onCreateDialog(int id) { + if (id != DIALOG_PROGRESS_ID) { + return null; + } + return DialogUtils.createSpinnerProgressDialog(this, + R.string.settings_backup_restore_progress_message, new DialogInterface.OnCancelListener() { + @Override + public void onCancel(DialogInterface dialog) { + finish(); + } + }); + } + + /** + * Invokes when the associated AsyncTask completes. + * + * @param success true if the AsyncTask is successful + * @param messageId message id to display to user + */ + public void onAsyncTaskCompleted(boolean success, int messageId) { + removeDialog(DIALOG_PROGRESS_ID); + Toast.makeText(this, messageId, success ? Toast.LENGTH_SHORT : Toast.LENGTH_LONG).show(); + //Intent intent = IntentUtils.newIntent(this, FixUpJobs.class); + //intent.putExtra(Extras.AFTER_RESTORE, Boolean.TRUE); + Intent intent = IntentUtils.newIntent(this, PreferencesActivity.class); + startActivity(intent); + } + + /** + * Shows the progress dialog. + */ + public void showProgressDialog() { + showDialog(DIALOG_PROGRESS_ID); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/RestoreAsyncTask.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/RestoreAsyncTask.java new file mode 100644 index 0000000..37373f3 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/RestoreAsyncTask.java @@ -0,0 +1,136 @@ +/* + * Copyright 2012 Google Inc. + * + * 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. + */ + +package de.bjusystems.vdrmanager.backup; + +import java.io.IOException; +import java.util.Date; + +import android.os.AsyncTask; +import android.util.Log; +import de.bjusystems.vdrmanager.R; + +/** + * AsyncTask to restore data from the SD card. + * + * @author Jimmy Shih + */ +public class RestoreAsyncTask extends AsyncTask<Void, Integer, Boolean> { + + private static final String TAG = RestoreAsyncTask.class.getSimpleName(); + + private RestoreActivity restoreActivity; + private final Date date; + private final String path; + private final ExternalFileBackup externalFileBackup; + + // true if the AsyncTask result is success + private boolean success; + + // true if the AsyncTask has completed + private boolean completed; + + // message id to return to the activity + private int messageId; + + /** + * Creates an AsyncTask. + * + * @param restoreActivity + * the activity currently associated with this AsyncTask + * @param date + * the date to retore from + */ + public RestoreAsyncTask(RestoreActivity restoreActivity, Date date) { + this(restoreActivity, date, null); + } + + /** + * Creates an AsyncTask. + * + * @param restoreActivity + * the activity currently associated with this AsyncTask + * @param date + * the date to retore from + */ + public RestoreAsyncTask(RestoreActivity restoreActivity, String path) { + this(restoreActivity, null, path); + } + + /** + * Creates an AsyncTask. + * + * @param restoreActivity + * the activity currently associated with this AsyncTask + * @param date + * the date to retore from + */ + public RestoreAsyncTask(RestoreActivity restoreActivity, Date date, + String path) { + this.restoreActivity = restoreActivity; + this.date = date; + this.path = path; + this.externalFileBackup = new ExternalFileBackup(restoreActivity); + success = false; + completed = false; + messageId = R.string.sd_card_import_error; + } + + /** + * Sets the current {@link RestoreActivity} associated with this AyncTask. + * + * @param activity + * the current {@link RestoreActivity}, can be null + */ + public void setActivity(RestoreActivity activity) { + this.restoreActivity = activity; + if (completed && restoreActivity != null) { + restoreActivity.onAsyncTaskCompleted(success, messageId); + } + } + + @Override + protected void onPreExecute() { + if (restoreActivity != null) { + restoreActivity.showProgressDialog(); + } + } + + @Override + protected Boolean doInBackground(Void... params) { + try { + if (path != null) { + externalFileBackup.restoreFromFile(path); + } else { + externalFileBackup.restoreFromDate(date); + } + messageId = R.string.sd_card_import_success; + return true; + } catch (IOException e) { + Log.d(TAG, "IO exception", e); + return false; + } + } + + @Override + protected void onPostExecute(Boolean result) { + success = result; + completed = true; + if (restoreActivity != null) { + restoreActivity.onAsyncTaskCompleted(success, messageId); + } + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/RestoreChooserActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/RestoreChooserActivity.java new file mode 100644 index 0000000..cba6ab0 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/backup/RestoreChooserActivity.java @@ -0,0 +1,127 @@ +/* + * Copyright 2012 Google Inc. + * + * 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. + */ + +package de.bjusystems.vdrmanager.backup; + +import java.util.Arrays; +import java.util.Comparator; +import java.util.Date; + +import android.app.Activity; +import android.app.AlertDialog; +import android.app.Dialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.os.Bundle; +import android.widget.Toast; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.gui.Utils; + +/** + * An activity to choose a date to restore from. + * + * @author Jimmy Shih + */ +public class RestoreChooserActivity extends Activity { + + private static final Comparator<Date> REVERSE_DATE_ORDER = new Comparator<Date>() { + @Override + public int compare(Date s1, Date s2) { + return s2.compareTo(s1); + } + }; + private static final int DIALOG_CHOOSER_ID = 0; + + private Date[] backupDates; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + ExternalFileBackup externalFileBackup = new ExternalFileBackup(this); + + // Get the list of existing backups + if (!FileUtils.isSdCardAvailable()) { + Toast.makeText(this, R.string.sd_card_error_no_storage, + Toast.LENGTH_LONG).show(); + finish(); + return; + } + + if (!externalFileBackup.isBackupsDirectoryAvailable(false)) { + + Toast.makeText(this, R.string.settings_backup_restore_no_backup, + Toast.LENGTH_LONG).show(); + finish(); + return; + } + doStuff(externalFileBackup); + + } + + private void doStuff(ExternalFileBackup externalFileBackup) { + backupDates = externalFileBackup.getAvailableBackups(); + if (backupDates == null || backupDates.length == 0) { + Toast.makeText(this, R.string.settings_backup_restore_no_backup, + Toast.LENGTH_LONG).show(); + finish(); + return; + } + + if (backupDates.length == 1) { + Intent intent = IntentUtils.newIntent(this, RestoreActivity.class) + .putExtra(RestoreActivity.EXTRA_DATE, + backupDates[0].getTime()); + startActivity(intent); + finish(); + return; + } + + Arrays.sort(backupDates, REVERSE_DATE_ORDER); + showDialog(DIALOG_CHOOSER_ID); + } + + @Override + protected Dialog onCreateDialog(int id) { + if (id != DIALOG_CHOOSER_ID) { + return null; + } + String items[] = new String[backupDates.length]; + for (int i = 0; i < backupDates.length; i++) { + items[i] = Utils.formatDateTime(this, backupDates[i].getTime()); + } + return new AlertDialog.Builder(this) + .setCancelable(true) + .setItems(items, new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + Intent intent = IntentUtils.newIntent( + RestoreChooserActivity.this, + RestoreActivity.class).putExtra( + RestoreActivity.EXTRA_DATE, + backupDates[which].getTime()); + startActivity(intent); + finish(); + } + }).setOnCancelListener(new DialogInterface.OnCancelListener() { + @Override + public void onCancel(DialogInterface dialog) { + finish(); + } + }).setTitle(R.string.settings_backup_restore_select_title) + .create(); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/AliveState.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/AliveState.java new file mode 100644 index 0000000..cf96efa --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/AliveState.java @@ -0,0 +1,36 @@ +package de.bjusystems.vdrmanager.data; + +public class AliveState { + + public static AliveState ALIVE = new AliveState(0); + public static AliveState DEAD = new AliveState(1); + public static AliveState UNKNOWN = new AliveState(2); + + private final int value; + private static AliveState state; + + private AliveState(final int value) { + this.value = value; + } + + public static AliveState getState() { + return state; + } + + public static void setState(final AliveState state) { + AliveState.state = state; + } + + @Override + public boolean equals(final Object o) { + if (!(o instanceof AliveState)) { + return false; + } + return this.value == ((AliveState)o).value; + } + + @Override + public int hashCode() { + return Integer.valueOf(value).hashCode(); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/AudioTrack.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/AudioTrack.java new file mode 100644 index 0000000..323507f --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/AudioTrack.java @@ -0,0 +1,61 @@ +package de.bjusystems.vdrmanager.data; + +import java.util.ArrayList; +import java.util.List; + +public class AudioTrack { + + private String cached = null; + + public int index; + + public String type; + + public String display; + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(type).append(", ").append(display).append("+").append(index); + return sb.toString(); + }; + + private static final ArrayList<AudioTrack> EMPTY = new ArrayList<AudioTrack>( + 0); + + /** + * a,1,deu|d,2,deu + * + * @param raw + * @return + */ + public static List<AudioTrack> getAudio(String rawAudio) { + + if(rawAudio == null){ + return EMPTY; + } + + String[] splitted = rawAudio.split("\\|"); + + if (splitted == null || splitted.length == 0) { + return EMPTY; + } + + ArrayList<AudioTrack> audio; + audio = new ArrayList<AudioTrack>(splitted.length); + for (String a : splitted) { + String[] ar = a.split(","); + if (ar == null || ar.length != 3) { + continue; + } + AudioTrack track = new AudioTrack(); + track.type = ar[0]; + track.index = Integer.valueOf(ar[1]); + track.display = ar[2]; + audio.add(track); + } + return audio; + + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Channel.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Channel.java new file mode 100644 index 0000000..8aadb16 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Channel.java @@ -0,0 +1,176 @@ +package de.bjusystems.vdrmanager.data; + +import java.util.List; + +import android.os.Parcel; +import android.os.Parcelable; + +import com.j256.ormlite.field.DatabaseField; +import com.j256.ormlite.table.DatabaseTable; + +import de.bjusystems.vdrmanager.StringUtils; +import de.bjusystems.vdrmanager.app.C; +import static de.bjusystems.vdrmanager.gui.Utils.mapSpecialChars; + +@DatabaseTable +public class Channel implements Parcelable { + + @DatabaseField(id = true) + String id; + private int number; + + @DatabaseField + private String name; + + @DatabaseField(index = true) + private String provider; + + @DatabaseField + private String rawAudio; + + @DatabaseField(index = true) + private String group; + + private String source; + + public String getSource() { + return source; + } + + public void setSource(String source) { + this.source = source; + } + + public String getGroup() { + return group; + } + + private List<AudioTrack> audio; + + public List<AudioTrack> getAudio() { + if (audio != null) { + return audio; + } + audio = AudioTrack.getAudio(rawAudio); + return audio; + } + + public void setGroup(String group) { + this.group = group; + } + + public String getRawAudio() { + return rawAudio; + } + + public Channel(final String channelData) { + String[] words = StringUtils.splitPreserveAllTokens(channelData, + C.DATA_SEPARATOR); + this.number = Integer.valueOf(words[0].substring(1)); + if (words.length > 2) { + this.name = mapSpecialChars(words[1]); + this.provider = mapSpecialChars(words[2]); + this.id = words[3]; + this.rawAudio = words[4]; + if (words.length > 5) { + this.source = words[5]; + } else { + this.source = "Default"; + } + } else { + this.name = mapSpecialChars(words[1]); + this.id = "-1"; + this.provider = "Unknown"; + this.rawAudio = ""; + } + + } + + public Channel() { + this.number = 0; + this.name = "Unknown"; + this.provider = "Unknown"; + this.id = "Uknwon"; + this.rawAudio = ""; + } + + public Channel(Parcel in) { + this.number = in.readInt(); + this.name = in.readString(); + this.provider = in.readString(); + this.id = in.readString(); + this.rawAudio = in.readString(); + this.source = in.readString(); + } + + public boolean isGroupSeparator() { + return number == 0; + } + + public int getNumber() { + return number; + } + + public String getName() { + return name; + } + + public String getProvider() { + return provider; + } + + public String getId() { + return id; + } + + @Override + public String toString() { + final StringBuilder text = new StringBuilder(); + text.append(number); + text.append(" - "); + text.append(name); + // text.append(" : "); + // text.append(provider); + return text.toString(); + } + + public int describeContents() { + return 0; + } + + public void writeToParcel(Parcel dest, int flags) { + dest.writeInt(number); + dest.writeString(name); + dest.writeString(provider); + dest.writeString(id); + dest.writeString(rawAudio); + dest.writeString(source); + + } + + public static final Parcelable.Creator<Channel> CREATOR = new Parcelable.Creator<Channel>() { + public Channel createFromParcel(Parcel in) { + return new Channel(in); + } + + public Channel[] newArray(int size) { + return new Channel[size]; + } + }; + + public boolean equals(Object o) { + if (o instanceof Channel == false) { + return false; + } + if (o == this) { + return true; + } + return ((Channel)o).getId().equals(id); + }; + + @Override + public int hashCode() { + return id.hashCode(); + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Epg.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Epg.java new file mode 100644 index 0000000..bfc0c6c --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Epg.java @@ -0,0 +1,82 @@ +package de.bjusystems.vdrmanager.data; + +import java.util.Date; + +import android.text.TextUtils; +import de.bjusystems.vdrmanager.StringUtils; +import de.bjusystems.vdrmanager.app.C; +import de.bjusystems.vdrmanager.gui.Utils; +import static de.bjusystems.vdrmanager.gui.Utils.mapSpecialChars; + +/** + * Class for EPG events + * + * @author bju + */ +public class Epg extends Event implements Timerable { + + private Timer timer; + + private TimerMatch timerMatch; + + public TimerMatch getTimerMatch() { + return timerMatch; + } + + public void setTimerMatch(TimerMatch timerMatch) { + this.timerMatch = timerMatch; + } + + public Epg(final String line) { + final String[] words = StringUtils.splitPreserveAllTokens(line, + C.DATA_SEPARATOR); + channelNumber = Long.valueOf(words[0].substring(1)); + channelName = Utils.mapSpecialChars(words[1]); + start = new Date(Long.parseLong(words[2]) * 1000); + stop = new Date(Long.parseLong(words[3]) * 1000); + title = mapSpecialChars(words[4]); + description = words.length > 5 ? mapSpecialChars(words[5]) : ""; + shortText = words.length > 6 ? mapSpecialChars(words[6]) : ""; + channelId = words.length > 7 ? mapSpecialChars(words[7]) : ""; + rawAudio = words.length > 8 ? mapSpecialChars(words[8]) : ""; + if (words.length > 9) { + String contents = words[9].trim(); + if (contents.length() > 0) { + String[] caray = contents.split(" "); + if (caray.length > 0) { + content = new int[caray.length]; + for (int i = 0; i < caray.length; ++i) { + content[i] = Integer.valueOf(caray[i]); + } + } + } + + } + if (words.length > 10) { + if (TextUtils.isEmpty(words[10]) == false) { + vps = Long.valueOf(words[10]) * 1000; + } + } + } + + public Timer getTimer() { + return timer; + } + + public void setTimer(final Timer timer) { + this.timer = timer; + timerMatch = Utils.getTimerMatch(this, timer); + } + + public TimerState getTimerState() { + if (timer == null) { + return TimerState.None; + } else { + return timer.getTimerState(); + } + } + + public Timer createTimer() { + return new Timer(this); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EpgCache.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EpgCache.java new file mode 100644 index 0000000..fd1a895 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EpgCache.java @@ -0,0 +1,12 @@ +package de.bjusystems.vdrmanager.data; + +import java.util.ArrayList; +import java.util.Date; +import java.util.WeakHashMap; + +public class EpgCache { + + public static WeakHashMap<String, ArrayList<Epg>> CACHE = new WeakHashMap<String, ArrayList<Epg>>(); + + public static WeakHashMap<String, Date> NEXT_REFRESH = new WeakHashMap<String, Date>(); +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EpgSearchParams.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EpgSearchParams.java new file mode 100644 index 0000000..fbcac24 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EpgSearchParams.java @@ -0,0 +1,45 @@ +package de.bjusystems.vdrmanager.data; + +import java.util.Date; + +import de.bjusystems.vdrmanager.gui.Utils; + +/** + * Class for EPG events + * @author bju + */ +public class EpgSearchParams { + + private String channelNumber; + private String title; + private Date start; + private Date end; + + public String getChannelNumber() { + return channelNumber; + } + public void setChannelNumber(final String channelNumber) { + this.channelNumber = channelNumber; + } + public String getTitle() { + return title; + } + public void setTitle(final String title) { + this.title = title; + } + public Date getStart() { + return start; + } + public void setStart(final Date start) { + this.start = start; + } + public Date getEnd() { + return end; + } + public void setEnd(final Date end) { + this.end = end; + } + public String toCommandLine() { + return Utils.unMapSpecialChars(title); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EpgSearchTimeValue.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EpgSearchTimeValue.java new file mode 100644 index 0000000..8ba9b5e --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EpgSearchTimeValue.java @@ -0,0 +1,56 @@ +package de.bjusystems.vdrmanager.data; + +import java.util.Calendar; +import java.util.GregorianCalendar; + +public class EpgSearchTimeValue { + + private final int index; + private final String text; + + public EpgSearchTimeValue(final int index, final String text) { + this.index = index; + this.text = text; + } + + public EpgSearchTimeValue() { + this.index = 0; + this.text = ""; + } + + public String getText(){ + return text; + } + + public String getValue() { + switch (index) { + case -1: + return "adhoc"; + case 0: + return "now"; + case 1: + return "next"; + default: + + final String[] values = text.split(":"); + final Calendar cal = new GregorianCalendar(); + cal.set(Calendar.HOUR_OF_DAY, Integer.parseInt(values[0])); + cal.set(Calendar.MINUTE, Integer.parseInt(values[1])); + cal.set(Calendar.SECOND, 0); + cal.set(Calendar.MILLISECOND, 0); + + // next day? + final Calendar now = new GregorianCalendar(); + if (now.after(cal)) { + cal.add(Calendar.DAY_OF_MONTH, 1); + } + + return String.format("%d", cal.getTimeInMillis() / 1000); + } + } + + @Override + public String toString() { + return text; + } +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EpgSearchTimeValues.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EpgSearchTimeValues.java new file mode 100644 index 0000000..c859db1 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EpgSearchTimeValues.java @@ -0,0 +1,66 @@ +package de.bjusystems.vdrmanager.data; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import android.content.Context; +import de.bjusystems.vdrmanager.R; + +public class EpgSearchTimeValues { + + private final List<EpgSearchTimeValue> values = new ArrayList<EpgSearchTimeValue>(); + private final Context context; + + public EpgSearchTimeValues(final Context context) { + this.context = context; + } + + public List<EpgSearchTimeValue> getValues() { + + + + // fixed values for now and next + values.add(new EpgSearchTimeValue(0, context.getString(R.string.epg_list_time_now))); + values.add(new EpgSearchTimeValue(1, context.getString(R.string.epg_list_time_next))); + + // get user defined values + final String userValueString = Preferences.get().getEpgSearchTimes(); + + final String[] userValues = userValueString.split(","); + + Arrays.sort(userValues); + + for(final String userValue : userValues) { + if (userValue.contains(":")) { + values.add(new EpgSearchTimeValue(values.size(), userValue)); + } + } + + values.add(new EpgSearchTimeValue(-1, context.getString(R.string.epg_list_time_adhoc))); + return values; + } + + public void append(EpgSearchTimeValue est){ + values.add(values.size() - 1, est); + } + + public void saveValues(final List<EpgSearchTimeValue> values) { + + // get old values + final Preferences prefs = Preferences.get(); + + // add value + String newValues = ""; + for(int i = 2; i < values.size(); i++) { + final EpgSearchTimeValue value = values.get(i); + if (newValues.length() > 0) { + newValues += ","; + } + newValues += value.toString(); + } + + // save new values + prefs.setEpgSearchTimes(context, newValues); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Event.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Event.java new file mode 100644 index 0000000..bbd3181 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Event.java @@ -0,0 +1,156 @@ +package de.bjusystems.vdrmanager.data; + +import java.util.Date; +import java.util.List; + +import android.text.TextUtils; + +/** + * Basisc class for all Events + * + * @author bju,lado + * + */ +public abstract class Event { + + protected Long channelNumber; + protected String channelId; + protected String channelName; + + protected String title; + protected String shortText; + protected String description; + protected Date start; + protected Date stop; + + protected String rawAudio; + protected int[] content = {}; + + protected long vps = 0; + + public int[] getContent() { + return content; + } + + private List<AudioTrack> audio; + + public List<AudioTrack> getAudio() { + if (audio != null) { + return audio; + } + audio = AudioTrack.getAudio(rawAudio); + return audio; + } + + public long getDuration() { + long millis = getStop().getTime() - getStart().getTime(); + return millis; + } + + public Event() { + + } + + public void setChannelNumber(Long channelNumber) { + this.channelNumber = channelNumber; + } + + public void setChannelName(String channelName) { + this.channelName = channelName; + } + + public void setTitle(String title) { + this.title = title; + } + + public void setShortText(String shortText) { + this.shortText = shortText; + } + + public void setDescription(String description) { + this.description = description; + } + + public void setStart(Date start) { + this.start = start; + } + + public void setStop(Date stop) { + this.stop = stop; + } + + public Event(Event event) { + channelNumber = event.getChannelNumber(); + channelId = event.getChannelId(); + channelName = event.getChannelName(); + title = event.getTitle(); + shortText = event.getShortText(); + description = event.getDescription(); + start = event.getStart(); + stop = event.getStop(); + rawAudio = event.rawAudio; + content = event.content; + vps = event.vps; + } + + public Long getChannelNumber() { + return channelNumber; + } + + public String getChannelName() { + return channelName; + } + + public String getTitle() { + return title; + } + + public String getChannelId() { + return channelId; + } + + public String getShortText() { + if (TextUtils.isEmpty(shortText) == false) { + return shortText; + } + if (TextUtils.isEmpty(description) == false) { + if (description.length() < 50) { + return description; + } + return TextUtils.substring(description, 0, 50) + "…"; + } + return ""; + } + + public String getDescription() { + return description; + } + + public Date getStart() { + return start; + } + + public Date getStop() { + return stop; + } + + public String getStreamId() { + if (channelId != null) { + return channelId; + } + return String.valueOf(channelNumber); + } + + public boolean isConflict() { + return false; + } + + public boolean hasVPS() { + return vps > 0; + } + + public long getVPS() { + return vps; + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EventContentGroup.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EventContentGroup.java new file mode 100644 index 0000000..03fcd90 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EventContentGroup.java @@ -0,0 +1,23 @@ +package de.bjusystems.vdrmanager.data; + +/** + * @author lado + * + * Based on epg.c from vdr + * + */ +public interface EventContentGroup { + + static int MovieDrama = 0x10; // + static int NewsCurrentAffairs = 0x20; // + static int Show = 0x30; // + static int Sports = 0x40; // + static int ChildrenYouth = 0x50; // + static int MusicBalletDance = 0x60; // + static int ArtsCulture = 0x70; // + static int SocialPoliticalEconomics = 0x80;// + static int EducationalScience = 0x90;// + static int LeisureHobbies = 0xA0;// + static int Special = 0xB0; // + static int UserDefined = 0xF0;// +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EventFormatter.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EventFormatter.java new file mode 100644 index 0000000..6cc7151 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EventFormatter.java @@ -0,0 +1,66 @@ +package de.bjusystems.vdrmanager.data; + +import de.bjusystems.vdrmanager.gui.Utils; +import de.bjusystems.vdrmanager.utils.date.DateFormatter; + +public class EventFormatter { + + private String time; + private final String stop; + private final String date; + private final String longDate; + private final String title; + private final String shortText; + private final String description; + + public EventFormatter(final Event event) { + this(event,false); + } + /** + * @param event + * @param onlyStartTime Event Time is rendered as 'start - stop' if false + */ + public EventFormatter(final Event event, boolean onlyStartTime) { + DateFormatter formatter = new DateFormatter(event.getStart()); + this.date = formatter.getDateString(); + this.longDate = formatter.getDailyHeader(); + this.time = formatter.getTimeString(); + formatter = new DateFormatter(event.getStop()); + this.stop = formatter.getTimeString(); + if(onlyStartTime == false){ + this.time += " - " + stop; + } + this.title = Utils.mapSpecialChars(event.getTitle()); + this.shortText = Utils.mapSpecialChars(event.getShortText()); + this.description = Utils.mapSpecialChars(event.getDescription()); + } + + public String getShortText() { + return shortText; + } + + + public String getStop(){ + return stop; + } + + public String getTime() { + return time; + } + + public String getDate() { + return date; + } + + public String getLongDate() { + return longDate; + } + + public String getTitle() { + return title; + } + + public String getDescription() { + return description; + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EventListItem.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EventListItem.java new file mode 100644 index 0000000..b01aee5 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/EventListItem.java @@ -0,0 +1,164 @@ +package de.bjusystems.vdrmanager.data; + +import de.bjusystems.vdrmanager.gui.Utils; + +/** + * @author lado + * + * TODO auf Event Interface umstellen und die Aufrufen an event + * delegieren. Das hier ist nicht gut. + */ +public class EventListItem extends Event { + + Event event; + + public Event getEvent() { + return event; + } + + public void setEvent(Event event) { + this.event = event; + } + + //private final Recording rec; + //private final Timer timer; + //private final Epg epg; + private final String header; + + // + // public EventListItem(final Event event){ + // if(event instanceof Recording){ + // this((Recording)event); + // } else if (event instanceof Timer){ + // this((Timer)event); + // } else { + // this((Epg)event); + // } + // throw new IllegalArgumentException("Uknown event type " + event); + // } + + + public EventListItem(final Event rec) { + super(rec); + event = rec; + this.header = null; +// this.rec = rec; + // this.epg = null; + //this.timer = null; + } +// +// public EventListItem(final Recording rec) { +// super(rec); +// event = rec; +// this.header = null; +// this.rec = rec; +// this.epg = null; +// this.timer = null; +// } +// +// public EventListItem(final Timer timer) { +// super(timer); +// event = timer; +// this.header = null; +// this.timer = timer; +// this.epg = null; +// this.rec = null; +// } +// +// public EventListItem(final Epg epg) { +// super(epg); +// event = epg; +// this.header = null; +// this.timer = null; +// this.epg = epg; +// this.rec = null; +// } +// +// @Override +// public TimerState getTimerState() { +// return event.getTimerState(); +// } + + public EventListItem(final String header) { + this.header = header; + } + + public boolean isHeader() { + return header != null; + } + +// public boolean isTimer() { +// return event instanceof Timer; +// } + + public String getHeader() { + return header; + } + +// public Timer getTimer() { +// return timer; +// } +// +// public Epg getEpg() { +// return epg; +// } +// +// public Recording getRecording() { +// return rec; +// } + + // public Event getEvent() { + // return event; + // } + // + public boolean isLive() { + return Utils.isLive(this); + } + + @Override + public String toString() { + if (isHeader()) { + return "Header: " + header; + } + + final EventFormatter formatter = new EventFormatter(this); + final StringBuilder text = new StringBuilder(); + text.append("Timer / Event: "); + text.append("Channel: ").append(getChannelNumber()); + text.append(" (").append(getChannelName()).append("), "); + text.append("Zeit: ").append(formatter.getDate()).append(" ") + .append(formatter.getTime()); + return text.toString(); + } + + + @Override + public long getDuration() { + if(event != null){ + return event.getDuration(); + } + return super.getDuration(); + } + + @Override + public String getChannelId() { + if(event != null){ + return event.getChannelId(); + } + return null; + } + + @Override + public String getStreamId() { + if(event == null){ + return null; + } + return event.getStreamId(); + } +// +// @Override +// public Timer getTimer() { +// return event.getTimer(); +// } + +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/FetchEditTextPreference.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/FetchEditTextPreference.java new file mode 100644 index 0000000..17a93b7 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/FetchEditTextPreference.java @@ -0,0 +1,94 @@ +package de.bjusystems.vdrmanager.data; + +import android.content.Context; +import android.content.DialogInterface; +import android.content.SharedPreferences.Editor; +import android.preference.DialogPreference; +import android.util.AttributeSet; +import android.view.View; +import android.widget.EditText; +import android.widget.ImageButton; +import de.bjusystems.vdrmanager.R; + +public class FetchEditTextPreference extends DialogPreference{ + + private EditText mEditText; + + private String initialValue; + + public String getInitialValue() { + return initialValue; + } + + public void setInitialValue(String initialValue) { + this.initialValue = initialValue; + } + + public EditText getmEditText() { + return mEditText; + } + + public void setEditText(String text) { + this.mEditText.setText(text); + } + + private ImageButton mButton; + + private String mText; + //private CharSequence mCompoundButtonText; + private View.OnClickListener mCompoundButtonCallback; + + public FetchEditTextPreference(Context context, AttributeSet attrs, + int defStyle) { + super(context, attrs, defStyle); + setDialogLayoutResource(R.layout.fetch_preference); + } + + public FetchEditTextPreference(Context context, AttributeSet attrs) { + super(context, attrs); + setDialogLayoutResource(R.layout.fetch_preference); + } + + @Override + protected View onCreateDialogView() { + View root = super.onCreateDialogView(); + mEditText = (EditText) root.findViewById(R.id.edit); + mButton = (ImageButton) root.findViewById(R.id.button); + return root; + } + + public void setText(String text) { + mText = text; + } + + public String getText() { + return mText; + } + + @Override + public void onClick(DialogInterface dialog, int which) { + switch (which) { + case DialogInterface.BUTTON_POSITIVE: // User clicked OK! + mText = mEditText.getText().toString(); + callChangeListener(mText); + Editor editor = (Editor) getEditor(); + editor.putString(getKey(), mText); + editor.commit(); + break; + } + super.onClick(dialog, which); + } + + @Override + protected void onBindDialogView(View view) { + mEditText.setText(mText); + //mButton.setText(mCompoundButtonText); + + // Set a callback to our button. + mButton.setOnClickListener(mCompoundButtonCallback); + } + + public void setCompoundButtonListener(View.OnClickListener callback) { + mCompoundButtonCallback = callback; + } +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/HasAudio.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/HasAudio.java new file mode 100644 index 0000000..10d9fd9 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/HasAudio.java @@ -0,0 +1,5 @@ +package de.bjusystems.vdrmanager.data; + +public class HasAudio { + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/MenuActionHandler.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/MenuActionHandler.java new file mode 100644 index 0000000..b1f1d2e --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/MenuActionHandler.java @@ -0,0 +1,16 @@ +package de.bjusystems.vdrmanager.data; + +import android.content.Context; + + +/** + * Handler for menu actions + * @author bju + */ +public interface MenuActionHandler { + + /** + * Execute the action + */ + void executeAction(Context context); +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/OrmLiteBasePreferenceActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/OrmLiteBasePreferenceActivity.java new file mode 100644 index 0000000..eae8302 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/OrmLiteBasePreferenceActivity.java @@ -0,0 +1,89 @@ +package de.bjusystems.vdrmanager.data; + +import android.content.Context; +import android.os.Bundle; +import android.preference.PreferenceActivity; + +import com.j256.ormlite.android.apptools.OpenHelperManager; +import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; +import com.j256.ormlite.support.ConnectionSource; + +public abstract class OrmLiteBasePreferenceActivity<H extends OrmLiteSqliteOpenHelper> extends PreferenceActivity { + + + private volatile H helper; + private volatile boolean created = false; + private volatile boolean destroyed = false; + + /** + * Get a helper for this action. + */ + public H getHelper() { + if (helper == null) { + if (!created) { + throw new IllegalStateException("A call has not been made to onCreate() yet so the helper is null"); + } else if (destroyed) { + throw new IllegalStateException( + "A call to onDestroy has already been made and the helper cannot be used after that point"); + } else { + throw new IllegalStateException("Helper is null for some unknown reason"); + } + } else { + return helper; + } + } + + /** + * Get a connection source for this action. + */ + public ConnectionSource getConnectionSource() { + return getHelper().getConnectionSource(); + } + + @Override + protected void onCreate(Bundle savedInstanceState) { + if (helper == null) { + helper = getHelperInternal(this); + created = true; + } + super.onCreate(savedInstanceState); + } + + @Override + protected void onDestroy() { + super.onDestroy(); + releaseHelper(helper); + destroyed = true; + } + + /** + * This is called internally by the class to populate the helper object instance. This should not be called directly + * by client code unless you know what you are doing. Use {@link #getHelper()} to get a helper instance. If you are + * managing your own helper creation, override this method to supply this activity with a helper instance. + * + * <p> + * <b> NOTE: </b> If you override this method, you most likely will need to override the + * {@link #releaseHelper(OrmLiteSqliteOpenHelper)} method as well. + * </p> + */ + protected H getHelperInternal(Context context) { + @SuppressWarnings({ "unchecked", "deprecation" }) + H newHelper = (H) OpenHelperManager.getHelper(context); + return newHelper; + } + + /** + * Release the helper instance created in {@link #getHelperInternal(Context)}. You most likely will not need to call + * this directly since {@link #onDestroy()} does it for you. + * + * <p> + * <b> NOTE: </b> If you override this method, you most likely will need to override the + * {@link #getHelperInternal(Context)} method as well. + * </p> + */ + protected void releaseHelper(H helper) { + OpenHelperManager.releaseHelper(); + this.helper = null; + } + +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/P.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/P.java new file mode 100644 index 0000000..b3e9918 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/P.java @@ -0,0 +1,11 @@ +package de.bjusystems.vdrmanager.data; + +public interface P { + + public static String CHANNELS_LAST_ORDER = "CHANNELS_LAST_ORDER"; + + public static String EPG_LAST_SORT = "EPG_LAST_SORT"; + + public static String CHANNELS_LAST_ORDER_REVERSE = "CHANNELS_LAST_ORDER_ORDER"; + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Preferences.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Preferences.java new file mode 100644 index 0000000..d4aaab9 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Preferences.java @@ -0,0 +1,791 @@ +package de.bjusystems.vdrmanager.data; + +import java.util.List; +import java.util.Locale; + +import android.content.Context; +import android.content.SharedPreferences; +import android.content.res.Configuration; +import android.text.TextUtils; + +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.StringUtils; +import de.bjusystems.vdrmanager.app.VdrManagerApp; +import de.bjusystems.vdrmanager.data.db.DBAccess; + +/** + * Class for all preferences + * + * @author bju, lado + */ +public class Preferences { + + public static final String DEFAULT_LANGUAGE_VALUE = "DEFAULT"; + + public static final String PREFERENCE_FILE_NAME = "VDR-Manager"; + + private static Vdr current; + + public static void set(Context context, String key, int value) { + final SharedPreferences sharedPrefs = getSharedPreferences(context); + sharedPrefs.edit().putInt(key, value).commit(); + } + + public static void set(Context context, String key, boolean value) { + final SharedPreferences sharedPrefs = getSharedPreferences(context); + sharedPrefs.edit().putBoolean(key, value).commit(); + } + + public static int get(Context context, String key, int defValue) { + final SharedPreferences sharedPrefs = getSharedPreferences(context); + return sharedPrefs.getInt(key, defValue); + + } + + public static String get(Context context, String key, String defValue) { + final SharedPreferences sharedPrefs = getSharedPreferences(context); + return sharedPrefs.getString(key, defValue); + + } + + public static boolean get(Context context, String key, boolean defValue) { + final SharedPreferences sharedPrefs = getSharedPreferences(context); + return sharedPrefs.getBoolean(key, defValue); + + } + + public static void setCurrentVdr(Context context, Vdr vdr) { + current = vdr; + final SharedPreferences sharedPrefs = getSharedPreferences(context); + sharedPrefs + .edit() + .putInt(context.getString(R.string.current_vdr_id_key), + current != null ? current.getId() : -1).commit(); + } + + public Vdr getCurrentVdr() { + return current; + } + + public int getCurrentVdrContext(Context context) { + return getInteger(context, R.string.current_vdr_id_key, -1); + } + + /** + * user defined epg search times + */ + private String epgSearchTimes; + /** + * format times AM/PM or 24H + * + * @since 0.2 + */ + private boolean use24hFormat; + + /** + * Quits the app on back button + */ + private boolean quiteOnBackButton = true; + + /** + * Show IMDB buttons, where possible (e.g. EPG Details) + */ + private boolean showImdbButton = true; + + /** + * Show OMDB button in epg details + */ + private boolean showOmdbButton = false; + + /** + * Show TMDb button in epg details + */ + private boolean showTmdbButton = false; + + private int maxRecentChannels = 10; + + public int getMaxRecentChannels() { + return maxRecentChannels; + } + + public boolean isShowTmdbButton() { + return showTmdbButton; + } + + public boolean isShowOmdbButton() { + return showOmdbButton; + } + + /** + * On Which imdb site to search? + */ + private String imdbUrl = "akas.imdb.com"; + + private boolean showChannelNumbers = false; + + public String getEncoding() { + return getCurrentVdr().getEncoding(); + } + + public int getConnectionTimeout() { + return getCurrentVdr().getConnectionTimeout(); + } + + public int getReadTimeout() { + return getCurrentVdr().getReadTimeout(); + } + + public int getTimeout() { + return getCurrentVdr().getTimeout(); + } + + public String getImdbUrl() { + return imdbUrl; + } + + public void setImdbUrl(String imdbUrl) { + this.imdbUrl = imdbUrl; + } + + /** + * @return whether to shwo imdb button + */ + public boolean isShowImdbButton() { + return showImdbButton; + } + + public String getStreamingUsername() { + return getCurrentVdr().getStreamingUsername(); + } + + public String getStreamingPassword() { + return getCurrentVdr().getStreamingPassword(); + } + + /** + * Properties singleton + */ + private static Preferences thePrefs; + + /** + * Whether to send Packets to the custom broadcast address. It is used, if + * the address ist not empty + * + * @return + * @since 0.2 + */ + public String getWolCustomBroadcast() { + return getCurrentVdr().getWolCustomBroadcast(); + } + + /** + * Getter for use24hFormat + * + * @return + * @since 0.2 + */ + public boolean isUse24hFormat() { + return use24hFormat; + } + + /** + * Checks for connect using SSL + * + * @return true, if use SSL connections + */ + public boolean isSecure() { + return getCurrentVdr().isSecure(); + } + + /** + * Retrieves the channel filtering mode + * + * @return true, if channels will be filtered + */ + public boolean isFilterChannels() { + return getCurrentVdr().isFilterChannels(); + } + + /** + * Last channel to receive + * + * @return channel number + */ + public String getChannels() { + return isFilterChannels() ? getCurrentVdr().getChannelFilter() : ""; + } + + /** + * Gets the host or IP address + * + * @return host + */ + public String getHost() { + return getCurrentVdr().getHost(); + } + + /** + * Gets the port + * + * @return port + */ + public int getPort() { + return getCurrentVdr().getPort(); + } + + /** + * Gets the port + * + * @return port + */ + public int getSvdrpPort() { + return getCurrentVdr().getSvdrpPort(); + } + + /** + * Gets password + * + * @return password + */ + public String getPassword() { + String pwd = getCurrentVdr().getPassword(); + if (pwd == null) { + return StringUtils.EMPTY_STRING; + } + return pwd; + } + + /** + * Checks for enables remote wakeup + * + * @return true, if remote wakeup is enabled + */ + public boolean isWakeupEnabled() { + return getCurrentVdr().isWakeupEnabled(); + } + + /** + * Gets the URL for the wakeup request + * + * @return wakeup url + */ + public String getWakeupUrl() { + return getCurrentVdr().getWakeupUrl(); + } + + /** + * Gets the user for the wakeup url + * + * @return user name + */ + public String getWakeupUser() { + return getCurrentVdr().getWakeupUser(); + } + + /** + * Gets the password for the wakeup url + * + * @return password + */ + public String getWakeupPassword() { + return getCurrentVdr().getWakeupPassword(); + } + + /** + * Checks for enabled alive check + * + * @return true, if enabled + */ + public boolean isAliveCheckEnabled() { + return getCurrentVdr().isAliveCheckEnabled(); + } + + public boolean isEnableRecStream() { + return getCurrentVdr().isEnableRecStreaming(); + } + + public int getLivePort() { + return getCurrentVdr().getLivePort(); + } + + /** + * Gets the time between alive checks + * + * @return time in seconds + */ + public int getAliveCheckInterval() { + return getCurrentVdr().getAliveCheckInterval(); + } + + /** + * Gets the buffer before the event start + * + * @return pre event buffer + */ + public int getTimerPreMargin() { + return getCurrentVdr().getTimerPreMargin(); + } + + /** + * Gets the buffer after the event stop + * + * @return post event buffer + */ + public int getTimerPostMargin() { + return getCurrentVdr().getTimerPostMargin(); + } + + /** + * Gets the default priority + * + * @return default priority + */ + public int getTimerDefaultPriority() { + return getCurrentVdr().getTimerDefaultPriority(); + } + + /** + * Gets the default lifetime + * + * @return default lifetime + */ + public int getTimerDefaultLifetime() { + return getCurrentVdr().getTimerDefaultLifetime(); + } + + /** + * Gets the time values for the epg search + * + * @return + */ + public String getEpgSearchTimes() { + return epgSearchTimes; + } + + /** + * gets the MAC Address of the vdr host + * + * @return + * @since 0.2 + */ + public String getVdrMac() { + return getCurrentVdr().getMac(); + } + + /** + * Gets the selection which wakeup method to use + * + * @return + * @since 0.2 + */ + public String getWakeupMethod() { + return getCurrentVdr().getWakeupMethod(); + } + + /** + * Getter for streaming port + * + * @return + * @since 02. + */ + public int getStreamPort() { + return getCurrentVdr().getStreamPort(); + } + + /** + * Getter for selected streaming format + * + * @return + * @since 0.2 + */ + public String getStreamFormat() { + return getCurrentVdr().getStreamFormat(); + } + + public int getSmarttvewebPort() { + return getCurrentVdr().getSmarttvwebPort(); + } + + public String getSmarttvewebType() { + return getCurrentVdr().getSmarttvwebType(); + } + + /** + * Sets the time values for the epg search + * + * @param epgSearchTimes new time values + */ + public void setEpgSearchTimes(final Context context, + final String epgSearchTimes) { + + final SharedPreferences prefs = getSharedPreferences(context); + final SharedPreferences.Editor editor = prefs.edit(); + editor.putString(context.getString(R.string.epg_search_times_key), + epgSearchTimes); + editor.commit(); + + // reload + init(context); + } + + /** + * Gets the name for the file which preferences will be saved into + * + * @param context Context + * @return filename + */ + public static String getPreferenceFile(final Context context) { + return PREFERENCE_FILE_NAME; + } + + /** + * Show Channel Numbers in the overviews + * + * @return + * @since 0.2 + */ + public boolean isShowChannelNumbers() { + return showChannelNumbers; + } + + /** + * getter + * + * @return + */ + public boolean isEnableRemux() { + return getCurrentVdr().isEnableRemux(); + } + + /** + * getter + * + * @return + */ + public String getRemuxCommand() { + return getCurrentVdr().getRemuxCommand(); + } + + /** + * getter + * + * @return + */ + public String getRemuxParameter() { + return getCurrentVdr().getRemuxParameter(); + } + + /** + * getter + * + * @return + */ + public boolean isQuiteOnBackButton() { + return quiteOnBackButton; + } + + /** + * Gets the previous loaded preferences + * + * @return preferences + */ + //public static Preferences getPreferences() { + //return thePrefs; + //} + + public String getRecStreamMethod() { + return getCurrentVdr().getRecStreamMethod(); + } + + /** + * Gets the previous loaded preferences, same as getPreferences(); + * + * @return + */ + public static Preferences get() { + return thePrefs; + } + + + private static void initInternal(final Context context) { + + final Preferences prefs = new Preferences(); + + prefs.epgSearchTimes = getString(context, + R.string.epg_search_times_key, ""); + + prefs.use24hFormat = getBoolean(context, + R.string.gui_enable_24h_format_key, true); + + prefs.showChannelNumbers = getBoolean(context, + R.string.gui_channels_show_channel_numbers_key, false); + + prefs.quiteOnBackButton = getBoolean(context, + R.string.qui_quit_on_back_key, true); + + prefs.showImdbButton = getBoolean(context, + R.string.qui_show_imdb_button_key, true); + + prefs.showOmdbButton = getBoolean(context, + R.string.qui_show_omdb_button_key, false); + + prefs.showTmdbButton = getBoolean(context, + R.string.qui_show_tmdb_button_key, false); + + prefs.imdbUrl = getString(context, R.string.qui_imdb_url_key, + "akas.imdb.com"); + + prefs.maxRecentChannels = getInt(context, + R.string.gui_max_recent_channels_key, 10); + + + thePrefs = prefs; + } + + public static void reset() { + thePrefs = null; + } + + public static void reloadVDR(Context context) { + if (current == null) { + return; + } + DBAccess.get(context).getVdrDAO().refresh(current); + } + + public static boolean initVDR(final Context context) { + + if (current != null) { + return true; + } + + int id = getInteger(context, R.string.current_vdr_id_key, -1); + + Vdr vdr = null; + if (id != -1) { + vdr = DBAccess.get(context).getVdrDAO().queryForId(id); + } + + setCurrentVdr(context, vdr); + + if (vdr != null) { + return true; + } + + List<Vdr> list = DBAccess.get(context).getVdrDAO().queryForAll(); + if (list != null && list.isEmpty() == false) { + vdr = list.get(0); + setCurrentVdr(context, vdr); + return true; + } + + return initFromOldVersion(context); + // Intent intent = new Intent(); + // intent.setClass(context, VdrListActivity.class); + // intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); + // intent.putExtra(Intents.EMPTY_CONFIG, Boolean.TRUE); + // context.startActivity(intent); + // Toast.makeText(context, R.string.no_vdr, Toast.LENGTH_SHORT).show(); + } + + /** + * Loads all preferences + * + * @param context Context + * @return Preferences + */ + public static void init(final Context context) { + + try { + if (thePrefs != null) { + return; + } + synchronized (Preferences.class) { + if(thePrefs != null){ + return; + } + initInternal(context); + initVDR(context); + } + } finally { + setLocale(context); + } + } + + + private static boolean initFromOldVersion(Context context) { + + Vdr vdr = new Vdr(); + + String host = getString(context, R.string.vdr_host_key, null); + if (host == null) { + return false; + } + vdr.setHost(host); + vdr.setName("Default"); + vdr.setPort(getInt(context, R.string.vdr_port_key, 6420)); + vdr.setPassword(getString(context, R.string.vdr_password_key, "")); + vdr.setSecure(getBoolean(context, R.string.vdr_ssl_key, false)); + vdr.setStreamPort(getInt(context, R.string.vdr_stream_port, 3000)); + vdr.setStreamFormat(getString(context, R.string.vdr_stream_format, "TS")); + + vdr.setAliveCheckEnabled(getBoolean(context, + R.string.alive_check_enabled_key, false)); + vdr.setAliveCheckInterval(getInt(context, + R.string.alive_check_interval_key, 60)); + + vdr.setChannelFilter(getString(context, + R.string.channel_filter_last_key, "").replace(" ", "")); + vdr.setFilterChannels(getBoolean(context, + R.string.channel_filter_filter_key, false)); + vdr.setWakeupEnabled(getBoolean(context, R.string.wakeup_enabled_key, + false)); + vdr.setWakeupUrl(getString(context, R.string.wakeup_url_key, "")); + vdr.setWakeupUser(getString(context, R.string.wakeup_user_key, "")); + vdr.setWakeupPassword(getString(context, R.string.wakeup_password_key, + "")); + + vdr.setTimerPreMargin(getInt(context, + R.string.timer_pre_start_buffer_key, 5)); + vdr.setTimerPostMargin(getInt(context, + R.string.timer_post_end_buffer_key, 30)); + + vdr.setTimerDefaultPriority(getInt(context, + R.string.timer_default_priority_key, 99)); + + vdr.setTimerDefaultLifetime(getInt(context, + R.string.timer_default_lifetime_key, 99)); + + vdr.setEpgSearchTimes(getString(context, R.string.epg_search_times_key, + "")); + + vdr.setMac(getString(context, R.string.wakeup_wol_mac_key, "")); + + vdr.setWakeupMethod(getString(context, R.string.wakeup_method_key, + "url")); + + vdr.setWolCustomBroadcast(getString(context, + R.string.wakeup_wol_custom_broadcast_key, "")); + + vdr.setConnectionTimeout(getInt(context, R.string.vdr_conntimeout_key, + 10)); + vdr.setReadTimeout(getInt(context, R.string.vdr_readtimeout_key, 10)); + vdr.setTimeout(getInt(context, R.string.vdr_timeout_key, 120)); + + vdr.setStreamingUsername(getString(context, + R.string.streaming_username_key, "")); + + vdr.setStreamingPassword(getString(context, + R.string.streaming_password_key, "")); + + vdr.setEncoding(getString(context, R.string.vdr_encoding_key, "utf-8")); + + if (DBAccess.get(context).getVdrDAO().create(vdr) != 1) { + return false; + } + + setCurrentVdr(context, vdr); + + return true; + } + + /** + * Gets the persistent preferences + * + * @param context Context + * @return preferences + */ + public static SharedPreferences getSharedPreferences(final Context context) { + return context.getSharedPreferences(getPreferenceFile(context), + Context.MODE_PRIVATE); + } + + /** + * Helper for retrieving integer values from preferences + * + * @param context Context + * @param resId ressource id of the preferences name + * @param defValue default value + * @return value or the default value if not defined + */ + private static int getInt(final Context context, final int resId, + final int defValue) { + final String value = getString(context, resId, String.valueOf(defValue)); + if (TextUtils.isEmpty(value) || !TextUtils.isDigitsOnly(value)) { + return 0; + } + return Integer.parseInt(value); + } + + /** + * Helper for retrieving boolean values from preferences + * + * @param context Context + * @param resId ressource id of the preferences name + * @param defValue default value + * @return value or the default value if not defined + */ + private static boolean getBoolean(final Context context, final int resId, + final boolean defValue) { + final SharedPreferences sharedPrefs = getSharedPreferences(context); + return sharedPrefs.getBoolean(context.getString(resId), defValue); + } + + /** + * Helper for retrieving string values from preferences + * + * @param context Context + * @param resId ressource id of the preferences name + * @param defValue default value + * @return value or the default value if not defined + */ + private static String getString(final Context context, final int resId, + final String defValue) { + final SharedPreferences sharedPrefs = getSharedPreferences(context); + return sharedPrefs.getString(context.getString(resId), defValue); + } + + private static int getInteger(final Context context, final int resId, + final int defValue) { + final SharedPreferences sharedPrefs = getSharedPreferences(context); + return sharedPrefs.getInt(context.getString(resId), defValue); + } + + public String getTimeFormat() { + if (isUse24hFormat()) { + return "HH:mm"; + } + return "h:mm a"; + } + + /** + * Set locale read from preferences to context. + * + * @param context {@link Context} + */ + public static void setLocale(final Context context) { + String lc = getString(context, R.string.gui_custom_locale_key, + DEFAULT_LANGUAGE_VALUE); + Locale locale = null; + // TODO lado this is very bad. + if (lc.equals(DEFAULT_LANGUAGE_VALUE)) { + String lang = Locale.getDefault().toString(); + if (lang.startsWith("de")) { + locale = Locale.GERMAN; + } else if (lang.startsWith("it")) { + locale = Locale.ITALIAN; + } else { + locale = Locale.ENGLISH; + } + } else { + locale = new Locale(lc); + } + final Configuration config = new Configuration(); + config.locale = locale; + context.getResources().updateConfiguration(config, null); + } + + public boolean isRemoteEnabled() { + return getCurrentVdr().isEnableRemote(); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/RecentChannelDAO.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/RecentChannelDAO.java new file mode 100644 index 0000000..d8a8c41 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/RecentChannelDAO.java @@ -0,0 +1,86 @@ +package de.bjusystems.vdrmanager.data; + +import java.sql.SQLException; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; + +import android.util.Log; + +import com.j256.ormlite.dao.BaseDaoImpl; +import com.j256.ormlite.support.ConnectionSource; + +public class RecentChannelDAO extends BaseDaoImpl<RecenteChannel, String> { + + private static final String TAG = RecentChannelDAO.class.getName(); + + public RecentChannelDAO(ConnectionSource connectionSource) + throws SQLException { + super(connectionSource, RecenteChannel.class); + } + + public List<RecenteChannel> loadByLastAccess(long max) { + try { + return queryBuilder().orderBy("lastAccess", false).limit(max).query(); + } catch (SQLException e) { + Log.w(TAG, e.getMessage(), e); + return new ArrayList<RecenteChannel>(0); + } + } + + public List<RecenteChannel> loadByRecentUse(long max) { + try { + return queryBuilder().orderBy("count", false).limit(max).query(); + } catch (SQLException e) { + Log.w(TAG, e.getMessage(), e); + return new ArrayList<RecenteChannel>(0); + } + } + + public RecenteChannel queryForId(String id) { + try { + return super.queryForId(id); + } catch (Exception ex) { + throw new RuntimeException(ex); + } + } + + public List<Channel> getRecentChannels(Map<String, Channel> all, List<RecenteChannel> recents){ + + List<Channel> filtered = new ArrayList<Channel>(); + for(RecenteChannel rc : recents){ + Channel c = all.get(rc.getChannelId()); + if(c == null){ + try { + delete(rc); + } catch (SQLException e) { + Log.w(TAG, e.getMessage(), e); + } + } else { + filtered.add(c); + } + } + return filtered; + } + + public CreateOrUpdateStatus createOrUpdate(RecenteChannel data) { + try { + return super.createOrUpdate(data); + } catch (Exception ex) { + throw new RuntimeException(ex); + } + } + + public void hit(String channelId) { + RecenteChannel rc = queryForId(channelId); + + if (rc == null) { + rc = new RecenteChannel(); + rc.setChannelId(channelId); + } + rc.touch(); + rc.incUse(); + createOrUpdate(rc); + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/RecenteChannel.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/RecenteChannel.java new file mode 100644 index 0000000..b747537 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/RecenteChannel.java @@ -0,0 +1,59 @@ +package de.bjusystems.vdrmanager.data; + +import java.util.Date; + +import com.j256.ormlite.field.DatabaseField; +import com.j256.ormlite.table.DatabaseTable; + +@DatabaseTable(daoClass=RecentChannelDAO.class) +public class RecenteChannel { + + @DatabaseField(id=true, generatedId = false) + private String channelId; + + @DatabaseField + private long count = 0; + + @DatabaseField + private Date lastAccess; + + public Date getLastAccess() { + return lastAccess; + } + + public void setLastAccess(Date lastAccess) { + this.lastAccess = lastAccess; + } + + public long getCount() { + return count; + } + + public void setCount(long count) { + this.count = count; + } + + public String getChannelId() { + return channelId; + } + + public void setChannelId(String channelId) { + this.channelId = channelId; + } + + public void incUse(){ + count++; + } + + public void touch(){ + lastAccess = new Date(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + + sb.append("[id="+channelId +", count="+count+", lastAccess=" + lastAccess); + return super.toString(); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Recording.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Recording.java new file mode 100644 index 0000000..d1ae085 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Recording.java @@ -0,0 +1,257 @@ +package de.bjusystems.vdrmanager.data; + +import static de.bjusystems.vdrmanager.gui.Utils.mapSpecialChars; + +import java.util.Date; + +import de.bjusystems.vdrmanager.StringUtils; +import de.bjusystems.vdrmanager.app.C; +import de.bjusystems.vdrmanager.gui.Utils; + +public class Recording extends Event { + + public static String ROOT_FOLDER = ""; + + public static final String FOLDERDELIMCHAR = "~"; + + public Recording(String line) { + String[] words = StringUtils.splitPreserveAllTokens(line, + C.DATA_SEPARATOR); + int idx = 0; + index = Integer.valueOf(words[idx++]); + start = new Date(Long.parseLong(words[idx++]) * 1000); + stop = new Date(Long.parseLong(words[idx++]) * 1000); + channelName = mapSpecialChars(words[idx++]); + title = mapSpecialChars(words[idx++]); + shortText = mapSpecialChars(words[idx++]); + description = mapSpecialChars(words[idx++]); + fileName = mapSpecialChars(words[idx++]); + try { + fileSize = Integer.valueOf(words[idx++]); + } catch (NumberFormatException ex) { + + /************** TEMPORARY TO FIX THE BUG UNTIL Server's 0.13 */ + + int offset = 0; + int count = 0; + while(offset != -1){ + offset = line.indexOf(":", offset + 1); + count++; + if(count == 5){ + words = StringUtils.splitPreserveAllTokens(line.substring(0, offset) + Utils.unMapSpecialChars(":") + line.substring(offset+1), + C.DATA_SEPARATOR); + break; + } + } + + idx = 0; + index = Integer.valueOf(words[idx++]); + start = new Date(Long.parseLong(words[idx++]) * 1000); + stop = new Date(Long.parseLong(words[idx++]) * 1000); + channelName = mapSpecialChars(words[idx++]); + title = mapSpecialChars(words[idx++]); + shortText = mapSpecialChars(words[idx++]); + description = mapSpecialChars(words[idx++]); + fileName = mapSpecialChars(words[idx++]); + fileSize = Integer.valueOf(words[idx++]); + + if (idx < words.length) { + channelId = words[idx++]; + } + if (idx < words.length) { + realDuration = Long.parseLong(words[idx++]) * 1000; + } + + if (idx < words.length) { + devInode = mapSpecialChars(words[idx++]); + } + + if (idx < words.length) { // timer + String data = words[idx++]; + if (data != null && data.length() > 0) { + timerStopTime = new Date(Long.parseLong(data) * 1000L); + } + } + + if (idx < words.length) { // name + String titleRaw = mapSpecialChars(words[idx++]); + int idxdel = titleRaw.lastIndexOf(FOLDERDELIMCHAR); + if (idxdel == -1) { + title = titleRaw; + folder = ROOT_FOLDER; + } else { + title = titleRaw.substring(idxdel + 1); + String foldersRaw = titleRaw.substring(0, idxdel); + folder = foldersRaw; + + } + } else { + folder = ROOT_FOLDER; + } + + if (idx < words.length) { + if (words[idx++].equals("1")) { + neww = true; + } + } + if (title.charAt(0) == '%') { + cut = true; + title = title.substring(1); + } + return; + } + + if (idx < words.length) { + channelId = words[idx++]; + } + if (idx < words.length) { + realDuration = Long.parseLong(words[idx++]) * 1000; + } + + if (idx < words.length) { + devInode = mapSpecialChars(words[idx++]); + } + + if (idx < words.length) { // timer + String data = words[idx++]; + if (data != null && data.length() > 0) { + timerStopTime = new Date(Long.parseLong(data) * 1000L); + } + } + + if (idx < words.length) { // name + String titleRaw = mapSpecialChars(words[idx++]); + int idxdel = titleRaw.lastIndexOf(FOLDERDELIMCHAR); + if (idxdel == -1) { + title = titleRaw; + folder = ROOT_FOLDER; + } else { + title = titleRaw.substring(idxdel + 1); + String foldersRaw = titleRaw.substring(0, idxdel); + folder = foldersRaw; + + } + } else { + folder = ROOT_FOLDER; + } + + if (idx < words.length) { + if (words[idx++].equals("1")) { + neww = true; + } + } + if (title.charAt(0) == '%') { + cut = true; + title = title.substring(1); + } + + } + + private String folder; + + private String fileName; + + private int fileSize; + + private int index; + + private long realDuration = -1; + + private String devInode = null; + + private boolean cut = false; + + private boolean neww = false; + + /** + * If it is not null, recording is on going or will be on going until this + * date; + */ + private Date timerStopTime = null; + + public Date getTimerStopTime() { + return timerStopTime; + } + + public void setTimerStopTime(Date timerStopTime) { + this.timerStopTime = timerStopTime; + } + + public String getDevInode() { + return devInode; + } + + public void setDevInode(String devInode) { + this.devInode = devInode; + } + + /** + * in millis + * + * @return + */ + public long getRealDuration() { + return realDuration; + } + + public long getDuration() { + if (timerStopTime != null) { + return timerStopTime.getTime() - start.getTime(); + } + + if (realDuration != -1) { + return realDuration; + } + return super.getDuration(); + } + + public int getIndex() { + return index; + } + + public void setIndex(int index) { + this.index = index; + } + + public int getFileSize() { + return fileSize; + } + + public void setFileSize(int fileSize) { + this.fileSize = fileSize; + } + + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public String toCommandLine() { + return String.valueOf(index); + } + + @Override + public String toString() { + return title; + } + + public String getFolder() { + return folder; + } + + public void setFolder(String folder) { + this.folder = folder; + } + + public boolean isCut() { + return cut; + } + + public boolean isNeww() { + return neww; + } + +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/RecordingListItem.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/RecordingListItem.java new file mode 100644 index 0000000..8395364 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/RecordingListItem.java @@ -0,0 +1,45 @@ +package de.bjusystems.vdrmanager.data; + +import de.bjusystems.vdrmanager.gui.RecordingDir; + + +public class RecordingListItem extends EventListItem { + + public RecordingDir folder; + + //public Integer count = 0; + + public RecordingListItem(Recording rec) { + super(rec); + } + + public RecordingListItem(String dailyHeader) { + super(dailyHeader); + } + + + + @Override + public String getTitle() { + if(isFolder()){ + return folder.getName(); + } + return super.getTitle(); + } + + public boolean isFolder() { + + return folder != null; + + } + + @Override + public String getHeader() { + if (isFolder()) { + return folder.getName(); + } else { + return super.getHeader(); + } + } + +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Timer.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Timer.java new file mode 100644 index 0000000..1c48ca5 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Timer.java @@ -0,0 +1,277 @@ +package de.bjusystems.vdrmanager.data; + +import java.util.Calendar; +import java.util.Date; +import java.util.TimeZone; + +import android.content.Context; +import android.text.TextUtils; +import de.bjusystems.vdrmanager.StringUtils; +import de.bjusystems.vdrmanager.app.C; +import de.bjusystems.vdrmanager.gui.Utils; + +/** + * Class for timer data + * + * @author bju + */ +public class Timer extends Event implements Timerable { + + // tfActive = 0x0001, + // tfInstant = 0x0002, + // tfVps = 0x0004, + // tfRecording = 0x0008, + // tfAll = 0xFFFF, + private static final int ACTIVE = 1; + private static final int INSTANT = 2; + private static final int VPS = 4; + private static final int RECORDING = 8; + + private int number; + private int flags; + private int priority; + private int lifetime; + private String weekdays = "-------"; + private boolean conflict; + + + public void setPriority(int priority) { + this.priority = priority; + } + + public void setLifetime(int lifetime) { + this.lifetime = lifetime; + } + + public String getWeekdays() { + return weekdays; + } + + public void setWeekdays(String weekdays) { + this.weekdays = weekdays; + } + + /** + * Constructs a timer from SvdrpHelper result line + * + * @param timerData + * result line + */ + public Timer(final String timerData) { + + final String[] values = StringUtils.splitPreserveAllTokens(timerData, + C.DATA_SEPARATOR); + + // number + this.number = Integer.valueOf(values[0].substring(1)); + + // flags, channel number and channel name + this.flags = Integer.valueOf(values[1]); + this.channelNumber = Long.valueOf(values[2]); + this.channelName = Utils.mapSpecialChars(values[3]); + + // get start and stop + this.start = new Date(Long.parseLong(values[4]) * 1000); + this.stop = new Date(Long.parseLong(values[5]) * 1000); + + // priority and lifetime + this.priority = Integer.valueOf(values[6]); + this.lifetime = Integer.valueOf(values[7]); + + // title and description + this.title = Utils.mapSpecialChars(values[8]); + + this.description = values.length > 9 ? values[9] : "";// aux + + // 10 and 11 are optional if there where event with this timer + this.shortText = values.length > 10 ? Utils.mapSpecialChars(values[10]) + : ""; + + if (values.length > 11) { + this.description = values[11]; // if real description, set it + } + + if (values.length > 12) { + this.channelId = values[12]; + } + + if (values.length > 13) { + this.weekdays = values[13]; + } + + if (values.length > 14) { + this.conflict = values[14].equals("1"); + } + + description = Utils.mapSpecialChars(description); + + if (values.length > 15) { + if (TextUtils.isEmpty(values[15]) == false) { + vps = Long.valueOf(values[15]) * 1000; + } else if (isVps()) { + vps = start.getTime(); + } + + } + + } + + public Timer copy() { + Timer t = new Timer(this); + t.flags = flags; + t.number = number; + t.priority = priority; + t.lifetime = lifetime; + t.start = new Date(start.getTime()); + t.stop = new Date(stop.getTime()); + t.title = title; + t.weekdays = weekdays; + t.conflict = conflict; + t.vps = vps; + return t; + } + + public Timer(final Event event) { + + this.number = 0; + this.flags = ACTIVE; + this.channelNumber = event.getChannelNumber(); + this.channelName = event.getChannelName(); + this.channelId = event.getChannelId(); + + this.start = event.getStart(); + + this.stop = event.getStop(); + + this.title = event.getTitle(); + if (Utils.isSerie(event.getContent())) { + if (TextUtils.isEmpty(event.getShortText()) == false) { + this.title += "~" + event.getShortText(); + } + } + this.description = event.getDescription(); + this.vps = event.getVPS(); + } + + public boolean isRecurring() { + return weekdays.equals("-------") == false; + } + + public String toCommandLine() { + + final StringBuilder line = new StringBuilder(); + + // line.append(number).append(":"); + line.append(flags).append(":"); + line.append(channelNumber).append(":"); + + final Calendar cal = Calendar.getInstance(); + if(isVps() == true){ + cal.setTimeInMillis(vps); + } else { + cal.setTime(start); + } + + cal.setTimeZone(TimeZone.getTimeZone(Preferences.get().getCurrentVdr() + .getServerTimeZone())); + + line.append((weekdays.equals("-------") == false ? weekdays + "@" : "") + + String.format("%04d-%02d-%02d:", cal.get(Calendar.YEAR), + cal.get(Calendar.MONTH) + 1, + cal.get(Calendar.DAY_OF_MONTH))); + line.append(String.format("%02d%02d:", cal.get(Calendar.HOUR_OF_DAY), + cal.get(Calendar.MINUTE))); + + cal.setTime(stop); + line.append(String.format("%02d%02d:", cal.get(Calendar.HOUR_OF_DAY), + cal.get(Calendar.MINUTE))); + + line.append(priority).append(":"); + line.append(lifetime).append(":"); + line.append(Utils.unMapSpecialChars(title)); + return line.toString(); + } + + public int getNumber() { + return number; + } + + public int getPriority() { + return priority; + } + + public int getLifetime() { + return lifetime; + } + + public TimerState getTimerState() { + if (isEnabled()) { + if (isRecording()) { + return TimerState.Recording; + } + return TimerState.Active; + } + return TimerState.Inactive; + } + + public boolean isEnabled() { + return (flags & ACTIVE) == ACTIVE; + } + + public boolean isInstant() { + return (flags & INSTANT) == INSTANT; + } + + public boolean isVps() { + return (flags & VPS) == VPS; + } + + public boolean isRecording() { + return (flags & RECORDING) == RECORDING; + } + + public boolean isConflict() { + return conflict; + } + + public void setStart(final Date start) { + this.start = start; + } + + public void setStop(final Date stop) { + this.stop = stop; + } + + public void setVps(boolean useVps) { + if (useVps) { + flags = flags | VPS; + } else { + flags = flags & ~VPS; + } + } + + public void setEnabled(final boolean enabled) { + if (enabled) { + flags = flags | ACTIVE; + } else { + flags = flags & ~ACTIVE; + } + } + + public Timer getTimer() { + return this; + } + + public Timer createTimer() { + return new Timer(this); + } + + @Override + public TimerMatch getTimerMatch() { + + if (isConflict()) + return TimerMatch.Conflict; + + return TimerMatch.Full; + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/TimerMatch.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/TimerMatch.java new file mode 100644 index 0000000..b8126ab --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/TimerMatch.java @@ -0,0 +1,8 @@ +package de.bjusystems.vdrmanager.data; + +public enum TimerMatch { + Full, // + Begin, // + End, // + Conflict, // +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Timerable.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Timerable.java new file mode 100644 index 0000000..aa371ed --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Timerable.java @@ -0,0 +1,22 @@ +package de.bjusystems.vdrmanager.data; + + +public interface Timerable { + + public enum TimerState { + None, + Active, + Inactive, + Recording, + Recorded + ; + } + + public Timer createTimer(); + + public abstract Timer getTimer(); + + public TimerState getTimerState(); + + public TimerMatch getTimerMatch(); +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Vdr.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Vdr.java new file mode 100644 index 0000000..b7960d3 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/Vdr.java @@ -0,0 +1,732 @@ +package de.bjusystems.vdrmanager.data; + +import java.util.HashMap; +import java.util.Map; +import java.util.TimeZone; + +import com.j256.ormlite.field.DatabaseField; +import com.j256.ormlite.table.DatabaseTable; + +@DatabaseTable +public class Vdr { + + /** + * + */ + @DatabaseField(columnName = "_id", generatedId = true) + private Integer id; + + @DatabaseField(columnName = "name") + private String name = "VDR"; + + /** + * Use secure channel + */ + @DatabaseField(defaultValue = "false") + private boolean secure; + + /** host name or ip */ + @DatabaseField + private String host = "0.0.0.0"; + + /** port */ + @DatabaseField + private Integer port = 6420; + + /** Password */ + @DatabaseField + private String password = ""; + + /** should channels be filtered? */ + @DatabaseField + private boolean filterChannels = false; + + /** last channel to retrieve */ + @DatabaseField + private String channelFilter = ""; + + /** Enable remote wakeup */ + @DatabaseField + private boolean wakeupEnabled = false; + + /** URL of the wakeup script */ + @DatabaseField + private String wakeupUrl = ""; + + /** User for wakeup */ + @DatabaseField + private String wakeupUser = ""; + + /** Password for wakeup */ + @DatabaseField + private String wakeupPassword = ""; + + /** + * vdr mac for wol + * + * @since 0.2 + */ + @DatabaseField + private String mac = ""; + + /** + * which wakeup method to use + * + * @since 0.2 + * + */ + @DatabaseField + private String wakeupMethod = "wol"; + + /** Check for running VDR is enabled */ + @DatabaseField + private boolean aliveCheckEnabled; + + /** Intervall for alive test */ + @DatabaseField + private Integer aliveCheckInterval; + + /** Buffer before event */ + @DatabaseField + private int timerPreMargin = 5; + + /** Buffer after event */ + @DatabaseField + private int timerPostMargin = 30; + + /** Default priority */ + @DatabaseField + private int timerDefaultPriority = 50; + + /** Default lifetime */ + @DatabaseField + private int timerDefaultLifetime = 99; + + /** user defined epg search times */ + @DatabaseField + private String epgSearchTimes = ""; + + /** + * Which port to use for streaming + * + * @since 0.2 + */ + @DatabaseField + private int streamPort = 3000; + + /** + * Which format to use for streaming + * + * @since 0.2 + */ + @DatabaseField + private String streamFormat = "TS"; + + /** + * Do not send broadcasts, send directly to the host (router problem) + * + * @since 0.2 + */ + @DatabaseField + private String wolCustomBroadcast = "255.255.255.255"; + + /** + * Use remux ? + */ + @DatabaseField + private boolean enableRemux = false; + + /** + * Remux command + */ + @DatabaseField + private String remuxCommand = "EXT"; + + /** + * Remux command Parameter + */ + @DatabaseField + private String remuxParameter = "QUALITY=DSL1000"; + + @DatabaseField + private String encoding = "utf-8"; + + /** + * Connection timeout + */ + @DatabaseField + private int connectionTimeout = 10; + + /** + * Read Timeout + */ + @DatabaseField + private int readTimeout = 10; + + /** + * Timeout for a whole command run + */ + @DatabaseField + private int timeout = 60; + + @DatabaseField + private String streamingUsername = ""; + + @DatabaseField + private String streamingPassword = ""; + + @DatabaseField + private int livePort = 8008; + + @DatabaseField + private String recStreamMethod = "vdr-live"; + + @DatabaseField(columnName="smarttvwebPort") + private int smarttvwebPort = 8000; + + @DatabaseField(columnName="smarttvwebType") + private String smarttvwebType="ts"; + + @DatabaseField + private boolean enableRecStreaming = false; + + @DatabaseField(columnName = "stz") + private String serverTimeZone = "Europe/Berlin"; + + @DatabaseField(columnName="svdrpPort") + private int svdrpPort = 6419; + + @DatabaseField(columnName="enableRemote") + private boolean enableRemote = true; + + public String getServerTimeZone() { + return serverTimeZone; + } + + public void setServerTimeZone(String serverTimeZone) { + this.serverTimeZone = serverTimeZone; + } + + public String getRecStreamMethod() { + return recStreamMethod; + } + + public void setRecStreamMethod(String recStreamMethod) { + this.recStreamMethod = recStreamMethod; + } + + public int getLivePort() { + return livePort; + } + + public void setLivePort(int livePort) { + this.livePort = livePort; + } + + public boolean isEnableRecStreaming() { + return enableRecStreaming; + } + + public void setEnableRecStreaming(boolean enableRecStreaming) { + this.enableRecStreaming = enableRecStreaming; + } + + public String getStreamingPassword() { + return streamingPassword; + } + + public void setStreamingPassword(String streamingPassword) { + this.streamingPassword = streamingPassword; + } + + public String getStreamingUsername() { + return streamingUsername; + } + + public void setStreamingUsername(String streamingUsername) { + this.streamingUsername = streamingUsername; + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public boolean isSecure() { + return secure; + } + + public void setSecure(boolean secure) { + this.secure = secure; + } + + public String getHost() { + return host; + } + + public void setHost(String host) { + this.host = host; + } + + public int getPort() { + return port; + } + + public void setPort(int port) { + this.port = port; + } + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public boolean isFilterChannels() { + return filterChannels; + } + + public void setFilterChannels(boolean filterChannels) { + this.filterChannels = filterChannels; + } + + public String getChannelFilter() { + return channelFilter; + } + + public void setChannelFilter(String channelFilter) { + this.channelFilter = channelFilter; + } + + public boolean isWakeupEnabled() { + return wakeupEnabled; + } + + public void setWakeupEnabled(boolean wakeupEnabled) { + this.wakeupEnabled = wakeupEnabled; + } + + public String getWakeupUrl() { + return wakeupUrl; + } + + public void setWakeupUrl(String wakeupUrl) { + this.wakeupUrl = wakeupUrl; + } + + public String getWakeupUser() { + return wakeupUser; + } + + public void setWakeupUser(String wakeupUser) { + this.wakeupUser = wakeupUser; + } + + public String getWakeupPassword() { + return wakeupPassword; + } + + public void setWakeupPassword(String wakeupPassword) { + this.wakeupPassword = wakeupPassword; + } + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public String getWakeupMethod() { + return wakeupMethod; + } + + public void setWakeupMethod(String wakeupMethod) { + this.wakeupMethod = wakeupMethod; + } + + public boolean isAliveCheckEnabled() { + return aliveCheckEnabled; + } + + public void setAliveCheckEnabled(boolean aliveCheckEnabled) { + this.aliveCheckEnabled = aliveCheckEnabled; + } + + public int getAliveCheckInterval() { + return aliveCheckInterval; + } + + public void setAliveCheckInterval(int aliveCheckInterval) { + this.aliveCheckInterval = aliveCheckInterval; + } + + public int getTimerPreMargin() { + return timerPreMargin; + } + + public void setTimerPreMargin(int timerPreMargin) { + this.timerPreMargin = timerPreMargin; + } + + public int getTimerPostMargin() { + return timerPostMargin; + } + + public void setTimerPostMargin(int timerPostMargin) { + this.timerPostMargin = timerPostMargin; + } + + public int getTimerDefaultPriority() { + return timerDefaultPriority; + } + + public void setTimerDefaultPriority(int timerDefaultPriority) { + this.timerDefaultPriority = timerDefaultPriority; + } + + public int getTimerDefaultLifetime() { + return timerDefaultLifetime; + } + + public void setTimerDefaultLifetime(int timerDefaultLifetime) { + this.timerDefaultLifetime = timerDefaultLifetime; + } + + public String getEpgSearchTimes() { + return epgSearchTimes; + } + + public void setEpgSearchTimes(String epgSearchTimes) { + this.epgSearchTimes = epgSearchTimes; + } + + public int getStreamPort() { + return streamPort; + } + + public void setStreamPort(int streamPort) { + this.streamPort = streamPort; + } + + public String getStreamFormat() { + return streamFormat; + } + + public void setStreamFormat(String streamFormat) { + this.streamFormat = streamFormat; + } + + public String getWolCustomBroadcast() { + return wolCustomBroadcast; + } + + public void setWolCustomBroadcast(String wolCustomBroadcast) { + this.wolCustomBroadcast = wolCustomBroadcast; + } + + public boolean isEnableRemux() { + return enableRemux; + } + + public void setEnableRemux(boolean enableRemux) { + this.enableRemux = enableRemux; + } + + public String getRemuxCommand() { + return remuxCommand; + } + + public void setRemuxCommand(String remuxCommand) { + this.remuxCommand = remuxCommand; + } + + public String getRemuxParameter() { + return remuxParameter; + } + + public void setRemuxParameter(String remuxParameter) { + this.remuxParameter = remuxParameter; + } + + public String getEncoding() { + return encoding; + } + + public void setEncoding(String encoding) { + this.encoding = encoding; + } + + public int getConnectionTimeout() { + return connectionTimeout; + } + + public void setConnectionTimeout(int connectionTimeout) { + this.connectionTimeout = connectionTimeout; + } + + public int getReadTimeout() { + return readTimeout; + } + + public void setReadTimeout(int readTimeout) { + this.readTimeout = readTimeout; + } + + public int getTimeout() { + return timeout; + } + + public void setTimeout(int timeout) { + this.timeout = timeout; + } + + private static <T> T get(Map<String, Object> map, String key) { + return get(map, key, null); + } + + private static <T> T get(Map<String, Object> map, String key, Object def) { + if (map.containsKey(key)) { + return (T) map.get(key); + } + return (T) def; + } + + private static Integer getInteger(Map<String, Object> map, String key) { + return getInteger(map, key, 0); + } + + private static Integer getInteger(Map<String, Object> map, String key, + Integer def) { + if (map.containsKey(key) == false) { + return def; + } + + Object obj = get(map, key); + if (obj instanceof Integer) { + return (Integer) obj; + } + + try { + return Integer.valueOf(String.valueOf(obj)); + } catch (NumberFormatException nfe) { + return def; + } + } + + // private static Integer getInteger(Map<String, Object> map, String key) { + // if (map.containsKey(key) == false) { + // return Integer.valueOf(0); + // } + + // Object obj = get(map, key); + // if (obj instanceof Integer) { + // return (Integer) obj; + // } + // return Integer.valueOf(String.valueOf(obj)); + // } + + private static Boolean getBoolean(Map<String, Object> map, String key) { + return getBoolean(map, key, false); + } + + private static Boolean getBoolean(Map<String, Object> map, String key, + boolean defValue) { + if (map.containsKey(key) == false) { + return defValue; + } + Object obj = get(map, key); + if (obj instanceof Boolean) { + return (Boolean) obj; + } + return Boolean.valueOf(String.valueOf(obj)); + } + + public HashMap<String, Object> toMap() { + HashMap<String, Object> map = new HashMap<String, Object>(); + map.put("vdr_name", name); + map.put("vdr_host", host); + map.put("vdr_port", port); + map.put("vdr_password", password); + map.put("vdr_secure", secure); + + map.put("limit_channels", filterChannels); + map.put("last_channel", channelFilter); + + map.put("key_wakeup_enabled", wakeupEnabled); + map.put("key_wakeup_url", wakeupUrl); + map.put("key_wakeup_user", wakeupUser); + map.put("key_wakeup_password", wakeupPassword); + map.put("key_wakeup_method", wakeupMethod); + map.put("key_wol_custom_broadcast", wolCustomBroadcast); + map.put("key_wakeup_wol_mac", mac); + + map.put("key_conntimeout_key", connectionTimeout); + map.put("key_vdr_readtimeout", readTimeout); + map.put("key_vdr_timeout", timeout); + + map.put("timer_pre_start_buffer", timerPreMargin); + map.put("timer_post_end_buffer", timerPostMargin); + map.put("timer_default_priority", timerDefaultPriority); + map.put("timer_default_lifetime", timerDefaultLifetime); + + map.put("streamingport", streamPort); + map.put("key_streaming_password", streamingPassword); + map.put("key_streaming_username", streamingUsername); + map.put("key_vdr_encoding", encoding); + map.put("livetv_streamformat", streamFormat); + map.put("remux_command", remuxCommand); + map.put("remux_parameter", remuxParameter); + map.put("remux_enable", enableRemux); + map.put("key_rec_stream_enable", enableRecStreaming); + map.put("key_live_port", livePort); + map.put("key_recstream_method", recStreamMethod); + map.put("key_timezone", serverTimeZone); + + + map.put("key_smarttvweb_port", smarttvwebPort); + map.put("key_smarttvweb_recstream_method", smarttvwebType); + map.put("key_remote_enable", enableRemote); + map.put("key_svdrp_port", svdrpPort); + return map; + } + + public void set(Map<String, Object> map) { + init(map); +/* + name = get(map, "vdr_name"); + host = get(map, "vdr_host"); + port = getInteger(map, "vdr_port"); + password = get(map, "vdr_password"); + secure = getBoolean(map, "vdr_secure"); + + filterChannels = getBoolean(map, "limit_channels"); + channelFilter = get(map, "last_channel"); + + wakeupEnabled = getBoolean(map, "key_wakeup_enabled"); + wakeupUrl = get(map, "key_wakeup_url"); + wakeupUser = get(map, "key_wakeup_user"); + wakeupPassword = get(map, "key_wakeup_password"); + wakeupMethod = get(map, "key_wakeup_method"); + wolCustomBroadcast = get(map, "key_wol_custom_broadcast"); + mac = get(map, "key_wakeup_wol_mac"); + + connectionTimeout = getInteger(map, "key_conntimeout_key"); + readTimeout = getInteger(map, "key_vdr_readtimeout"); + timeout = getInteger(map, "key_vdr_timeout"); + + timerPreMargin = getInteger(map, "timer_pre_start_buffer" + ); + timerPostMargin = getInteger(map, "timer_post_end_buffer"); + timerDefaultPriority = getInteger(map, "timer_default_priority"); + timerDefaultLifetime = getInteger(map, "timer_default_lifetime"); + + streamPort = getInteger(map, "streamingport"); + streamingPassword = get(map, "key_streaming_password"); + streamingUsername = get(map, "key_streaming_username"); + encoding = get(map, "key_vdr_encoding"); + streamFormat = get(map, "livetv_streamformat"); + remuxCommand = get(map, "remux_command"); + remuxParameter = get(map, "remux_parameter"); + enableRemux = getBoolean(map, "remux_enable"); + + enableRecStreaming = getBoolean(map, "key_rec_stream_enable"); + livePort = getInteger(map, "key_live_port"); + recStreamMethod = get(map, "key_recstream_method"); + */ + } + + public void init(Map<String, Object> map) { + name = get(map, "vdr_name", "VDR"); + host = get(map, "vdr_host", "0.0.0.0"); + port = getInteger(map, "vdr_port", 6420); + password = get(map, "vdr_password", ""); + secure = getBoolean(map, "vdr_secure"); + + filterChannels = getBoolean(map, "limit_channels", true); + channelFilter = get(map, "last_channel", ""); + + wakeupEnabled = getBoolean(map, "key_wakeup_enabled", false); + wakeupUrl = get(map, "key_wakeup_url", ""); + wakeupUser = get(map, "key_wakeup_user", ""); + wakeupPassword = get(map, "key_wakeup_password", ""); + wakeupMethod = get(map, "key_wakeup_method", "wol"); + wolCustomBroadcast = get(map, "key_wol_custom_broadcast", ""); + mac = get(map, "key_wakeup_wol_mac", ""); + + connectionTimeout = getInteger(map, "key_conntimeout_key", 10); + readTimeout = getInteger(map, "key_vdr_readtimeout", 10); + timeout = getInteger(map, "key_vdr_timeout", 60); + + timerPreMargin = getInteger(map, "timer_pre_start_buffer", 5); + timerPostMargin = getInteger(map, "timer_post_end_buffer", 30); + timerDefaultPriority = getInteger(map, "timer_default_priority", 50); + timerDefaultLifetime = getInteger(map, "timer_default_lifetime",99); + + streamPort = getInteger(map, "streamingport", 3000); + streamingPassword = get(map, "key_streaming_password", ""); + streamingUsername = get(map, "key_streaming_username", ""); + encoding = get(map, "key_vdr_encoding", "utf-8"); + streamFormat = get(map, "livetv_streamformat", "TS"); + remuxCommand = get(map, "remux_command", "EXT"); + remuxParameter = get(map, "remux_parameter", ""); + enableRemux = getBoolean(map, "remux_enable"); + + enableRecStreaming = getBoolean(map, "key_rec_stream_enable"); + livePort = getInteger(map, "key_live_port", 8008); + recStreamMethod = get(map, "key_recstream_method", "vdr-live"); + serverTimeZone = get(map, "key_timezone", TimeZone.getDefault().getID()); + + smarttvwebPort= getInteger(map, "key_smarttvweb_port", 8000); + smarttvwebType= get(map, "key_smarttvweb_recstream_method", "progressive"); + enableRemote = getBoolean(map, "key_remote_enable", true); + svdrpPort = getInteger(map, "key_svdrp_port", 6419); + } + + public int getSmarttvwebPort() { + return smarttvwebPort; + } + + public void setSmarttvwebPort(int smarttvwebPort) { + this.smarttvwebPort = smarttvwebPort; + } + + public String getSmarttvwebType() { + return smarttvwebType; + } + + public void setSmarttvwebType(String smarttvwebType) { + this.smarttvwebType = smarttvwebType; + } + + public int getSvdrpPort() { + return svdrpPort; + } + + public void setSvdrpPort(int svdrpPort) { + this.svdrpPort = svdrpPort; + } + + public boolean isEnableRemote() { + return enableRemote; + } + + public void setEnableRemote(boolean enableRemote) { + this.enableRemote = enableRemote; + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/VdrSharedPreferences.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/VdrSharedPreferences.java new file mode 100644 index 0000000..bb0ad77 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/VdrSharedPreferences.java @@ -0,0 +1,218 @@ +package de.bjusystems.vdrmanager.data; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import android.content.SharedPreferences; + +import com.j256.ormlite.dao.Dao.CreateOrUpdateStatus; +import com.j256.ormlite.dao.RuntimeExceptionDao; + +@Deprecated +public class VdrSharedPreferences implements SharedPreferences { + + private static final String EMPTY_STRING = ""; + + public int commits = 0; + + public RuntimeExceptionDao<Vdr, Integer> dao; + + private Vdr instance; + + public Vdr getInstance() { + return instance; + } + + public void setInstance(Vdr instance) { + this.instance = instance; + map.putAll(instance.toMap()); + } + + protected List<OnSharedPreferenceChangeListener> listeners = new LinkedList<OnSharedPreferenceChangeListener>(); + + Map<String, Object> map = new HashMap<String, Object>(); + + public VdrSharedPreferences() { + + } + + // public VdrSharedPreferences(Vdr vdr) { + + // } + + public boolean contains(String key) { + return map.containsKey(key); + } + + public Editor edit() { + return new Editor(); + } + + public Map<String, Object> getAll() { + return map; + } + + public boolean getBoolean(String key, boolean defValue) { + return get(key, defValue); + } + + public float getFloat(String key, float defValue) { + return get(key, defValue); + } + + public int getInt(String key, int defValue) { + String val = get(key, String.valueOf(defValue)); + try { + return Integer.valueOf(val); + } catch (Exception ex) { + return defValue; + } + } + + public long getLong(String key, long defValue) { + String val = get(key, String.valueOf(defValue)); + try { + return Long.valueOf(val); + } catch (Exception ex) { + return defValue; + } + } + + public <T> T get(String key, T defValue) { + if (map.containsKey(key)) { + return (T) map.get(key); + } + return defValue; + } + + public String getString(String key, String defValue) { + Object obj = get(key, defValue); + if (obj == null) { + return EMPTY_STRING; + } + return String.valueOf(obj); + } + + public Set<String> getStringSet(String arg0, Set<String> arg1) { + return null; + } + + public void registerOnSharedPreferenceChangeListener( + OnSharedPreferenceChangeListener listener) { + listeners.add(listener); + } + + public void unregisterOnSharedPreferenceChangeListener( + OnSharedPreferenceChangeListener listener) { + listeners.remove(listener); + } + + /** + * @author lado + * + */ + public class Editor implements SharedPreferences.Editor { + + Map<String, Object> modified = new HashMap<String, Object>(); + + private boolean clear = false; + + public SharedPreferences.Editor clear() { + clear = true; + modified.clear(); + return this; + } + + public boolean commit() { + + if (instance == null) { + map.putAll(modified); + return true; + } + + instance.set(modified); + + CreateOrUpdateStatus custatus = dao.createOrUpdate(instance); + + boolean status = custatus.isCreated() || custatus.isUpdated(); + + if (status == false) + return false; + + map.putAll(modified); + + ++commits; + + // and update any listeners + for (String key : modified.keySet()) { + for (OnSharedPreferenceChangeListener listener : listeners) { + listener.onSharedPreferenceChanged( + VdrSharedPreferences.this, key); + } + } + + modified.clear(); + + return true; + } + + public android.content.SharedPreferences.Editor put(String key, + Object value) { + synchronized (this) { + modified.put(key, value); + return this; + } + } + + public android.content.SharedPreferences.Editor putBoolean(String key, + boolean value) { + return put(key, value); + } + + public android.content.SharedPreferences.Editor putFloat(String key, + float value) { + return put(key, value); + } + + public android.content.SharedPreferences.Editor putInt(String key, + int value) { + return put(key, value); + } + + public android.content.SharedPreferences.Editor putLong(String key, + long value) { + return put(key, value); + } + + public android.content.SharedPreferences.Editor putString(String key, + String value) { + return put(key, value); + } + + public android.content.SharedPreferences.Editor remove(String key) { + synchronized (this) { + modified.remove(key); + return this; + } + } + + public void apply() { + commit(); + } + + public android.content.SharedPreferences.Editor putStringSet( + String key, Set<String> values) { + synchronized (this) { + modified.put(key, (values == null) ? null + : new HashSet<String>(values)); + return this; + } + } + + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/WakeupState.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/WakeupState.java new file mode 100644 index 0000000..f7917d8 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/WakeupState.java @@ -0,0 +1,36 @@ +package de.bjusystems.vdrmanager.data; + +public class WakeupState { + + public static WakeupState OK = new WakeupState(0); + public static WakeupState FAILED = new WakeupState(1); + public static WakeupState ERROR = new WakeupState(2); + + private final int value; + private static WakeupState state; + + private WakeupState(final int value) { + this.value = value; + } + + public static WakeupState getState() { + return state; + } + + public static void setState(final WakeupState state) { + WakeupState.state = state; + } + + @Override + public boolean equals(final Object o) { + if (!(o instanceof WakeupState)) { + return false; + } + return this.value == ((WakeupState)o).value; + } + + @Override + public int hashCode() { + return Integer.valueOf(value).hashCode(); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/db/DBAccess.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/db/DBAccess.java new file mode 100644 index 0000000..f854204 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/db/DBAccess.java @@ -0,0 +1,241 @@ +package de.bjusystems.vdrmanager.data.db; + +import java.sql.SQLException; +import java.util.TimeZone; + +import android.content.Context; +import android.database.sqlite.SQLiteDatabase; +import android.util.Log; + +import com.j256.ormlite.android.apptools.OpenHelperManager; +import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; +import com.j256.ormlite.dao.RuntimeExceptionDao; +import com.j256.ormlite.support.ConnectionSource; +import com.j256.ormlite.table.TableUtils; + +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.RecentChannelDAO; +import de.bjusystems.vdrmanager.data.RecenteChannel; +import de.bjusystems.vdrmanager.data.Vdr; + +/** + * Database helper class used to manage the creation and upgrading of your + * database. This class also usually provides the DAOs used by the other + * classes. + */ +public class DBAccess extends OrmLiteSqliteOpenHelper { + + public static final String TAG = DBAccess.class.getName(); + // name of the database file for your application -- change to something + // appropriate for your app + public static final String DATABASE_NAME = "vdrmanager.db"; + // any time you make changes to your database objects, you may have to + // increase the database version + // Version 3 since 0.6 + private static final int DATABASE_VERSION = 5; + + private RuntimeExceptionDao<Vdr, Integer> vdrDAO = null; + + private RecentChannelDAO recentChannelDAO = null; + + public static String getDataBaseFile() { + return "/data/data/de.bjusystems.vdrmanager/databases/" + DATABASE_NAME; + } + + public DBAccess(Context context) { + super(context, DATABASE_NAME, null, DATABASE_VERSION, + R.raw.ormlite_config); + } + + /** + * This is called when the database is first created. Usually you should + * call createTable statements here to create the tables that will store + * your data. + */ + @Override + public void onCreate(SQLiteDatabase db, ConnectionSource connectionSource) { + try { + Log.i(DBAccess.class.getName(), "onCreate"); + TableUtils.createTable(connectionSource, Vdr.class); + TableUtils.createTable(connectionSource, RecenteChannel.class); + } catch (SQLException e) { + Log.e(DBAccess.class.getName(), "Can't create database", e); + throw new RuntimeException(e); + } + } + + /** + * This is called when your application is upgraded and it has a higher + * version number. This allows you to adjust the various data to match the + * new version number. + */ + @Override + public void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource, + int oldVersion, int newVersion) { + try { + + // Log.i(DBAccess.class.getName(), "onUpgrade"); + // TableUtils.dropTable(connectionSource, Vdr.class, true); + // after we drop the old databases, we create the new ones + // onCreate(db, connectionSource); + + if (oldVersion < 3) { + TableUtils.createTable(connectionSource, RecenteChannel.class); + getVdrDAO() + .executeRaw( + "ALTER TABLE `vdr` ADD COLUMN stz varchar;"); + + String tz = TimeZone.getDefault().getID(); + getVdrDAO() + .executeRaw( + "UPDATE `vdr` set stz = ?", tz); + } + + if(oldVersion < 4){ + getVdrDAO() + .executeRaw( + "ALTER TABLE `vdr` ADD COLUMN smarttvwebType varchar;"); + getVdrDAO() + .executeRaw( + "ALTER TABLE `vdr` ADD COLUMN smarttvwebPort int;"); + + getVdrDAO() + .executeRaw( + "UPDATE `vdr` set smarttvwebPort = ?", "8000"); + getVdrDAO() + .executeRaw( + "UPDATE `vdr` set smarttvwebType = ?", "progressive"); + + + } + + if(oldVersion < 5){ + getVdrDAO() + .executeRaw( + "ALTER TABLE `vdr` ADD COLUMN enableRemote boolean;"); + getVdrDAO() + .executeRaw( + "ALTER TABLE `vdr` ADD COLUMN svdrpPort int;"); + + getVdrDAO() + .executeRaw( + "UPDATE `vdr` set enableRemote = ?", "1"); + getVdrDAO() + .executeRaw( + "UPDATE `vdr` set svdrpPort = ?", "6419"); + + } + + } catch (SQLException e) { + Log.e(DBAccess.class.getName(), "Can't drop databases", e); + throw new RuntimeException(e); + } + } + + /** + * Close the database connections and clear any cached DAOs. + */ + @Override + public void close() { + super.close(); + vdrDAO = null; + } + + static volatile DBAccess helper; + static volatile boolean created = false; + static volatile boolean destroyed = false; + + /** + * Get a helper for this action. + */ + public static DBAccess get(Context ctx) { + + if (helper == null) { + helper = getHelperInternal(ctx); + created = true; + } + + if (helper == null) { + if (!created) { + throw new IllegalStateException( + "A call has not been made to onCreate() yet so the helper is null"); + } else if (destroyed) { + throw new IllegalStateException( + "A call to onDestroy has already been made and the helper cannot be used after that point"); + } else { + throw new IllegalStateException( + "Helper is null for some unknown reason"); + } + } else { + return helper; + } + } + + /** + * Get a connection source for this action. + */ + public ConnectionSource getConnectionSource(Context ctx) { + return get(ctx).getConnectionSource(); + } + + /** + * This is called internally by the class to populate the helper object + * instance. This should not be called directly by client code unless you + * know what you are doing. Use {@link #getHelper()} to get a helper + * instance. If you are managing your own helper creation, override this + * method to supply this activity with a helper instance. + * + * <p> + * <b> NOTE: </b> If you override this method, you most likely will need to + * override the {@link #releaseHelper(OrmLiteSqliteOpenHelper)} method as + * well. + * </p> + */ + protected static DBAccess getHelperInternal(Context context) { + @SuppressWarnings({ "unchecked", "deprecation" }) + DBAccess newHelper = (DBAccess) OpenHelperManager.getHelper(context, + DBAccess.class); + logger.trace("{}: got new helper {} from OpenHelperManager", "", + newHelper); + return newHelper; + } + + /** + * Release the helper instance created in + * {@link #getHelperInternal(Context)}. You most likely will not need to + * call this directly since {@link #onDestroy()} does it for you. + * + * <p> + * <b> NOTE: </b> If you override this method, you most likely will need to + * override the {@link #getHelperInternal(Context)} method as well. + * </p> + */ + protected void releaseHelper(DBAccess helper) { + OpenHelperManager.releaseHelper(); + logger.trace("{}: helper {} was released, set to null", this, helper); + DBAccess.helper = null; + } + + public RuntimeExceptionDao<Vdr, Integer> getVdrDAO() { + if (vdrDAO == null) { + vdrDAO = getRuntimeExceptionDao(Vdr.class); + } + return vdrDAO; + } + + public RecentChannelDAO getRecentChannelDAO() { + if (recentChannelDAO == null) { + try { + recentChannelDAO = getDao(RecenteChannel.class); + } catch (SQLException e) { + throw new RuntimeException( + "Could not create RuntimeExcepitionDao for class " + + RecenteChannel.class, e); + } + + } + + return recentChannelDAO; + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/db/EPGSearchSuggestionsProvider.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/db/EPGSearchSuggestionsProvider.java new file mode 100644 index 0000000..3ff6162 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/data/db/EPGSearchSuggestionsProvider.java @@ -0,0 +1,23 @@ +package de.bjusystems.vdrmanager.data.db; + +import android.content.SearchRecentSuggestionsProvider; + +public class EPGSearchSuggestionsProvider extends + SearchRecentSuggestionsProvider { + + + public final static String AUTHORITY = EPGSearchSuggestionsProvider.class.getName(); + + public final static int MODE = DATABASE_MODE_QUERIES;// | DATABASE_MODE_2LINES; + + public EPGSearchSuggestionsProvider() { + setupSuggestions(AUTHORITY, MODE); + } + + + public static enum SecondLine { + EPG, + EPG_SEARCH, + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/About.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/About.java new file mode 100644 index 0000000..34ae472 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/About.java @@ -0,0 +1,34 @@ +package de.bjusystems.vdrmanager.gui; + +import de.bjusystems.vdrmanager.R; +import android.app.Activity; +import android.app.AlertDialog; +import android.content.pm.PackageInfo; +import android.text.SpannableString; +import android.text.util.Linkify; + +public class About { + + public static void show(Activity activity){ + if(activity.isFinishing()){ + return; + } + + String vi = ""; + PackageInfo pi = Utils.getPackageInfo(activity); + if(pi != null){ + vi = "v"+pi.versionName; + } + //View view = activity.getLayoutInflater().inflate(R.layout.about, null); + final SpannableString s = new SpannableString(activity.getString(R.string.about_text,vi)); + Linkify.addLinks(s, Linkify.ALL); + new AlertDialog.Builder(activity) + .setTitle(R.string.about_title) + .setMessage(s) + .setPositiveButton(android.R.string.ok, null) + .setCancelable(false) + .create() + .show(); + } + } + diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/BaseActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/BaseActivity.java new file mode 100644 index 0000000..26fe8e4 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/BaseActivity.java @@ -0,0 +1,654 @@ +package de.bjusystems.vdrmanager.gui; + +import android.app.AlertDialog; +import android.app.ProgressDialog; +import android.content.Intent; +import android.content.res.Configuration; +import android.os.Bundle; +import android.support.v4.app.ActionBarDrawerToggle; +import android.support.v4.view.GravityCompat; +import android.support.v4.widget.DrawerLayout; +import android.support.v7.app.ActionBarActivity; +import android.view.Menu; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.view.View; +import android.view.View.OnClickListener; +import android.widget.AdapterView; +import android.widget.ArrayAdapter; +import android.widget.Button; +import android.widget.ListView; +import android.widget.ViewFlipper; + +import java.util.List; + +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.app.VdrManagerApp; +import de.bjusystems.vdrmanager.data.Channel; +import de.bjusystems.vdrmanager.data.Preferences; +import de.bjusystems.vdrmanager.remote.RemoteActivity; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpAsyncTask; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpClient; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpEvent; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpException; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpExceptionListener; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpFinishedListener; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpListener; + +public abstract class BaseActivity<Result, T extends ListView> extends + ActionBarActivity implements OnClickListener, SvdrpListener, + SvdrpExceptionListener, SvdrpFinishedListener<Result> { + + public static final String TAG = BaseActivity.class.getName(); + + public static final int MENU_GROUP_REFRESH = 99; + + public static final int MENU_REFRESH = 99; + + protected T listView; + + protected ViewFlipper flipper; + + private Button retry; + + private ProgressDialog progress; + + protected Preferences getPrefs(){ + return Preferences.get(); + } + + // protected SvdrpProgressDialog progress; + + private CharSequence mDrawerTitle; + private DrawerLayout mDrawerLayout; + private ListView mDrawerList; + private ActionBarDrawerToggle mDrawerToggle; + private String[] mTitles; + + abstract protected String getWindowTitle(); + + abstract protected int getMainLayout(); + + protected void noInternetConnection() { + alert(R.string.no_internet_connection); + } + + abstract protected boolean displayingResults(); + + /** + * When using the ActionBarDrawerToggle, you must call it during + * onPostCreate() and onConfigurationChanged()... + */ + + @Override + protected void onPostCreate(Bundle savedInstanceState) { + super.onPostCreate(savedInstanceState); + // Sync the toggle state after onRestoreInstanceState has occurred. + mDrawerToggle.syncState(); + } + + protected boolean isForceRefresh() { + if (forceRefresh == false) { + return false; + } + forceRefresh = false; + return true; + } + + protected boolean forceRefresh = false; + + protected void switchNoConnection() { + if (flipper == null) { + say(R.string.no_connection); + return; + } + + if (displayingResults()) { + say(R.string.no_connection); + } else { + flipper.setDisplayedChild(1); + } + } + + protected CertificateProblemDialog getCertificateProblemDialog() { + return new CertificateProblemDialog(this); + } + + @Override + public void onConfigurationChanged(final Configuration newConfig) { + Preferences.setLocale(this); + super.onConfigurationChanged(newConfig); + mDrawerToggle.onConfigurationChanged(newConfig); + } + + @Override + protected void onResume() { + Preferences.init(this); + super.onResume(); + } + + protected void initFlipper() { + this.flipper = (ViewFlipper) findViewById(R.id.flipper); + retry = (Button) findViewById(R.id.retry_button); + retry.setOnClickListener(this); + } + + @Override + public void onClick(final View v) { + if (v.getId() == R.id.retry_button) { + retry(); + } + } + + // + // protected void updateWindowTitle(int topic, int subtopic) { + // String title; + // title = getString(topic); + // if (subtopic != -1) { + // title += " > " + getString(subtopic); + // } + // setTitle(title); + // } + // + // protected void updateWindowTitle(String topic, String subtopic) { + // String title = topic; + // if (subtopic != null) { + // title += " > " + subtopic; + // } + // setTitle(title); + // } + + abstract protected int getListNavigationIndex(); + + public static final int LIST_NAVIGATION_CHANNELS = 0; + public static final int LIST_NAVIGATION_EPG_BY_TIME = 1; + public static final int LIST_NAVIGATION_EPG_BY_CHANNEL = 2; + public static final int LIST_NAVIGATION_RECORDINGS = 3; + public static final int LIST_NAVIGATION_TIMERS = 4; + public static final int LIST_NAVIGATION_REMOTE = 5; + + protected boolean hasListNavigation() { + return true; + } + + protected void initListNavigation() { + + if (hasListNavigation() == false) { + return; + } + + // getSupportActionBar().setDisplayShowTitleEnabled(false); + // + // getSupportActionBar().setNavigationMode( + // getSupportActionBar().NAVIGATION_MODE_LIST); + // + // final ArrayAdapter<CharSequence> mSpinnerAdapter = ArrayAdapter + // .createFromResource(this, R.array.navigation_array, + // android.R.layout.simple_spinner_dropdown_item); + // + // getSupportActionBar().setListNavigationCallbacks(mSpinnerAdapter, + // new OnNavigationListener() { + // + // private boolean firstHit = true; + // + // @Override + // public boolean onNavigationItemSelected( + // final int itemPosition, final long itemId) { + // + // if (firstHit == true) { + // firstHit = false; + // return false; + // } + // switch (itemPosition) { + // + // case LIST_NAVIGATION_CHANNELS: { + // startActivity(ChannelListActivity.class); + // return true; + // } + // case LIST_NAVIGATION_EPG_BY_TIME: { + // startActivity(TimeEpgListActivity.class); + // return true; + // } + // + // case LIST_NAVIGATION_EPG_BY_CHANNEL: { + // startActivity(EventEpgListActivity.class); + // return true; + // } + // + // case LIST_NAVIGATION_RECORDINGS: { + // startActivity(RecordingListActivity.class); + // return true; + // } + // + // case LIST_NAVIGATION_TIMERS: { + // startActivity(TimerListActivity.class); + // return true; + // } + // + // } + // return false; + // } + // }); + // getSupportActionBar().setSelectedNavigationItem( + // getListNavigationIndex()); + + } + + @Override + protected void onCreate(final Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + Preferences.setLocale(this); + setContentView(getMainLayout()); + progress = new ProgressDialog(this); + progress.setCancelable(false); + progress.setCanceledOnTouchOutside(false); + // progress.setOnCancelListener(new OnCancelListener() { + // @Override + // public void onCancel(DialogInterface dialog) { + // + // } + // }); + + initActionBar(); + + initListNavigation(); + + initLeftDrawer(savedInstanceState); + + // new OnNavigationListener() { + // @Override + // public boolean onNavigationItemSelected(int itemPosition, long + // itemId) { + // System.err.println("itemPosition: "+ itemPosition +", itemId:" + + // itemId); + // rturn false; + // } + // }); + + // your logic for click listner + // setListenerForActionBarCustomView(actionBarView); + + // private void setListenerForActionBarCustomView(View actionBarView) { + // ActionBarCustomViewOnClickListener actionBarCustomViewOnClickListener + // = new ActionBarCustomViewOnClickListener(); + // actionBarView.findViewById(R.id.text_view_title).setOnClickListener(actionBarCustomViewOnClickListener); + // } + + } + + protected void initLeftDrawer(final Bundle savedInstanceState) { + + mDrawerTitle = getTitle(); + + mTitles = getResources().getStringArray(R.array.navigation_array); + + mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); + mDrawerList = (ListView) findViewById(R.id.left_drawer); + + // set a custom shadow that overlays the main content when the drawer + // opens + mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, + GravityCompat.START); + // set up the drawer's list view with items and click listener + mDrawerList.setAdapter(new ArrayAdapter<String>(this, + R.layout.drawer_list_item, mTitles)); + mDrawerList.setOnItemClickListener(new DrawerItemClickListener()); + + // enable ActionBar app icon to behave as action to toggle nav drawer + getSupportActionBar().setDisplayHomeAsUpEnabled(true); + + // ActionBarDrawerToggle ties together the the proper interactions + // between the sliding drawer and the action bar app icon + mDrawerToggle = new ActionBarDrawerToggle(this, /* host Activity */ + mDrawerLayout, /* DrawerLayout object */ + R.drawable.ic_drawer, /* nav drawer image to replace 'Up' caret */ + R.string.drawer_open, /* "open drawer" description for accessibility */ + R.string.drawer_close /* "close drawer" description for accessibility */ + ) { + public void onDrawerClosed(View view) { + // getSupportActionBar().setTitle(mTitle); + //invalidateOptionsMenu(); // creates call to + // onPrepareOptionsMenu() + } + + public void onDrawerOpened(View drawerView) { + // getSupportActionBar().setTitle(mDrawerTitle); + //invalidateOptionsMenu(); // creates call to + // onPrepareOptionsMenu() + } + }; + mDrawerLayout.setDrawerListener(mDrawerToggle); + +// if (savedInstanceState == null) { +// selectItem(0); +// } + + } + + /* The click listner for ListView in the navigation drawer */ + private class DrawerItemClickListener implements + ListView.OnItemClickListener { + @Override + public void onItemClick(AdapterView<?> parent, View view, int position, + long id) { + selectItem(position); + } + } + + private void selectItem(int position) { + + // update selected item and title, then close the drawer + mDrawerList.setItemChecked(position, true); + // setTitle(mPlanetTitles[position]); + + switch (position) { + + case LIST_NAVIGATION_CHANNELS: { + startActivity(ChannelListActivity.class); + break; + } + case LIST_NAVIGATION_EPG_BY_TIME: { + startActivity(TimeEpgListActivity.class); + break; + } + + case LIST_NAVIGATION_EPG_BY_CHANNEL: { + startActivity(EventEpgListActivity.class); + break; + } + + case LIST_NAVIGATION_RECORDINGS: { + startActivity(RecordingListActivity.class); + break; + } + + case LIST_NAVIGATION_TIMERS: { + startActivity(TimerListActivity.class); + break; + } + case LIST_NAVIGATION_REMOTE: { + startActivity(RemoteActivity.class); + break; + } + } + + mDrawerLayout.closeDrawer(mDrawerList); + } + + protected void initActionBar() { + getSupportActionBar().setHomeButtonEnabled(true); + } + + public void startActivity(final Class<?> clazz) { + final Intent intent = new Intent(Intent.ACTION_VIEW); + intent.setClass(this, clazz); + startActivity(intent); + finish(); + } + + protected int getBaseMenu() { + return R.menu.refresh_filter_menu; + } + + @Override + public boolean onCreateOptionsMenu(final Menu menu) { + + // MenuItem item; + // item = menu.add(MENU_GROUP_REFRESH, MENU_REFRESH, 0, + // R.string.refresh); + // item.setIcon(R.drawable.ic_menu_refresh); + // item.setAlphabeticShortcut('r'); + final MenuInflater inf = getMenuInflater(); + inf.inflate(getBaseMenu(), menu); + + // SearchView searchView = (SearchView) + // menu.findItem(R.id.menu_search).getActionView(); + // searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName())); + + return true; + } + + abstract protected void refresh(); + + abstract protected void retry(); + + // abstract protected SvdrpClient<Result> getClient(); + + @Override + public boolean onOptionsItemSelected(final MenuItem item) { + + if (mDrawerToggle != null && mDrawerToggle.onOptionsItemSelected(item)) { + return true; + } + + switch (item.getItemId()) { + case R.id.list_refresh: + backupViewSelection(); + refresh(); + return true; + case R.id.list_filter: { + onSearchRequested(); + return true; + } + case android.R.id.home: + final Intent intent = new Intent(this, VdrManagerActivity.class); + intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); + startActivity(intent); + return true; + default: + return false; + } + } + + protected void setCurrent(final Channel channel) { + getApp().setCurrentChannel(channel); + } + + protected VdrManagerApp getApp() { + final VdrManagerApp app = (VdrManagerApp) getApplication(); + return app; + } + + // protected Channel getCurrentChannel(){ + // final Channel channel = ((VdrManagerApp) getApplication()) + // .getCurrentChannel(); + // return channel; + // } + + protected void say(final int res) { + say(this.getString(res)); + } + + protected void say(final String msg) { + Utils.say(this, msg); + } + + protected boolean noConnection(final SvdrpEvent event) { + switch (event) { + case CONNECTION_TIMEOUT: + say(R.string.progress_connect_timeout); + switchNoConnection(); + case CONNECT_ERROR: + say(R.string.progress_connect_error); + switchNoConnection(); + break; + case FINISHED_ABNORMALY: + alert(R.string.progress_connect_finished_abnormal); + switchNoConnection(); + break; + case LOGIN_ERROR: + say(R.string.progress_login_error); + switchNoConnection(); + break; + default: + return false; + } + return true; + } + + protected void alert(final String msg) { + if (isFinishing()) { + return; + } + new AlertDialog.Builder(this)// + .setMessage(msg)// + .setPositiveButton(android.R.string.ok, null)// + .create()// + .show();// + } + + protected void alert(final int resId) { + alert(getString(resId)); + } + + protected void restoreViewSelection() { + listView.setSelectionFromTop(index, top); + } + + protected void backupViewSelection() { + index = listView.getFirstVisiblePosition(); + final View v = listView.getChildAt(0); + top = (v == null) ? 0 : v.getTop(); + } + + int index; + int top; + + protected boolean checkInternetConnection() { + if (Utils.checkInternetConnection(this)) { + return true; + } + noInternetConnection(); + return false; + } + + // public void svdrpEvent(Result result) { + // resultReceived(result); + // } + + @Override + public void svdrpEvent(final SvdrpEvent event, final Throwable t) { + progress.dismiss(); + Utils.say(this, t.getMessage()); + } + + protected void addListener( + final SvdrpAsyncTask<Result, SvdrpClient<Result>> task) { + task.addSvdrpExceptionListener(this); + task.addSvdrpListener(this); + task.addSvdrpFinishedListener(this); + } + + @Override + public void svdrpEvent(final SvdrpEvent event) { + + switch (event) { + case LOGIN: + break; + case COMMAND_SENDING: + break; + case CONNECTING: + progress.setProgressStyle(ProgressDialog.STYLE_SPINNER); + setMessage(R.string.progress_connect); + if (!isFinishing()) { + progress.show(); + } + break; + case LOGGED_IN: + setMessage(R.string.progress_login); + break; + case COMMAND_SENT: + setMessage(getProgressTextId()); + break; + case DISCONNECTING: + setMessage(R.string.progress_disconnect); + break; + case DISCONNECTED: + break; + case ABORTED: + progress.dismiss(); + say(R.string.aborted); + break; + case ERROR: + progress.dismiss(); + alert(R.string.epg_client_errors); + break; + case CONNECTED: + connected(); + break; + case CONNECTION_TIMEOUT: + case CONNECT_ERROR: + case FINISHED_ABNORMALY: + case LOGIN_ERROR: + progress.dismiss(); + noConnection(event); + break; + case CACHE_HIT: + progress.dismiss(); + cacheHit(); + return; + case FINISHED_SUCCESS: + progress.dismiss(); + break; + } + // case RESULT_RECEIVED: + // resultReceived(result); + // break; + // } + } + + protected int getProgressTextId() { + return R.string.progress_loading; + } + + private void setMessage(final int progressConnect) { + progress.setMessage(getString(progressConnect)); + } + + protected boolean finishedSuccess = false; + + protected void cacheHit() { + + } + + /** + * @return false, if no results found + */ + protected abstract boolean finishedSuccess(List<Result> results); + + // /** + // * @param result + // */ + // protected abstract void resultReceived(Result result); + + protected void connected() { + if (flipper != null) { + flipper.setDisplayedChild(0); + } + } + + public void svdrpException(final SvdrpException exception) { + // svdrpException(exception); + // Log.w(TAG, exception); + alert(getString(R.string.vdr_error_text, exception.getMessage())); + } + + @Override + protected void onDestroy() { + if (progress.isShowing()) { + progress.dismiss(); + } + super.onDestroy(); + } + + @Override + public void finished(final List<Result> results) { + if (finishedSuccess(results)) { + finishedSuccess = true; + restoreViewSelection(); + } else { + say(R.string.epg_no_items); + } + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/BaseEventAdapter.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/BaseEventAdapter.java new file mode 100644 index 0000000..17edd42 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/BaseEventAdapter.java @@ -0,0 +1,365 @@ +package de.bjusystems.vdrmanager.gui; + +import java.util.ArrayList; +import java.util.List; + +import android.content.Context; +import android.text.TextUtils; +import android.util.Pair; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.ArrayAdapter; +import android.widget.Filter; +import android.widget.Filterable; +import android.widget.ImageView; +import android.widget.ProgressBar; +import android.widget.TextView; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Event; +import de.bjusystems.vdrmanager.data.EventFormatter; +import de.bjusystems.vdrmanager.data.EventListItem; +import de.bjusystems.vdrmanager.data.Recording; +import de.bjusystems.vdrmanager.data.TimerMatch; +import de.bjusystems.vdrmanager.data.Timerable; + +abstract class BaseEventAdapter<T extends EventListItem> extends + ArrayAdapter<T> implements Filterable +// , SectionIndexer +{ + + protected final static int TYPE_ITEM = 0; + protected final static int TYPE_HEADER = 1; + protected final int layout; + protected final LayoutInflater inflater; + protected final List<T> items = new ArrayList<T>(); + + protected boolean hideDescription = true; + + protected boolean hideChannelName = false; + + String highlight; + + /** + * Lock used to modify the content of {@link #mObjects}. Any write operation + * performed on the array should be synchronized on this lock. This lock is + * also used by the filter (see {@link #getFilter()} to make a synchronized + * copy of the original array of data. + */ + private final Object _Lock = new Object(); + + public BaseEventAdapter(final Context context, int layout) { + super(context, layout); + this.layout = layout; + inflater = LayoutInflater.from(context); + } + + @Override + public int getViewTypeCount() { + return 2; + } + + @Override + public void add(T object) { + items.add(object); + // if (object.isHeader()) { + // sections.add(object.getHeader()); + // } + super.add(object); + } + + @Override + public int getItemViewType(int position) { + + // get item + final EventListItem item = getItem(position); + + if (item.isHeader()) { + return TYPE_HEADER; + } + return TYPE_ITEM; + } + + public static class EventListItemHeaderHolder { + TextView header; + } + + private boolean canReuseConvertView(View convertView, int itemViewType) { + if (convertView == null) { + return false; + } + Object o = convertView.getTag(); + if (itemViewType == TYPE_ITEM) { + return o instanceof EventListItemHolder; + } + + if (itemViewType == TYPE_HEADER) { + return o instanceof EventListItemHeaderHolder; + } + + return false; + + } + + @Override + public View getView(final int position, View convertView, + final ViewGroup parent) { + + // get item + final EventListItem item = getItem(position); + + Object holder = null; + int type = getItemViewType(position); + if (canReuseConvertView(convertView, type) == false) { + switch (type) { + case TYPE_ITEM: + convertView = inflater.inflate(layout, null); + holder = getEventViewHolder(item, convertView); + break; + case TYPE_HEADER: + convertView = inflater.inflate(R.layout.header_item, null); + holder = getHeaderViewHolder(item, convertView); + break; + } + convertView.setTag(holder); + } else { + holder = convertView.getTag(); + } + + if (type == TYPE_ITEM) { + fillEventViewHolder((EventListItemHolder) holder, item); + } else { + ((EventListItemHeaderHolder) holder).header.setText(item + .getHeader()); + } + return convertView; + } + + protected EventListItemHolder getEventViewHolder(EventListItem item, + View view) { + + EventListItemHolder itemHolder = new EventListItemHolder(); + + itemHolder = new EventListItemHolder(); + + itemHolder.state = (ImageView) view.findViewById(R.id.timer_item_state); + itemHolder.other = (ImageView) view.findViewById(R.id.timer_item_other); + itemHolder.time = (TextView) view.findViewById(R.id.timer_item_time); + itemHolder.channel = (TextView) view + .findViewById(R.id.timer_item_channel); + itemHolder.title = (TextView) view.findViewById(R.id.timer_item_title); + itemHolder.progress = (ProgressBar) view + .findViewById(R.id.timer_progress); + itemHolder.shortText = (TextView) view + .findViewById(R.id.timer_item_shorttext); + itemHolder.duration = (TextView) view + .findViewById(R.id.timer_item_duration); + itemHolder.description = (TextView) view + .findViewById(R.id.event_item_description); + return itemHolder; + } + + protected void handleState(EventListItemHolder itemHolder, + EventListItem item) { + if (item.getEvent() instanceof Timerable) { + TimerMatch match = ((Timerable) item.getEvent()).getTimerMatch(); + switch (((Timerable) item.getEvent()).getTimerState()) { + case Active: + itemHolder.state.setImageResource(Utils.getTimerStateDrawable( + match, R.drawable.timer_active, + R.drawable.timer_active_begin, + R.drawable.timer_active_end, + R.drawable.timer_active_conflict)); + break; + case Inactive: + itemHolder.state.setImageResource(Utils.getTimerStateDrawable( + match, R.drawable.timer_inactive, + R.drawable.timer_inactive_begin, + R.drawable.timer_inactive_end, + R.drawable.timer_inactive)); + break; + case Recording: + itemHolder.state.setImageResource(Utils.getTimerStateDrawable( + match, R.drawable.timer_recording, + R.drawable.timer_recording_begin, + R.drawable.timer_recording_end, + R.drawable.timer_recording_conflict)); + break; + case None: + itemHolder.state.setImageResource(R.drawable.timer_none); + break; + } + } else { + itemHolder.state.setImageResource(R.drawable.timer_none); + } + + } + + public void fillEventViewHolder(EventListItemHolder itemHolder, + EventListItem item) { + + itemHolder.state.setVisibility(View.VISIBLE); + + handleState(itemHolder, item); + + final EventFormatter formatter = getEventFormatter(item); + itemHolder.time.setText(formatter.getTime()); + if (hideChannelName) { + itemHolder.channel.setVisibility(View.GONE); + } else { + itemHolder.channel.setText(item.getChannelName()); + } + + CharSequence title = Utils.highlight(formatter.getTitle(), highlight); + CharSequence shortText = Utils.highlight(formatter.getShortText(), + highlight); + itemHolder.title.setText(title); + itemHolder.shortText.setText(shortText); + + if (TextUtils.isEmpty(formatter.getDescription()) == false + && hideDescription == false) { + Pair<Boolean, CharSequence> desc = Utils.highlight2( + formatter.getDescription(), highlight); + itemHolder.description.setVisibility(View.VISIBLE); + itemHolder.description.setText(desc.second); + } else { + itemHolder.description.setVisibility(View.GONE); + } + + // TODO better render of duration + int p = Utils.getProgress(item.getEvent()); + if (p == -1) { + itemHolder.progress.setVisibility(View.GONE); + int dura = Utils.getDuration(item); + itemHolder.duration.setText(getContext().getString( + R.string.epg_duration_template, dura)); + } else { + itemHolder.progress.setVisibility(View.VISIBLE); + itemHolder.progress.setProgress(p); + int dura = Utils.getDuration(item.getEvent()); + int rest = dura - (dura * p / 100); + // on live recordings the amount of already recorded time + if (item.getEvent() instanceof Recording) { + rest = dura - rest; + } + itemHolder.duration.setText(getContext().getString( + R.string.epg_duration_template_live, rest, dura)); + } + } + + protected EventListItemHeaderHolder getHeaderViewHolder(EventListItem item, + View view) { + EventListItemHeaderHolder itemHolder = new EventListItemHeaderHolder(); + itemHolder.header = (TextView) view.findViewById(R.id.header_item); + return itemHolder; + } + + protected EventFormatter getEventFormatter(Event event) { + return new EventFormatter(event); + } + + protected void addSuper(T item) { + super.add(item); + } + + protected void clearSuper() { + super.clear(); + } + + public boolean isHideDescription() { + return hideDescription; + } + + public void setHideDescription(boolean hideDescription) { + this.hideDescription = hideDescription; + } + + public boolean isHideChannelName() { + return hideChannelName; + } + + public void setHideChannelName(boolean hideChannelName) { + this.hideChannelName = hideChannelName; + } + + protected boolean isHeader(EventListItem item) { + return item.isHeader(); + } + + // TODO implement locking in performFiltering, check the parent class + // http://stackoverflow.com/questions/5846385/how-to-update-android-listview-with-dynamic-data-in-real-time + public Filter getFilter() { + return new Filter() { + /** + * + */ + EventListItem prevHead = null; + + @Override + protected FilterResults performFiltering(CharSequence arg0) { + highlight = arg0.toString().toLowerCase(); + ArrayList<EventListItem> result = new ArrayList<EventListItem>(); + for (EventListItem event : items) { + if (isHeader(event)) { + prevHead = event; + // result.add(event); + continue; + } + if (event.getTitle().toLowerCase() + .indexOf(String.valueOf(arg0).toLowerCase()) != -1 + || event.getShortText() + .toLowerCase() + .indexOf(String.valueOf(arg0).toLowerCase()) != -1) { + if (prevHead != null) { + result.add(prevHead); + prevHead = null; + } + result.add(event); + } + } + + FilterResults fr = new FilterResults(); + fr.count = result.size(); + fr.values = result; + return fr; + } + + @Override + protected void publishResults(CharSequence arg0, FilterResults arg1) { + clearSuper(); + for (T item : (ArrayList<T>) arg1.values) { + addSuper(item); + } + notifyDataSetChanged(); + } + }; + } + + // @Override + // public int getPositionForSection(int section) { + // return 0; + // } + + // @Override + // public int getSectionForPosition(int position) { + // TODO Auto-generated method stub + // return 0; + // } + + // ArrayList<String> sections = new ArrayList<String>(); + + // @Override + // public Object[] getSections() { + // try { + // return sections.toArray(); + // } finally { + // sections.clear(); + // } + // } + + @Override + public void clear() { + super.clear(); + items.clear(); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/BaseEventListActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/BaseEventListActivity.java new file mode 100644 index 0000000..f1779d8 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/BaseEventListActivity.java @@ -0,0 +1,576 @@ +package de.bjusystems.vdrmanager.gui; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.Comparator; +import java.util.Date; +import java.util.List; + +import android.app.AlertDialog; +import android.content.Context; +import android.content.DialogInterface; +import android.content.Intent; +import android.os.Bundle; +import android.util.Log; +import android.view.ContextMenu; +import android.view.ContextMenu.ContextMenuInfo; +import android.view.Menu; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.view.MotionEvent; +import android.view.View; +import android.view.inputmethod.InputMethodManager; +import android.widget.AdapterView; +import android.widget.AdapterView.OnItemClickListener; +import android.widget.ListView; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.app.Intents; +import de.bjusystems.vdrmanager.app.VdrManagerApp; +import de.bjusystems.vdrmanager.data.Channel; +import de.bjusystems.vdrmanager.data.Event; +import de.bjusystems.vdrmanager.data.EventListItem; +import de.bjusystems.vdrmanager.data.P; +import de.bjusystems.vdrmanager.data.Preferences; +import de.bjusystems.vdrmanager.gui.SimpleGestureFilter.SimpleGestureListener; +import de.bjusystems.vdrmanager.tasks.VoidAsyncTask; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpException; + +/** + * @author lado + * + */ +public abstract class BaseEventListActivity<T extends Event> extends + BaseActivity<T, ListView> implements OnItemClickListener, + SimpleGestureListener { + + public static final String TAG = BaseEventListActivity.class.getName(); + + public static final int MENU_GROUP_SHARE = 90; + + public static final int MENU_SHARE = 90; + + public static final int MENU_GROUP_TO_CAL = 91; + + public static final int MENU_TO_CAL = 91; + + private SimpleGestureFilter detector; + + protected BaseEventAdapter<EventListItem> adapter; + + protected String highlight = null; + + protected Date lastUpdate = null; + + protected static final Date FUTURE = new Date(Long.MAX_VALUE); + + // private static final Date BEGIN = new Date(0); + + protected Channel currentChannel = null; + + // protected List<T> results = new ArrayList<T>(); + + AlertDialog sortByDialog = null; + + public static final int MENU_GROUP_DEFAULT = 0; + + public static final int MENU_GROUP_ALPHABET = 1; + + public static final int MENU_GROUP_CHANNEL = 2; + + protected int sortBy; + + @Override + protected void onCreate(final Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + sortBy = Preferences.get(this, getViewID() + "_" + P.EPG_LAST_SORT, + MENU_GROUP_DEFAULT); + // Attach view + setTitle(getWindowTitle()); + initFlipper(); + detector = new SimpleGestureFilter(this, this); + + initChannel(); + } + + private void initChannel() { + currentChannel = getApp().getCurrentChannel(); + // currentChannel = getIntent() + // .getParcelableExtra(Intents.CURRENT_CHANNEL); + } + + @Override + protected void onResume() { + super.onResume(); + if (notifyDataSetChangedOnResume()) { + adapter.notifyDataSetChanged(); + } + } + + /* + * (non-Javadoc) + * + * @see + * de.bjusystems.vdrmanager.gui.BaseActivity#onCreateOptionsMenu(android + * .view.Menu) + */ + @Override + public boolean onCreateOptionsMenu( + final Menu menu) { + super.onCreateOptionsMenu(menu); + final MenuInflater inflater = getMenuInflater(); + inflater.inflate(R.menu.epg_list_menu, menu); + return true; + } + + /** + * Prepare the current event and the chained events for + * + * @param event + */ + protected int prepareDetailsViewData(final EventListItem item, int pos) { + final VdrManagerApp app = (VdrManagerApp) getApplication(); + // remember event for details view and timer things + app.setCurrentEvent(item.getEvent()); + ArrayList<Event> current = new ArrayList<Event>(); + for (int i = 0; i < adapter.getCount(); ++i) { + EventListItem item2 = adapter.getItem(i); + if(item2.isHeader()){ + continue; + } + current.add(item2.getEvent()); + } + app.setCurrentEpgList(current); + for (int i = 0; i < pos; ++i) { + if (current.get(i) == item.getEvent()) { + return i; + } + } + + return 0; + } + + /* + * (non-Javadoc) + * + * @see android.app.Activity#onContextItemSelected(android.view.MenuItem) + */ + @Override + public boolean onContextItemSelected(final MenuItem item) { + + final AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item + .getMenuInfo(); + final EventListItem event = adapter.getItem(info.position); + + final int itemId = item.getItemId(); + + switch (itemId) { + + case R.id.epg_item_menu_live_tv: { + Utils.stream(this, event); + break; + } + + case MENU_SHARE: { + Utils.shareEvent(this, event); + break; + } + + case MENU_TO_CAL: { + Utils.addCalendarEvent(this, event); + break; + } + + case R.id.epg_item_menu_switchto: { + Utils.switchTo(this, event.getChannelId(), event.getChannelName()); + break; + } + + default: + return super.onContextItemSelected(item); + } + + return true; + } + + protected int getAvailableSortByEntries() { + return 0; + } + + protected void fillAdapter() { + + } + + /* + * (non-Javadoc) + * + * @see + * de.bjusystems.vdrmanager.gui.BaseActivity#onOptionsItemSelected(android + * .view.MenuItem) + */ + public boolean onOptionsItemSelected( + final MenuItem item) { + + switch (item.getItemId()) { + + case R.id.epg_list_sort_menu: { + + if (sortByDialog == null) { + sortByDialog = new AlertDialog.Builder(this) + .setTitle(R.string.sort) + .setIcon(android.R.drawable.ic_menu_sort_alphabetically) + .setSingleChoiceItems(getAvailableSortByEntries(), + sortBy, new DialogInterface.OnClickListener() { + @Override + public void onClick( + final DialogInterface dialog, + final int which) { + + if (sortBy == which) { + sortByDialog.dismiss(); + return; + } + + sortBy = which; + + new VoidAsyncTask() { + + @Override + protected Void doInBackground( + final Void... params) { + Preferences + .set(BaseEventListActivity.this, + getViewID() + + "_" + + P.EPG_LAST_SORT, + sortBy); + return null; + } + }.execute(); + + sortByDialog.dismiss(); + fillAdapter(); + } + + }).create(); + } + + sortByDialog.show(); + + return true; + } + + // switch (item.getItemId()) { + // case R.id.epg_menu_search: + // startSearchManager(); + // super.onSearchRequested(); + // break; + // case R.id.epg_menu_times: + // intent = new Intent(); + // /intent.setClass(this, EpgSearchTimesListActivity.class); + // startActivity(intent); + // break; + } + return super.onOptionsItemSelected(item); + } + + /* + * (non-Javadoc) + * + * @see android.app.Activity#onCreateContextMenu(android.view.ContextMenu, + * android.view.View, android.view.ContextMenu.ContextMenuInfo) + */ + @Override + public void onCreateContextMenu(final ContextMenu menu, final View v, + final ContextMenuInfo menuInfo) { + + // if (v.getId() == R.id.whatson_list) { + final AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuInfo; + + // set menu title + final EventListItem item = adapter.getItem(info.position); + + if (item.isHeader()) { + return; + } + + final MenuItem mi = menu.findItem(R.id.epg_item_menu_live_tv); + if (item.isLive() && item.getStreamId() != null) { + + mi.setVisible(true); + + } else { + + mi.setVisible(false); + } + menu.add(MENU_GROUP_SHARE, MENU_SHARE, 0, R.string.share); + menu.add(MENU_GROUP_TO_CAL, MENU_TO_CAL, 0, R.string.addtocal); + super.onCreateContextMenu(menu, v, menuInfo); + + } + + /** + * @param parent + * @param view + * @param position + * @param id + */ + @Override + public void onItemClick(final AdapterView<?> parent, final View view, + final int position, final long id) { + + // find and remember item + final EventListItem item = adapter.getItem(position); + + if (item.isHeader()) { + return; + } + + int current = prepareDetailsViewData(item, position); + + // show details + final Intent intent = new Intent(this, EpgDetailsActivity.class); + // | Intent.FLAG_ACTIVITY_SINGLE_TOP); + if (highlight != null) { + intent.putExtra(Intents.HIGHLIGHT, highlight); + } + intent.putExtra(Intents.CURRENT_EPG, current); + startActivityForResult(intent, + TimerDetailsActivity.REQUEST_CODE_TIMER_MODIFIED); + } + + protected boolean notifyDataSetChangedOnResume() { + return true; + } + + @Override + protected void onPause() { + super.onPause(); + // if (epgClient != null) { + // epgClient.abort(); + // } + // if (progress != null) { + // progress.dismiss(); + // progress = null; + // } + } + + // protected void resultReceived(T result) { + // results.add(result); + // } + + @Override + protected void onRestoreInstanceState(final Bundle savedInstanceState) { + super.onRestoreInstanceState(savedInstanceState); + final int index = savedInstanceState.getInt("INDEX"); + final int top = savedInstanceState.getInt("TOP"); + listView.setSelectionFromTop(index, top); + } + + @Override + protected void onSaveInstanceState(final Bundle outState) { + final int index = listView.getFirstVisiblePosition(); + final View v = listView.getChildAt(0); + final int top = (v == null) ? 0 : v.getTop(); + outState.putInt("INDEX", index); + outState.putInt("TOP", top); + super.onSaveInstanceState(outState); + } + + protected void dismiss(final AlertDialog dialog) { + if (dialog == null) { + return; + } + dialog.dismiss(); + } + + public boolean onSearchRequested() { + final InputMethodManager inputMgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); + inputMgr.toggleSoftInput(0, 0); + return true; + } + + protected void startSearchManager() { + final Bundle appData = new Bundle(); + startSearch(highlight, false, appData, false); + } + + @Override + public boolean dispatchTouchEvent(final MotionEvent me) { + this.detector.onTouchEvent(me); + return super.dispatchTouchEvent(me); + } + + @Override + public void onSwipe(final int direction) { + + } + + @Override + public void onDoubleTap() { + + } + + protected void sortItemsByChannel(final List<T> result) { + final Comparator<T> comparator = new Comparator<T>() { + + @Override + public int compare(final T item1, final T item2) { + return item1.getChannelNumber().compareTo( + item2.getChannelNumber()); + } + }; + Collections.sort(result, comparator); + } + + protected void sortItemsByTime(final List<T> result) { + sortItemsByTime(result, false); + } + + protected void sortItemsByTime(final List<T> result, final boolean reverse) { + Collections.sort(result, new TimeAndChannelComparator(reverse)); + } + + @Override + public void svdrpException(final SvdrpException exception) { + Log.w(TAG, exception); + alert(getString(R.string.vdr_error_text, exception.getMessage())); + } + + abstract protected boolean finishedSuccessImpl(List<T> results); + + protected String getViewID() { + return this.getClass().getSimpleName(); + } + + protected void pushResultCountToTitle() { + setTitle(getString(R.string.epg_window_title_count, getWindowTitle(), + getCACHE().size())); + } + + @Override + synchronized protected final boolean finishedSuccess(final List<T> results) { + // ProgressDialog dialog = new ProgressDialog(this); + // dialog.setMessage("Loading"); + // dialog.show(); + try { + lastUpdate = new Date(); + final boolean r = finishedSuccessImpl(results); + if (r == false) { + adapter.clear(); + adapter.notifyDataSetChanged(); + } + return r; + } finally { + // dialog.dismiss(); + // results.clear(); + } + } + + @Override + protected boolean displayingResults() { + return getCACHE().isEmpty() == false; + } + + class TitleComparator implements Comparator<Event> { + + @Override + public int compare(final Event lhs, final Event rhs) { + if (lhs == null || lhs.getTitle() == null) { + return 1; + } + if (rhs == null || rhs.getTitle() == null) { + return 0; + } + return lhs.getTitle().compareToIgnoreCase(rhs.getTitle()); + } + }; + + class TimeAndChannelComparator implements Comparator<Event> { + boolean r = false; + + TimeAndChannelComparator() { + this(false); + } + + TimeAndChannelComparator(final boolean r) { + this.r = r; + } + + @Override + public int compare(final Event item1, final Event item2) { + + final int c = item1.getStart().compareTo(item2.getStart()); + if (c != 0) { + if (r == false) { + return c; + } + return -1 * c; + } + if (item1.getChannelNumber() == null + && item2.getChannelNumber() == null) { + return 0; + } + if (item1.getChannelNumber() == null) { + return 1; + } + if (item2.getChannelNumber() == null) { + return -1; + } + return item1.getChannelNumber().compareTo(item2.getChannelNumber()); + } + } + + class TimeComparator implements Comparator<Event> { + boolean r = false; + + TimeComparator(final boolean r) { + this.r = r; + } + + @Override + public int compare(final Event item1, final Event item2) { + + final int c = item1.getStart().compareTo(item2.getStart()); + if (c == 0) { + return c; + } + if (r == false) { + return c; + } + return -1 * c; + } + } + + class ChannelComparator implements Comparator<Event> { + + @Override + public int compare(final Event item1, final Event item2) { + + if (item1.getChannelNumber() == null + && item2.getChannelNumber() == null) { + return 0; + } + if (item1.getChannelNumber() == null) { + return 1; + } + if (item2.getChannelNumber() == null) { + return -1; + } + return item1.getChannelNumber().compareTo(item2.getChannelNumber()); + } + } + + public void clearCache() { + getCACHE().clear(); + } + + protected abstract List<T> getCACHE(); + + // @Override + // protected void connected() { + // super.connected(); + // results.clear(); + // } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/BasePreferencesActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/BasePreferencesActivity.java new file mode 100644 index 0000000..50e9bb7 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/BasePreferencesActivity.java @@ -0,0 +1,203 @@ +package de.bjusystems.vdrmanager.gui; + +import android.preference.EditTextPreference; +import android.preference.ListPreference; +import android.preference.Preference; +import android.preference.PreferenceActivity; +import android.text.TextUtils; +import android.view.inputmethod.EditorInfo; +import android.widget.EditText; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.FetchEditTextPreference; + +/** + * + * Basis class for PreferencesActivities with some goodies in it + * @author lado + * + */ +public abstract class BasePreferencesActivity extends PreferenceActivity { + + protected void updateSummary(Preference ep) { + if (ep instanceof EditTextPreference) { + updateSummary((EditTextPreference) ep); + } else if (ep instanceof ListPreference) { + updateSummary((ListPreference) ep); + } else if(ep instanceof FetchEditTextPreference){ + updateSummary((FetchEditTextPreference)ep); + } + } + + /** + * If text set add it to the summary + * + * @param ep + */ + protected void updateSummary(FetchEditTextPreference ep) { + String text = ep.getText(); + if (text == null) { + text = ""; + } + setSummary(text, ep); + } + + /** + * If text set add it to the summary + * + * @param ep + */ + protected void updateSummary(EditTextPreference ep) { + String text = ep.getText(); + if (text == null) { + return; + } + + if(isPassword(ep.getEditText())){ + text = text.replaceAll(".", "*"); + } + + setSummary(text, ep); + } + + protected boolean isPassword(EditText et){ + if((et.getInputType() & EditorInfo.TYPE_TEXT_VARIATION_PASSWORD) == EditorInfo.TYPE_TEXT_VARIATION_PASSWORD){ + return true; + } + return false; + } + + protected void setSummary(CharSequence text, Preference ep){ + CharSequence sm = ep.getSummary(); + String sum; + if (sm != null) { + sum = ep.getSummary().toString(); + sum = substringBeforeLast(sum, + getString(R.string.prefs_current_value)).trim(); + } else { + sum = ""; + } + + if(TextUtils.isEmpty(text)){ + text = getString(R.string.prefs_current_value_not_set); + } + + if (isBlank(sum)) { + sum = getString(R.string.prefs_current_value_template, text); + } else { + sum = sum + " " + + getString(R.string.prefs_current_value_template, text); + } + ep.setSummary(sum); + } + + protected void updateSummary(ListPreference ep) { + CharSequence text = ep.getEntry(); + + if (text == null) { + return; + } + setSummary(text, ep); + } + + /** + * <p> + * Gets the substring before the last occurrence of a separator. The + * separator is not returned. + * </p> + * + * <p> + * A <code>null</code> string input will return <code>null</code>. An empty + * ("") string input will return the empty string. An empty or + * <code>null</code> separator will return the input string. + * </p> + * + * <pre> + * StringUtils.substringBeforeLast(null, *) = null + * StringUtils.substringBeforeLast("", *) = "" + * StringUtils.substringBeforeLast("abcba", "b") = "abc" + * StringUtils.substringBeforeLast("abc", "c") = "ab" + * StringUtils.substringBeforeLast("a", "a") = "" + * StringUtils.substringBeforeLast("a", "z") = "a" + * StringUtils.substringBeforeLast("a", null) = "a" + * StringUtils.substringBeforeLast("a", "") = "a" + * </pre> + * + * @param str + * the String to get a substring from, may be null + * @param separator + * the String to search for, may be null + * @return the substring before the last occurrence of the separator, + * <code>null</code> if null String input + * @since 2.0 + */ + public static String substringBeforeLast(String str, String separator) { + if (isEmpty(str) || isEmpty(separator)) { + return str; + } + int pos = str.lastIndexOf(separator); + if (pos == -1) { + return str; + } + return str.substring(0, pos); + } + + // Empty checks + // ----------------------------------------------------------------------- + /** + * <p> + * Checks if a String is empty ("") or null. + * </p> + * + * <pre> + * StringUtils.isEmpty(null) = true + * StringUtils.isEmpty("") = true + * StringUtils.isEmpty(" ") = false + * StringUtils.isEmpty("bob") = false + * StringUtils.isEmpty(" bob ") = false + * </pre> + * + * <p> + * NOTE: This method changed in Lang version 2.0. It no longer trims the + * String. That functionality is available in isBlank(). + * </p> + * + * @param str + * the String to check, may be null + * @return <code>true</code> if the String is empty or null + */ + public static boolean isEmpty(String str) { + return str == null || str.length() == 0; + } + + /** + * <p> + * Checks if a String is whitespace, empty ("") or null. + * </p> + * + * <pre> + * StringUtils.isBlank(null) = true + * StringUtils.isBlank("") = true + * StringUtils.isBlank(" ") = true + * StringUtils.isBlank("bob") = false + * StringUtils.isBlank(" bob ") = false + * </pre> + * + * @param str + * the String to check, may be null + * @return <code>true</code> if the String is null, empty or whitespace + * @since 2.0 + */ + public static boolean isBlank(String str) { + int strLen; + if (str == null || (strLen = str.length()) == 0) { + return true; + } + for (int i = 0; i < strLen; i++) { + if ((Character.isWhitespace(str.charAt(i)) == false)) { + return false; + } + } + return true; + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/BaseTimerEditActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/BaseTimerEditActivity.java new file mode 100644 index 0000000..9aaed58 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/BaseTimerEditActivity.java @@ -0,0 +1,243 @@ +package de.bjusystems.vdrmanager.gui; + +import android.content.Intent; +import android.view.ContextMenu; +import android.view.ContextMenu.ContextMenuInfo; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.view.View; +import android.view.View.OnClickListener; +import android.widget.AdapterView; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.app.Intents; +import de.bjusystems.vdrmanager.data.EpgCache; +import de.bjusystems.vdrmanager.data.Event; +import de.bjusystems.vdrmanager.data.EventListItem; +import de.bjusystems.vdrmanager.data.Timer; +import de.bjusystems.vdrmanager.data.TimerMatch; +import de.bjusystems.vdrmanager.data.Timerable; +import de.bjusystems.vdrmanager.tasks.DeleteTimerTask; +import de.bjusystems.vdrmanager.tasks.ToggleTimerTask; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpEvent; + +/** + * This class is a base class for all the listings, which can deal with timers + * + * @author lado + * + * @param <T> + * Class extending Event + */ +public abstract class BaseTimerEditActivity<T extends Event> extends + BaseEventListActivity<T> implements OnClickListener // SvdrpAsyncListener<Timer>, +{ + + // private static final ScheduledExecutorService worker = Executors + // .newSingleThreadScheduledExecutor(); + + // /@Override + // public boolean onPrepareOptionsMenu(Menu menu) { + // return super.onPrepareOptionsMenu(menu); + // } + /* + * (non-Javadoc) + * + * @see android.app.Activity#onContextItemSelected(android.view.MenuItem) + */ + // @Override + public boolean onContextItemSelected(final MenuItem item) { + // + final AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item + .getMenuInfo(); + final EventListItem event = adapter.getItem(info.position); + getApp().setCurrentEvent(event.getEvent()); + switch (item.getItemId()) { + case R.id.epg_item_menu_timer_add: { + + getApp().setCurrentTimer(createTimer(event)); + final Intent intent = new Intent(); + intent.setClass(this, TimerDetailsActivity.class); + intent.putExtra(Intents.TIMER_OP, Intents.ADD_TIMER); + startActivityForResult(intent, + TimerDetailsActivity.REQUEST_CODE_TIMER_ADD); + } + break; + case R.id.epg_item_menu_timer_modify: { + getApp().setCurrentTimer(getTimer(event)); + final Intent intent = new Intent(); + intent.setClass(this, TimerDetailsActivity.class); + intent.putExtra(Intents.TIMER_OP, Intents.EDIT_TIMER); + startActivityForResult(intent, + TimerDetailsActivity.REQUEST_CODE_TIMER_EDIT); + break; + } + case R.id.epg_item_menu_timer_delete: { + backupViewSelection(); + deleteTimer(getTimer(event)); + break; + } + case R.id.epg_item_menu_timer_toggle: { + backupViewSelection(); + toggleTimer(getTimer(event)); + break; + } + default: + return super.onContextItemSelected(item); + } + + return true; + } + + /* + * (non-Javadoc) + * + * @see android.app.Activity#onCreateContextMenu(android.view.ContextMenu, + * android.view.View, android.view.ContextMenu.ContextMenuInfo) + */ + @Override + public void onCreateContextMenu(final ContextMenu menu, final View v, + final ContextMenuInfo menuInfo) { + // if (v.getId() == R.id.whatson_list) { + final MenuInflater inflater = getMenuInflater(); + final AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuInfo; + + // set menu title + final EventListItem item = adapter.getItem(info.position); + + if (item.isHeader()) { + return; + } + + // final EventFormatter formatter = new EventFormatter(item); + menu.setHeaderTitle(item.getTitle()); + + inflater.inflate(R.menu.epg_list_item_menu, menu); + Timer timer = getTimer(item); + // remove unneeded menu items + if (timer == null || (Utils.getTimerMatch(item, timer) == TimerMatch.Full == false)) { //Bug #1372 + super.onCreateContextMenu(menu, v, menuInfo); + } else { + + menu.findItem(R.id.epg_item_menu_timer_add).setVisible(false); + menu.findItem(R.id.epg_item_menu_timer_modify).setVisible(true); + menu.findItem(R.id.epg_item_menu_timer_delete).setVisible(true); + final MenuItem enableMenuItem = menu + .findItem(R.id.epg_item_menu_timer_toggle); + enableMenuItem.setVisible(true); + enableMenuItem + .setTitle(timer.isEnabled() ? R.string.epg_item_menu_timer_disable + : R.string.epg_item_menu_timer_enable); + } + + + } + + protected Timer createTimer(EventListItem item) { + Event e = item.getEvent(); + if (e instanceof Timerable == false) { + return null; + } + return ((Timerable) e).createTimer(); + + } + + /** + * Extract a Timer from a given {@link EventListItem} + * + * @param item + * @return Timer if any on the event + */ + protected Timer getTimer(EventListItem item) { + Event e = item.getEvent(); + if (e instanceof Timerable == false) { + return null; + } + return ((Timerable) e).getTimer(); + } + + protected void toggleTimer(final Timer timer) { + final ToggleTimerTask task = new ToggleTimerTask(this, timer) { + @Override + public void finished(SvdrpEvent event) { + timerModified(timer); + restoreViewSelection(); + } + }; + task.start(); + } + + /** + * Delete a given timer + * + * @param timer + */ + protected void deleteTimer(final Timer timer) { + // backupViewSelection(); + final DeleteTimerTask task = new DeleteTimerTask(this, timer) { + @Override + public void finished(SvdrpEvent event) { + timerModified(timer); + restoreViewSelection(); + } + }; + task.start(); + } + + protected void timerModified() { + timerModified(null); + } + + /** + * Is called, if a timer has been changed and so update of the list is + * required + */ + protected void timerModified(final Timer timer) { + backupViewSelection(); + if(timer != null && timer.getChannelId()!=null){ + EpgCache.CACHE.remove(timer.getChannelId()); + } + // say(R.string.update_will_start_in); + // Runnable task = new Runnable() { + // public void run() { + refresh(); + + // } + // }; + // worker.schedule(task, 1000, TimeUnit.MILLISECONDS); + } + + @Override + protected void onResume() { + super.onResume(); + } + + /* + * (non-Javadoc) + * + * @see android.app.Activity#onActivityResult(int, int, + * android.content.Intent) + */ + @Override + protected void onActivityResult(int requestCode, int resultCode, Intent data) { + super.onActivityResult(requestCode, resultCode, data); + + if (resultCode != RESULT_OK) { + return; + } + if (requestCode == TimerDetailsActivity.REQUEST_CODE_TIMER_EDIT) { + timerModified(); + return; + } + if (requestCode == TimerDetailsActivity.REQUEST_CODE_TIMER_MODIFIED) { + timerModified(); + return; + } + + if (requestCode == TimerDetailsActivity.REQUEST_CODE_TIMER_ADD) { + timerModified(); + return; + } + + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/CertificateProblemDialog.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/CertificateProblemDialog.java new file mode 100644 index 0000000..b0c58df --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/CertificateProblemDialog.java @@ -0,0 +1,105 @@ +package de.bjusystems.vdrmanager.gui; + +import java.security.cert.X509Certificate; +import java.util.concurrent.Semaphore; + +import android.app.Activity; +import android.app.AlertDialog; +import android.content.DialogInterface; +import android.content.DialogInterface.OnClickListener; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.utils.svdrp.CertificateProblemListener; + +public class CertificateProblemDialog implements CertificateProblemListener { + + /** Context */ + private final Activity activity; + /** User wanted action */ + CertificateProblemAction action; + + /** + * Constructor + * @param activity Context + */ + public CertificateProblemDialog(final Activity activity) { + this.activity = activity; + } + + @Override + public CertificateProblemAction reportProblem(final X509Certificate[] chain, final String authType) { + + // Semaphore to implement a modal dialog + final Semaphore semaphore = new Semaphore(0, true); + + // certificate properties + final String[] values = chain[0].getSubjectDN().getName().split(","); + String host = "???"; + for(String value : values) { + if (value.contains("CN=")) { + host = value.replace("CN=", "").trim(); + break; + } + } + final String creationDate = chain[0].getNotBefore().toLocaleString(); + final String validUntil = chain[0].getNotAfter().toLocaleString(); + + // message + final CharSequence message = String.format(activity.getString(R.string.certificate_problem_message_text), host, creationDate, validUntil); + + // create dialog builder + final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(activity); + alertDialogBuilder.setTitle(R.string.certificate_problem_message_title); + alertDialogBuilder.setMessage(message); + alertDialogBuilder.setCancelable(false); + + // buttons + alertDialogBuilder.setNegativeButton(R.string.certificate_not_accepted, new OnClickListener() { + @Override + public void onClick(final DialogInterface dialog, final int which) { + action = CertificateProblemAction.ABORT; + dialog.cancel(); + semaphore.release(); + } + }); + alertDialogBuilder.setNeutralButton(R.string.certificate_accept_once, new OnClickListener() { + @Override + public void onClick(final DialogInterface dialog, final int which) { + action = CertificateProblemAction.ACCEPT_ONCE; + dialog.cancel(); + semaphore.release(); + } + }); + alertDialogBuilder.setPositiveButton(R.string.certificate_accepted_forever, new OnClickListener() { + @Override + public void onClick(final DialogInterface dialog, final int which) { + action = CertificateProblemAction.ACCEPT_FOREVER; + dialog.cancel(); + semaphore.release(); + } + }); + + // show the dialog + + activity.runOnUiThread(new Runnable() { + @Override + public void run() { + final AlertDialog dialog = alertDialogBuilder.create(); + dialog.show(); + } + }); + + + try { + semaphore.acquire(); + } catch (final InterruptedException e) { + // NOP + } + + return action; + } + + @Override + public Activity getCurrentActivity() { + return activity; + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/ChannelAdapter.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/ChannelAdapter.java new file mode 100644 index 0000000..289dc63 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/ChannelAdapter.java @@ -0,0 +1,258 @@ +package de.bjusystems.vdrmanager.gui; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Map; + +import android.content.Context; +import android.util.Pair; +import android.view.LayoutInflater; +import android.view.View; +import android.view.ViewGroup; +import android.widget.BaseExpandableListAdapter; +import android.widget.Filter; +import android.widget.Filterable; +import android.widget.ImageView; +import android.widget.TextView; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Channel; +import de.bjusystems.vdrmanager.data.Preferences; +import de.bjusystems.vdrmanager.utils.svdrp.ChannelClient; + +class ChannelAdapter extends BaseExpandableListAdapter implements Filterable// , +// SectionIndexer +{ + @Override + public boolean areAllItemsEnabled() { + return true; + } + + private Context context; + + Map<String, ArrayList<Channel>> channels = new HashMap<String, ArrayList<Channel>>(); + + ArrayList<String> groups = new ArrayList<String>(); + + private boolean showChannelNumber; + + public ChannelAdapter(Context context) { + this.context = context; + inflater = LayoutInflater.from(context); + this.showChannelNumber = Preferences.get().isShowChannelNumbers(); + } + + private LayoutInflater inflater; + + private int groupBy = -1; + + private boolean reverse = false; + + public void fill(ArrayList<String> groups, + Map<String, ArrayList<Channel>> data, int groupBy, boolean reverse) { + this.groupBy = groupBy; + this.groups.clear(); + this.groups.addAll(groups); + channels.clear(); + channels.putAll(data); + notifyDataSetChanged(); + + } + + public Object getChild(int groupPosition, int childPosition) { + String gn = groups.get(groupPosition); + ArrayList<Channel> channels = this.channels.get(gn); + return channels.get(childPosition); + } + + public long getChildId(int groupPosition, int childPosition) { + return childPosition; + } + + // Return a child view. You can load your custom layout here. + + public View getChildView(int groupPosition, int childPosition, + boolean isLastChild, View convertView, ViewGroup parent) { + + Channel item = (Channel) getChild(groupPosition, childPosition); + + ChannelHolder itemHolder = new ChannelHolder(); + + // recycle view? + View view = convertView; + if (view == null) { + view = inflater.inflate(R.layout.child_layout, null); + itemHolder = new ChannelHolder(); + + itemHolder.name = (TextView) view.findViewById(R.id.channel_name); + itemHolder.type = (ImageView) view.findViewById(R.id.channel_type); + itemHolder.aux = (TextView) view.findViewById(R.id.channel_aux); + + view.setTag(itemHolder); + } else { + itemHolder = (ChannelHolder) view.getTag(); + } + + //view.setBackgroundColor(Color.BLACK); + + CharSequence name = item.getName(); + name = Utils.highlight(String.valueOf(name), channelFilter); + + if (showChannelNumber) { + name = item.getNumber() + " - " + name; + } + itemHolder.name.setText(name); + + if (groupBy == ChannelListActivity.MENU_PROVIDER) { + itemHolder.aux.setText(item.getGroup()); + } else if(groupBy == ChannelListActivity.MENU_GROUP) { + itemHolder.aux.setText(item.getProvider()); + } else if(groupBy== ChannelListActivity.MENU_SOURCE){ + itemHolder.aux.setText(item.getSource()); + } else { + itemHolder.aux.setText(item.getProvider()); + } + + return view; + } + + public int getChildrenCount(int groupPosition) { + String gn = groups.get(groupPosition); + ArrayList<Channel> channels = this.channels.get(gn); + return channels.size(); + } + + public String getGroup(int groupPosition) { + return groups.get(groupPosition); + } + + public int getGroupCount() { + return groups.size(); + } + + public long getGroupId(int groupPosition) { + return groupPosition; + } + + // Return a group view. You can load your custom layout here. + + public View getGroupView(int groupPosition, boolean isExpanded, + View convertView, ViewGroup parent) { + + String group = (String) getGroup(groupPosition); + + int channelCount = this.channels.get(group).size(); + + CharSequence groupDisplay = Utils.highlight(group, groupFilter); + + ChannelHolder itemHolder = new ChannelHolder(); + + // recycle view? + View view = convertView; + if (view == null) { + view = inflater.inflate(R.layout.group_layout, null); + itemHolder = new ChannelHolder(); + + itemHolder.name = (TextView) view.findViewById(R.id.group_name); + itemHolder.aux = (TextView) view.findViewById(R.id.channel_count); + // itemHolder.type = (ImageView) + // view.findViewById(R.id.channel_type); + + view.setTag(itemHolder); + } else { + itemHolder = (ChannelHolder) view.getTag(); + } + itemHolder.name.setText(groupDisplay); + itemHolder.aux.setText(String.valueOf(channelCount)); + + return view; + + } + + @Override + public void notifyDataSetChanged() { + super.notifyDataSetChanged(); + } + + public boolean hasStableIds() { + return true; + } + + public boolean isChildSelectable(int arg0, int arg1) { + return true; + } + + private String groupFilter = null; + + private String sourceFilter = null; + + private String channelFilter = null; + + public Filter getFilter() { + return new Filter() { + @Override + protected FilterResults performFiltering(CharSequence arg0) { + FilterResults fr = new FilterResults(); + String q = String.valueOf(arg0).toLowerCase(); + ArrayList<String> groups = new ArrayList<String>(); + HashMap<String, ArrayList<Channel>> groupChannels = new HashMap<String, ArrayList<Channel>>(); + if (groupBy == ChannelListActivity.MENU_GROUP) { + groupFilter = String.valueOf(arg0).toLowerCase(); + for (String str : ChannelClient.getChannelGroups()) { + String g = str.toLowerCase(); + if (g.indexOf(q) != -1) { + groups.add(str); + groupChannels.put(str, ChannelClient + .getGroupChannels().get(str)); + } + } + + } else if (groupBy == ChannelListActivity.MENU_PROVIDER) { + groupFilter = String.valueOf(arg0).toLowerCase(); + for (Map.Entry<String, ArrayList<Channel>> p : ChannelClient + .getProviderChannels().entrySet()) { + String pr = p.getKey(); + String g = pr.toLowerCase(); + if (g.indexOf(q) != -1) { + groups.add(pr); + groupChannels.put(pr, p.getValue()); + } + } + + } else if(groupBy == ChannelListActivity.MENU_SOURCE) { + sourceFilter = String.valueOf(arg0).toLowerCase(); + for (Map.Entry<String, ArrayList<Channel>> p : ChannelClient + .getSourceChannels().entrySet()) { + String pr = p.getKey(); + String g = pr.toLowerCase(); + if (g.indexOf(q) != -1) { + groups.add(pr); + groupChannels.put(pr, p.getValue()); + } + } + } else { + channelFilter = String.valueOf(arg0).toLowerCase(); + ArrayList<Channel> channels = new ArrayList<Channel>(); + for(Channel c : ChannelClient.getChannels()){ + String cname = c.getName(); + String tmp = cname.toLowerCase(); + if(tmp.indexOf(channelFilter) != -1){ + channels.add(c); + } + } + String fakeGroup = context.getString(R.string.groupby_name_all_channels_group); + groups.add (fakeGroup); + groupChannels.put(fakeGroup, channels); + } + fr.values = Pair.create(groups, groupChannels); + return fr; + } + + @Override + protected void publishResults(CharSequence arg0, FilterResults arg1) { + Pair<ArrayList<String>, HashMap<String, ArrayList<Channel>>> res = (Pair<ArrayList<String>, HashMap<String, ArrayList<Channel>>>) arg1.values; + fill(res.first, res.second, groupBy, reverse); + + } + }; + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/ChannelEventAdapter.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/ChannelEventAdapter.java new file mode 100644 index 0000000..475f3e6 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/ChannelEventAdapter.java @@ -0,0 +1,22 @@ +package de.bjusystems.vdrmanager.gui; + +import android.content.Context; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Event; +import de.bjusystems.vdrmanager.data.EventFormatter; +import de.bjusystems.vdrmanager.data.EventListItem; + +class ChannelEventAdapter extends BaseEventAdapter<EventListItem> +{ + + + public ChannelEventAdapter(final Context context) { + super(context, R.layout.epg_event_item); + hideChannelName = true; + } + + @Override + protected EventFormatter getEventFormatter(Event event) { + return new EventFormatter(event,true); + } +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/ChannelHolder.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/ChannelHolder.java new file mode 100644 index 0000000..e103449 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/ChannelHolder.java @@ -0,0 +1,10 @@ +package de.bjusystems.vdrmanager.gui; + +import android.widget.ImageView; +import android.widget.TextView; + +class ChannelHolder { + public ImageView type; + public TextView name; + public TextView aux; +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/ChannelListActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/ChannelListActivity.java new file mode 100644 index 0000000..d5b0b3f --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/ChannelListActivity.java @@ -0,0 +1,631 @@ +package de.bjusystems.vdrmanager.gui; + +import android.app.Activity; +import android.app.AlertDialog; +import android.content.Context; +import android.content.DialogInterface; +import android.content.Intent; +import android.os.Build; +import android.os.Bundle; +import android.text.TextUtils; +import android.view.ContextMenu; +import android.view.ContextMenu.ContextMenuInfo; +import android.view.Menu; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.view.View; +import android.view.ViewGroup; +import android.view.inputmethod.InputMethodManager; +import android.widget.ArrayAdapter; +import android.widget.ExpandableListView; +import android.widget.ExpandableListView.ExpandableListContextMenuInfo; +import android.widget.ExpandableListView.OnChildClickListener; +import android.widget.ExpandableListView.OnGroupClickListener; +import android.widget.TextView; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Channel; +import de.bjusystems.vdrmanager.data.P; +import de.bjusystems.vdrmanager.data.Preferences; +import de.bjusystems.vdrmanager.data.RecenteChannel; +import de.bjusystems.vdrmanager.data.db.DBAccess; +import de.bjusystems.vdrmanager.tasks.VoidAsyncTask; +import de.bjusystems.vdrmanager.utils.svdrp.ChannelClient; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpAsyncTask; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpClient; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.Comparator; +import java.util.HashMap; +import java.util.List; + +/** + * This class is used for showing what's current running on all channels + * + * @author bju + */ +public class ChannelListActivity extends + BaseActivity<Channel, ExpandableListView> implements + OnChildClickListener, OnGroupClickListener { + + private static final String TAG = ChannelListActivity.class.getName(); + + ChannelAdapter adapter; + + Preferences prefs; + + // private static final LinkedList<Channel> RECENT = new + // LinkedList<Channel>(); + + public static final int MENU_GROUP = 0; + public static final int MENU_PROVIDER = 1; + public static final int MENU_SOURCE = 2; + public static final int MENU_NAME = 3; + + public static final boolean GROUP_NATURAL = false; + + public static final boolean GROUP_REVERSE = true; + + private int groupBy; + + private boolean groupByReverse; + + final static ArrayList<String> ALL_CHANNELS_GROUP = new ArrayList<String>(1); + + @Override + protected void onResume() { + super.onResume(); + } + + + + @Override + protected void onCreate(final Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + // Attach view + + setTitle(getWindowTitle()); + initFlipper(); + + groupBy = Preferences.get(this, P.CHANNELS_LAST_ORDER, MENU_GROUP); + groupByReverse = Preferences.get(this, P.CHANNELS_LAST_ORDER_REVERSE, + GROUP_NATURAL); + + adapter = new ChannelAdapter(this); + + listView = (ExpandableListView) findViewById(R.id.channel_list); + listView.setOnChildClickListener(this); + listView.setTextFilterEnabled(true); + listView.setFastScrollEnabled(true); + listView.setAdapter(adapter); + // register context menu + registerForContextMenu(listView); + + + + startChannelQuery(); + + } + + + + @Override + protected void onPause() { + super.onPause(); + } + + private void startChannelQuery() { + backupViewSelection(); + startChannelQuery(true); + } + + private void startChannelQuery(final boolean useCache) { + + if (checkInternetConnection() == false) { + return; + } + + final ChannelClient channelClient = new ChannelClient( + getCertificateProblemDialog()); + + if (useCache == false) { + ChannelClient.clearCache(); + } + + // create background task + final SvdrpAsyncTask<Channel, SvdrpClient<Channel>> task = new SvdrpAsyncTask<Channel, SvdrpClient<Channel>>( + channelClient); + + addListener(task); + // task.addSvdrpExceptionListener(this); + // task.addSvdrpResultListener(this); + // task.addSvdrpListener(this); + // task.addSvdrpFinishedListener(this); + + // start task + task.run(); + } + + static RecentChannelsAdapter RECENT_ADAPTER = null; + + static class RecentChannelsAdapter extends ArrayAdapter<Channel> { + private final Activity context; + int resId; + + public RecentChannelsAdapter(final Activity context) { + super(context, android.R.layout.simple_list_item_1); + this.context = context; + showChannelNumbers = Preferences.get().isShowChannelNumbers(); + + if (Build.VERSION.SDK_INT < 11) { + resId = android.R.layout.select_dialog_item; + } else { + resId = android.R.layout.simple_list_item_1; + } + } + + public boolean showChannelNumbers; + + @Override + public View getView(final int position, final View convertView, + final ViewGroup parent) { + // recycle view? + TextView text1; + View view = convertView; + if (view == null) { + view = this.context.getLayoutInflater().inflate(resId, null); + text1 = (TextView) view.findViewById(android.R.id.text1); + view.setTag(text1); + } else { + text1 = (TextView) view.getTag(); + } + + final Channel c = getItem(position); + String text = showChannelNumbers ? text = c.toString() : c + .getName(); + text1.setText(text); + return view; + + } + } + + private ArrayAdapter<Channel> getRecentAdapter() { + if (RECENT_ADAPTER != null) { + RECENT_ADAPTER.showChannelNumbers = Preferences.get() + .isShowChannelNumbers(); + RECENT_ADAPTER.notifyDataSetChanged(); + return RECENT_ADAPTER; + } + + RECENT_ADAPTER = new RecentChannelsAdapter(this); + return RECENT_ADAPTER; + + } + + private void fillAdapter() { + switch (groupBy) { + case MENU_GROUP: + final ArrayList<String> cgs = ChannelClient.getChannelGroups(); + adapter.fill(cgs, ChannelClient.getGroupChannels(), groupBy, + groupByReverse); + if (cgs.size() == 1) {// one group or first no first group + listView.expandGroup(0); + } else if ((cgs.size() > 1 && TextUtils.isEmpty(cgs.get(0)))) { + listView.expandGroup(0); + } + updateWindowTitle(); + break; + + case MENU_SOURCE: + final ArrayList<String> css = ChannelClient.getChannelSources(); + adapter.fill(css, ChannelClient.getSourceChannels(), groupBy, + groupByReverse); + if (css.size() == 1) {// one group or first no first group + listView.expandGroup(0); + } else if ((css.size() > 1 && TextUtils.isEmpty(css.get(0)))) { + listView.expandGroup(0); + } + updateWindowTitle(); + break; + + case MENU_PROVIDER: + final ArrayList<String> gs = new ArrayList<String>(ChannelClient + .getProviderChannels().keySet()); + adapter.fill(gs, ChannelClient.getProviderChannels(), groupBy, + groupByReverse); + if (gs.size() == 1) { + listView.expandGroup(0); + } + updateWindowTitle(); + break; + case MENU_NAME: + if (ALL_CHANNELS_GROUP.isEmpty()) { + ALL_CHANNELS_GROUP + .add(getString(R.string.groupby_name_all_channels_group)); + } + final HashMap<String, ArrayList<Channel>> channels = new HashMap<String, ArrayList<Channel>>( + 1); + ArrayList<Channel> channelsSorted = ChannelClient.getChannels(); + Collections.sort(channelsSorted, new Comparator<Channel>() { + + @Override + public int compare(Channel lhs, Channel rhs) { + String lhsn = lhs.getName(); + String rhsn = rhs.getName(); + if (lhsn == null) { + return 1; + } + if (rhsn == null) { + return -1; + } + return lhsn.compareToIgnoreCase(rhsn); + } + }); + channels.put(getString(R.string.groupby_name_all_channels_group), + channelsSorted); + adapter.fill(ALL_CHANNELS_GROUP, channels, groupBy, groupByReverse); + listView.expandGroup(0); + updateWindowTitle(); + } + adapter.notifyDataSetChanged(); + } + + @Override + public final boolean onCreateOptionsMenu(final Menu menu) { + super.onCreateOptionsMenu(menu); + + MenuInflater inflater = getMenuInflater(); + inflater.inflate(R.menu.channellist, menu); + + return true; + } + + private int getAvailableGroupByEntries() { + return R.array.channels_group_by; + } + + AlertDialog groupByDialog = null; + + @Override + public boolean onOptionsItemSelected(final MenuItem item) { + + switch (item.getItemId()) { + case R.id.channels_groupby: + // case MENU_PROVIDER: + // case MENU_NAME: + if (groupByDialog == null) { + groupByDialog = new AlertDialog.Builder(this) + .setTitle(R.string.menu_groupby) + .setIcon(android.R.drawable.ic_menu_sort_alphabetically) + .setSingleChoiceItems(getAvailableGroupByEntries(), + groupBy, new DialogInterface.OnClickListener() { + @Override + public void onClick( + final DialogInterface dialog, + final int which) { + + final boolean reversed = which == groupBy ? true + : false; + groupBy = which; + new VoidAsyncTask() { + + @Override + protected Void doInBackground( + final Void... params) { + + if (reversed) { + if (groupByReverse == true) { + groupByReverse = false; + } else { + groupByReverse = true; + } + Preferences + .set(ChannelListActivity.this, + P.CHANNELS_LAST_ORDER_REVERSE, + groupByReverse); + + } else { + Preferences + .set(ChannelListActivity.this, + P.CHANNELS_LAST_ORDER, + groupBy); + } + return null; + } + }.execute(); + + fillAdapter(); + groupByDialog.dismiss(); + } + }).create(); + } + + groupByDialog.show(); + + return true; + case R.id.channels_recent_channels: + + final String order = Preferences.get(ChannelListActivity.this, + "gui_recent_channels_order", "most"); + + List<RecenteChannel> rcs = null; + + if (order.equals("most")) { + rcs = DBAccess + .get(ChannelListActivity.this) + .getRecentChannelDAO() + .loadByRecentUse( + Preferences.get().getMaxRecentChannels()); + } else if (order.equals("last")) { + rcs = DBAccess + .get(ChannelListActivity.this) + .getRecentChannelDAO() + .loadByLastAccess( + Preferences.get().getMaxRecentChannels()); + } else { + return true; + } + + if (rcs.isEmpty()) { + say(R.string.recent_channels_no_history); + return true; + } + + if (Preferences.get().getMaxRecentChannels() <= 0) { + say(R.string.recent_channels_no_history); + return true; + } + + final ArrayAdapter<Channel> recentAdapter = getRecentAdapter(); + + recentAdapter.clear(); + for (final Channel c : DBAccess.get(ChannelListActivity.this) + .getRecentChannelDAO() + .getRecentChannels(ChannelClient.getIdChannels(), rcs)) { + recentAdapter.add(c); + } + + new AlertDialog.Builder(this) + .setTitle(R.string.recent_channels) + .setAdapter(getRecentAdapter(), + new DialogInterface.OnClickListener() { + + @Override + public void onClick( + final DialogInterface dialog, + final int which) { + final Channel c = recentAdapter + .getItem(which); + startChannelEPG(c); + } + })// + .create().show(); + return true; + default: + return super.onOptionsItemSelected(item); + } + } + + @Override + public void onCreateContextMenu(final ContextMenu menu, final View v, + final ContextMenuInfo menuInfo) { + final ExpandableListView.ExpandableListContextMenuInfo info = (ExpandableListView.ExpandableListContextMenuInfo) menuInfo; + final int type = ExpandableListView + .getPackedPositionType(info.packedPosition); + final int group = ExpandableListView + .getPackedPositionGroup(info.packedPosition); + final int child = ExpandableListView + .getPackedPositionChild(info.packedPosition); + // Only create a context menu for child items + if (type == ExpandableListView.PACKED_POSITION_TYPE_CHILD) { + // Array created earlier when we built the expandable list + final Channel item = (Channel) adapter.getChild(group, child); + // if (v.getId() == R.id.channel_list) { + + final MenuInflater inflater = getMenuInflater(); + menu.setHeaderTitle(item.getName()); + inflater.inflate(R.menu.channel_list_item_menu, menu); + + } else if (type == ExpandableListView.PACKED_POSITION_TYPE_GROUP) { + /* + * http://projects.vdr-developer.org/issues/722 String grp = + * adapter.getGroup(group); final MenuInflater infl = + * getMenuInflater(); menu.setHeaderTitle(grp); + * infl.inflate(R.menu.channel_list_group_menu, menu); + */ + } + } + + @Override + public boolean onContextItemSelected(final MenuItem item) { + + final ExpandableListContextMenuInfo info = (ExpandableListContextMenuInfo) item + .getMenuInfo(); + + // String title = ((TextView) info.targetView).getText().toString(); + + final int type = ExpandableListView + .getPackedPositionType(info.packedPosition); + + Channel channel = null; + if (type == ExpandableListView.PACKED_POSITION_TYPE_CHILD) { + final int groupPos = ExpandableListView + .getPackedPositionGroup(info.packedPosition); + final int childPos = ExpandableListView + .getPackedPositionChild(info.packedPosition); + channel = (Channel) adapter.getChild(groupPos, childPos); + switch (item.getItemId()) { + // case R.id.channel_item_menu_epg: + // startChannelEPG(channel); + // break; + case R.id.channel_item_menu_stream: + // show live stream + Utils.stream(this, channel); + break; + + // case R.id.channel_item_menu_hide: + // TODO http://projects.vdr-developer.org/issues/722 + // break; + // case R.id.channel_item_menu_hide_permanent: + // TODO http://projects.vdr-developer.org/issues/722 + // break; + + case R.id.channel_item_menu_switch: + Utils.switchTo(this, channel); + break; + } + + return true; + } else if (type == ExpandableListView.PACKED_POSITION_TYPE_GROUP) { + final int groupPos = ExpandableListView + .getPackedPositionGroup(info.packedPosition); + + return true; + } + + return false; + + } + + @Override + public boolean onSearchRequested() { + final InputMethodManager inputMgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); + inputMgr.toggleSoftInput(0, 0); + return true; + } + + @Override + public boolean onGroupClick(final ExpandableListView arg0, final View arg1, + final int arg2, final long arg3) { + return true; + } + + private void startChannelEPG(final Channel channel) { + new VoidAsyncTask() { + + @Override + protected Void doInBackground(final Void... arg0) { + final int max = Preferences.get().getMaxRecentChannels(); + if (max <= 0) { + return null; + } + + DBAccess.get(ChannelListActivity.this).getRecentChannelDAO() + .hit(channel.getId()); + + return null; + } + }.execute((Void) null); + // for(int i = 0; i < recent) + // find and remember item + // final Channel channel = adapter.getItem(position); + // final VdrManagerApp app = (VdrManagerApp) getApplication(); + // app.setCurrentChannel(channel); + + // show details + final Intent intent = new Intent(); + getApp().setCurrentChannel(channel); + // intent.putExtra(Intents.CURRENT_CHANNEL, channel); + intent.setClass(this, EventEpgListActivity.class); + startActivity(intent); + } + + @Override + public boolean onChildClick(final ExpandableListView parent, final View v, + final int groupPosition, final int childPosition, final long id) { + final Channel channel = (Channel) adapter.getChild(groupPosition, + childPosition); + startChannelEPG(channel); + return false; + } + + @Override + protected void refresh() { + backupViewSelection(); + startChannelQuery(false); + } + + @Override + protected void retry() { + refresh(); + } + + @Override + protected int getMainLayout() { + return R.layout.channel_list; + } + + private String resolveWindowTitle() { + final StringBuilder sb = new StringBuilder(); + switch (groupBy) { + case MENU_NAME: + sb.append(getString(R.string.action_menu_channels)) + .append(" > ") + .append(getString(R.string.groupby_name_all_channels_group)); + break; + case MENU_PROVIDER: + sb.append(getString(R.string.action_menu_channels)) + .append(" > ") + .append(getString(R.string.groupby_window_title_templte, + getString(R.string.groupby_provider))); + break; + case MENU_GROUP: + sb.append(getString(R.string.action_menu_channels)) + .append(" > ") + .append(getString(R.string.groupby_window_title_templte, + getString(R.string.groupby_group))); + break; + + case MENU_SOURCE: { + sb.append(getString(R.string.action_menu_channels)) + .append(" > ") + .append(getString(R.string.groupby_window_title_templte, + getString(R.string.groupby_source))); + break; + } + } + + return sb.toString(); + } + + private void updateWindowTitle() { + setTitle(getString(R.string.channels_window_title_count, + resolveWindowTitle(), adapter.groups.size(), ChannelClient + .getChannels().size())); + } + + @Override + protected synchronized boolean finishedSuccess(final List<Channel> results) { + fillAdapter(); + restoreViewSelection(); + updateWindowTitle(); + return ChannelClient.getChannels().isEmpty() == false; + } + + @Override + protected void cacheHit() { + fillAdapter(); + restoreViewSelection(); + } + + @Override + protected String getWindowTitle() { + return resolveWindowTitle(); + } + + @Override + protected boolean displayingResults() { + return ChannelClient.getChannels().isEmpty() == false; + } + + @Override + protected int getProgressTextId() { + return R.string.progress_channels_loading; + } + + @Override + protected int getListNavigationIndex() { + return LIST_NAVIGATION_CHANNELS; + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/ChannelListFragment.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/ChannelListFragment.java new file mode 100644 index 0000000..0ce4cc2 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/ChannelListFragment.java @@ -0,0 +1,8 @@ +package de.bjusystems.vdrmanager.gui; + +import android.support.v4.app.Fragment; + +public class ChannelListFragment extends Fragment { + + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/ColoredButton.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/ColoredButton.java new file mode 100644 index 0000000..f10860c --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/ColoredButton.java @@ -0,0 +1,92 @@ +package de.bjusystems.vdrmanager.gui; + +import android.content.Context; +import android.content.res.Resources; +import android.content.res.TypedArray; +import android.graphics.Color; +import android.graphics.CornerPathEffect; +import android.graphics.Paint; +import android.graphics.PorterDuff; +import android.graphics.PorterDuffXfermode; +import android.graphics.drawable.Drawable; +import android.graphics.drawable.LayerDrawable; +import android.graphics.drawable.ShapeDrawable; +import android.graphics.drawable.StateListDrawable; +import android.graphics.drawable.shapes.RectShape; +import android.os.Build; +import android.util.AttributeSet; +import android.widget.Button; + +import de.bjusystems.vdrmanager.R; + +/** + * Created by lado on 03.05.15. + */ +public class ColoredButton extends Button { + + +private final float defaultRadius = 0.0f; + +private int defaultPrimaryColor; + + public ColoredButton(Context context) { + this(context, null); + } + + public ColoredButton(Context context, AttributeSet attrs) { + this(context, attrs, 0); + } + + + //@TargetApi(Build.VERSION_CODES.JELLY_BEAN) + public ColoredButton(Context context, AttributeSet attrs, int defStyleAttr) { + super(context, attrs, defStyleAttr); + //defaultPrimaryColor = getResources().getColor(R.color.colorPrimary); + + TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.ColoredButton); + int primaryColor = typedArray.getColor(R.styleable.ColoredButton_normalStateColor, defaultPrimaryColor); + float radius = typedArray.getDimension(R.styleable.ColoredButton_cornerRadius, defaultRadius); + + int pressedStateColor = primaryColor & 0x00ffffff | 0x96000000; + ShapeDrawable shapeSelected = new ShapeDrawable(new RectShape()); + shapeSelected.getPaint().setColor(pressedStateColor); + shapeSelected.getPaint().setPathEffect(new CornerPathEffect(radius)); + shapeSelected.getPaint().setAntiAlias(true); + shapeSelected.getPaint().setStyle(Paint.Style.FILL_AND_STROKE); + shapeSelected.getPaint().setStrokeWidth(1); + + + ShapeDrawable darkenSelected = new ShapeDrawable(new RectShape()); + darkenSelected.getPaint().setColor(Color.BLACK); + darkenSelected.getPaint().setPathEffect(new CornerPathEffect(radius)); + darkenSelected.getPaint().setAntiAlias(true); + if( Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { + darkenSelected.getPaint().setXfermode(new PorterDuffXfermode(PorterDuff.Mode.OVERLAY)); + } + darkenSelected.getPaint().setStyle(Paint.Style.FILL_AND_STROKE); + darkenSelected.getPaint().setStrokeWidth(1); + + + LayerDrawable layerDrawable = new LayerDrawable(new Drawable[]{darkenSelected, shapeSelected}); + + ShapeDrawable shapeNormal = new ShapeDrawable(new RectShape()); + shapeNormal.getPaint().setAntiAlias(true); + shapeNormal.getPaint().setColor(primaryColor); + shapeNormal.getPaint().setPathEffect(new CornerPathEffect(radius)); + shapeNormal.getPaint().setStyle(Paint.Style.FILL_AND_STROKE); + shapeNormal.getPaint().setStrokeWidth(1); + + StateListDrawable states = new StateListDrawable(); + //Resources res = getResources(); + states.addState(new int[]{android.R.attr.state_pressed}, layerDrawable); + states.addState(new int[]{android.R.attr.state_focused}, layerDrawable); + states.addState(new int[]{}, shapeNormal); + + if( Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN){ + setBackground(states); + } else { + setBackgroundDrawable(states); + } + //typedArray.recycle(); + } +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java new file mode 100644 index 0000000..b063854 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/EpgDetailsActivity.java @@ -0,0 +1,803 @@ +package de.bjusystems.vdrmanager.gui; + +import android.app.AlertDialog; +import android.app.SearchManager; +import android.content.ActivityNotFoundException; +import android.content.DialogInterface; +import android.content.Intent; +import android.net.Uri; +import android.os.Bundle; +import android.os.Parcelable; +import android.support.v4.view.PagerAdapter; +import android.support.v4.view.ViewPager; +import android.support.v4.view.ViewPager.OnPageChangeListener; +import android.support.v7.app.ActionBarActivity; +import android.util.Log; +import android.view.Menu; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.view.View; +import android.view.View.OnClickListener; +import android.widget.ArrayAdapter; +import android.widget.ImageView; +import android.widget.ProgressBar; +import android.widget.TextView; +import android.widget.Toast; +import com.viewpagerindicator.TitleProvider; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.app.Intents; +import de.bjusystems.vdrmanager.app.VdrManagerApp; +import de.bjusystems.vdrmanager.data.Epg; +import de.bjusystems.vdrmanager.data.EpgCache; +import de.bjusystems.vdrmanager.data.Event; +import de.bjusystems.vdrmanager.data.EventFormatter; +import de.bjusystems.vdrmanager.data.Preferences; +import de.bjusystems.vdrmanager.data.Recording; +import de.bjusystems.vdrmanager.data.Timer; +import de.bjusystems.vdrmanager.data.TimerMatch; +import de.bjusystems.vdrmanager.data.Timerable; +import de.bjusystems.vdrmanager.data.Timerable.TimerState; +import de.bjusystems.vdrmanager.tasks.CreateTimerTask; +import de.bjusystems.vdrmanager.tasks.DeleteTimerTask; +import de.bjusystems.vdrmanager.tasks.ToggleTimerTask; +import de.bjusystems.vdrmanager.tasks.VoidAsyncTask; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpEvent; + +import java.net.URLEncoder; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +/** + * This class is used for showing what's current running on all channels + * + * @author bju22 + */ +public class EpgDetailsActivity extends ActionBarActivity implements + OnClickListener, OnPageChangeListener, View.OnLongClickListener { + + public static final String TAG = "EpgDetailsActivity"; + + public static String IMDB_BASE_URL = "http://%s"; + + public static String IMDB_URL_QUERY = "/find?s=tt&q=%s"; + + public static String OMDB_URL = "http://www.omdb.org/search?search[text]=%s"; + + private static final String IMDB_URL_ENCODING = "UTF-8"; + + private static final String OMDB_URL_ENCODING = "UTF-8"; + + private static final String TMDB_URL_ENCODING = "UTF-8"; + + public static String TMDB_URL = "http://www.themoviedb.org/search?query=%s"; + + private String highlight = null; + + // private Event cEvent; + + // private ImageView state; + + private boolean modifed = false; + + // private int current; + + private ViewPager pager; + + private Adapter adapter; + + @Override + public boolean onLongClick(View v) { + if (v.getId() == R.id.epg_event_create_timer) { + final Event cEvent = epgs.get(pager.getCurrentItem()); + if (getTimer(cEvent) != null) { + say(R.string.timer_already_exists); + return true; + } + + final Timer timer = new Timer(cEvent); + + Date start = new Date(timer.getStart().getTime() + - Preferences.get().getTimerPreMargin() * 60000); + timer.setStart(start); + + Date end = new Date(timer.getStop().getTime() + + Preferences.get().getTimerPostMargin() * 60000); + timer.setStop(end); + + final CreateTimerTask task = new CreateTimerTask( + EpgDetailsActivity.this, timer) { + boolean error = false; + @Override + public void svdrpEvent(final SvdrpEvent event, Throwable th) { + if(event == SvdrpEvent.ERROR){ + error = true; + } + super.svdrpEvent(event, th); + } + + @Override + public void finished(SvdrpEvent event) { + modifed = true; + EpgCache.CACHE.remove(timer + .getChannelId()); + if(error == false && event == SvdrpEvent.FINISHED_SUCCESS) { + say(R.string.timer_created); + } + } + }; + task.start(); + return true; + + + } + return false; + } + + // private Timerable timerable = null; + + class Adapter extends PagerAdapter implements TitleProvider { + + public Adapter() { + + } + + public String getTitle(int position) { + return epgs.get(position).getChannelName(); + } + + public int getCount() { + return epgs.size(); + } + + public Object instantiateItem(View pager, int position) { + View view = getLayoutInflater().inflate(R.layout.epg_detail, null); + // Event e = epgs.get(position); + publishEPG(view, position); + ((ViewPager) pager).addView(view, 0); + + return view; + } + + public void destroyItem(View pager, int position, Object view) { + ((ViewPager) pager).removeView((View) view); + } + + public boolean isViewFromObject(View view, Object object) { + return view.equals(object); + } + + public void finishUpdate(View view) { + } + + public void restoreState(Parcelable p, ClassLoader c) { + } + + public Parcelable saveState() { + return null; + } + + public void startUpdate(View view) { + } + } + + @Override + protected void onCreate(final Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + getSupportActionBar().setHomeButtonEnabled(true); + // requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); + + Intent i = getIntent(); + + highlight = i.getStringExtra(Intents.HIGHLIGHT); + final int preselect = i.getIntExtra(Intents.CURRENT_EPG, 0); + + + // requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); + // getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, + // R.layout.titlebar); + + // Attach view + setContentView(R.layout.epgdetails); + + // detector = new SimpleGestureFilter(this, this); + + // state = (ImageView) findViewById(R.id.epg_timer_state); + + final Event epg = getApp().getCurrentEvent(); + if (epg == null) { + finish(); + } + + final Event cEvent = epg; + + if (epg instanceof Timerable) { + // timerable = (Timerable) cEvent; + } + + + pager = (ViewPager) findViewById(R.id.viewpager); + pager.setOnPageChangeListener(this); + + + new VoidAsyncTask() { + + int counter = 0; + + @Override + protected void onPreExecute() { + setProgressBarIndeterminateVisibility(true); + } + + @Override + protected Void doInBackground(Void... params) { + // current event + final VdrManagerApp app = (VdrManagerApp) getApplication(); + epgs = app.getCurrentEpgList(); + + if (epgs.isEmpty()) { + epgs.add(cEvent); + return (Void) null; + } + + // for (Event e : epgs) { + // if (epg.equals(e)) { + // break; + //} + //counter++; + //} + + //if (counter == epgs.size()) {// not found? + //epgs.add(0, cEvent); + //counter = 0; + //} + if (preselect < epgs.size()) { + counter = preselect; + } + return (Void) null; + } + + @Override + protected void onPostExecute(Void result) { + adapter = new Adapter(); + pager.setAdapter(adapter); + pager.setCurrentItem(counter); + onPageSelected(counter); + } + }.execute((Void) null); + + } + + private void setState(ImageView view, int res) { + view.setVisibility(View.VISIBLE); + view.setImageResource(res); + } + + private static String encode(String str, String enc) { + try { + return URLEncoder.encode(str, enc); + } catch (Exception ex) { + Log.w(TAG, ex); + return URLEncoder.encode(str); + } + } + + public void publishEPG(final View view, int position) { + + Event event = epgs.get(position); + + Timerable timerable = null; + + if (event instanceof Timerable) { + timerable = (Timerable) event; + } + + view.setTag(event); + // view.setTag(event); + + final EventFormatter formatter = new EventFormatter(event); + + final TextView title = (TextView) view + .findViewById(R.id.epg_detail_title); + String titleText = formatter.getTitle(); + title.setText(Utils.highlight(titleText, highlight)); + // title.setTextSize(TypedValue.COMPLEX_UNIT_PX, title.getTextSize() + // * (float) 1.3); + + ((TextView) view.findViewById(R.id.epg_detail_time)).setText(formatter + .getDate() + " " + formatter.getTime()); + + TextView dura = (TextView) view.findViewById(R.id.epg_detail_duration); + + ((TextView) view.findViewById(R.id.epg_detail_channel)).setText(event + .getChannelName()); + // ((TextView) findViewById(R.id.epg_detail_date)).setText(formatter + // .getLongDate()); + ImageView state = (ImageView) view.findViewById(R.id.epg_timer_state); + if (timerable == null) { + setState(state, R.drawable.timer_none); + } else { + + TimerMatch match = timerable.getTimerMatch(); + + switch (timerable.getTimerState()) { + case Active: + setState(state, Utils.getTimerStateDrawable(match, + R.drawable.timer_active, + R.drawable.timer_active_begin, + R.drawable.timer_active_end, + R.drawable.timer_active_conflict)); + break; + case Inactive: + setState(state, Utils.getTimerStateDrawable(match, + R.drawable.timer_inactive, + R.drawable.timer_inactive_begin, + R.drawable.timer_inactive_end, + R.drawable.timer_inactive)); + break; + case Recording: + setState(state, Utils.getTimerStateDrawable(match, + R.drawable.timer_recording, + R.drawable.timer_recording_begin, + R.drawable.timer_recording_end, + R.drawable.timer_recording_conflict)); + break; + default: + setState(state, R.drawable.timer_none); + } + } + final TextView shortText = (TextView) view + .findViewById(R.id.epg_detail_shorttext); + shortText.setText(Utils.highlight(formatter.getShortText(), highlight)); + + final TextView textView = (TextView) view + .findViewById(R.id.epg_detail_description); + textView.setText(Utils.highlight(formatter.getDescription(), highlight)); + + if (event.getAudio().isEmpty() == false) { + view.findViewById(R.id.audio_block).setVisibility(View.VISIBLE); + final TextView audioTracks = (TextView) view + .findViewById(R.id.epg_detail_audio); + audioTracks.setText(Utils.formatAudio(this, event.getAudio())); + } else { + view.findViewById(R.id.audio_block).setVisibility(View.GONE); + } + + TextView contentView = ((TextView) view + .findViewById(R.id.epg_detail_cats)); + if (event.getContent().length > 0) { + contentView.setVisibility(View.VISIBLE); + contentView + .setText(Utils.getContenString(this, event.getContent())); + } else { + contentView.setVisibility(View.GONE); + } + + // copy color for separator lines + // final int color = textView.getTextColors().getDefaultColor(); + // ((TextView) findViewById(R.id.epg_detail_separator_1)) + // .setBackgroundColor(color); + + int p = Utils.getProgress(event); + + ((ProgressBar) view.findViewById(R.id.epg_detail_progress)) + .setProgress(p); + int dm = Utils.getDuration(event); + if (Utils.isLive(event)) { + int rest = dm - (dm * p / 100); + dura.setText(getString(R.string.epg_duration_template_live, rest, + dm)); + } else { + dura.setText(getString(R.string.epg_duration_template, dm)); + } + + // ((TextView) view.findViewById(R.id.epg_detail_separator_2)) + // .setBackgroundColor(color); + + // register button handler + if (timerable == null) { + view.findViewById(R.id.epg_event_create_timer).setVisibility( + View.GONE); + } else { + setThisAsOnClickListener(view, R.id.epg_event_create_timer); + view.findViewById(R.id.epg_event_create_timer).setOnLongClickListener(this); + } + + View b = view.findViewById(R.id.epg_event_imdb); + + if (Preferences.get().isShowImdbButton() == false) { + b.setVisibility(View.GONE); + } else { + b.setVisibility(View.VISIBLE); + b.setOnClickListener(new OnClickListener() { + + public void onClick(View v) { + startFilmDatabaseBrowseIntent( + String.format(IMDB_BASE_URL, Preferences.get( + + ) + .getImdbUrl()) + + IMDB_URL_QUERY, view, IMDB_URL_ENCODING); + } + }); + } + + b = view.findViewById(R.id.epg_event_omdb); + + if (Preferences.get().isShowOmdbButton() == false) { + b.setVisibility(View.GONE); + } else { + b.setVisibility(View.VISIBLE); + b.setOnClickListener(new OnClickListener() { + + public void onClick(View v) { + startFilmDatabaseBrowseIntent(OMDB_URL, view, + OMDB_URL_ENCODING); + } + }); + } + + b = view.findViewById(R.id.epg_event_tmdb); + + if (Preferences.get().isShowTmdbButton() == false) { + b.setVisibility(View.GONE); + } else { + b.setVisibility(View.VISIBLE); + b.setOnClickListener(new OnClickListener() { + + public void onClick(View v) { + startFilmDatabaseBrowseIntent(TMDB_URL, view, + TMDB_URL_ENCODING); + } + }); + } + + b = view.findViewById(R.id.epg_event_livetv); + if (Utils.isLive(event) == false + && (event instanceof Recording == false || Preferences.get() + .isEnableRecStream() == false)) { + b.setVisibility(View.GONE); + } else { + b.setVisibility(View.VISIBLE); + setThisAsOnClickListener(b); + } + // setThisAsOnClickListener(view, R.id.epg_event_left); + // setThisAsOnClickListener(view, R.id.epg_event_right); + + // set button text + if (event instanceof Timer) { + // timeButton.setText(R.string.epg_event_create_timer_text); + } else { + // timeButton.setText(R.string.epg_event_modify_timer_text); + } + + } + + private void startFilmDatabaseBrowseIntent(String url, View view, + String encoding) { + final TextView title = (TextView) view + .findViewById(R.id.epg_detail_title); + url = String.format(url, + encode(String.valueOf(title.getText()), encoding)); + Intent i = new Intent(Intent.ACTION_VIEW); + i.setData(Uri.parse(url)); + i.addCategory(Intent.CATEGORY_BROWSABLE); + try { + startActivity(i); + } catch (ActivityNotFoundException anfe) { + Log.w(TAG, anfe); + say(anfe.getLocalizedMessage()); + } + } + + private void setThisAsOnClickListener(View v) { + if (v != null) { + v.setOnClickListener(this); + } + } + + private void setThisAsOnClickListener(View root, int view) { + setThisAsOnClickListener(root.findViewById(view)); + } + + @Override + protected void onResume() { + super.onResume(); + Preferences.init(this); + } + + @Override + protected void onPause() { + super.onPause(); + } + + class Wrapper { + public int id; + public String value; + + public Wrapper(int id) { + this.id = id; + this.value = getString(id); + } + + public String toString() { + return value; + } + } + + public Timer getTimer(Event event) { + if (event instanceof Timer) { + return (Timer) event; + } + if (event instanceof Epg) { + return ((Epg) event).getTimer(); + } + return null; + } + + protected VdrManagerApp getApp() { + final VdrManagerApp app = (VdrManagerApp) getApplication(); + return app; + } + + public void onClick(final View v) { + + final Event cEvent = epgs.get(pager.getCurrentItem()); + + if(v.getId() == R.id.epg_event_livetv) { + if (cEvent instanceof Recording) { + Utils.streamRecording(this, (Recording) cEvent); + } else { + Utils.stream(this, String.valueOf(cEvent.getChannelNumber())); + } + return; + } + + if (cEvent instanceof Timerable == false) { + return; + } + + final Timerable timerable = (Timerable) cEvent; + + + switch (v.getId()) { + case R.id.epg_event_create_timer: + final ArrayAdapter<Wrapper> ada = new ArrayAdapter<Wrapper>(this, + android.R.layout.simple_dropdown_item_1line); + final Timer timer = getTimer(cEvent); + TimerMatch tm = Utils.getTimerMatch(cEvent, timer); + // remove unneeded menu items + if (timer != null && tm == TimerMatch.Full) { + ada.add(new Wrapper(R.string.epg_item_menu_timer_modify)); + ada.add(new Wrapper(R.string.epg_item_menu_timer_delete)); + if (timer.isEnabled()) { + ada.add(new Wrapper(R.string.epg_item_menu_timer_disable)); + } else { + ada.add(new Wrapper(R.string.epg_item_menu_timer_enable)); + } + } else if (cEvent instanceof Recording) { + ada.add(new Wrapper(R.string.epg_item_menu_timer_delete)); + } else { + getApp().setCurrentTimer( + timerable.createTimer()); + final Intent intent = new Intent(); + intent.setClass(EpgDetailsActivity.this, + TimerDetailsActivity.class); + intent.putExtra(Intents.TIMER_OP, + Intents.ADD_TIMER); + startActivityForResult( + intent, + TimerDetailsActivity.REQUEST_CODE_TIMER_ADD); + return; + //ada.add(new Wrapper(R.string.epg_item_menu_timer_add)); + //if (Utils.isLive(cEvent) && (cEvent instanceof Timerable) + // && ((Timerable) cEvent).getTimer() == null) { + // ada.add(new Wrapper(R.string.epg_item_menu_timer_record)); + //} + } + + + new AlertDialog.Builder(this) + .setAdapter(ada, new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int which) { + Wrapper w = ada.getItem(which); + switch (w.id) { + case R.string.epg_item_menu_timer_modify: { + getApp().setCurrentTimer(timer); + final Intent intent = new Intent(); + intent.setClass(EpgDetailsActivity.this, + TimerDetailsActivity.class); + intent.putExtra(Intents.TIMER_OP, + Intents.EDIT_TIMER); + startActivityForResult( + intent, + TimerDetailsActivity.REQUEST_CODE_TIMER_EDIT); + break; + } + case R.string.epg_item_menu_timer_delete: { + deleteTimer(timer); + break; + } + case R.string.epg_item_menu_timer_enable: + case R.string.epg_item_menu_timer_disable: { + toggleTimer(timer); + break; + } + } + } + }).create()// + .show();// + + break; + // case R.id.epg_event_imdb: + + // break; + + // case R.id.epg_event_share: + // shareEvent(cEvent); + // break; + } + } + + protected void toggleTimer(final Timer timer) { + final ToggleTimerTask task = new ToggleTimerTask(this, timer) { + @Override + public void finished(SvdrpEvent event) { + if (event == SvdrpEvent.FINISHED_SUCCESS) { + TimerState state = timer.getTimerState(); + TimerMatch match = timer.getTimerMatch(); + int res = -1; + if (state == TimerState.Active) { + res = Utils.getTimerStateDrawable(match, + R.drawable.timer_inactive, + R.drawable.timer_inactive_begin, + R.drawable.timer_inactive_end, + R.drawable.timer_inactive); + } else if (state == TimerState.Inactive) { + res = Utils.getTimerStateDrawable(match, + R.drawable.timer_active, + R.drawable.timer_active_begin, + R.drawable.timer_active_end, + R.drawable.timer_active_conflict); + + } + if (res != -1) { + setState( + (ImageView) findViewById(R.id.epg_timer_state), + res); + } + } + } + }; + task.start(); + } + + private List<Event> epgs = new ArrayList<Event>(); + + protected void say(int res) { + Toast.makeText(this, res, Toast.LENGTH_SHORT).show(); + } + + protected void say(String msg) { + Toast.makeText(this, msg, Toast.LENGTH_SHORT).show(); + } + + @Override + public final boolean onCreateOptionsMenu( + Menu menu) { + super.onCreateOptionsMenu(menu); + + final MenuInflater inflater = getMenuInflater(); + inflater.inflate(R.menu.epg_details, menu); + + // mShareActionProvider = (ShareActionProvider) + // menu.findItem(R.id.epg_details_menu_share).getActionProvider(); + // mShareActionProvider.setShareIntent(getDefaultShareIntent()); + + return true; + } + + private void shareEvent(Event event) { + Utils.shareEvent(this, event); + } + + @Override + public boolean onOptionsItemSelected( + MenuItem item) { + + Event cEvent = epgs.get(pager.getCurrentItem()); + + if (item.getItemId() == R.id.epg_details_menu_share) { + shareEvent(cEvent); + return true; + } + + if (item.getItemId() == R.id.epg_details_menu_add_to_cal) { + Utils.addCalendarEvent(this, cEvent); + } + + if (item.getItemId() == R.id.epg_details_menu_search_repeat) { + Intent intent = new Intent(this, EpgSearchListActivity.class); + intent.setAction(Intent.ACTION_SEARCH); + intent.putExtra(SearchManager.QUERY, cEvent.getTitle()); + startActivity(intent); + return true; + } + + if (item.getItemId() == R.id.epg_details_menu_switch) { + Utils.switchTo(this, cEvent.getChannelId(), cEvent.getChannelName()); + return true; + } + return super.onOptionsItemSelected(item); + } + + protected void deleteTimer(final Timer timer) { + final DeleteTimerTask task = new DeleteTimerTask(this, timer) { + @Override + public void finished(SvdrpEvent event) { + if (event == SvdrpEvent.FINISHED_SUCCESS) { + setState((ImageView) findViewById(R.id.epg_timer_state), + R.drawable.timer_none); + modifed = true; + EpgCache.CACHE.remove(timer.getChannelId()); + } + } + }; + task.start(); + } + + @Override + protected void onActivityResult(int requestCode, int resultCode, Intent data) { + if (resultCode != RESULT_OK) { + return; + } + + // View view = pager.getChildAt(current); + // ImageView state = (ImageView) + // view.findViewById(R.id.epg_timer_state); + + if (requestCode == TimerDetailsActivity.REQUEST_CODE_TIMER_ADD) { + modifed = true; + // setState( + // state, + // Utils.isLive(getApp().getCurrentEvent()) ? + // R.drawable.timer_recording + // : R.drawable.timer_active); + } else if (requestCode == TimerDetailsActivity.REQUEST_CODE_TIMER_EDIT) { + modifed = true; + // ?? + } + adapter.notifyDataSetChanged(); + } + + @Override + public void onBackPressed() { + if (modifed) { + setResult(RESULT_OK); + finish(); + } else { + super.onBackPressed(); + } + } + + public void onPageScrollStateChanged(int state) { + } + + public void onPageScrolled(int position, float positionOffset, + int positionOffsetPixels) { + } + + public void onPageSelected(int position) { + + Event cEvent = epgs.get(position); + if(cEvent == null){ + return; + } + String cn = cEvent.getChannelName(); + // View view = pager.getChildAt(arg0); + // state = (ImageView) view.findViewById(R.id.epg_timer_state); + setTitle(getString(R.string.epg_of_a_channel, cn, position + 1, + epgs.size())); + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/EpgSearchListActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/EpgSearchListActivity.java new file mode 100644 index 0000000..0c08670 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/EpgSearchListActivity.java @@ -0,0 +1,290 @@ +package de.bjusystems.vdrmanager.gui; + +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Collections; +import java.util.List; + +import android.app.SearchManager; +import android.content.Intent; +import android.os.Bundle; +import android.provider.SearchRecentSuggestions; +import android.text.TextUtils; +import android.view.Menu; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.widget.AdapterView; +import android.widget.AdapterView.OnItemClickListener; +import android.widget.ListView; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.app.VdrManagerApp; +import de.bjusystems.vdrmanager.data.Epg; +import de.bjusystems.vdrmanager.data.EpgSearchParams; +import de.bjusystems.vdrmanager.data.Event; +import de.bjusystems.vdrmanager.data.EventListItem; +import de.bjusystems.vdrmanager.data.P; +import de.bjusystems.vdrmanager.data.Preferences; +import de.bjusystems.vdrmanager.data.Timer; +import de.bjusystems.vdrmanager.data.db.EPGSearchSuggestionsProvider; +import de.bjusystems.vdrmanager.utils.date.DateFormatter; +import de.bjusystems.vdrmanager.utils.svdrp.EpgClient; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpAsyncTask; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpClient; + +/** + * This class is used for showing what's current running on all channels + * + * @author bju + */ +public class EpgSearchListActivity extends BaseTimerEditActivity<Epg> implements + OnItemClickListener { + + protected static ArrayList<Epg> CACHE = new ArrayList<Epg>(); + + @Override + protected List<Epg> getCACHE() { + return CACHE; + } + + private void initSearch(final Intent intent) { + if (Intent.ACTION_SEARCH.equals(intent.getAction())) { + final String query = intent.getStringExtra(SearchManager.QUERY); + if (TextUtils.isEmpty(query) == false) { + highlight = query.trim(); + final SearchRecentSuggestions suggestions = new SearchRecentSuggestions( + this, EPGSearchSuggestionsProvider.AUTHORITY, + EPGSearchSuggestionsProvider.MODE); + suggestions.saveRecentQuery(query, null); + } + } + } + + @Override + protected void onNewIntent(final Intent intent) { + initSearch(intent); + startSearch(); + } + + private void startSearch() { + startEpgQuery(); + } + + @Override + protected String getViewID() { + return this.getClass().getSimpleName(); + } + + @Override + protected void onCreate(final Bundle savedInstanceState) { + Preferences.setLocale(this); + // Preferences.init(this); + + super.onCreate(savedInstanceState); + + sortBy = Preferences.get(this, getViewID() + "_" + P.EPG_LAST_SORT, + MENU_GROUP_CHANNEL); + + final Intent intent = getIntent(); + initSearch(intent); + adapter = new TimeEventAdapter(this); + + // Create adapter for EPG list + adapter.setHideDescription(false); + listView = (ListView) findViewById(R.id.whatson_list); + listView.setAdapter(adapter); + listView.setTextFilterEnabled(true); + registerForContextMenu(listView); + // register EPG item click + listView.setOnItemClickListener(this); + startSearch(); + } + + public void onNothingSelected(final AdapterView<?> arg0) { + // startTimeEpgQuery(((EpgTimeSpinnerValue)timeSpinner.getAdapter().getItem(0)).getValue()); + } + + // + + private void startEpgQuery() { + + if (checkInternetConnection() == false) { + return; + } + + final EpgSearchParams sp = new EpgSearchParams(); + sp.setTitle(highlight); + setTitle(getWindowTitle()); + final EpgClient epgClient = new EpgClient(sp, + getCertificateProblemDialog()); + // remove old listeners + // epgClient.clearSvdrpListener(); + + // create background task + final SvdrpAsyncTask<Epg, SvdrpClient<Epg>> task = new SvdrpAsyncTask<Epg, SvdrpClient<Epg>>( + epgClient); + + // create progress + addListener(task); + + // start task + task.run(); + } + + protected void sort() { + /* */ + switch (sortBy) { + + case MENU_GROUP_DEFAULT: { + sortItemsByTime(CACHE, false); + break; + } + case MENU_GROUP_ALPHABET: { + Collections.sort(CACHE, new TitleComparator()); + break; + } + case MENU_GROUP_CHANNEL: { + sortItemsByChannel(CACHE); + } + } + } + + @Override + protected int getBaseMenu() { + return R.menu.refresh_menu; + } + + @Override + protected synchronized void fillAdapter() { + + adapter.highlight = this.highlight; + + adapter.clear(); + + if (CACHE.isEmpty()) { + return; + } + + sort(); + + final Calendar cal = Calendar.getInstance(); + int day = -1; + for (final Event e : CACHE) { + cal.setTime(e.getStart()); + final int eday = cal.get(Calendar.DAY_OF_YEAR); + if (eday != day) { + day = eday; + adapter.add(new EventListItem(new DateFormatter(cal) + .getDailyHeader())); + } + adapter.add(new EventListItem(e)); + } + adapter.notifyDataSetChanged(); + } + + @Override + protected int getAvailableSortByEntries() { + return R.array.epg_sort_by_time_alpha_channel; + } + + /* + * (non-Javadoc) TODO this method also should be used in startEpgQuery on + * cache hit + * + * @see de.bjusystems.vdrmanager.gui.BaseEpgListActivity#finishedSuccess() + */ + @Override + protected boolean finishedSuccessImpl(final List<Epg> results) { + + clearCache(); + for (final Epg e : results) { + CACHE.add(e); + } + pushResultCountToTitle(); + fillAdapter(); + listView.setSelectionAfterHeaderView(); + return adapter.getCount() > 0; + } + +// @Override +// protected int prepareDetailsViewData(final EventListItem item, int position) { +// final VdrManagerApp app = (VdrManagerApp) getApplication(); +// app.setCurrentEvent(item.getEvent()); +// app.setCurrentEpgList(CACHE); +// for (int i = 0; i < position; ++i) { +// if (CACHE.get(i) == item.getEvent()) { +// return i; +// } +// } +// +// return 0; +// } + + @Override + protected int getMainLayout() { + return R.layout.search_epg_list; + } + + @Override + protected void refresh() { + startEpgQuery(); + } + + @Override + protected void retry() { + startEpgQuery(); + } + + @Override + public boolean onCreateOptionsMenu(final Menu menu) { + // MenuItem item; + // item = menu.add(MENU_GROUP_NEW_TIMER, MENU_NEW_TIMER, 0, + // R.string.new_timer); + // item.setIcon(android.R.drawable.ic_menu_add);; + // /item.setAlphabeticShortcut('r'); + + MenuInflater inflater = getMenuInflater(); + inflater.inflate(R.menu.epg_search_menu, menu); + return super.onCreateOptionsMenu(menu); + } + + @Override + public boolean onOptionsItemSelected(final MenuItem item) { + if (item.getItemId() == R.id.epg_search) { + startSearchManager(); + return true; + } + return super.onOptionsItemSelected(item); + } + + @Override + protected String getWindowTitle() { + if (TextUtils.isEmpty(highlight)) { + return getString(R.string.epg_by_search); + } + + return getString(R.string.epg_by_search_param, highlight); + } + + // @Override + // public boolean onSearchRequested() { + // startSearchManager(); + // return true; + // } + + @Override + protected int getListNavigationIndex() { + return -1; + } + + @Override + protected boolean hasListNavigation() { + return false; + } + + @Override + protected void timerModified(final Timer timer) { + clearCache(); + super.timerModified(timer); + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/EpgSearchTimesListActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/EpgSearchTimesListActivity.java new file mode 100644 index 0000000..0a131ff --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/EpgSearchTimesListActivity.java @@ -0,0 +1,148 @@ +package de.bjusystems.vdrmanager.gui; + +import java.util.List; + +import android.app.Activity; +import android.app.AlertDialog; +import android.content.DialogInterface; +import android.os.Bundle; +import android.view.ContextMenu; +import android.view.ContextMenu.ContextMenuInfo; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.view.View; +import android.view.View.OnClickListener; +import android.widget.AdapterView; +import android.widget.ArrayAdapter; +import android.widget.Button; +import android.widget.ListView; +import android.widget.TimePicker; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.EpgSearchTimeValue; +import de.bjusystems.vdrmanager.data.EpgSearchTimeValues; +import de.bjusystems.vdrmanager.data.Preferences; + +/** + * This class is used for showing what's + * current running on all channels + + * @author bju + */ +public class EpgSearchTimesListActivity extends Activity + implements OnClickListener{ + + ArrayAdapter<EpgSearchTimeValue> adapter; + + List<EpgSearchTimeValue> values; + + @Override + protected void onCreate(final Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + // Attach view + setContentView(R.layout.epg_search_times_list); + + setTitle(R.string.epg_search_times_window); + + // Create adapter for ListView + adapter = new ArrayAdapter<EpgSearchTimeValue>(this, R.layout.epg_search_times_item); + final ListView listView = (ListView) findViewById(R.id.epg_search_times_list); + listView.setAdapter(adapter); + registerForContextMenu(listView); + + // create channel list + updateList(); + + // button handler + final Button addButton = (Button) findViewById(R.id.epg_search_times_add); + addButton.setOnClickListener(this); + } + + public void onClick(final View v) { + // show time selection + final TimePicker timePicker = new TimePicker(this); + timePicker.setIs24HourView(Preferences.get().isUse24hFormat()); + new AlertDialog.Builder(this) + .setTitle(R.string.set_time) + .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + onTimeSet(timePicker.getCurrentHour(), timePicker.getCurrentMinute()); + } + }) + .setNegativeButton(android.R.string.cancel, + new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, + int which) { + dialog.dismiss(); + } + }).setView(timePicker).show(); + } + + public void onTimeSet(final int hourOfDay, final int minute) { + + final EpgSearchTimeValue time = new EpgSearchTimeValue(values.size(), String.format("%02d:%02d", hourOfDay, minute)); + values.add(time); + adapter.add(time); + + save(); + + updateList(); + } + + @Override + protected void onResume() { + super.onResume(); + Preferences.init(this); + } + + @Override + protected void onPause() { + super.onPause(); + } + + @Override + public void onCreateContextMenu(final ContextMenu menu, final View v, final ContextMenuInfo menuInfo) { + super.onCreateContextMenu(menu, v, menuInfo); + + if (v.getId() == R.id.epg_search_times_list) { + final MenuInflater inflater = getMenuInflater(); + final AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo)menuInfo; + menu.setHeaderTitle(values.get(info.position+2).toString()); + + inflater.inflate(R.menu.epg_search_time_item_menu, menu); + } + } + + + + @Override + public boolean onContextItemSelected(final MenuItem item) { + + final AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo)item.getMenuInfo(); + final EpgSearchTimeValue time = values.get(info.position+2); + + if (item.getItemId() == R.id.epg_search_time_delete) { + values.remove(time); + adapter.remove(time); + save(); + } + + return true; + } + + private void updateList() { + + // get values + values = new EpgSearchTimeValues(this).getValues(); + adapter.clear(); + for(int i = 2; i < values.size() - 1; i++) { + adapter.add(values.get(i)); + } + } + + private void save() { + new EpgSearchTimeValues(this).saveValues(values); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java new file mode 100644 index 0000000..3e73729 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/EventEpgListActivity.java @@ -0,0 +1,489 @@ +package de.bjusystems.vdrmanager.gui; + +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Collections; +import java.util.Date; +import java.util.List; + +import android.content.Intent; +import android.os.Bundle; +import android.view.Menu; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.view.View; +import android.widget.AdapterView; +import android.widget.AdapterView.OnItemClickListener; +import android.widget.AdapterView.OnItemSelectedListener; +import android.widget.ArrayAdapter; +import android.widget.ListView; +import android.widget.Spinner; +import android.widget.TextView; +import android.widget.Toast; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.app.VdrManagerApp; +import de.bjusystems.vdrmanager.data.Channel; +import de.bjusystems.vdrmanager.data.Epg; +import de.bjusystems.vdrmanager.data.EpgCache; +import de.bjusystems.vdrmanager.data.Event; +import de.bjusystems.vdrmanager.data.EventListItem; +import de.bjusystems.vdrmanager.tasks.ChannelsTask; +import de.bjusystems.vdrmanager.utils.date.DateFormatter; +import de.bjusystems.vdrmanager.utils.svdrp.ChannelClient; +import de.bjusystems.vdrmanager.utils.svdrp.EpgClient; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpAsyncTask; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpClient; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpEvent; + +/** + * This class is used for showing what's current running on all channels + * + * @author bju + */ +public class EventEpgListActivity extends BaseTimerEditActivity<Epg> implements + OnItemClickListener, OnItemSelectedListener { + + private static final String TAG = EventEpgListActivity.class + .getSimpleName(); + + // protected static Date nextForceCache = null; + + // private static Channel cachedChannel = null; + + Spinner channelSpinner; + + View switcher; + + ArrayAdapter<Channel> channelSpinnerAdapter; + + // protected static ArrayList<Epg> CACHE = new ArrayList<Epg>(); + + private TextView audio; + + private View channelInfo; + + @Override + protected void onCreate(final Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + // + // + // create adapter for channel spinner + channelSpinnerAdapter = new ArrayAdapter<Channel>(this, + android.R.layout.simple_spinner_item); + channelSpinnerAdapter + .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); + channelSpinner = (Spinner) findViewById(R.id.epg_list_channel_spinner); + channelSpinner.setAdapter(channelSpinnerAdapter); + + switcher = findViewById(R.id.switch_epg_view); + switcher.setOnClickListener(this); + + // add channel values + // boolean useChannelNumber = Preferences.get().isShowChannelNumbers(); + + // show needed items + + channelInfo = findViewById(R.id.channel_info); + + channelInfo.setOnClickListener(this); + + audio = (TextView) channelInfo.findViewById(R.id.channel_audio); + + adapter = new ChannelEventAdapter(this); + + // if (currentChannel != null) { + + // } + // startChannelEpgQuery(channel); + // findViewById(R.id.timer_item_channel).setVisibility(View.GONE); + // break; + + // Create adapter for EPG list + listView = (ListView) findViewById(R.id.whatson_list); + listView.setAdapter(adapter); + // listView.setFastScrollEnabled(true); + listView.setTextFilterEnabled(true); + registerForContextMenu(listView); + + // register EPG item click + listView.setOnItemClickListener(this); + + if (checkInternetConnection() == false) { + return; + } + + startQuery(); + + } + + @Override + protected int getAvailableSortByEntries() { + return R.array.epg_sort_by_time_alpha; + } + + @Override + protected String getViewID() { + return EventEpgListActivity.class.getSimpleName(); + } + + private void startQuery() { + new ChannelsTask(this, new ChannelClient(getCertificateProblemDialog())) { + @Override + public void finished(final SvdrpEvent event) { + if (event == SvdrpEvent.CACHE_HIT + || event == SvdrpEvent.FINISHED_SUCCESS) { + final ArrayList<Channel> channels = ChannelClient + .getChannels(); + currentChannel = getApp().getCurrentChannel(); + boolean found = false; + int count = 0; + for (final Channel c : channels) { + channelSpinnerAdapter.add(c); + if (currentChannel != null && !found) { + if (currentChannel.equals(c)) { + found = true; + } else { + count++; + } + } + } + channelSpinner.setSelection(count); + channelSpinner + .setOnItemSelectedListener(EventEpgListActivity.this); + } else { + noConnection(event); + } + } + }.start(); + + } + + void sort() { + if (sortBy == BaseEventListActivity.MENU_GROUP_ALPHABET) { + Collections.sort(getCache(), new TitleComparator()); + } else if (sortBy == BaseEventListActivity.MENU_GROUP_DEFAULT) { + Collections.sort(getCache(), new TimeComparator(false)); + } + } + + @Override + protected void onPause() { + super.onPause(); + } + + @Override + protected void onResume() { + super.onResume(); + } + + @Override + public void onItemSelected(final AdapterView<?> parent, final View view, + final int position, final long id) { + // get spinner value + final Channel channel = (Channel) channelSpinner.getSelectedItem(); + currentChannel = channel; + setCurrent(channel); + // setAsCurrent(channel); + // update search + if (channel.getAudio().isEmpty() == false) { + audio.setText(Utils.formatAudio(this, channel.getAudio())); + } else { + audio.setText(""); + } + + startEpgQuery(false); + } + + @Override + public void onNothingSelected(final AdapterView<?> arg0) { + // startTimeEpgQuery(((EpgTimeSpinnerValue)timeSpinner.getAdapter().getItem(0)).getValue()); + } + + @Override + public void clearCache() { + getCache().clear(); + EpgCache.CACHE.remove(currentChannel.getId()); + EpgCache.NEXT_REFRESH.remove(currentChannel.getId()); + } + + private boolean useCache() { + + if (currentChannel == null) { + return false; + } + + final ArrayList<Epg> cachedChannel = EpgCache.CACHE.get(currentChannel + .getId()); + + if (cachedChannel == null) { + return false; + } + + final Date nextForceCache = EpgCache.NEXT_REFRESH.get(currentChannel + .getId()); + + if (nextForceCache == null) { + return false; + } + final Date now = new Date(); + if (nextForceCache.before(now)) { + return false; + } + return true; + } + + @Override + public void onClick(final View view) { + + if (view == switcher) { + final Intent intent = new Intent(); + intent.setClass(this, TimeEpgListActivity.class); + intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT + | Intent.FLAG_ACTIVITY_SINGLE_TOP); + startActivity(intent); + } else if (view == channelInfo) { + Utils.stream(this, currentChannel); + } else { + super.onClick(view); + } + } + + private void startEpgQuery(final boolean force) { + if (useCache() && !force) { + fillAdapter(); + return; + } + + if (checkInternetConnection() == false) { + return; + } + + // clearCache(); + + final EpgClient epgClient = new EpgClient(currentChannel, + getCertificateProblemDialog()); + + // remove old listeners + // epgClient.clearSvdrpListener(); + + // create background task + final SvdrpAsyncTask<Epg, SvdrpClient<Epg>> task = new SvdrpAsyncTask<Epg, SvdrpClient<Epg>>( + epgClient); + + // create progress + + addListener(task); + + // start task + task.run(); + } + + private static final ArrayList<Epg> EMPTY = new ArrayList<Epg>(0); + + private ArrayList<Epg> getCache() { + if (currentChannel == null) { + return EMPTY; + } + final ArrayList<Epg> arrayList = EpgCache.CACHE.get(currentChannel + .getId()); + if (arrayList == null) { + return EMPTY; + } + return arrayList; + } + + @Override + protected void fillAdapter() { + + adapter.clear(); + + final ArrayList<Epg> cache = getCache(); + + if (cache.isEmpty()) { + return; + } + + sort(); + + final Calendar cal = Calendar.getInstance(); + int day = -1; + for (final Event e : cache) { + cal.setTime(e.getStart()); + final int eday = cal.get(Calendar.DAY_OF_YEAR); + if (eday != day) { + day = eday; + adapter.add(new EventListItem(new DateFormatter(cal) + .getDailyHeader())); + } + adapter.add(new EventListItem(e)); + } + + adapter.notifyDataSetChanged(); + + } + + /* + * (non-Javadoc) TODO this method also should be used in startEpgQuery on + * cache hit + * + * @see de.bjusystems.vdrmanager.gui.BaseEpgListActivity#finishedSuccess() + */ + @Override + protected boolean finishedSuccessImpl(final List<Epg> results) { + // adapter.clear(); + // CACHE.clear(); + + clearCache(); + + if (results.isEmpty()) { + return false; + } + + final Date now = new Date(); + + EpgCache.NEXT_REFRESH.put(currentChannel.getId(), FUTURE); + + Date nextForceCache = FUTURE; + + // Calendar cal = Calendar.getInstance(); + // int day = -1; + // sortItemsByTime(results); + final ArrayList<Epg> cache = new ArrayList<Epg>(); + for (final Epg e : results) { + cache.add(e); + // cal.setTime(e.getStart()); + // int eday = cal.get(Calendar.DAY_OF_YEAR); + // if (eday != day) { + // day = eday; + // adapter.add(new EventListItem(new DateFormatter(cal) + // .getDailyHeader())); + // } + // adapter.add(new EventListItem((Epg) e)); + if (e.getStop().before(nextForceCache) && e.getStop().after(now)) { + nextForceCache = e.getStop(); + } + } + + EpgCache.NEXT_REFRESH.put(currentChannel.getId(), nextForceCache); + EpgCache.CACHE.put(currentChannel.getId(), cache); + + fillAdapter(); + listView.setSelectionAfterHeaderView(); + return results.isEmpty() == false; + + // /////////////// + + // // get spinner value + // final EpgSearchTimeValue selection = (EpgSearchTimeValue) timeSpinner + // .getSelectedItem(); + // nextForceCache = FUTURE; + // cachedTime = selection.getValue(); + // Date now = new Date(); + // + // //adapter.add(new EventListItem(new DateFormatter(results.get(0) + // // .getStart()).getDailyHeader())); + // + // for (Event e : results) { + // CACHE.add(e); + // if (e.getStop().before(nextForceCache) && e.getStop().after(now)) { + // nextForceCache = e.getStop(); + // } + // } + // + + } + +// @Override +// protected int prepareDetailsViewData(final EventListItem item, int position) { +// final VdrManagerApp app = (VdrManagerApp) getApplication(); +// app.setCurrentEvent(item.getEvent()); +// ArrayList<Epg> cache = getCache(); +// app.setCurrentEpgList(cache); +// for (int i = 0; i < position; ++i) { +// if (cache.get(i) == item.getEvent()) { +// return i; +// } +// } +// +// return 0; +// } + + @Override + protected int getMainLayout() { + return R.layout.event_epg_list; + } + + @Override + protected void refresh() { + startEpgQuery(true); + } + + @Override + protected void retry() { + refresh(); + } + + @Override + protected String getWindowTitle() { + return getString(R.string.epg_by_channel); + } + + private void nextEvent() { + final int pos = channelSpinner.getSelectedItemPosition(); + if (pos + 1 >= channelSpinnerAdapter.getCount()) { + Toast.makeText(this, R.string.navigae_at_the_end, + Toast.LENGTH_SHORT).show(); + return; + } + channelSpinner.setSelection(pos + 1, true); + } + + private void prevEvent() { + final int pos = channelSpinner.getSelectedItemPosition(); + if (pos <= 0) { + say(R.string.navigae_at_the_start); + return; + } + channelSpinner.setSelection(pos - 1, true); + } + + @Override + public void onSwipe(final int direction) { + switch (direction) { + case SimpleGestureFilter.SWIPE_RIGHT: + prevEvent(); + break; + case SimpleGestureFilter.SWIPE_LEFT: + nextEvent(); + break; + } + } + + @Override + protected int getListNavigationIndex() { + return LIST_NAVIGATION_EPG_BY_CHANNEL; + } + + @Override + protected List<Epg> getCACHE() { + return getCache(); + } + + @Override + public boolean onCreateOptionsMenu(final Menu menu) { + super.onCreateOptionsMenu(menu); + final MenuInflater inflater = getMenuInflater(); + inflater.inflate(R.menu.epg_event_list_menu, menu); + return true; + } + + @Override + public boolean onOptionsItemSelected(final MenuItem item) { + if (item.getItemId() == R.id.epg_list_stream) { + Utils.stream(this, currentChannel); + return true; + } + return super.onOptionsItemSelected(item); + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/EventListItemHolder.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/EventListItemHolder.java new file mode 100644 index 0000000..eaf70bb --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/EventListItemHolder.java @@ -0,0 +1,19 @@ +package de.bjusystems.vdrmanager.gui; + + +import android.widget.ImageView; +import android.widget.ProgressBar; +import android.widget.TextView; + +class EventListItemHolder { + public ImageView state; + public ImageView other; + public TextView title; + public TextView date; + public TextView time; + public TextView channel; + public TextView shortText; + public ProgressBar progress; + public TextView duration; + public TextView description; +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/PreferencesActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/PreferencesActivity.java new file mode 100644 index 0000000..e8ae690 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/PreferencesActivity.java @@ -0,0 +1,144 @@ +package de.bjusystems.vdrmanager.gui; + +import android.content.Context; +import android.content.Intent; +import android.content.SharedPreferences; +import android.content.SharedPreferences.OnSharedPreferenceChangeListener; +import android.os.Bundle; +import android.preference.Preference; +import android.preference.Preference.OnPreferenceChangeListener; +import android.preference.Preference.OnPreferenceClickListener; +import android.preference.PreferenceManager; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.app.VdrManagerApp; +import de.bjusystems.vdrmanager.backup.BackupSettingsActivity; +import de.bjusystems.vdrmanager.data.Preferences; + +public class PreferencesActivity extends BasePreferencesActivity implements + OnSharedPreferenceChangeListener, OnPreferenceChangeListener, + OnPreferenceClickListener { +// +// Preference somePreference = findPreference(SOME_PREFERENCE_KEY); +// PreferenceScreen preferenceScreen = getPreferenceScreen(); +// preferenceScreen.removePreference(somePreference); +// +// you can later call: +// +// preferenceScreen.addPreference(somePreference); + private static final String TAG = "PreferencesActivity"; + + @Override + protected void onCreate(final Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + this.getPreferenceManager().setSharedPreferencesName( + Preferences.getPreferenceFile(this)); + this.addPreferencesFromResource(R.xml.preferences); + + + Preference backupPreference = findPreference(getString(R.string.settings_backup_key)); + backupPreference.setOnPreferenceClickListener(new OnPreferenceClickListener() { + @Override + public boolean onPreferenceClick(Preference preference) { + Intent intent = new Intent(PreferencesActivity.this, BackupSettingsActivity.class); + intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); + startActivity(intent); + return true; + } + }); + + updateChildPreferences(); + } + + // /** Return a properly configured SharedPreferences instance */ + public static SharedPreferences getSharedPreferences(Context context) { + return PreferenceManager.getDefaultSharedPreferences(context); + } + + @Override + protected void onPause() { + super.onPause(); + // Unregister the listener whenever a key changes + Preferences.getSharedPreferences(this) + .unregisterOnSharedPreferenceChangeListener(this); + } + + @Override + protected void onResume() { + super.onResume(); + // Set up a listener whenever a key changes + Preferences.getSharedPreferences(this) + .registerOnSharedPreferenceChangeListener(this); + + } + + + + private void updateChildPreferences() { + SharedPreferences sp = Preferences.getSharedPreferences(this); + + for (String key : sp.getAll().keySet()) { + Preference p = findPreference(key); + updateSummary(p); + } + + + } + + @Override + public void onBackPressed() { + //Preferences.getSharedPreferences(this) + //.registerOnSharedPreferenceChangeListener(this); + + // finish this activity + //Preferences.init(this); + // restart main activity because + // the buttons needs refreshing + Intent intent = new Intent(this, VdrManagerActivity.class); + int flags = Intent.FLAG_ACTIVITY_NEW_TASK + | Intent.FLAG_ACTIVITY_SINGLE_TOP + | Intent.FLAG_ACTIVITY_CLEAR_TOP; + intent.setFlags(flags); + startActivity(intent); + finish(); + } + + public void onSharedPreferenceChanged(SharedPreferences arg0, String key) { + updateChildPreferences(); + Preference p = findPreference(key); + updateSummary(p); + //Preferences.reset(); + Preferences.init(this); + //Preferences.setLocale(getBaseContext()); + } + + public boolean onPreferenceChange(Preference arg0, Object arg1) { + return false; + } + + public boolean onPreferenceClick(Preference arg0) { + // if (arg0.getKey().equals(getString(R.string.wakeup_wol_mac_key))) { + // // if(arg0.) + // String host = Preferences.getPreferences().getSvdrpHost(); + // + // if(host == null || host.length() == 0){ + // return true; + // } + // + // try { + // Socket echoSocket = new Socket(host, 7); + // InetAddress ia = echoSocket.getInetAddress(); + // + // } catch (Exception ex){ + // Log.w(TAG,ex); + // } + // + // String mac = WakeOnLan.getMacFromArpCache(host); + // System.err.println("mac"); + // } + + return true; + } + + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/RecordingAdapter.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/RecordingAdapter.java new file mode 100644 index 0000000..b664276 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/RecordingAdapter.java @@ -0,0 +1,137 @@ +package de.bjusystems.vdrmanager.gui; + +import android.content.Context; +import android.view.View; +import android.view.ViewGroup; +import android.widget.TextView; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Event; +import de.bjusystems.vdrmanager.data.EventFormatter; +import de.bjusystems.vdrmanager.data.EventListItem; +import de.bjusystems.vdrmanager.data.Recording; +import de.bjusystems.vdrmanager.data.RecordingListItem; + +class RecordingAdapter extends BaseEventAdapter<EventListItem> { + + protected final static int TYPE_FOLDER = 2; + + public RecordingAdapter(final Context context) { + super(context, R.layout.epg_event_item); + hideChannelName = false; + } + + @Override + protected EventFormatter getEventFormatter(Event event) { + return new EventFormatter(event, true); + } + + @Override + public int getViewTypeCount() { + return 3; + } + + @Override + protected boolean isHeader(EventListItem item) { + if (item instanceof RecordingListItem == false) { + return item.isHeader(); + } + + if (((RecordingListItem) item).isFolder()) { + return false; + } + + return item.isHeader(); + } + + @Override + public int getItemViewType(int position) { + + // get item + final RecordingListItem item = (RecordingListItem) getItem(position); + + if (item.isHeader()) { + return TYPE_HEADER; + } else if (item.isFolder()) { + return TYPE_FOLDER; + } + return TYPE_ITEM; + } + + class EventListItemFolderHolder { + public TextView folder; + public TextView count; + } + + protected EventListItemFolderHolder getFolderViewHolder(EventListItem item, + View view) { + EventListItemFolderHolder itemHolder = new EventListItemFolderHolder(); + itemHolder.folder = (TextView) view.findViewById(R.id.header_item); + itemHolder.count = (TextView) view.findViewById(R.id.count); + return itemHolder; + } + + @Override + public View getView(final int position, View convertView, + final ViewGroup parent) { + + // get item + final RecordingListItem item = (RecordingListItem) getItem(position); + + if (item.isFolder() == false) { + return super.getView(position, convertView, parent); + } + + EventListItemFolderHolder holder = null; + if (convertView == null + || (convertView != null && convertView.getTag() instanceof EventListItemFolderHolder) == false) { + convertView = inflater.inflate(R.layout.folder_item, null); + holder = getFolderViewHolder(item, convertView); + convertView.setTag(holder); + } else { + holder = (EventListItemFolderHolder) convertView.getTag(); + } + + holder.folder + .setText(Utils.highlight(item.folder.getName(), highlight)); + holder.count.setText(String.valueOf(item.folder.size())); + return convertView; + } + + @Override + public RecordingListItem getItem(int position) { + return (RecordingListItem) super.getItem(position); + } + + // + // protected void addSuper(RecordingListItem item) { + // super.addSuper(item); + // } + // + // protected void clearSuper() { + // super.clear(); + // } + protected void handleState(EventListItemHolder itemHolder, + EventListItem item) { + + Recording r = (Recording) item.getEvent(); + if (r.getTimerStopTime() != null) { + itemHolder.state.setImageResource(R.drawable.timer_recording); + } else { + itemHolder.state.setImageResource(R.drawable.timer_none); + itemHolder.other.setVisibility(View.GONE); + if (r.isNeww() == true) { + itemHolder.state.setImageResource(R.drawable.newrecording); + if (r.isCut()) { + itemHolder.other.setVisibility(View.VISIBLE); + itemHolder.other.setImageResource(R.drawable.schere); + } else { + itemHolder.other.setVisibility(View.GONE); + } + } else if (r.isCut()) { + itemHolder.state.setImageResource(R.drawable.schere); + } + } + + } + +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/RecordingDir.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/RecordingDir.java new file mode 100644 index 0000000..ce7b995 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/RecordingDir.java @@ -0,0 +1,71 @@ +package de.bjusystems.vdrmanager.gui; + +import java.util.ArrayList; +import java.util.List; +import java.util.TreeMap; + +import de.bjusystems.vdrmanager.data.Recording; + +public class RecordingDir { + + public RecordingDir() { + + } + + public String name; + + public RecordingDir parent; + + public TreeMap<String, RecordingDir> dirs = new TreeMap<String, RecordingDir>(); + + public List<Recording> recordings = new ArrayList<Recording>(); + + public String getName() { + return name; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("[").append(name).append(" => {"); + String sep = ""; + for (RecordingDir e : dirs.values()) { + sb.append(sep).append(e.toString()); + sep = ", "; + } + + sb.append("}\n-").append("\n"); + + sb.append("{").append(""); + + sep = ""; + for (Recording r : recordings) { + sb.append(sep).append(r.toString()); + } + sb.append("}]"); + return sb.toString(); + } + + public void clear() { + for (RecordingDir dir : dirs.values()) { + dir.clear(); + } + recordings.clear(); + } + + public int size() { + int sum = 0; + for (RecordingDir d : dirs.values()) { + sum += d.size(); + } + sum += recordings.size(); + return sum; + } + + public String getPath(){ + if(parent == null){ + return "/"; + } + return parent.getPath() + name + "/"; + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/RecordingListActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/RecordingListActivity.java new file mode 100644 index 0000000..faafd1d --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/RecordingListActivity.java @@ -0,0 +1,568 @@ +package de.bjusystems.vdrmanager.gui; + +import android.os.Bundle; +import android.util.Log; +import android.view.ContextMenu; +import android.view.ContextMenu.ContextMenuInfo; +import android.view.Menu; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.view.View; +import android.widget.AdapterView; +import android.widget.AdapterView.OnItemLongClickListener; +import android.widget.ListView; +import android.widget.ProgressBar; +import android.widget.TextView; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Event; +import de.bjusystems.vdrmanager.data.EventFormatter; +import de.bjusystems.vdrmanager.data.EventListItem; +import de.bjusystems.vdrmanager.data.Preferences; +import de.bjusystems.vdrmanager.data.Recording; +import de.bjusystems.vdrmanager.data.RecordingListItem; +import de.bjusystems.vdrmanager.tasks.DeleteRecordingTask; +import de.bjusystems.vdrmanager.utils.date.DateFormatter; +import de.bjusystems.vdrmanager.utils.svdrp.RecordingClient; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpAsyncTask; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpClient; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpEvent; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpStartListener; + +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Collection; +import java.util.Collections; +import java.util.List; +import java.util.Stack; + +/** + * This class is used for showing what's current running on all channels + * + * @author bju + */ +public class RecordingListActivity extends BaseEventListActivity<Recording> + implements OnItemLongClickListener, SvdrpStartListener { + + // RecordingClient recordingClient; + + // public static final int MENU_GROUP_CHANNEL = 2; + + public static final int ASC = 0; + + public static final int DESC = 1; + + // protected static ArrayList<Recording> CACHE = new ArrayList<Recording>(); + + // private static Map<String, List<Recording>> CACHE = new TreeMap<String, + // List<Recording>>(); + + // public static final Map<String, Set<String>> FOLDERS = new + // TreeMap<String, Set<String>>(); + + private RecordingDir currentFolder; // Recording.ROOT_FOLDER; + + private final int ASC_DESC = ASC; + + private static final List<Recording> EMPTY = new ArrayList<Recording>(0); + + private final Stack<String> stack = new Stack<String>(); + + private TextView folderInfo; + + private TextView currentCount; + + private TextView driverInfo; + + private View driverInfoContainer; + + private ProgressBar drive_info_pb; + + private int totalMB = -1; + + private int freeMB = -1; + + private int percent = -1; + + private RecordingDir ROOT = new RecordingDir(); + + @Override + protected void onCreate(final Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + adapter = new RecordingAdapter(this); + currentFolder = ROOT; + // attach adapter to ListView + listView = (ListView) findViewById(R.id.recording_list); + folderInfo = (TextView) findViewById(R.id.folder_info); + driverInfoContainer = findViewById(R.id.driver_info_container); + driverInfo = (TextView) driverInfoContainer + .findViewById(R.id.drive_info); + drive_info_pb = (ProgressBar) driverInfoContainer + .findViewById(R.id.drive_info_pb); + currentCount = (TextView) findViewById(R.id.current_count); + listView.setAdapter(adapter); + + // set click listener + listView.setOnItemLongClickListener(this); + // register EPG item click + listView.setOnItemClickListener(this); + // context menu wanted + registerForContextMenu(listView); + listView.setFastScrollEnabled(true); + listView.setTextFilterEnabled(true); + // start query + startRecordingQuery(); + } + + @Override + protected int getAvailableSortByEntries() { + return R.array.recordings_group_by; + }; + + // AlertDialog groupByDialog = null; + + // @Override + // public boolean onOptionsItemSelected( + // final com.actionbarsherlock.view.MenuItem item) { + // + // switch (item.getItemId()) { + // case R.id.menu_groupby: + // // case MENU_PROVIDER: + // // case MENU_NAME: + // if (groupByDialog == null) { + // groupByDialog = new AlertDialog.Builder(this) + // .setTitle(R.string.menu_groupby) + // .setIcon(android.R.drawable.ic_menu_sort_alphabetically) + // .setSingleChoiceItems(getAvailableGroupByEntries(), + // groupBy, new DialogInterface.OnClickListener() { + // public void onClick(DialogInterface dialog, + // int which) { + // if (groupBy == which) { + // ASC_DESC = ASC_DESC == ASC ? DESC + // : ASC; + // } else { + // groupBy = which; + // ASC_DESC = ASC; + // } + // // fillAdapter(); + // groupByDialog.dismiss(); + // say("Comming soon..."); + // } + // }).create(); + // } + // + // groupByDialog.show(); + // + // return true; + // default: + // return super.onOptionsItemSelected(item); + // } + // } + + @Override + public void onItemClick(final AdapterView<?> parent, final View view, + final int position, final long id) { + + final RecordingListItem item = (RecordingListItem) adapter + .getItem(position); + if (item.isFolder()) { + currentFolder = item.folder; + // if (currentFolder.equals(Recording.ROOT_FOLDER)) { + // currentFolder = item.folder; + // } else { + // currentFolder = currentFolder + Recording.FOLDERDELIMCHAR + // + item.folder; + // } + // stack.push(currentFolder); + fillAdapter(); + } else { + super.onItemClick(parent, view, position, id); + } + } + + private void updateCurrentFolderInfo(int size) { + folderInfo.setText(currentFolder.getPath()); + currentCount.setText(String.valueOf(size)); + } + + /* + * (non-Javadoc) + * + * @see + * de.bjusystems.vdrmanager.gui.BaseActivity#onCreateOptionsMenu(android + * .view.Menu) + */ + @Override + public boolean onCreateOptionsMenu( + final Menu menu) { + final MenuInflater inflater = getMenuInflater(); + inflater.inflate(R.menu.recording_list_menu, menu); + return super.onCreateOptionsMenu(menu); + } + + @Override + protected void onPause() { + super.onPause(); + } + +// @Override +// protected int prepareDetailsViewData(final EventListItem event, int position) { +// getApp().setCurrentEvent(event.getEvent()); +// List<Recording> cachEget = CACHEget(currentFolder); +// getApp().setCurrentEpgList(cachEget); +// +// for(int i = 0; i < position; ++i){ +// if(cachEget.get(i) == event.getEvent()){ +// return i; +// } +// } +// +// return 0; +// } + + @Override + public void onCreateContextMenu(final ContextMenu menu, final View v, + final ContextMenuInfo menuInfo) { + + final AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) menuInfo; + final EventListItem item = adapter.getItem(info.position); + if (item.isHeader()) { + return; + } + + if (v.getId() == R.id.recording_list) { + final MenuInflater inflater = getMenuInflater(); + // set menu title + final EventFormatter formatter = new EventFormatter(item); + menu.setHeaderTitle(formatter.getTitle()); + + inflater.inflate(R.menu.recording_list_item_menu, menu); + if (Preferences.get().isEnableRecStream() == false) { + menu.removeItem(R.id.recording_item_menu_stream); + } + + } + + super.onCreateContextMenu(menu, v, menuInfo); + // + // http://projects.vdr-developer.org/issues/863 + // if (Utils.isLive(item)) { + menu.removeItem(R.id.epg_item_menu_live_tv); + // } + } + + @Override + public boolean onContextItemSelected(final MenuItem item) { + + final AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item + .getMenuInfo(); + final EventListItem event = adapter.getItem(info.position); + final Recording rec = (Recording) event.getEvent(); + switch (item.getItemId()) { + case R.id.recording_item_menu_delete: { + final DeleteRecordingTask drt = new DeleteRecordingTask(this, rec) { + @Override + public void finished(final SvdrpEvent event) { + if (event == SvdrpEvent.FINISHED_SUCCESS) { + backupViewSelection(); + refresh(); + } + } + }; + drt.start(); + break; + } + case R.id.recording_item_menu_stream: { + Utils.streamRecording(this, rec); + // say("Sorry, not yet. It would be. File -> " + rec.getFileName()); + break; + } + + default: + return super.onContextItemSelected(item); + } + return true; + } + + private void startRecordingQuery() { + + if (checkInternetConnection() == false) { + return; + } + + // get timer client + final RecordingClient recordingClient = new RecordingClient( + getCertificateProblemDialog()); + + recordingClient.addStartListener(this); + + // create backgound task + final SvdrpAsyncTask<Recording, SvdrpClient<Recording>> task = new SvdrpAsyncTask<Recording, SvdrpClient<Recording>>( + recordingClient); + + // create progress dialog + + addListener(task); + + // start task + task.run(); + } + + @Override + protected void retry() { + startRecordingQuery(); + } + + @Override + protected void refresh() { + startRecordingQuery(); + } + + @Override + protected int getMainLayout() { + return R.layout.recording_list; + } + + @Override + protected String getWindowTitle() { + return getString(R.string.action_menu_recordings); + } + + protected void sort() { + /* */ + switch (sortBy) { + case MENU_GROUP_DEFAULT: { + sortItemsByTime(CACHEget(currentFolder), true); + break; + } + case MENU_GROUP_ALPHABET: { + Collections.sort(CACHEget(currentFolder), new TitleComparator()); + break; + } + // case MENU_GROUP_CHANNEL: { + // sortItemsByChannel(results); + // } + } + } + + private List<Recording> CACHEget(RecordingDir currentFolder) { + return currentFolder.recordings; + } + + + @Override + protected void fillAdapter() { + + adapter.clear(); + + sort(); + + final Calendar cal = Calendar.getInstance(); + int day = -1; + + final Collection<RecordingDir> folders = currentFolder.dirs.values(); + for (final RecordingDir d : folders) { + final RecordingListItem recordingListItem = new RecordingListItem( + d.name); + recordingListItem.folder = d; + // final String sf = currentFolder.length() > 0 ? currentFolder + // + Recording.FOLDERDELIMCHAR + f : f; + // final List<Recording> list2 = CACHE.get(sf); + // if (list2 != null) { + // recordingListItem.getCcount = getCountInFolder(currentFolder, f); + // } + adapter.add(recordingListItem); + } + + updateCurrentFolderInfo(currentFolder.size()); + + for (final Event rec : CACHEget(currentFolder)) { + cal.setTime(rec.getStart()); + final int eday = cal.get(Calendar.DAY_OF_YEAR); + if (eday != day) { + day = eday; + adapter.add(new RecordingListItem(new DateFormatter(cal) + .getDailyHeader())); + } + adapter.add(new RecordingListItem((Recording) rec)); + } + adapter.notifyDataSetChanged(); + } + + @Override + public void onBackPressed() { + if (currentFolder.parent == null) { + super.onBackPressed(); + return; + } + currentFolder = currentFolder.parent; + fillAdapter(); + } + +// private List<Recording> readDummy() { +// +// List<Recording> list = new ArrayList<Recording>(); +// try { +// LineNumberReader r = new LineNumberReader(new FileReader(new File( +// "/sdcard/vdrmanager.txt"))); +// +// String line; +// +// while ((line = r.readLine()) != null) { +// Recording rec = null; +// try { +// rec = new Recording(line); +// } catch (Exception ex) { +// ex.printStackTrace(); +// } +// list.add(rec); +// } +// +// } catch (Exception ex) { +// ex.printStackTrace(); +// } +// +// return list; +// +// } + + @Override + protected boolean finishedSuccessImpl(final List<Recording> results) { + + // results.clear(); + // results.addAll(readDummy()); + + clearCache(); + + for (final Recording r : results) { + final String folder = r.getFolder(); + + if (folder.length() == 0) { + ROOT.recordings.add(r); + } else { + final String[] split = folder.split(Recording.FOLDERDELIMCHAR); + + RecordingDir parent = ROOT; + RecordingDir dir = null; // "a~b~c"; + for (int i = 0; i < split.length; ++i) { + String dn = split[i]; + + dir = parent.dirs.get(dn); + if(dir == null) { + dir = new RecordingDir(); + dir.parent = parent; + dir.name = dn; + parent.dirs.put(dn, dir); + } + parent = dir; + } + dir.recordings.add(r); + + // StringBuilder sb = new StringBuilder(); + // String sep = ""; + // for(int i = 0; i < split.length - 1; ++i){ + // sb.append(sep).append(split[i]); + // sep = Recording.FOLDERDELIMCHAR; + // } + // key = folder.subSequence(0, + // folder.length() - (value.length() + 1)).toString(); + + // Set<String> list = FOLDERS.get(key); + // if (list == null) { + // list = new TreeSet<String>(new Comparator<String>() { + // @Override + // public int compare(final String lhs, final String rhs) { + // return lhs.compareToIgnoreCase(rhs); + // } + // }); + // FOLDERS.put(key, list); + // } + // + // list.add(value); + // + // if (key.equals(Recording.ROOT_FOLDER) == false) { + // Set<String> set = FOLDERS.get(Recording.ROOT_FOLDER); + // if (set == null) { + // set = new HashSet<String>(); + // FOLDERS.put(key, set); + // } + // set.add(key); + // } + + // a b + // a + // c + // a~b > k + + } + // List<Recording> list = CACHE.get(folder); + // if (list == null) { + // list = new ArrayList<Recording>(); + // CACHE.put(folder, list); + // } + // list.add(r); + } + + pushResultCountToTitle(); + fillAdapter(); + return adapter.isEmpty() == false; + } + + @Override + public boolean onItemLongClick(final AdapterView<?> arg0, final View arg1, + final int arg2, final long arg3) { + + return false; + } + + @Override + protected int getListNavigationIndex() { + return LIST_NAVIGATION_RECORDINGS; + } + + @Override + public void clearCache() { + ROOT.clear(); + // CACHE.clear(); + // FOLDERS.clear(); + } + + @Override + protected List<Recording> getCACHE() { + + return currentFolder.recordings; + } + + @Override + public void start(final String meta) { + if (meta == null) { + return; + } + try { + + runOnUiThread(new Runnable() { + public void run() { + + // stuff that updates ui + + String[] split = meta.split(":"); + if (split.length != 3) { + Log.w(TAG, "Recoring list meta is wrong"); + return; + } + + totalMB = Integer.valueOf(split[0]); + freeMB = Integer.valueOf(split[1]); + percent = Integer.valueOf(split[2]); + driverInfoContainer.setVisibility(View.VISIBLE); + driverInfo.setText(getString(R.string.drive_info, + (freeMB) / 1024, totalMB / 1024, 100 - percent)); + drive_info_pb.setProgress(percent); + } + }); + } catch (Exception ex) { + Log.w(TAG, ex.getMessage(), ex); + } + + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/SimpleGestureFilter.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/SimpleGestureFilter.java new file mode 100644 index 0000000..2afe23a --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/SimpleGestureFilter.java @@ -0,0 +1,170 @@ +package de.bjusystems.vdrmanager.gui; + +import android.app.Activity; +import android.view.GestureDetector; +import android.view.GestureDetector.SimpleOnGestureListener; +import android.view.MotionEvent; + +public class SimpleGestureFilter extends SimpleOnGestureListener{ + + public final static int SWIPE_UP = 1; + public final static int SWIPE_DOWN = 2; + public final static int SWIPE_LEFT = 3; + public final static int SWIPE_RIGHT = 4; + + public final static int MODE_TRANSPARENT = 0; + public final static int MODE_SOLID = 1; + public final static int MODE_DYNAMIC = 2; + + private final static int ACTION_FAKE = -13; //just an unlikely number + private int swipe_Min_Distance = 100; + private int swipe_Max_Distance = 350; + private int swipe_Min_Velocity = 100; + + private int mode = MODE_DYNAMIC; + private boolean running = true; + private boolean tapIndicator = false; + + private Activity context; + private GestureDetector detector; + private SimpleGestureListener listener; + + + public SimpleGestureFilter(Activity context, SimpleGestureListener sgl) { + + this.context = context; + this.detector = new GestureDetector(context, this); + this.listener = sgl; + } + + public void onTouchEvent(MotionEvent event){ + + if(!this.running) + return; + + boolean result = this.detector.onTouchEvent(event); + + if(this.mode == MODE_SOLID) + event.setAction(MotionEvent.ACTION_CANCEL); + else if (this.mode == MODE_DYNAMIC) { + + if(event.getAction() == ACTION_FAKE) + event.setAction(MotionEvent.ACTION_UP); + else if (result) + event.setAction(MotionEvent.ACTION_CANCEL); + else if(this.tapIndicator){ + event.setAction(MotionEvent.ACTION_DOWN); + this.tapIndicator = false; + } + + } + //else just do nothing, it's Transparent + } + + public void setMode(int m){ + this.mode = m; + } + + public int getMode(){ + return this.mode; + } + + public void setEnabled(boolean status){ + this.running = status; + } + + public void setSwipeMaxDistance(int distance){ + this.swipe_Max_Distance = distance; + } + + public void setSwipeMinDistance(int distance){ + this.swipe_Min_Distance = distance; + } + + public void setSwipeMinVelocity(int distance){ + this.swipe_Min_Velocity = distance; + } + + public int getSwipeMaxDistance(){ + return this.swipe_Max_Distance; + } + + public int getSwipeMinDistance(){ + return this.swipe_Min_Distance; + } + + public int getSwipeMinVelocity(){ + return this.swipe_Min_Velocity; + } + + + @Override + public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, + float velocityY) { + + final float xDistance = Math.abs(e1.getX() - e2.getX()); + final float yDistance = Math.abs(e1.getY() - e2.getY()); + + if(xDistance > this.swipe_Max_Distance || yDistance > this.swipe_Max_Distance) + return false; + + velocityX = Math.abs(velocityX); + velocityY = Math.abs(velocityY); + boolean result = false; + + if(velocityX > this.swipe_Min_Velocity && xDistance > this.swipe_Min_Distance){ + if(e1.getX() > e2.getX()) // right to left + this.listener.onSwipe(SWIPE_LEFT); + else + this.listener.onSwipe(SWIPE_RIGHT); + + result = true; + } + /* + else if(velocityY > this.swipe_Min_Velocity && yDistance > this.swipe_Min_Distance){ + if(e1.getY() > e2.getY()) // bottom to up + this.listener.onSwipe(SWIPE_UP); + else + this.listener.onSwipe(SWIPE_DOWN); + + result = true; + } +*/ + return result; + } + + @Override + public boolean onSingleTapUp(MotionEvent e) { + this.tapIndicator = true; + return false; + } + + @Override + public boolean onDoubleTap(MotionEvent arg0) { + this.listener.onDoubleTap();; + return true; + } + + @Override + public boolean onDoubleTapEvent(MotionEvent arg0) { + return true; + } + + @Override + public boolean onSingleTapConfirmed(MotionEvent arg0) { + + if(this.mode == MODE_DYNAMIC){ // we owe an ACTION_UP, so we fake an + arg0.setAction(ACTION_FAKE); //action which will be converted to an ACTION_UP later. + this.context.dispatchTouchEvent(arg0); + } + + return false; + } + + + static interface SimpleGestureListener{ + void onSwipe(int direction); + void onDoubleTap(); + } + + }
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/SvdrpProgressDialog.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/SvdrpProgressDialog.java new file mode 100644 index 0000000..1afab79 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/SvdrpProgressDialog.java @@ -0,0 +1,69 @@ +package de.bjusystems.vdrmanager.gui; + +import android.app.ProgressDialog; +import android.content.Context; +import android.content.DialogInterface; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpClient; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpEvent; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpException; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpExceptionListener; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpListener; + +public class SvdrpProgressDialog<T> extends ProgressDialog implements + SvdrpExceptionListener, SvdrpListener, DialogInterface.OnCancelListener { + + ProgressDialog progress; + + SvdrpClient<? extends Object> client; + + public SvdrpProgressDialog(final Context context, + final SvdrpClient<T> client) { + super(context); + + this.client = client; + progress = new ProgressDialog(context); + progress.setOnCancelListener(this); + progress.setCancelable(true); + progress.setCanceledOnTouchOutside(false); + } + + public void svdrpEvent(final SvdrpEvent sevent) { + switch (sevent) { + case ABORTED: + case CONNECTION_TIMEOUT: + case CONNECT_ERROR: + case ERROR: + case LOGIN_ERROR: + case FINISHED_ABNORMALY: + case FINISHED_SUCCESS: + case CACHE_HIT: + progress.dismiss(); + break; + case DISCONNECTED: + break; + } + } + + public void svdrpException(final SvdrpException exception) { + + } + + private void abort() { + client.abort(); + dismiss(); + } + + public void dismiss() { + progress.dismiss(); + } + + public void onCancel(DialogInterface dialog) { + abort(); + } + + @Override + public void svdrpEvent(SvdrpEvent event, Throwable t) { + this.svdrpEvent(event); + Utils.say(getContext(), t.getLocalizedMessage()); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/TimeEpgListActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/TimeEpgListActivity.java new file mode 100644 index 0000000..c9c6a57 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/TimeEpgListActivity.java @@ -0,0 +1,428 @@ +package de.bjusystems.vdrmanager.gui; + +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Collections; +import java.util.Date; +import java.util.List; +import java.util.TimeZone; + +import android.app.TimePickerDialog; +import android.app.TimePickerDialog.OnTimeSetListener; +import android.content.Intent; +import android.os.Bundle; +import android.view.View; +import android.widget.AdapterView; +import android.widget.AdapterView.OnItemClickListener; +import android.widget.AdapterView.OnItemSelectedListener; +import android.widget.ArrayAdapter; +import android.widget.ListView; +import android.widget.Spinner; +import android.widget.TimePicker; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.app.VdrManagerApp; +import de.bjusystems.vdrmanager.data.Epg; +import de.bjusystems.vdrmanager.data.EpgSearchTimeValue; +import de.bjusystems.vdrmanager.data.EpgSearchTimeValues; +import de.bjusystems.vdrmanager.data.Event; +import de.bjusystems.vdrmanager.data.EventListItem; +import de.bjusystems.vdrmanager.data.Preferences; +import de.bjusystems.vdrmanager.data.Timer; +import de.bjusystems.vdrmanager.utils.date.DateFormatter; +import de.bjusystems.vdrmanager.utils.svdrp.EpgClient; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpAsyncTask; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpClient; + +/** + * This class is used for showing what's current running on all channels + * + * @author bju + */ +public class TimeEpgListActivity extends BaseTimerEditActivity<Epg> implements + OnItemClickListener, OnItemSelectedListener, OnTimeSetListener { + + protected Spinner timeSpinner; + + protected View switcher; + + protected View clock; + + ArrayAdapter<EpgSearchTimeValue> timeSpinnerAdapter; + + protected static Date nextForceCache = null; + + private static String cachedTime = null; + + int selectedIndex = 0; + + protected static ArrayList<Epg> CACHE = new ArrayList<Epg>(); + + @Override + public int getProgressTextId() { + return R.string.progress_whatson_loading; + } + + @Override + protected void onCreate(final Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + // create adapter for time spinner + timeSpinnerAdapter = new ArrayAdapter<EpgSearchTimeValue>(this, + android.R.layout.simple_spinner_item); + timeSpinnerAdapter + .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); + timeSpinner = (Spinner) findViewById(R.id.epg_list_time_spinner); + timeSpinner.setAdapter(timeSpinnerAdapter); + + switcher = findViewById(R.id.switch_epg_view); + switcher.setOnClickListener(this); + + clock = findViewById(R.id.epg_list_times); + clock.setOnClickListener(this); + + // update gui + adapter = new TimeEventAdapter(this); + // searchLabel.setVisibility(View.GONE); + timeSpinner.setOnItemSelectedListener(this); + + fillTimeSpinnerValues(); + + // Create adapter for EPG list + listView = (ListView) findViewById(R.id.whatson_list); + listView.setFastScrollEnabled(true); + listView.setTextFilterEnabled(true); + + listView.setAdapter(adapter); + registerForContextMenu(listView); + + // register EPG item click + listView.setOnItemClickListener(this); + + } + + private void fillTimeSpinnerValues() { + final EpgSearchTimeValues values = new EpgSearchTimeValues(this); + timeSpinnerAdapter.clear(); + for (final EpgSearchTimeValue value : values.getValues()) { + timeSpinnerAdapter.add(value); + } + } + + @Override + protected void onResume() { + super.onResume(); + } + + @Override + protected void onPause() { + super.onPause(); + + } + + @Override + public void onClick(final View view) { + if (view == switcher) { + final Intent intent = new Intent(); + intent.setClass(this, EventEpgListActivity.class); + intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT + | Intent.FLAG_ACTIVITY_SINGLE_TOP); + startActivity(intent); + finish(); + } else if (view == clock) { + final Intent intent = new Intent(); + intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT + | Intent.FLAG_ACTIVITY_SINGLE_TOP); + intent.setClass(this, EpgSearchTimesListActivity.class); + startActivity(intent); + } else { + super.onClick(view); + } + } + + @Override + public void onTimeSet(final TimePicker view, final int hourOfDay, + final int minute) { + final String tm = String.format("%02d:%02d", hourOfDay, minute); + + // timeSpinnerAdapter.add(time); + final EpgSearchTimeValues values = new EpgSearchTimeValues(this); + final List<EpgSearchTimeValue> vs = values.getValues(); + final EpgSearchTimeValue time = new EpgSearchTimeValue(3, tm); + vs.add(vs.size() - 1, time); + timeSpinnerAdapter.clear(); + int select = -1; + int counter = 0; + for (final EpgSearchTimeValue value : vs) { + timeSpinnerAdapter.add(value); + if (select == -1 && value.getText().equals(tm)) { + select = counter; + } + counter++; + } + timeSpinner.setSelection(select); + setTitle(resolveWindowTitle()); + // update search + startEpgQuery(time.getValue(), false); + } + + private String resolveWindowTitle() { + if (timeSpinner == null) { + return getString(R.string.epg_by_time); + } + final EpgSearchTimeValue v = (EpgSearchTimeValue) timeSpinner + .getSelectedItem(); + if (v == null) { + return getString(R.string.epg_by_time); + } + return getString(R.string.epg_by_time_args, v.getText()); + } + + @Override + public void onItemSelected(final AdapterView<?> parent, final View view, + final int position, final long id) { + + // get spinner value + final EpgSearchTimeValue selection = (EpgSearchTimeValue) timeSpinner + .getSelectedItem(); + + if (selection.getValue().equals("adhoc")) { + final Calendar cal = Calendar.getInstance(TimeZone.getDefault()); + // show time selection + final TimePickerDialog dialog = new TimePickerDialog(this, this, + cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE), + Preferences.get().isUse24hFormat()); + // dialog.setOnDismissListener(new OnDismissListener() { + + // @Override + // public void onDismiss(DialogInterface dialog) { + + // } + // }); + + dialog.show(); + } else { + // update search + setTitle(getString(R.string.epg_by_time_args, selection.getText())); + startEpgQuery(selection.getValue(), false); + } + } + + @Override + public void onNothingSelected(final AdapterView<?> arg0) { + // startTimeEpgQuery(((EpgTimeSpinnerValue)timeSpinner.getAdapter().getItem(0)).getValue()); + } + + @Override + public void clearCache() { + super.clearCache(); + cachedTime = null; + } + + private boolean useCache(final String time) { + + if (cachedTime == null) { + return false; + } + + if (cachedTime.equals(time) == false) { + return false; + } + + if (nextForceCache == null) { + return false; + } + final Date now = new Date(); + if (nextForceCache.before(now)) { + return false; + } + return true; + } + + private void startEpgQuery(final String time, final boolean force) { + + if (useCache(time) && !force) { + fillAdapter(); + return; + } + + if (checkInternetConnection() == false) { + return; + } + + final EpgClient epgClient = new EpgClient(time, + getCertificateProblemDialog()); + + // remove old listeners + // epgClient.clearSvdrpListener(); + + // create background task + final SvdrpAsyncTask<Epg, SvdrpClient<Epg>> task = new SvdrpAsyncTask<Epg, SvdrpClient<Epg>>( + epgClient); + + // create progress + addListener(task); + + // start task + task.run(); + } + + @Override + protected synchronized void fillAdapter() { + + adapter.clear(); + + if (CACHE.isEmpty()) { + return; + } + + sort(); + listView.setFastScrollEnabled(false); + adapter.add(new EventListItem( + new DateFormatter(CACHE.get(0).getStart()).getDailyHeader())); + + for (final Event e : CACHE) { + adapter.add(new EventListItem(e)); + } + adapter.notifyDataSetChanged(); + listView.setFastScrollEnabled(true); + } + + void sort() { + if (sortBy == BaseEventListActivity.MENU_GROUP_ALPHABET) { + Collections.sort(CACHE, new TitleComparator()); + } else if (sortBy == BaseEventListActivity.MENU_GROUP_DEFAULT) { + Collections.sort(CACHE, new ChannelComparator()); + } + } + + @Override + protected int getAvailableSortByEntries() { + return R.array.epg_sort_by_channels_alpha; + } + + @Override + protected String getViewID() { + return TimeEpgListActivity.class.getSimpleName(); + } + + @Override + protected boolean finishedSuccessImpl(final List<Epg> results) { + clearCache(); + + if (results.isEmpty()) { + return false; + } + + // get spinner value + final EpgSearchTimeValue selection = (EpgSearchTimeValue) timeSpinner + .getSelectedItem(); + nextForceCache = FUTURE; + cachedTime = selection.getValue(); + final Date now = new Date(); + + // adapter.add(new EventListItem(new DateFormatter(results.get(0) + // .getStart()).getDailyHeader())); + + for (final Epg e : results) { + CACHE.add(e); + if (e.getStop().before(nextForceCache) && e.getStop().after(now)) { + nextForceCache = e.getStop(); + } + } + fillAdapter(); + pushResultCountToTitle(); + listView.setSelectionAfterHeaderView(); + return results.isEmpty() == false; + + } + +// @Override +// protected int prepareDetailsViewData(final EventListItem item, int position) { +// final VdrManagerApp app = (VdrManagerApp) getApplication(); +// // remember event for details view and timer things +// app.setCurrentEvent(item.getEvent()); +// ArrayList<EventListItem> current = new ArrayList<EventListItem>(); +// for (int i = 0; i < adapter.getCount(); ++i) { +// current.add(adapter.getItem(i)); +// } +// app.setCurrentEpgList(current); +// for (int i = 0; i < position; ++i) { +// if (current.get(i) == item.getEvent()) { +// return i; +// } +// } +// +// return 0; +// } + + @Override + protected int getMainLayout() { + return R.layout.time_epg_list; + } + + @Override + protected void refresh() { + // get spi + final EpgSearchTimeValue selection = (EpgSearchTimeValue) timeSpinner + .getSelectedItem(); + // update search + startEpgQuery(selection.getValue(), true); + } + + @Override + protected void retry() { + refresh(); + } + + @Override + protected String getWindowTitle() { + return resolveWindowTitle(); + } + + private void nextEvent() { + final int pos = timeSpinner.getSelectedItemPosition(); + if (pos + 1 >= timeSpinnerAdapter.getCount()) { + say(R.string.navigae_at_the_end); + return; + } + timeSpinner.setSelection(pos + 1, true); + } + + private void prevEvent() { + final int pos = timeSpinner.getSelectedItemPosition(); + if (pos <= 0) { + say(R.string.navigae_at_the_start); + return; + } + timeSpinner.setSelection(pos - 1, true); + } + + @Override + public void onSwipe(final int direction) { + switch (direction) { + case SimpleGestureFilter.SWIPE_RIGHT: + prevEvent(); + break; + case SimpleGestureFilter.SWIPE_LEFT: + nextEvent(); + break; + } + } + + @Override + protected int getListNavigationIndex() { + return LIST_NAVIGATION_EPG_BY_TIME; + } + + @Override + protected List<Epg> getCACHE() { + return CACHE; + } + + @Override + protected void timerModified(final Timer timer) { + clearCache(); + super.timerModified(timer); + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/TimeEventAdapter.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/TimeEventAdapter.java new file mode 100644 index 0000000..53bc690 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/TimeEventAdapter.java @@ -0,0 +1,19 @@ +package de.bjusystems.vdrmanager.gui; + +import android.content.Context; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Event; +import de.bjusystems.vdrmanager.data.EventFormatter; +import de.bjusystems.vdrmanager.data.EventListItem; + +public class TimeEventAdapter extends BaseEventAdapter<EventListItem> { + + public TimeEventAdapter(final Context context) { + super(context, R.layout.epg_event_item); + } + + @Override + protected EventFormatter getEventFormatter(Event event) { + return new EventFormatter(event, true); + } +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/TimerDetailsActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/TimerDetailsActivity.java new file mode 100644 index 0000000..1b30890 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/TimerDetailsActivity.java @@ -0,0 +1,584 @@ +package de.bjusystems.vdrmanager.gui; + +import java.text.DateFormatSymbols; +import java.util.Calendar; +import java.util.Date; +import java.util.GregorianCalendar; + +import android.app.Activity; +import android.app.AlertDialog; +import android.app.DatePickerDialog; +import android.app.DatePickerDialog.OnDateSetListener; +import android.app.TimePickerDialog; +import android.app.TimePickerDialog.OnTimeSetListener; +import android.content.Context; +import android.content.DialogInterface; +import android.os.Bundle; +import android.text.TextUtils; +import android.view.View; +import android.view.View.OnClickListener; +import android.widget.Button; +import android.widget.CheckBox; +import android.widget.CompoundButton; +import android.widget.DatePicker; +import android.widget.EditText; +import android.widget.TextView; +import android.widget.TimePicker; +import android.widget.Toast; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.app.Intents; +import de.bjusystems.vdrmanager.app.VdrManagerApp; +import de.bjusystems.vdrmanager.data.EpgCache; +import de.bjusystems.vdrmanager.data.EventFormatter; +import de.bjusystems.vdrmanager.data.Preferences; +import de.bjusystems.vdrmanager.data.Timer; +import de.bjusystems.vdrmanager.tasks.CreateTimerTask; +import de.bjusystems.vdrmanager.tasks.ModifyTimerTask; +import de.bjusystems.vdrmanager.utils.date.DateFormatter; +import de.bjusystems.vdrmanager.utils.svdrp.SetTimerClient.TimerOperation; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpEvent; + +public class TimerDetailsActivity extends Activity implements OnClickListener, + OnDateSetListener, OnTimeSetListener { + + public static final int REQUEST_CODE_TIMER_MODIFIED = 34; + + public static final int REQUEST_CODE_TIMER_EDIT = 35; + + public static final int REQUEST_CODE_TIMER_ADD = 36; + + private CharSequence prevStart; + + private CharSequence prevEnd; + + private CharSequence prevDate; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + View view = getLayoutInflater().inflate(R.layout.timer_detail, null); + tView = new EditTimerViewHolder(); + tView.view = view; + tView.title = (TextView) view.findViewById(R.id.timer_detail_title); + tView.channel = (TextView) view.findViewById(R.id.timer_detail_channel); + tView.dateField = (Button) view.findViewById(R.id.timer_detail_day); + tView.startField = (Button) view.findViewById(R.id.timer_detail_start); + tView.endField = (Button) view.findViewById(R.id.timer_detail_end); + tView.saveButton = (Button) view.findViewById(R.id.timer_details_save); + tView.modifyButton = (Button) view + .findViewById(R.id.timer_details_modify); + + tView.repeat = (Button) view.findViewById(R.id.timer_detail_repeat); + + tView.vps = (CheckBox) view.findViewById(R.id.timer_detail_vps); + + tView.priority = (EditText) view + .findViewById(R.id.timer_detail_priority); + + tView.lifecycle = (EditText) view + .findViewById(R.id.timer_detail_lifetime); + + view.findViewById(R.id.timer_details_cancel).setOnClickListener(this); + tView.dateField.setOnClickListener(this); + tView.startField.setOnClickListener(this); + tView.endField.setOnClickListener(this); + tView.saveButton.setOnClickListener(this); + tView.modifyButton.setOnClickListener(this); + tView.repeat.setOnClickListener(this); + setContentView(view); + timer = getApp().getCurrentTimer().copy(); + original = getApp().getCurrentTimer().copy(); + + int op = getIntent().getExtras().getInt(Intents.TIMER_OP); + switch (op) { + case Intents.ADD_TIMER: + setTitle(R.string.timer_details_add_title); + add(); + break; + case Intents.EDIT_TIMER: + setTitle(R.string.timer_details_modify_title); + modify(); + break; + + default: + finish(); + } + + if (timer.isVps() == false && timer.hasVPS() == false) { + findViewById(R.id.timer_block).setVisibility(View.GONE); + } else { + tView.vps + .setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { + @Override + public void onCheckedChanged(CompoundButton buttonView, + boolean isChecked) { + if (isChecked == true) { + vpsChecked(false); + } else { + vpsUnchecked(); + } + } + }); + } + } + + private void vpsChecked(boolean initial) { + + if (initial == false) { + prevStart = tView.startField.getText(); + prevEnd = tView.endField.getText(); + prevDate = tView.dateField.getText(); + } + + DateFormatter formatter = new DateFormatter(original.getStart()); + String date = formatter.getDateString(); + tView.startField.setEnabled(false); + tView.startField.setText(formatter.getTimeString()); + timer.setStart(original.getStart()); + + DateFormatter stopF = new DateFormatter(original.getStop()); + + tView.endField.setEnabled(false); + tView.endField.setText(stopF.getTimeString()); + timer.setStop(original.getStop()); + + tView.dateField.setEnabled(false); + tView.dateField.setText(date); + + } + + @Override + protected void onResume() { + super.onResume(); + Preferences.init(this); + } + + private void vpsUnchecked() { + if (prevStart != null) { + tView.startField.setText(prevStart); + } + tView.startField.setEnabled(true); + + if (prevEnd != null) { + tView.endField.setText(prevEnd); + } + tView.endField.setEnabled(true); + + if (prevDate != null) { + tView.dateField.setText(prevDate); + } + tView.dateField.setEnabled(true); + } + + public class EditTimerViewHolder { + View view; + TextView title; + TextView channel; + Button dateField; + Button startField; + Button endField; + Button saveButton; + Button modifyButton; + CheckBox vps; + Button repeat; + EditText priority; + EditText lifecycle; + } + + EditTimerViewHolder tView = null; + + boolean editStart; + + // SetTimerClient setTimerClient; + + Timer timer; + + Timer original; + + private void updateDates(Date start, Date stop) { + DateFormatter startF = new DateFormatter(start); + DateFormatter endF = new DateFormatter(stop); + tView.startField.setText(startF.getTimeString()); + tView.endField.setText(endF.getTimeString()); + tView.dateField.setText(startF.getDateString()); + } + + private void updateDisplay(TimerOperation op) { + updateDisplay(); + + switch (op) { + case CREATE: + tView.modifyButton.setVisibility(View.GONE); + tView.saveButton.setVisibility(View.VISIBLE); + tView.saveButton.setText(R.string.timer_details_create_title); + Preferences prefs = Preferences.get(); + tView.priority.setText(String.valueOf(prefs + .getTimerDefaultPriority())); + tView.lifecycle.setText(String.valueOf(prefs + .getTimerDefaultLifetime())); + + Date start = new Date(timer.getStart().getTime() + - prefs.getTimerPreMargin() * 60000); + timer.setStart(start); + + Date end = new Date(timer.getStop().getTime() + + prefs.getTimerPostMargin() * 60000); + timer.setStop(end); + + updateDates(start, end); + break; + case MODIFY: + tView.saveButton.setVisibility(View.GONE); + tView.modifyButton.setVisibility(View.VISIBLE); + tView.saveButton.setText(R.string.timer_details_save_title); + tView.priority.setText(String.valueOf(timer.getPriority())); + tView.lifecycle.setText(String.valueOf(timer.getLifetime())); + if (timer.isVps()) { + vpsChecked(true); + } else { + updateDates(timer.getStart(), timer.getStop()); + } + + break; + default: + throw new RuntimeException("Unknown Operation: " + op); + } + + } + + private void updateDisplay() { + tView.channel.setText(timer.getChannelNumber() + " " + + timer.getChannelName()); + // tView.title.setText(timer.isVps() ? + // getString(R.string.timer_detail_title_vps, f.getTitle()) : + // f.getTitle()); + EventFormatter f = new EventFormatter(timer, true); + tView.title.setText(f.getTitle()); + tView.repeat.setText(getSelectedItems().toString(this, true)); + EpgCache.CACHE.remove(timer.getChannelId()); + EpgCache.NEXT_REFRESH.remove(timer.getChannelId()); + tView.vps.setChecked(timer.isVps()); + + } + + protected VdrManagerApp getApp() { + final VdrManagerApp app = (VdrManagerApp) getApplication(); + return app; + } + + public void add() { + updateDisplay(TimerOperation.CREATE); + } + + public void modify() { + updateDisplay(TimerOperation.MODIFY); + } + + public void onClick(final View view) { + switch (view.getId()) { + case R.id.timer_detail_day: { + final Calendar cal = new GregorianCalendar(); + cal.setTime(timer.getStart()); + final DatePickerDialog dialog = new DatePickerDialog(this, this, + cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), + cal.get(Calendar.DAY_OF_MONTH)); + dialog.show(); + break; + } + case R.id.timer_detail_start: { + final Calendar cal = new GregorianCalendar(); + cal.setTime(timer.getStart()); + editStart = true; + final TimePickerDialog dialog = new TimePickerDialog(this, this, + cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE), + true); + dialog.show(); + break; + } + case R.id.timer_detail_end: { + final Calendar cal = new GregorianCalendar(); + cal.setTime(timer.getStop()); + editStart = false; + final TimePickerDialog dialog = new TimePickerDialog(this, this, + cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE), + true); + dialog.show(); + break; + } + case R.id.timer_details_cancel: { + // finishActivity(REQUEST_CODE_TIMER_EDIT); + finish(); + break; + } + case R.id.timer_details_modify: + timer.setTitle(tView.title.getText().toString()); + timer.setVps(tView.vps.isChecked()); + timer.setPriority(getIntOr0(tView.priority)); + timer.setLifetime(getIntOr0(tView.lifecycle)); + + modifyTimer(timer); + // say(R.string.done); + break; + + case R.id.timer_details_save: { + timer.setTitle(tView.title.getText().toString()); + timer.setVps(tView.vps.isChecked()); + timer.setPriority(getIntOr0(tView.priority)); + timer.setLifetime(getIntOr0(tView.lifecycle)); + + createTimer(timer); + // say(R.string.done); + break; + } + + case R.id.timer_detail_repeat: { + + String[] weekdays = new DateFormatSymbols().getWeekdays(); + String[] values = new String[] { weekdays[Calendar.MONDAY], + weekdays[Calendar.TUESDAY], weekdays[Calendar.WEDNESDAY], + weekdays[Calendar.THURSDAY], weekdays[Calendar.FRIDAY], + weekdays[Calendar.SATURDAY], weekdays[Calendar.SUNDAY], }; + + final DaysOfWeek mNewDaysOfWeek = new DaysOfWeek( + getSelectedItems().mDays); + + final AlertDialog b = new AlertDialog.Builder(this) + .setMultiChoiceItems(values, + getSelectedItems().getBooleanArray(), + new DialogInterface.OnMultiChoiceClickListener() { + public void onClick(DialogInterface dialog, + int which, boolean isChecked) { + mNewDaysOfWeek.set(which, isChecked); + } + }) + .setNegativeButton(android.R.string.cancel, null) + .setPositiveButton(android.R.string.ok, + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, + int which) { + StringBuilder sb = new StringBuilder(7); + sb.append(mNewDaysOfWeek.isSet(0) ? 'M' + : '-'); + sb.append(mNewDaysOfWeek.isSet(1) ? 'T' + : '-'); + sb.append(mNewDaysOfWeek.isSet(2) ? 'W' + : '-'); + sb.append(mNewDaysOfWeek.isSet(3) ? 'T' + : '-'); + sb.append(mNewDaysOfWeek.isSet(4) ? 'F' + : '-'); + sb.append(mNewDaysOfWeek.isSet(5) ? 'S' + : '-'); + sb.append(mNewDaysOfWeek.isSet(6) ? 'S' + : '-'); + timer.setWeekdays(sb.toString()); + tView.repeat.setText(mNewDaysOfWeek + .toString( + TimerDetailsActivity.this, + true)); + } + }).create(); + + b.show(); + } + } + } + + DaysOfWeek getSelectedItems() { + String str = timer.getWeekdays(); + + DaysOfWeek dow = new DaysOfWeek(0); + if (str.length() != 7) { + return dow; + } + + dow.set(0, str.charAt(0) == 'M'); + dow.set(1, str.charAt(1) == 'T'); + dow.set(2, str.charAt(2) == 'W'); + dow.set(3, str.charAt(3) == 'T'); + dow.set(4, str.charAt(4) == 'F'); + dow.set(5, str.charAt(5) == 'S'); + dow.set(6, str.charAt(6) == 'S'); + + return dow; + } + + private int getIntOr0(EditText text) { + if (TextUtils.isEmpty(text.getText().toString())) { + return 0; + } + return Integer.valueOf(text.getText().toString()); + } + + protected void say(int res) { + Toast.makeText(this, res, Toast.LENGTH_SHORT).show(); + } + + public void onTimeSet(final TimePicker view, final int hourOfDay, + final int minute) { + if (editStart) { + timer.setStart(calculateTime(timer.getStart(), hourOfDay, minute, + null)); + } else { + timer.setStop(calculateTime(timer.getStop(), hourOfDay, minute, + timer.getStart())); + } + updateDates(timer.getStart(), timer.getStop()); + } + + public void onDateSet(final DatePicker view, final int year, + final int monthOfYear, final int dayOfMonth) { + timer.setStart(calculateDate(timer.getStart(), year, monthOfYear, + dayOfMonth)); + updateDates(timer.getStart(), timer.getStop()); + } + + private Date calculateDate(final Date oldDate, final int year, + final int monthOfYear, final int dayOfMonth) { + + final Calendar cal = new GregorianCalendar(); + cal.setTime(oldDate); + cal.set(Calendar.YEAR, year); + cal.set(Calendar.MONTH, monthOfYear); + cal.set(Calendar.DAY_OF_MONTH, dayOfMonth); + + return cal.getTime(); + } + + private Date calculateTime(final Date oldTime, final int hourOfDay, + final int minute, final Date startTime) { + + // set hour and minute + final Calendar cal = new GregorianCalendar(); + cal.setTime(oldTime); + cal.set(Calendar.HOUR_OF_DAY, hourOfDay); + cal.set(Calendar.MINUTE, minute); + + // go to the next day if end time before start time + if (startTime != null) { + if (cal.getTime().before(startTime)) { + cal.add(Calendar.DAY_OF_MONTH, 1); + } + } + + return cal.getTime(); + + } + + private void createTimer(Timer timer) { + final CreateTimerTask task = new CreateTimerTask(this, timer) { + @Override + public void finished(SvdrpEvent event) { + done(); + } + }; + task.start(); + } + + public void done() { + setResult(RESULT_OK); + finish(); + } + + private void modifyTimer(Timer timer) { + final ModifyTimerTask task = new ModifyTimerTask(this, timer, original) { + @Override + public void finished(SvdrpEvent event) { + done(); + } + }; + task.start(); + } + + /* + * Days of week code as a single int. 0x00: no day 0x01: Monday 0x02: + * Tuesday 0x04: Wednesday 0x08: Thursday 0x10: Friday 0x20: Saturday 0x40: + * Sunday + */ + static final class DaysOfWeek { + + private static int[] DAY_MAP = new int[] { Calendar.MONDAY, + Calendar.TUESDAY, Calendar.WEDNESDAY, Calendar.THURSDAY, + Calendar.FRIDAY, Calendar.SATURDAY, Calendar.SUNDAY, }; + + // Bitmask of all repeating days + private int mDays; + + DaysOfWeek(int days) { + mDays = days; + } + + public String toString(Context context, boolean showNever) { + StringBuilder ret = new StringBuilder(); + + // no days + if (mDays == 0) { + return showNever ? context.getText(R.string.never).toString() + : ""; + } + + // every day + if (mDays == 0x7f) { + return context.getText(R.string.every_day).toString(); + } + + // count selected days + int dayCount = 0, days = mDays; + while (days > 0) { + if ((days & 1) == 1) + dayCount++; + days >>= 1; + } + + // short or long form? + DateFormatSymbols dfs = new DateFormatSymbols(); + String[] dayList = (dayCount > 1) ? dfs.getShortWeekdays() : dfs + .getWeekdays(); + + // selected days + for (int i = 0; i < 7; i++) { + if ((mDays & (1 << i)) != 0) { + ret.append(dayList[DAY_MAP[i]]); + dayCount -= 1; + if (dayCount > 0) + ret.append(context.getText(R.string.day_concat)); + } + } + return ret.toString(); + } + + private boolean isSet(int day) { + return ((mDays & (1 << day)) > 0); + } + + public void set(int day, boolean set) { + if (set) { + mDays |= (1 << day); + } else { + mDays &= ~(1 << day); + } + } + + public void set(DaysOfWeek dow) { + mDays = dow.mDays; + } + + public int getCoded() { + return mDays; + } + + // Returns days of week encoded in an array of booleans. + public boolean[] getBooleanArray() { + boolean[] ret = new boolean[7]; + for (int i = 0; i < 7; i++) { + ret[i] = isSet(i); + } + return ret; + } + + public boolean isRepeatSet() { + return mDays != 0; + } + + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/TimerEventAdapter.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/TimerEventAdapter.java new file mode 100644 index 0000000..0c39f81 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/TimerEventAdapter.java @@ -0,0 +1,31 @@ +package de.bjusystems.vdrmanager.gui; + +import android.content.Context; +import android.view.View; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.EventListItem; +import de.bjusystems.vdrmanager.data.Timer; + +public class TimerEventAdapter extends TimeEventAdapter { + + public TimerEventAdapter(final Context context) { + super(context); + } + + public void sortItems() { + // sortItemsByChannel(); + } + + @Override + protected void handleState(EventListItemHolder itemHolder, + EventListItem item) { + super.handleState(itemHolder, item); + Timer r = (Timer) item.getEvent(); + if (r.isVps()) { + itemHolder.other.setVisibility(View.VISIBLE); + itemHolder.other.setImageResource(R.drawable.timer_vps); + } else { + itemHolder.other.setVisibility(View.GONE); + } + } +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/TimerListActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/TimerListActivity.java new file mode 100644 index 0000000..ae07e1c --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/TimerListActivity.java @@ -0,0 +1,291 @@ +package de.bjusystems.vdrmanager.gui; + +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Collections; +import java.util.Comparator; +import java.util.List; + +import android.os.Bundle; +import android.view.Menu; +import android.view.MenuInflater; +import android.widget.AdapterView.OnItemClickListener; +import android.widget.ListView; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.app.VdrManagerApp; +import de.bjusystems.vdrmanager.data.EventListItem; +import de.bjusystems.vdrmanager.data.Timer; +import de.bjusystems.vdrmanager.utils.date.DateFormatter; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpAsyncTask; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpClient; +import de.bjusystems.vdrmanager.utils.svdrp.TimerClient; + +/** + * This class is used for showing all the existing timers + * + * @author bju + */ +public class TimerListActivity extends BaseTimerEditActivity<Timer> implements +OnItemClickListener { + + private static final int MENU_NEW_TIMER = 2; + + private static final int MENU_GROUP_NEW_TIMER = 2; + + protected static ArrayList<Timer> CACHE = new ArrayList<Timer>(); + + /* + * (non-Javadoc) + * + * @see + * de.bjusystems.vdrmanager.gui.BaseEventListActivity#onCreate(android.os + * .Bundle) + */ + @Override + protected void onCreate(final Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + // Attach view + // setContentView(getMainLayout()); + + // create an adapter + adapter = new TimerEventAdapter(this); + + // attach adapter to ListView + listView = (ListView) findViewById(R.id.timer_list); + listView.setAdapter(adapter); + listView.setFastScrollEnabled(true); + listView.setTextFilterEnabled(true); + + // set click listener + listView.setOnItemClickListener(this); + + // context menu wanted + registerForContextMenu(listView); + + // start query + startTimerQuery(); + } + + @Override + protected void onPause() { + super.onPause(); + } + + private void startTimerQuery() { + + if (checkInternetConnection() == false) { + return; + } + + // get timer client + final TimerClient timerClient = new TimerClient(getCertificateProblemDialog()); + + // create backgound task + final SvdrpAsyncTask<Timer, SvdrpClient<Timer>> task = new SvdrpAsyncTask<Timer, SvdrpClient<Timer>>( + timerClient); + + // create progress dialog + // progress = new SvdrpProgressDialog(this, timerClient); + + // attach listener + // task.addListener(progress); + addListener(task); + + // start task + task.run(); + } + + /* + * (non-Javadoc) + * + * @see + * de.bjusystems.vdrmanager.gui.BaseTimerEditActivity#getTimer(de.bjusystems + * .vdrmanager.data.EventListItem) + */ + @Override + protected Timer getTimer(final EventListItem item) { + return (Timer) item.getEvent(); + } + + /* + * (non-Javadoc) + * + * @see + * de.bjusystems.vdrmanager.gui.BaseEventListActivity#prepareTimer(de.bjusystems + * .vdrmanager.data.EventListItem) + */ +// @Override +// protected int prepareDetailsViewData(final EventListItem item, int position) { +// final VdrManagerApp app = (VdrManagerApp) getApplication(); +// // remember event for details view and timer things +// app.setCurrentEvent(item.getEvent()); +// app.setCurrentEpgList(CACHE); +// for(int i = 0; i < position; ++i){ +// if(CACHE.get(i) == item.getEvent()){ +// return i; +// } +// } +// +// return 0; +// } + + protected Comparator<Timer> getTimeComparator(final boolean reverse) { + return new Comparator<Timer>() { + TimeAndChannelComparator c = new TimeAndChannelComparator(); + @Override + public int compare(final Timer item1, final Timer item2) { + if (item1.isRecurring()) { + if(item2.isRecurring()){ + return 0; + } + return 1; + } + if (item2.isRecurring()) { + return -1; + } + return c.compare(item1, item2); + } + + }; + } + + + + @Override + protected boolean finishedSuccessImpl(final List<Timer> results) { + clearCache(); + for(final Timer r :results){ + CACHE.add(r); + } + pushResultCountToTitle(); + fillAdapter(); + return adapter.isEmpty() == false; + + } + + + protected void sort() { + /* */ + switch (sortBy) { + case MENU_GROUP_DEFAULT: { + Collections.sort(CACHE, getTimeComparator(false)); + break; + } + case MENU_GROUP_ALPHABET: { + Collections.sort(CACHE, new TitleComparator()); + break; + } + //case MENU_GROUP_CHANNEL: { + //sortItemsByChannel(results); + //} + } + } + + + @Override + protected void fillAdapter() { + + adapter.clear(); + + if (CACHE.isEmpty()) { + return; + } + + sort(); + + int day = -1; + final Calendar cal = Calendar.getInstance(); + + for (final Timer e : CACHE) { + if (e.isRecurring()) { + adapter.add(new EventListItem(e.getWeekdays())); + } else { + cal.setTime(e.getStart()); + final int eday = cal.get(Calendar.DAY_OF_YEAR); + if (eday != day) { + day = eday; + adapter.add(new EventListItem(new DateFormatter(cal) + .getDailyHeader())); + } + } + adapter.add(new EventListItem(e)); + } + adapter.notifyDataSetChanged(); + } + + // protected boolean finishedSuccessImpl() { + // adapter.clear(); + // sortItemsByTime(results); + // int day = -1; + // Calendar cal = Calendar.getInstance(); + // for (Timer e : results) { + // if (e.isRecurring()) { + // adapter.add(new EventListItem(e.getWeekdays())); + // } else { + // cal.setTime(e.getStart()); + // int eday = cal.get(Calendar.DAY_OF_YEAR); + // if (eday != day) { + // day = eday; + // adapter.add(new EventListItem(new DateFormatter(cal) + // .getDailyHeader())); + // } + // } + // adapter.add(new EventListItem(e)); + // } + // listView.setSelectionAfterHeaderView(); + // return adapter.isEmpty() == false; + // } + + @Override + protected boolean notifyDataSetChangedOnResume() { + return true; + } + + @Override + protected String getWindowTitle() { + return getString(R.string.action_menu_timers); + } + + @Override + protected int getMainLayout() { + return R.layout.timer_list; + } + + @Override + protected void refresh() { + startTimerQuery(); + } + + @Override + protected void retry() { + refresh(); + } + + @Override + protected int getAvailableSortByEntries() { + return R.array.epg_sort_by_time_alpha; + } + + public boolean onCreateOptionsMenu(final Menu menu) { + // MenuItem item; + // item = menu.add(MENU_GROUP_NEW_TIMER, MENU_NEW_TIMER, 0, + // R.string.new_timer); + // item.setIcon(android.R.drawable.ic_menu_add);; + // /item.setAlphabeticShortcut('r'); + + final MenuInflater inflater = getMenuInflater(); + inflater.inflate(R.menu.timer_list_menu, menu); + return super.onCreateOptionsMenu(menu); + } + + @Override + protected int getListNavigationIndex() { + return LIST_NAVIGATION_TIMERS; + } + + @Override + protected List<Timer> getCACHE() { + return CACHE; + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/Utils.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/Utils.java new file mode 100644 index 0000000..d7e262b --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/Utils.java @@ -0,0 +1,776 @@ +package de.bjusystems.vdrmanager.gui; + +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +import android.app.Activity; +import android.app.AlertDialog; +import android.content.ActivityNotFoundException; +import android.content.Context; +import android.content.DialogInterface; +import android.content.Intent; +import android.content.pm.PackageInfo; +import android.content.pm.PackageManager; +import android.graphics.Color; +import android.net.ConnectivityManager; +import android.net.Uri; +import android.text.Spannable; +import android.text.SpannableString; +import android.text.TextUtils; +import android.text.format.DateUtils; +import android.text.style.ForegroundColorSpan; +import android.util.Log; +import android.util.Pair; +import android.view.Gravity; +import android.widget.Toast; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.StringUtils; +import de.bjusystems.vdrmanager.app.C; +import de.bjusystems.vdrmanager.data.AudioTrack; +import de.bjusystems.vdrmanager.data.Channel; +import de.bjusystems.vdrmanager.data.Event; +import de.bjusystems.vdrmanager.data.EventContentGroup; +import de.bjusystems.vdrmanager.data.EventFormatter; +import de.bjusystems.vdrmanager.data.Preferences; +import de.bjusystems.vdrmanager.data.Recording; +import de.bjusystems.vdrmanager.data.Timer; +import de.bjusystems.vdrmanager.data.TimerMatch; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpAsyncTask; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpEvent; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpException; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpListener; +import de.bjusystems.vdrmanager.utils.svdrp.SwitchChannelClient; + +public class Utils { + + public static final String TAG = Utils.class.getName(); + + public static final List EMPTY_LIST = new ArrayList(0); + public static final String[] EMPTY = new String[] {}; + public static final ForegroundColorSpan HIGHLIGHT_TEXT = new ForegroundColorSpan( + + Color.RED); + + public static CharSequence highlight(final String where, String what) { + if (TextUtils.isEmpty(what)) { + return where; + } + + final String str = where.toLowerCase(); + what = what.toLowerCase(); + final int idx = str.indexOf(what); + if (idx == -1) { + return where; + } + final SpannableString ss = new SpannableString(where); + ss.setSpan(HIGHLIGHT_TEXT, idx, idx + what.length(), + Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); + return ss; + } + + public static Pair<Boolean, CharSequence> highlight2(final String where, + String what) { + if (TextUtils.isEmpty(what)) { + return Pair.create(Boolean.FALSE, (CharSequence) where); + } + + final String str = where.toLowerCase(); + what = what.toLowerCase(); + final int idx = str.indexOf(what); + if (idx == -1) { + return Pair.create(Boolean.FALSE, (CharSequence) where); + } + final SpannableString ss = new SpannableString(where); + ss.setSpan(HIGHLIGHT_TEXT, idx, idx + what.length(), + Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); + return Pair.create(Boolean.TRUE, (CharSequence) ss); + } + + public static int getProgress(final Date start, final Date stop) { + final long now = System.currentTimeMillis(); + return getProgress(now, start.getTime(), stop.getTime()); + } + + public static int getProgress(final Event e) { + if (e instanceof Recording == false) { + return getProgress(e.getStart(), e.getStop()); + } + final Recording r = ((Recording) e); + if (r.getTimerStopTime() == null) { + return getProgress(e.getStart(), e.getStop()); + } + return getProgress(r.getStart(), r.getTimerStopTime()); + + } + + /** + * @param now + * @param time + * @param time2 + * @return -1, is not not between start stop, + */ + private static int getProgress(final long now, final long start, + final long stop) { + if (now >= start && now <= stop) { + final long dura = stop - start; + final long prog = now - start; + return (int) (prog * 100 / dura); + } + return -1; + } + + public static boolean isLive(final Event event) { + final long now = System.currentTimeMillis(); + return now >= event.getStart().getTime() + && now <= event.getStop().getTime(); + } + + private static String trimToEmpty(final String str) { + if (str == null) { + return ""; + } + if (TextUtils.isEmpty(str)) { + return ""; + } + return str; + } + + private static String getBaseUrl() { + final StringBuilder sb = new StringBuilder(); + final Preferences p = Preferences.get(); + String auth = trimToEmpty(p.getStreamingUsername()) + ":" + + trimToEmpty(p.getStreamingPassword()); + if (auth.length() == 1) { + auth = ""; + } else { + auth += "@"; + } + + sb.append("http://").append(auth).append(p.getHost()).append(":") + .append(p.getStreamPort()); + return sb.toString(); + } + + private static String getStreamUrl(final String chn) { + // "http://192.168.1.119:3000/TS/" + final Preferences p = Preferences.get(); + final StringBuilder sb = new StringBuilder(); + sb.append(getBaseUrl()).append("/").append(p.getStreamFormat()) + .append("/").append(chn); + + return sb.toString(); + } + + private static String getRemuxStreamUrl(final String chn) { + // "http://192.168.1.119:3000/TS/" + final StringBuilder sb = new StringBuilder(); + final Preferences p = Preferences.get(); + sb.append(getBaseUrl()).append("/").append(p.getRemuxCommand()) + .append(";").append(p.getRemuxParameter()).append("/") + .append(chn); + return sb.toString(); + } + + public static void stream(final Activity activity, final Event event) { + stream(activity, event.getStreamId()); + } + + public static void stream(final Activity activity, final Channel channel) { + stream(activity, channel.getId()); + } + + public static void stream(final Activity activity, final String idornr) { + + if (Preferences.get().isEnableRemux() == false) { + final String url = getStreamUrl(idornr); + startStream(activity, url); + return; + } + + final String sf = Preferences.get().getStreamFormat(); + final String ext = activity.getString(R.string.remux_title); + new AlertDialog.Builder(activity) + .setTitle(R.string.stream_via_as) + // + .setItems( + new String[] { + activity.getString(R.string.stream_as, sf), + activity.getString(R.string.stream_via, ext) },// TODO + // add + // here + // what + // will + // be + // used + new DialogInterface.OnClickListener() { + @Override + public void onClick(final DialogInterface dialog, + final int which) { + String url = null; + switch (which) { + case 0: + url = getStreamUrl(idornr); + break; + case 1: + url = getRemuxStreamUrl(idornr); + break; + } + startStream(activity, url); + } + }).create().show(); + } + + public static void startStream(final Activity activity, final String url) { + try { + final Intent intent = new Intent(Intent.ACTION_VIEW); + intent.setDataAndType(Uri.parse(url.toString()), "video/*"); + activity.startActivityForResult(intent, 1); + } catch (final ActivityNotFoundException anfe) { + Log.w(TAG, anfe); + Toast.makeText(activity, anfe.getLocalizedMessage(), + Toast.LENGTH_SHORT).show(); + } + } + + public static final String md5(final String s) { + try { + // Create MD5 Hash + final MessageDigest digest = java.security.MessageDigest + .getInstance("MD5"); + digest.update(s.getBytes()); + final byte messageDigest[] = digest.digest(); + + // Create Hex String + final StringBuffer hexString = new StringBuffer(); + for (int i = 0; i < messageDigest.length; i++) { + String h = Integer.toHexString(0xFF & messageDigest[i]); + while (h.length() < 2) { + h = "0" + h; + } + hexString.append(h); + } + return hexString.toString(); + + } catch (final NoSuchAlgorithmException e) { + Log.w(TAG, e); + } + return ""; + } + + public static int getDuration(final Event event) { + final long millis = event.getDuration(); + final int minuts = (int) (millis / 1000 / 60); + return minuts; + } + + public static void shareEvent(final Activity activity, final Event event) { + final Intent share = new Intent(android.content.Intent.ACTION_SEND); + share.setType("text/plain"); + StringBuilder sb = new StringBuilder(); + sb.append(event.getTitle()); + sb.append("\n"); + final EventFormatter ef = new EventFormatter(event, false); + sb.append(ef.getDate()).append(" ").append(ef.getTime()); + final String title = sb.toString(); + share.putExtra(android.content.Intent.EXTRA_SUBJECT, sb.toString()); + sb = new StringBuilder(); + sb.append(title).append("\n\n"); + sb.append(event.getChannelNumber() + " " + event.getChannelName()); + sb.append("\n\n"); + sb.append(ef.getShortText()); + sb.append("\n\n"); + sb.append(ef.getDescription()); + sb.append("\n"); + share.putExtra(android.content.Intent.EXTRA_TEXT, sb.toString()); + activity.startActivity(Intent.createChooser(share, + activity.getString(R.string.share_chooser))); + } + + public static void addCalendarEvent(final Activity activity, + final Event event) { + final Intent intent = new Intent(Intent.ACTION_EDIT); + intent.setType("vnd.android.cursor.item/event"); + intent.putExtra("title", event.getTitle()); + intent.putExtra("description", event.getShortText()); + intent.putExtra("beginTime", event.getStart().getTime()); + intent.putExtra("endTime", event.getStop().getTime()); + activity.startActivity(intent); + } + + public static String mapSpecialChars(final String src) { + if (src == null) { + return ""; + } + return src.replace("|##", C.DATA_SEPARATOR).replace("||#", "\n"); + } + + public static String unMapSpecialChars(final String src) { + if (src == null) { + return ""; + } + return src.replace(C.DATA_SEPARATOR, "|##").replace("\n", "||#"); + } + + public static PackageInfo getPackageInfo(final Context ctx) { + PackageInfo pi = null; + try { + pi = ctx.getPackageManager().getPackageInfo(ctx.getPackageName(), + PackageManager.GET_ACTIVITIES); + } catch (final PackageManager.NameNotFoundException e) { + e.printStackTrace(); + } + return pi; + } + + public static boolean checkInternetConnection(final Context ctx) { + final ConnectivityManager cm = (ConnectivityManager) ctx + .getSystemService(Context.CONNECTIVITY_SERVICE); + // test for connection + if (cm.getActiveNetworkInfo() != null + && cm.getActiveNetworkInfo().isConnectedOrConnecting()) { + return true; + } + return false; + } + + private static String getRecordingStream(final Activity ctx, + final Recording rec) { + + + Preferences prefs = Preferences.get(); + + final String m = prefs.getRecStreamMethod(); + + final StringBuilder url = new StringBuilder(); + + if (StringUtils.equals(m, "vdr-live")) { + url.append("http://") + .append(prefs.getHost()) + // + .append(":") + .append(Integer.valueOf(prefs.getLivePort())) + // + .append("/recstream.html?recid=recording_") + .append(Utils.md5(rec.getFileName())); + // http://192.168.1.119:8008/b0cdedeed2d36508dfd924f0876a851b + final String urlstring = url.toString(); + return urlstring; + } else if (StringUtils.equals(m, "vdr-streamdev")) { + url.append("http://").append(prefs.getHost()) + // + .append(":") + .append(Integer.valueOf( + prefs.getStreamPort())) + // + .append("/").append(rec.getDevInode()); + } else if (StringUtils.equals(m, "vdr-smarttvweb")) { + + String type = prefs.getSmarttvewebType(); + + url.append("http://") + .append(prefs.getHost()) + // + .append(":") + .append(Integer.valueOf(prefs + .getSmarttvewebPort())) + // + .append(Utils.encodeUrlPath(rec.getFileName())); + if (StringUtils.equals(type, "has") == true) { + url.append("/manifest-seg.mpd"); + } else if (StringUtils.equals(type, "hls")) { + url.append("/manifest-seg.m3u8"); + } + } + return url.toString(); + } + + public static void streamRecording(final Activity ctx, final Recording rec) { + final String urlstring = getRecordingStream(ctx, rec); + Log.d(TAG, "try stream: " + urlstring); + Utils.startStream(ctx, urlstring); + } + + public static void switchTo(final Activity activity, final Channel channel) { + switchTo(activity, channel.getId(), channel.getName()); + } + + /** + * @param ctx + * @param id + * @param name + * Optional für die Anzeige + */ + public static void switchTo(final Activity activity, final String id, + final String name) { + + final SwitchChannelClient scc = new SwitchChannelClient(id, + new CertificateProblemDialog(activity)); + final SvdrpAsyncTask<String, SwitchChannelClient> task = new SvdrpAsyncTask<String, SwitchChannelClient>( + scc); + task.addSvdrpListener(new SvdrpListener() { + @Override + public void svdrpEvent(final SvdrpEvent event) { + if (event == SvdrpEvent.FINISHED_SUCCESS) { + Utils.say(activity, activity.getString( + R.string.switching_success, (name != null ? name + : id))); + } else if (event == SvdrpEvent.CONNECT_ERROR + || event == SvdrpEvent.FINISHED_ABNORMALY + || event == SvdrpEvent.ABORTED + || event == SvdrpEvent.ERROR + || event == SvdrpEvent.CACHE_HIT) { + Utils.say(activity, activity.getString( + R.string.switching_failed, (name != null ? name + : id), event.name())); + } + } + + public void svdrpException(final SvdrpException e) { + Log.w(TAG, e.getMessage(), e); + Utils.say(activity, e.getMessage()); + } + }); + task.run(); + } + + public static void say(final Context ctx, final String msg) { + final Toast t = Toast.makeText(ctx, msg, Toast.LENGTH_SHORT); + t.setGravity(Gravity.CENTER, 0, 0); + t.show(); + } + public static String encodeUrlPath(String path){ + return path.replaceAll("%", "%25"); + } + + public static void say(final Context ctx, final int msg) { + final Toast t = Toast.makeText(ctx, msg, Toast.LENGTH_SHORT); + t.setGravity(Gravity.CENTER, 0, 0); + t.show(); + } + + /** + * Formats the date and time based on user's phone date/time preferences. + * + * @param context + * the context + * @param time + * the time in milliseconds + */ + + public static String formatDateTime(final Context context, final long time) { + return android.text.format.DateFormat.getDateFormat(context).format( + time) + + " " + + DateUtils.formatDateTime(context, time, + DateUtils.FORMAT_SHOW_TIME).toString(); + } + + public static int getTimerStateDrawable(final TimerMatch match, + final int full, final int begin, final int end, final int conflict) { + + switch (match) { + case Begin: + return begin; + case End: + return end; + case Conflict: + return conflict; + default: + return full; + } + } + + public static String formatAudio(final Context context, + final List<AudioTrack> tracks) { + + final StringBuilder sb = new StringBuilder(); + + String sep = ""; + for (final AudioTrack a : tracks) { + sb.append(sep).append(a.display); + if (a.type.equals("d")) { + sb.append(" (") + .append(context.getString(R.string.audio_track_dolby)) + .append(")"); + } + sep = ", "; + } + return sb.toString(); + + } + + public static TimerMatch getTimerMatch(Event event, Timer timer) { + if (timer == null) { + return null; + } + TimerMatch timerMatch = null; + Date start = event.getStart(); + Date stop = event.getStop(); + if (start.before(timer.getStart())) { + timerMatch = TimerMatch.End; + } else if (stop.after(timer.getStop())) { + timerMatch = TimerMatch.Begin; + } else { + timerMatch = TimerMatch.Full; + } + return timerMatch; + } + + public static int contentToString(int c) { + ; + switch (c & 0xF0) { + case EventContentGroup.MovieDrama: + switch (c & 0x0F) { + default: + case 0x00: + return R.string.Content_Movie__Drama; + case 0x01: + return R.string.Content_Detective__Thriller; + case 0x02: + return R.string.Content_Adventure__Western__War; + case 0x03: + return R.string.Content_Science_Fiction__Fantasy__Horror; + case 0x04: + return R.string.Content_Comedy; + case 0x05: + return R.string.Content_Soap__Melodrama__Folkloric; + case 0x06: + return R.string.Content_Romance; + case 0x07: + return R.string.Content_Serious__Classical__Religious__Historical_Movie__Drama; + case 0x08: + return R.string.Content_Adult_Movie__Drama; + } + case EventContentGroup.NewsCurrentAffairs: + switch (c & 0x0F) { + default: + case 0x00: + return R.string.Content_News__Current_Affairs; + case 0x01: + return R.string.Content_News__Weather_Report; + case 0x02: + return R.string.Content_News_Magazine; + case 0x03: + return R.string.Content_Documentary; + case 0x04: + return R.string.Content_Discussion__Inverview__Debate; + } + + case EventContentGroup.Show: + switch (c & 0x0F) { + default: + case 0x00: + return R.string.Content_Show__Game_Show; + case 0x01: + return R.string.Content_Game_Show__Quiz__Contest; + case 0x02: + return R.string.Content_Variety_Show; + case 0x03: + return R.string.Content_Talk_Show; + } + + case EventContentGroup.Sports: + switch (c & 0x0F) { + default: + case 0x00: + return R.string.Content_Sports; + case 0x01: + return R.string.Content_Special_Event; + case 0x02: + return R.string.Content_Sport_Magazine; + case 0x03: + return R.string.Content_Football__Soccer; + case 0x04: + return R.string.Content_Tennis__Squash; + case 0x05: + return R.string.Content_Team_Sports; + case 0x06: + return R.string.Content_Athletics; + case 0x07: + return R.string.Content_Motor_Sport; + case 0x08: + return R.string.Content_Water_Sport; + case 0x09: + return R.string.Content_Winter_Sports; + case 0x0A: + return R.string.Content_Equestrian; + case 0x0B: + return R.string.Content_Martial_Sports; + } + + case EventContentGroup.ChildrenYouth: + switch (c & 0x0F) { + default: + case 0x00: + return R.string.Content_Childrens__Youth_Programme; + case 0x01: + return R.string.Content_Preschool_Childrens_Programme; + case 0x02: + return R.string.Content_Entertainment_Programme_for_6_to_14; + case 0x03: + return R.string.Content_Entertainment_Programme_for_10_to_16; + case 0x04: + return R.string.Content_Informational__Educational__School_Programme; + case 0x05: + return R.string.Content_Cartoons__Puppets; + } + + case EventContentGroup.MusicBalletDance: + switch (c & 0x0F) { + default: + case 0x00: + return R.string.Content_Music__Ballet__Dance; + case 0x01: + return R.string.Content_Rock__Pop; + case 0x02: + return R.string.Content_Serious__Classical_Music; + case 0x03: + return R.string.Content_Folk__Tradional_Music; + case 0x04: + return R.string.Content_Jazz; + case 0x05: + return R.string.Content_Musical__Opera; + case 0x06: + return R.string.Content_Ballet; + } + + case EventContentGroup.ArtsCulture: + switch (c & 0x0F) { + default: + case 0x00: + return R.string.Content_Arts__Culture; + case 0x01: + return R.string.Content_Performing_Arts; + case 0x02: + return R.string.Content_Fine_Arts; + case 0x03: + return R.string.Content_Religion; + case 0x04: + return R.string.Content_Popular_Culture__Traditional_Arts; + case 0x05: + return R.string.Content_Literature; + case 0x06: + return R.string.Content_Film__Cinema; + case 0x07: + return R.string.Content_Experimental_Film__Video; + case 0x08: + return R.string.Content_Broadcasting__Press; + case 0x09: + return R.string.Content_New_Media; + case 0x0A: + return R.string.Content_Arts__Culture_Magazine; + case 0x0B: + return R.string.Content_Fashion; + } + + case EventContentGroup.SocialPoliticalEconomics: + switch (c & 0x0F) { + default: + case 0x00: + return R.string.Content_Social__Political__Economics; + case 0x01: + return R.string.Content_Magazine__Report__Documentary; + case 0x02: + return R.string.Content_Economics__Social_Advisory; + case 0x03: + return R.string.Content_Remarkable_People; + } + + case EventContentGroup.EducationalScience: + switch (c & 0x0F) { + default: + case 0x00: + return R.string.Content_Education__Science__Factual; + case 0x01: + return R.string.Content_Nature__Animals__Environment; + case 0x02: + return R.string.Content_Technology__Natural_Sciences; + case 0x03: + return R.string.Content_Medicine__Physiology__Psychology; + case 0x04: + return R.string.Content_Foreign_Countries__Expeditions; + case 0x05: + return R.string.Content_Social__Spiritual_Sciences; + case 0x06: + return R.string.Content_Further_Education; + case 0x07: + return R.string.Content_Languages; + } + + case EventContentGroup.LeisureHobbies: + switch (c & 0x0F) { + default: + case 0x00: + return R.string.Content_Leisure__Hobbies; + case 0x01: + return R.string.Content_Tourism__Travel; + case 0x02: + return R.string.Content_Handicraft; + case 0x03: + return R.string.Content_Motoring; + case 0x04: + return R.string.Content_Fitness_and_Health; + case 0x05: + return R.string.Content_Cooking; + case 0x06: + return R.string.Content_Advertisement__Shopping; + case 0x07: + return R.string.Content_Gardening; + } + case EventContentGroup.Special: + switch (c & 0x0F) { + case 0x00: + return R.string.Content_Original_Language; + case 0x01: + return R.string.Content_Black_and_White; + case 0x02: + return R.string.Content_Unpublished; + case 0x03: + return R.string.Content_Live_Broadcast; + default: + ; + } + break; + default: + ; + } + return R.string.Content_Unknown; + } + + public static String getContenString(Context ctx, int[] contents) { + + if (contents.length == 0) { + return ""; + } + + StringBuilder sb = new StringBuilder(); + + String sep = ""; + + for (int content : contents) { + + sb.append(sep).append(ctx.getString(contentToString(content))); + sep = ", "; + } + + return sb.toString(); + } + + public static boolean isSerie(int[] contents) { + if (contents.length == 0) { + return false; + } + + for (int c : contents) { + if (c == 21) { + return true; + + } + } + + return false; + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/VdrListActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/VdrListActivity.java new file mode 100644 index 0000000..af1b532 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/VdrListActivity.java @@ -0,0 +1,302 @@ +package de.bjusystems.vdrmanager.gui; + +import android.app.AlertDialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.graphics.Typeface; +import android.os.Bundle; +import android.support.v7.app.AppCompatActivity; +import android.text.SpannableString; +import android.text.style.UnderlineSpan; +import android.view.Menu; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.view.View; +import android.view.ViewGroup; +import android.widget.AdapterView; +import android.widget.AdapterView.OnItemClickListener; +import android.widget.AdapterView.OnItemLongClickListener; +import android.widget.ArrayAdapter; +import android.widget.ListView; +import android.widget.TextView; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.app.Intents; +import de.bjusystems.vdrmanager.backup.BackupSettingsActivity; +import de.bjusystems.vdrmanager.backup.IntentUtils; +import de.bjusystems.vdrmanager.data.Preferences; +import de.bjusystems.vdrmanager.data.Vdr; +import de.bjusystems.vdrmanager.data.db.DBAccess; + +import java.util.ArrayList; +import java.util.List; + +public class VdrListActivity extends AppCompatActivity implements + OnItemClickListener, OnItemLongClickListener, View.OnClickListener { + + private static final String TAG = VdrListActivity.class.getName(); + + List<Vdr> list = new ArrayList<Vdr>(); + + ArrayAdapter<Vdr> adapter = null; + + // Cursor cursor; + + String[] listItems = {}; + + private boolean emptyConfig = false; + + // private void initCursor() { + // + // //if (cursor != null) { + // //if (!cursor.isClosed()) { + // //cursor.close(); + // // } + // //} + // try { + // cursor = getHelper().getVdrCursor(); + // //startManagingCursor(cursor); + // } catch (Exception ex) { + // Log.w(TAG,ex); + // } + // } + + private void populateIntent() { + emptyConfig = getIntent().getBooleanExtra(Intents.EMPTY_CONFIG, + Boolean.FALSE); + } + + + @Override + public void onClick(View v) { + + if(v.getId() == R.id.new_vdr){ + editVdr(null); + return; + } + + } + + static class Holder { + public TextView text1; + public TextView text2; + } + + /** Called when the activity is first created. */ + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + populateIntent(); + + setContentView(R.layout.vdr_list_add_delete); + + + findViewById(R.id.new_vdr).setOnClickListener(this); + + // initCursor(); + final Vdr cur = Preferences.get().getCurrentVdr(); + adapter = new ArrayAdapter<Vdr>(this, + android.R.layout.simple_list_item_2, list) { + + @Override + public View getView(int position, View convertView, ViewGroup parent) { + // recycle view? + Holder holder = null; + View view = convertView; + if (view == null) { + view = getLayoutInflater().inflate( + android.R.layout.simple_list_item_2, null); + holder = new Holder(); + + holder.text1 = (TextView) view + .findViewById(android.R.id.text1); + holder.text2 = (TextView) view + .findViewById(android.R.id.text2); + view.setTag(holder); + } else { + holder = (Holder) view.getTag(); + } + + Vdr vdr = getItem(position); + String name = (vdr.getName() != null ? vdr.getName() : ""); + String host = vdr.getHost(); + holder.text2.setText(host); + + if (cur != null && cur.getId() == vdr.getId()) { + SpannableString content = new SpannableString(name); + content.setSpan(new UnderlineSpan(), 0, content.length(), 0); + holder.text1.setText(content); + // text1.setText(text1.getText()); + } else { + holder.text1.setTypeface(Typeface.DEFAULT); + holder.text1.setText(name); + } + return view; + } + + }; + + // adapter = new ArrayAdapter<Vdr>( + // "name", "host" }, new int[] { android.R.id.text1, + // android.R.id.text2}) { + // @Override + // public void bindView(View view, Context context, + // Cursor cursor) { + // + // TextView text1 = (TextView)view.findViewById(android.R.id.text1); + // TextView text2 = (TextView)view.findViewById(android.R.id.text2); + // int id = cursor.getInt(cursor.getColumnIndex("_id")); + // String name = cursor.getString(cursor.getColumnIndex("name")); + // String host = cursor.getString(cursor.getColumnIndex("host")); + // text2.setText(host); + // + // if(cur != null && cur.getId() == id) { + // SpannableString content = new SpannableString(name); + // content.setSpan(new UnderlineSpan(), 0, content.length(), 0); + // text1.setText(content); + // //text1.setText(text1.getText()); + // } else { + // text1.setTypeface(Typeface.DEFAULT); + // text1.setText(name); + // } + // + // + // } + // + // }; + ListView listView = (ListView) findViewById(R.id.vdr_list); + listView.setAdapter(adapter); + registerForContextMenu(listView); + listView.setOnItemClickListener(this); + listView.setOnItemLongClickListener(this); + listView.setLongClickable(true); + listView.setEmptyView(findViewById(R.id.empty_view)); + } + + /* + * (non-Javadoc) + * + * @see + * android.widget.AdapterView.OnItemClickListener#onItemClick(android.widget + * .AdapterView, android.view.View, int, long) + */ + public void onItemClick(AdapterView<?> parent, View view, int position, + long id) { + editVdr(adapter.getItem(position).getId()); + } + + /** + * Start {@link VdrPreferencesActivity} to create or edit a vdr + * + * @param id + * may be null. Then a new vdr is created + */ + private void editVdr(Integer id) { + Intent intent = new Intent(this, VdrPreferencesActivity.class); + intent.putExtra(Intents.VDR_ID, id); + startActivityForResult(intent, Intents.EDIT_VDR); + } + + /* + * (non-Javadoc) + * + * @see android.app.Activity#onActivityResult(int, int, + * android.content.Intent) + */ + @Override + protected void onActivityResult(int requestCode, int resultCode, Intent data) { + + if (resultCode != RESULT_OK) { + return; + } + if (requestCode == Intents.EDIT_VDR) { + refresh(); + return; + } + + } + + @Override + protected void onResume() { + refresh(); + super.onResume(); + } + + @Override + public void onBackPressed() { + if (list.isEmpty()) { + finish(); + return; + } + if (emptyConfig) { + Intent intent = new Intent(this, VdrManagerActivity.class); + intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); + startActivity(intent); + finish(); + } else { + super.onBackPressed(); + } + } + + /** + * Refresh the list + */ + private void refresh() { + list.clear(); + list.addAll(DBAccess.get(this).getVdrDAO().queryForAll()); + adapter.notifyDataSetChanged(); + } + + public boolean onItemLongClick(AdapterView<?> parent, View view, + final int position, final long id) { + + new AlertDialog.Builder(this) + .setMessage(R.string.vdr_device_delete_qeustion)// + .setPositiveButton(android.R.string.ok, + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, + int which) { + if (DBAccess + .get(VdrListActivity.this) + .getVdrDAO() + .deleteById( + adapter.getItem(position) + .getId()) > 0) { + if (Preferences.get().getCurrentVdrContext( + VdrListActivity.this) == id) { + Preferences.setCurrentVdr( + VdrListActivity.this, null); + } + refresh(); + } + + } + })// + .setNegativeButton(android.R.string.cancel, null)// + .create()// + .show(); + return true; + } + + @Override + public final boolean onCreateOptionsMenu(final Menu menu) { + super.onCreateOptionsMenu(menu); + + final MenuInflater inflater = getMenuInflater(); + inflater.inflate(R.menu.vdrlist, menu); + + return true; + } + + @Override + public boolean onOptionsItemSelected(MenuItem item) { + if (item.getItemId() == R.id.main_menu_vdrlist_restore) { + + Intent intent = IntentUtils.newIntent(this, + BackupSettingsActivity.class); + startActivity(intent); + return true; + } + return super.onOptionsItemSelected(item); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/VdrManagerActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/VdrManagerActivity.java new file mode 100644 index 0000000..729d75c --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/VdrManagerActivity.java @@ -0,0 +1,341 @@ +package de.bjusystems.vdrmanager.gui; + +import android.app.AlertDialog; +import android.app.SearchManager; +import android.content.Context; +import android.content.DialogInterface; +import android.content.Intent; +import android.database.Cursor; +import android.net.Uri; +import android.os.Bundle; +import android.provider.SearchRecentSuggestions; +import android.support.v4.view.MenuItemCompat; +import android.support.v7.app.ActionBarActivity; +import android.support.v7.widget.SearchView; +import android.support.v7.widget.SearchView.OnQueryTextListener; +import android.util.Log; +import android.view.Menu; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.view.View; +import android.view.View.OnClickListener; +import android.widget.Toast; + +import com.j256.ormlite.android.AndroidDatabaseResults; + +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.app.Intents; +import de.bjusystems.vdrmanager.app.VdrManagerApp; +import de.bjusystems.vdrmanager.data.Preferences; +import de.bjusystems.vdrmanager.data.Vdr; +import de.bjusystems.vdrmanager.data.db.DBAccess; +import de.bjusystems.vdrmanager.data.db.EPGSearchSuggestionsProvider; +import de.bjusystems.vdrmanager.remote.RemoteActivity; +import de.bjusystems.vdrmanager.utils.wakeup.AsyncWakeupTask; + +public class VdrManagerActivity extends ActionBarActivity implements + OnClickListener, OnQueryTextListener { + + public static final String TAG = "VdrManagerActivity"; + + public static final String VDR_PORTAL = "http://www.vdr-portal.de"; + + private SearchView search; + + private View actionMenuWakup; + private View actionMenuRemote; + + @Override + protected void onCreate(final Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + // Preferences.initVDR(this); + + // if(Preferences.get().getCurrentVdr() == null){ + // finish(); + // return; + // } android.support.v7.appcompat.R + + if (Preferences.initVDR(this) == false) { + final Intent intent = new Intent(); + intent.setClass(this, VdrListActivity.class); + intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + intent.putExtra(Intents.EMPTY_CONFIG, Boolean.TRUE); + startActivity(intent); + Toast.makeText(this, R.string.no_vdr, Toast.LENGTH_SHORT).show(); + finish(); + return; + } + + Preferences.setLocale(this); + + // this.getActionBar().setDisplayShowCustomEnabled(true); + // this.getActionBar().setDisplayShowTitleEnabled(false); + // setTitle(getString(R.string.app_name)); + // attach view + setContentView(R.layout.vdrmanager); + + // Preferences.loadPreferences(this); + + findViewById(R.id.action_menu_channels).setOnClickListener(this); + findViewById(R.id.action_menu_recordings).setOnClickListener(this); + findViewById(R.id.action_menu_timers).setOnClickListener(this); + findViewById(R.id.action_menu_epg).setOnClickListener(this); + findViewById(R.id.action_menu_remote).setOnClickListener(this); +// View v = findViewById(R.id.action_menu_search); +// if (v != null) { +// v.setOnClickListener(this); +// } + //findViewById(R.id.main_logo).setOnClickListener(this); + actionMenuWakup = findViewById(R.id.action_menu_wakeup); + actionMenuRemote = findViewById(R.id.action_menu_remote); + // add and register buttons + // createButtons(); + } + + public boolean onCreateOptionsMenu(Menu menu) { + MenuInflater inflater = getMenuInflater(); + inflater.inflate(R.menu.main_menu, menu); + + // search = new SearchView(getSupportActionBar().getThemedContext()); + search = (SearchView) MenuItemCompat.getActionView( menu.findItem(R.id.menu_search)); + + // search = (SearchView) + // .getActionView(); + // + // Object o = menu.findItem(R.id.menu_search); + + SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE); + search.setSearchableInfo(searchManager + .getSearchableInfo(getComponentName())); + + //search.setOnQueryTextListener(this); + return true; + } + + @Override + protected void onResume() { + Preferences.setLocale(this); + if (Preferences.get().isWakeupEnabled() == false) { + actionMenuWakup.setVisibility(View.GONE); + actionMenuWakup.setOnClickListener(null); + } else { + actionMenuWakup.setVisibility(View.VISIBLE); + actionMenuWakup.setOnClickListener(this); + } + + if(Preferences.get().isRemoteEnabled() == false){ + actionMenuRemote.setVisibility(View.GONE); + actionMenuRemote.setOnClickListener(null); + } else { + actionMenuRemote.setVisibility(View.VISIBLE); + actionMenuRemote.setOnClickListener(this); + } + + + super.onResume(); + } + + @Override + public boolean onOptionsItemSelected( + final MenuItem item) { + + switch (item.getItemId()) { + case R.id.main_menu_preferences: { + Intent intent = new Intent(this, PreferencesActivity.class); + int flags = Intent.FLAG_ACTIVITY_NEW_TASK + | Intent.FLAG_ACTIVITY_SINGLE_TOP + | Intent.FLAG_ACTIVITY_CLEAR_TOP; + intent.setFlags(flags); + startActivity(intent); + finish(); + break; + } + case R.id.main_menu_info: { + if(isFinishing()){ + break; + } + About.show(this); + break; + } + case R.id.main_menu_exit: { + finish(); + break; + } + + case R.id.main_menu_clear_search: { + SearchRecentSuggestions suggestions = new SearchRecentSuggestions( + this, EPGSearchSuggestionsProvider.AUTHORITY, + EPGSearchSuggestionsProvider.MODE); + suggestions.clearHistory(); + break; + } + + // case R.id.menu_search: { + // if(Build.VERSION.SDK_INT <11){ + // onSearchRequested(); + // } + // break; + // } + case R.id.main_menu_goto: { + try { + final Cursor cursor = ((AndroidDatabaseResults) DBAccess + .get(this).getVdrDAO().iterator().getRawResults()) + .getRawCursor(); + startManagingCursor(cursor); + final AlertDialog ad = new AlertDialog.Builder(this) + .setSingleChoiceItems(cursor, findVdrCursor(cursor), + "name", new DialogInterface.OnClickListener() { + + public void onClick(DialogInterface dialog, + int which) { + cursor.moveToPosition(which); + int id = cursor.getInt(cursor + .getColumnIndex("_id")); + Vdr vdr = DBAccess + .get(VdrManagerActivity.this) + .getVdrDAO().queryForId(id); + if (vdr == null) { + Toast.makeText( + VdrManagerActivity.this, + R.string.main_menu_goto_no_vdr, + Toast.LENGTH_SHORT).show(); + } else { + Preferences.setCurrentVdr( + VdrManagerActivity.this, + vdr); + Toast.makeText( + VdrManagerActivity.this, + getString( + R.string.main_menu_switched_to, + vdr.getName()), + Toast.LENGTH_SHORT).show(); + Intent intent = getIntent(); + overridePendingTransition(0, 0); + intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION); + finish(); + + overridePendingTransition(0, 0); + startActivity(intent); + } + dialog.dismiss(); + } + })// + .setTitle(R.string.main_menu_goto_title)// + .create(); + ad.show(); + + } catch (Exception ex) { + Log.w(TAG, ex); + } + + break; + } + } + return true; + } + + private int findVdrCursor(Cursor c) { + if (Preferences.get().getCurrentVdr() == null) { + return -1; + } + + int cid = Preferences.get().getCurrentVdr().getId(); + + int position = 0; + c.moveToPosition(-1); + while (c.moveToNext()) { + if (c.getInt(c.getColumnIndex("_id")) == cid) { + break; + } + position++; + } + return position; + } + + @Override + public void onBackPressed() { + if (Preferences.get().isQuiteOnBackButton()) { + finish(); + } else { + super.onBackPressed(); + } + + try { + // reassign a new and empty key store + ((VdrManagerApp)getApplication()).initSessionKeyStore(); + } catch (final Exception e) { + Log.e(getClass().getName(), "Can't clear session key store"); + } + + } + + public void startActivity(Class<?> clazz) { + Intent intent = new Intent(Intent.ACTION_VIEW); + intent.setClass(this, clazz); + startActivity(intent); + } + + public void onClick(View v) { + int id = v.getId(); + + switch (id) { + case R.id.action_menu_channels: + startActivity(ChannelListActivity.class); + break; + case R.id.action_menu_recordings: + startActivity(RecordingListActivity.class); + break; + case R.id.action_menu_timers: + startActivity(TimerListActivity.class); + break; + case R.id.action_menu_epg: + startActivity(TimeEpgListActivity.class); + break; +// case R.id.action_menu_search: +// onSearchRequested(); +// break; + case R.id.action_menu_wakeup: + final AsyncWakeupTask wakeupTask = new AsyncWakeupTask(this); + wakeupTask.execute(); + break; + case R.id.main_logo: + Intent i = new Intent(Intent.ACTION_VIEW); + i.setData(Uri.parse(VDR_PORTAL)); + startActivity(i); + break; + + case R.id.action_menu_remote: + startActivity(RemoteActivity.class); + break; + + } + + } + + protected void startSearchManager() { + Bundle appData = new Bundle(); + startSearch(null, false, appData, false); + } + + @Override + public boolean onSearchRequested() { + search.setVisibility(View.VISIBLE); + // Bundle appData = new Bundle(); + // appData.putBoolean(SearchableActivity.JARGON, true); + // startSearch(null, false, appData, false); + return true; + } + + @Override + public boolean onQueryTextSubmit(String query) { + // TODO Auto-generated method stub + return false; + } + + @Override + public boolean onQueryTextChange(String newText) { + // TODO Auto-generated method stub + return false; + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/VdrPreferencesActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/VdrPreferencesActivity.java new file mode 100644 index 0000000..143954c --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/gui/VdrPreferencesActivity.java @@ -0,0 +1,510 @@ +package de.bjusystems.vdrmanager.gui; + +import java.io.BufferedReader; +import java.io.FileReader; +import java.io.IOException; +import java.net.InetAddress; +import java.net.InetSocketAddress; +import java.net.Socket; +import java.util.ArrayList; +import java.util.List; + +import org.fueri.reeldroid.network.DeviceManager; + +import android.app.Activity; +import android.app.AlertDialog; +import android.app.ProgressDialog; +import android.content.DialogInterface; +import android.content.Intent; +import android.content.SharedPreferences; +import android.content.SharedPreferences.Editor; +import android.content.SharedPreferences.OnSharedPreferenceChangeListener; +import android.os.AsyncTask; +import android.os.Bundle; +import android.preference.Preference; +import android.preference.Preference.OnPreferenceClickListener; +import android.view.View; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.VdrSharedPreferencesImpl; +import de.bjusystems.vdrmanager.ZonePicker; +import de.bjusystems.vdrmanager.app.Intents; +import de.bjusystems.vdrmanager.data.FetchEditTextPreference; +import de.bjusystems.vdrmanager.data.Preferences; +import de.bjusystems.vdrmanager.data.Vdr; +import de.bjusystems.vdrmanager.data.db.DBAccess; +import de.bjusystems.vdrmanager.tasks.VoidAsyncTask; + +public class VdrPreferencesActivity extends BasePreferencesActivity implements + OnSharedPreferenceChangeListener, OnPreferenceClickListener { + + public static final int REQUEST_CODE_PICK_A_TIME_ZONE = 1; + + Vdr vdr; + + VdrSharedPreferencesImpl pref; + + int id = -1; + + @Override + public SharedPreferences getSharedPreferences(String name, int mode) { + return this.pref; + } + + @Override + public Preference findPreference(CharSequence key) { + return super.findPreference(key); + } + + @Override + protected void updateSummary(Preference ep) { + if (ep.getKey().equals("key_timezone")) { + String text = vdr.getServerTimeZone(); + if (text == null) { + return; + } + setSummary(text, ep); + return; + } + super.updateSummary(ep); + } + + private boolean isNew = false; + + private boolean hasChanged = false; + + private void initVDRInstance() { + id = getIntent().getIntExtra(Intents.VDR_ID, -1); + if (id == -1) {// new vdr + vdr = new Vdr(); + isNew = true; + } else {// edit + Vdr v = DBAccess.get(this).getVdrDAO().queryForId(id); + if (v != null) { + vdr = v; + } else { + vdr = new Vdr(); + id = -1; + isNew = true; + } + } + pref = new VdrSharedPreferencesImpl(vdr, DBAccess.get(this).getVdrDAO()); + } + + public static String ARP_CACHE = "/proc/net/arp"; + + /** + * return mac address as a string. + * + * @param ip + * @return + */ + public static String getMacFromArpCache(String ip) { + + if (ip == null) { + return null; + } + + BufferedReader br = null; + + try { + br = new BufferedReader(new FileReader(ARP_CACHE)); + + String line; + + while ((line = br.readLine()) != null) { + String[] values = line.split("\\s+"); + if (values != null && values.length >= 4 + && ip.equals(values[0])) { + // format check + String mac = values[3]; + if (mac.matches("..:..:..:..:..:..")) { + return mac; + } else { + return null; + } + } + } + } catch (Exception e) { + + } finally { + try { + br.close(); + } catch (IOException e) { + + } + } + return null; + } + + // private String getIp() throws Exception { + // final Preferences prefs = Preferences.get(); + // String host = prefs.getSvdrpHost(); + // return InetAddress.getByName(host).getHostAddress(); + // } + + private void ping(String ip, int port) throws Exception { + Socket socket = new Socket(); + socket.connect(new InetSocketAddress(ip, port), 5 * 1000); + socket.setSoTimeout(5 * 1000); + } + + @Override + protected void onCreate(Bundle savedInstanceState) { + + super.onCreate(savedInstanceState); + + initVDRInstance(); + + this.addPreferencesFromResource(R.xml.vdr_prefs); + + // this.getPreferenceManager().setSharedPreferencesName(Preferences.getPreferenceFile(this)); + + pref.registerOnSharedPreferenceChangeListener(this); + + String recstream = pref.getString("key_recstream_method", "vdr-live"); + + if (recstream.equals("vdr-live") == false) { + Preference p = findPreference("key_live_port"); + p.setEnabled(false); + // PreferenceCategory cat = (PreferenceCategory) + // findPreference("key_streaming_category"); + // cat.removePreference(p); + } + + if (recstream.equals("vdr-smarttvweb") == false) { + Preference p = findPreference("key_smarttvweb_port"); + p.setEnabled(false); + p = findPreference("key_smarttvweb_recstream_method"); + p.setEnabled(false); + + } + + // create background task + + // start task + + final FetchEditTextPreference macedit = (FetchEditTextPreference) findPreference(getString(R.string.wakeup_wol_mac_key)); + String mac = vdr.getMac(); + if (mac == null) { + mac = ""; + } + macedit.setText(mac); + macedit.setCompoundButtonListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + final String host = vdr.getHost(); + if (host == null) { + Utils.say(VdrPreferencesActivity.this, + getString(R.string.vdr_host_not_defined)); + return; + } + + new VoidAsyncTask() { + + ProgressDialog pd; + + private String mac; + + String message; + + protected void onPreExecute() { + pd = new ProgressDialog(VdrPreferencesActivity.this); + pd.setMessage(getString(R.string.processing)); + pd.show(); + }; + + protected void onPostExecute(Void result) { + pd.dismiss(); + if (message != null) { + Utils.say(VdrPreferencesActivity.this, message); + return; + } + macedit.setEditText(mac); + }; + + @Override + protected Void doInBackground(Void... params) { + try { + String ip = InetAddress.getByName(host) + .getHostAddress(); + ping(ip, vdr.getPort()); + mac = getMacFromArpCache(ip); + } catch (Exception ex) { + message = ex.getLocalizedMessage(); + } + + return null; + } + }.execute(); + } + }); + + final FetchEditTextPreference ipEdit = (FetchEditTextPreference) findPreference(getString(R.string.vdr_host_key)); + String ip = vdr.getHost(); + ipEdit.setText(ip); + ipEdit.setCompoundButtonListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + + new AsyncTask<Void, String, List<String>>() { + + ProgressDialog pd; + + String message; + + protected void onPreExecute() { + pd = new ProgressDialog(VdrPreferencesActivity.this); + pd.setMessage(getString(R.string.processing)); + pd.show(); + }; + + protected void onPostExecute(final List<String> ips) { + pd.dismiss(); + if (message != null) { + Utils.say(VdrPreferencesActivity.this, message); + return; + } + + if (ips.isEmpty()) { + Utils.say(VdrPreferencesActivity.this, + R.string.no_results); + return; + } + if (ips.size() == 1) { + ipEdit.setEditText(ips.get(0).toString()); + } else { + new AlertDialog.Builder(VdrPreferencesActivity.this) + .setItems( + ips.toArray(new CharSequence[] {}), + new DialogInterface.OnClickListener() { + @Override + public void onClick( + DialogInterface dialog, + int which) { + String ip = ips.get(which); + ipEdit.setEditText(ip); + } + }).show(); + } + + } + + protected void onProgressUpdate(String... values) { + pd.setMessage(getString(R.string.probing, values[0])); + }; + + @Override + protected List<String> doInBackground(Void... params) { + try { + + final int port = vdr.getPort(); + return DeviceManager.findVDRHosts( + VdrPreferencesActivity.this, port, + new DeviceManager.ProgressListener() { + + @Override + public void publish(String currentIP) { + publishProgress(currentIP); + } + }); + + } catch (Exception ex) { + message = ex.getLocalizedMessage(); + } + return new ArrayList<String>(0); + } + }.execute(); + + } + }); + + updateChildPreferences(); + + findPreference(getString(R.string.timezone_key)) + .setOnPreferenceClickListener(this); + + } + + public void onSharedPreferenceChanged(SharedPreferences arg0, String key) { + hasChanged = true; + updateChildPreferences(); + Preference p = findPreference(key); + updateSummary(p); + + if (key != null && key.equals("key_recstream_method")) { + String recstream = pref.getString("key_recstream_method", + "vdr-live"); + Preference pk = findPreference("key_live_port"); + if (recstream.equals("vdr-live") == false) { + + pk.setEnabled(false); + // PreferenceCategory cat = (PreferenceCategory) + // findPreference("key_streaming_category"); + // cat.removePreference(p); + } else { + pk.setEnabled(true); + } + + if (recstream.equals("vdr-smarttvweb") == false) { + p = findPreference("key_smarttvweb_port"); + p.setEnabled(false); + p = findPreference("key_smarttvweb_recstream_method"); + p.setEnabled(false); + + } else { + p = findPreference("key_smarttvweb_port"); + p.setEnabled(true); + p = findPreference("key_smarttvweb_recstream_method"); + p.setEnabled(true); + + } + + // if(pk) + // cat.addPreference(pk); + // } else { + // cat.removePreference(pk); + // } + } + + Preferences.reloadVDR(this); + } + + @Override + protected void onResume() { + super.onResume(); + pref.registerOnSharedPreferenceChangeListener(this); + } + + @Override + protected void onPause() { + super.onPause(); + // Unregister the listener whenever a key changes + pref.unregisterOnSharedPreferenceChangeListener(this); + } + + private void enableWolPreferences() { + Preference p = findPreference(getString(R.string.wakeup_wol_mac_key)); + if (p != null) + + p.setEnabled(true); + p = findPreference(getString(R.string.wakeup_wol_custom_broadcast_key)); + if (p != null) { + p.setEnabled(true); + } + } + + private void disableWolPreferences() { + Preference p = findPreference(getString(R.string.wakeup_wol_mac_key)); + if (p != null) + p.setEnabled(false); + + p = findPreference(getString(R.string.wakeup_wol_custom_broadcast_key)); + if (p != null) + p.setEnabled(false); + + } + + private void disableWakeupUrlPreferences() { + Preference p = findPreference(getString(R.string.wakeup_url_key)); + if (p != null) { + p.setEnabled(false); + } + p = findPreference(getString(R.string.wakeup_password_key)); + if (p != null) { + p.setEnabled(false); + } + + p = findPreference(getString(R.string.wakeup_user_key)); + if (p != null) { + p.setEnabled(false); + } + } + + private void enableWakeupUrlPrefenreces() { + Preference p = findPreference(getString(R.string.wakeup_url_key)); + if (p != null) { + p.setEnabled(true); + } + + p = findPreference(getString(R.string.wakeup_password_key)); + if (p != null) { + p.setEnabled(true); + } + p = findPreference(getString(R.string.wakeup_user_key)); + if (p != null) { + p.setEnabled(true); + } + } + + private void updateChildPreferences() { + String wakup = pref.getString(getString(R.string.wakeup_method_key), + "wol"); + + if (wakup.equals("url")) { + disableWolPreferences(); + enableWakeupUrlPrefenreces(); + } else {// remote url + disableWakeupUrlPreferences(); + enableWolPreferences(); + } + + for (String key : pref.getAll().keySet()) { + Preference p = findPreference(key); + updateSummary(p); + } + + } + + @Override + public void onBackPressed() { + if (id != -1) {// no new devices + setResult(RESULT_OK); + finish(); + return; + } + if (isNew == true && hasChanged == false) { + // if (pref.commits < 2) {// user has not changed anything + DBAccess.get(this).getVdrDAO().delete(pref.getVdr()); + finish(); + return; + } + super.onBackPressed(); + } + + @Override + public boolean onPreferenceClick(Preference preference) { + + String timezone = vdr.getServerTimeZone(); + + Intent intent = new Intent(this, ZonePicker.class); + intent.putExtra("current_tz", timezone); + startActivityForResult(intent, REQUEST_CODE_PICK_A_TIME_ZONE); + return true; + } + + + + @Override + protected void onActivityResult(int requestCode, int resultCode, Intent data) { + if (resultCode != Activity.RESULT_OK) { + super.onActivityResult(requestCode, resultCode, data); + return; + } + + // never mind, onResume also registers this, but the listenres are held + // in a map (as key) so that no double occurance + pref.registerOnSharedPreferenceChangeListener(this); + + if (requestCode == REQUEST_CODE_PICK_A_TIME_ZONE) { + String ntz = data.getStringExtra("new_tz"); + if (ntz != null) { + vdr.setServerTimeZone(ntz); + Editor editor = findPreference("key_timezone").getEditor(); + editor.putString("key_timezone", ntz); + editor.commit(); + // setSummary(ntz, ); + } + } + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/remote/HITK.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/remote/HITK.java new file mode 100644 index 0000000..5d0c596 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/remote/HITK.java @@ -0,0 +1,77 @@ +package de.bjusystems.vdrmanager.remote; + +/** + * Created by lado on 09.05.15. + */ +public enum HITK { + Up, + Down, + Menu, + Ok, + Back, + Left, + Right, + Red, + Green, + Yellow, + Blue, + Zero("0"), + One("1"), + Two("2"), + Three("3"), + Four("4"), + Five("5"), + Six("6"), + Seven("7"), + Eight("8"), + Nine("9"), + Info, + Play_Pause("Play/Pause"), + Play, + Pause, + Stop, + Record, + FastFwd, + FastRew, + Next, + Prev, + Power, + ChannelUp("Channel+"), + ChannelDown("Channel-"), + PrevChannel, + VolumeUp("Volume+"), + VolumeDown("Volume-"), + Mute, + Audio, + Subtitles, + Schedule, + Channels, + Timers, + Recordings, + Setup, + Commands, + User0, + User1, + User2, + User3, + User4, + User5, + User6, + User7, + User8, + User9,; + + String value; + + private HITK() { + this.value = this.name(); + } + + private HITK(String value) { + this.value = value; + } + + public String getValue(){ + return this.value; + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/remote/RemoteActivity.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/remote/RemoteActivity.java new file mode 100644 index 0000000..efd3cec --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/remote/RemoteActivity.java @@ -0,0 +1,490 @@ +package de.bjusystems.vdrmanager.remote; + + +import android.app.Activity; +import android.app.AlertDialog; +import android.content.Context; +import android.content.DialogInterface; +import android.content.Intent; +import android.content.SharedPreferences; +import android.os.AsyncTask; +import android.os.Build; +import android.os.Bundle; +import android.util.Pair; +import android.view.ContextMenu; +import android.view.KeyEvent; +import android.view.Menu; +import android.view.MenuInflater; +import android.view.MenuItem; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.ViewGroup; +import android.view.Window; +import android.view.WindowManager; +import android.view.animation.AlphaAnimation; +import android.widget.AdapterView; +import android.widget.ArrayAdapter; +import android.widget.Button; +import android.widget.EditText; +import android.widget.Spinner; +import android.widget.TextView; + +import org.hampelratte.svdrp.Connection; +import org.hampelratte.svdrp.Response; +import org.hampelratte.svdrp.commands.HITK; +import org.json.JSONException; +import org.json.JSONObject; + +import java.util.ArrayList; + +import de.androvdr.widget.AnimatedTextView; +import de.androvdr.widget.FontAwesome; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Preferences; +import de.bjusystems.vdrmanager.gui.ColoredButton; +import de.bjusystems.vdrmanager.gui.Utils; +import de.bjusystems.vdrmanager.tasks.VoidAsyncTask; + +/** + * The type Remote activity. + */ +public class RemoteActivity extends Activity implements OnClickListener, View.OnLongClickListener { + + private static final int TAG_KEY = -100; + + private Connection connection; + + private AnimatedTextView result; + private AlphaAnimation out; + private AlphaAnimation in; + + private View dummyContextMenuView; + + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + this.requestWindowFeature(Window.FEATURE_NO_TITLE); + + //Remove notification bar + this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); + View view = getLayoutInflater().inflate(R.layout.remote, null); + + setContentView(view); + + dummyContextMenuView = view.findViewById(R.id.resultwrapper); + registerForContextMenu(dummyContextMenuView); + view.setOnLongClickListener(this); + + + ViewGroup viewGroup = (ViewGroup) view.findViewById(R.id.remoteroot); + + //Button button = (Button) viewGroup.findViewById(R.id.red); + //button.getBackground().setColorFilter(0xFF00FF00, PorterDuff.Mode.MULTIPLY); + + setAllButtonListener(viewGroup); + + result = (AnimatedTextView) findViewById(R.id.result); + //Animation in = AnimationUtils.loadAnimation(this,android.R.anim.fade_in); + //Animation out = AnimationUtils.loadAnimation(this, android.R.anim.fade_out); +/* result.setInAnimation(in); + result.setOutAnimation(out); + result.setFactory(this);*/ + out = new AlphaAnimation(1.0f, 0.0f); + out.setDuration(100); + + in = new AlphaAnimation(0.0f, 1.0f); + in.setDuration(100); + + //SearchableSpinner spinner2 = (SearchableSpinner) findViewById(R.id.search2); + //spinner2.setList(getResources().getStringArray(R.array.font)); + + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + MenuInflater inflater = getMenuInflater(); + inflater.inflate(R.menu.remote_menu, menu); + return true; + } + + + @Override + public void onBackPressed() { + if (isBackKeyRemapped() == false) { + super.onBackPressed(); + } else { + new HitkAsyncTask() { + }.execute("Back"); + + } + } + + + private void resetOverrides() { + SharedPreferences sharedPref = getSharedPreferences("remote_" + Preferences.get().getCurrentVdr().getId(), Context.MODE_PRIVATE); + sharedPref + .edit() + .clear() + .commit(); + restart(); + } + + private boolean isBackKeyRemapped() { + SharedPreferences sharedPref = getSharedPreferences("misc_" + Preferences.get().getCurrentVdr().getId(), Context.MODE_PRIVATE); + return sharedPref.getBoolean("backishitk", false); + } + + private void setBackKeyRemapped(boolean value) { + SharedPreferences sharedPref = getSharedPreferences("misc_" + Preferences.get().getCurrentVdr().getId(), Context.MODE_PRIVATE); + sharedPref// + .edit()// + .putBoolean("backishitk", value)// + .commit(); + } + + @Override + public boolean onKeyLongPress(int keyCode, KeyEvent event) { + if (keyCode == KeyEvent.KEYCODE_BACK) { + if (isBackKeyRemapped() == false) { + return super.onKeyLongPress(keyCode, event); + } + super.onBackPressed(); + return true; + } + return super.onKeyLongPress(keyCode, event); + } + + + /** + * Export. + */ + public void export() { + SharedPreferences sharedPref = getSharedPreferences("remote_" + Preferences.get().getCurrentVdr().getId(), Context.MODE_PRIVATE); + ViewGroup viewGroup = (ViewGroup) findViewById(R.id.remoteroot); + ArrayList<Pair<String, String>> list = new ArrayList<>(); + gather(viewGroup, list, sharedPref); + + JSONObject root = new JSONObject(); + try { + for (Pair<String, String> stringStringPair : list) { + root.put(stringStringPair.first, stringStringPair.second); + } + } catch (JSONException jse) { + Utils.say(this, jse.getLocalizedMessage()); + } + + Intent i = new Intent(android.content.Intent.ACTION_SEND); + i.setType("application/json"); + i.putExtra(android.content.Intent.EXTRA_TEXT, root.toString()); + startActivity(Intent.createChooser(i, getResources().getString(R.string.export_custom_key_mapping))); + } + + /** + * Gather. + * + * @param viewGroup the view group + * @param pair the pair + * @param sharedPref the shared pref + */ + public void gather(ViewGroup viewGroup, ArrayList<Pair<String, String>> pair, SharedPreferences sharedPref) { + for (int i = 0; i < viewGroup.getChildCount(); i++) { + View v = viewGroup.getChildAt(i); + if (v instanceof ViewGroup) { + gather((ViewGroup) v, pair, sharedPref); + } else if (v instanceof Button) { + if (v.getTag() == null) { + continue; + } + String hitk = sharedPref.getString("key_" + String.valueOf(v.getTag()), null); + String label = sharedPref.getString("label_" + String.valueOf(v.getTag()), null); + if (hitk == null && label == null) { + continue; + } + pair.add(Pair.create(hitk, label)); + } + } + } + + + @Override + protected void onPause() { + super.onPause(); + if (connection != null) { + new VoidAsyncTask() { + @Override + protected Void doInBackground(Void... params) { + try { + connection.close(); + connection = null; + } catch (Exception e) { + e.printStackTrace(); + } + return null; + } + }.execute(); + + } + } + + + @Override + protected void onResume() { + super.onResume(); + Preferences.init(this); + } + + /** + * Sets all button listener. + * + * @param viewGroup the view group + */ + public void setAllButtonListener(ViewGroup viewGroup) { + + // + SharedPreferences sharedPref = getSharedPreferences("remote_" + Preferences.get().getCurrentVdr().getId(), Context.MODE_PRIVATE); + View v; + for (int i = 0; i < viewGroup.getChildCount(); i++) { + v = viewGroup.getChildAt(i); + if (v instanceof ViewGroup) { + setAllButtonListener((ViewGroup) v); + } else if (v instanceof Button) { + if (v.getTag() == null) { + continue; + } + ((Button) v).setOnClickListener(this); + ((Button) v).setOnLongClickListener(this); + + String hitk = sharedPref.getString("key_" + String.valueOf(v.getTag()), null); + setOverrideTag(v, hitk); + String label = sharedPref.getString("label_" + String.valueOf(v.getTag()), null); + setOverrideLabel((Button) v, label); + } + } + } + + private void setOverrideLabel(Button b, CharSequence label) { + if (label == null) { + return; + } + b.setText(label); + } + + + private void restart() { + + if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { + recreate(); + } else { + Intent intent = getIntent(); + overridePendingTransition(0, 0); + intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION); + finish(); + + overridePendingTransition(0, 0); + startActivity(intent); + } + } + + @Override + public boolean onContextItemSelected(MenuItem item) { + + switch (item.getItemId()) { + case R.id.reset: { + resetOverrides(); + return true; + } + case R.id.exprt: { + export(); + return true; + } + case R.id.imprt: { + Utils.say(this, R.string.not_yet_implemented); + return true; + } + case R.id.remapback: { + if (item.isChecked()) { + setBackKeyRemapped(false); + } else { + setBackKeyRemapped(true); + Utils.say(this, R.string.remapback_hint); + } + } + } + return super.onContextItemSelected(item); + } + + @Override + public void onClick(final View v) { + new HitkAsyncTask() { + }.execute(getCurrentTag(v)); + } + + ; + + @Override + public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) { + + MenuInflater inflater = getMenuInflater(); + inflater.inflate(R.menu.remote_menu, menu); + MenuItem item = menu.findItem(R.id.remapback); + } + + @Override + public boolean onLongClick(final View v) { + + if (v.getId() == R.id.remoteroot) { + openContextMenu(dummyContextMenuView); + return true; + } + + CharSequence text = ((Button) v).getText(); + final String tag = (String) v.getTag(); + final String override = (String) v.getTag(TAG_KEY); + String current = override != null ? override : tag; + + View view = getLayoutInflater().inflate(R.layout.edit_remote_key, null); + + + final EditText hitk = (EditText) view.findViewById(R.id.hitk); + TextView hitkLabel = (TextView) view.findViewById(R.id.hitkLabel); + if (v instanceof ColoredButton) { + hitk.setVisibility(View.GONE); + hitkLabel.setVisibility(View.GONE); + } else { + hitk.setVisibility(View.VISIBLE); + hitkLabel.setVisibility(View.VISIBLE); + hitk.setTypeface( + FontAwesome.getFontAwesome(this) + ); + } + hitk.setText(text); + final Spinner hitkspinner = (Spinner) view.findViewById(R.id.hitkSpinner); + + final ArrayList<String> keys = new ArrayList<>(); + for (de.bjusystems.vdrmanager.remote.HITK hk : de.bjusystems.vdrmanager.remote.HITK.values()) { + keys.add(hk.getValue()); + } + ArrayAdapter<CharSequence> adapter = new ArrayAdapter<CharSequence>(this, android.R.layout.simple_spinner_dropdown_item, keys.toArray(new String[]{})); +// Specify the layout to use when the list of choices appears + // hitkspinner.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); +// Apply the adapter to the spinner + hitkspinner.setAdapter(adapter); + int selected = -1; + for (int i = 0; i < keys.size(); ++i) { + String k = keys.get(i); + if (k.equals(current)) { + selected = i; + break; + } + } + hitkspinner.setSelection(selected); + hitkspinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { + @Override + public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { + + } + + @Override + public void onNothingSelected(AdapterView<?> parent) { + + } + }); + + AlertDialog.Builder builder = new AlertDialog.Builder(this); + builder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + CharSequence nhk = hitk.getText(); + ((Button) v).setText(nhk); + String hitk = (String) hitkspinner.getSelectedItem(); + putVdrKey("key_" + tag, hitk); + putVdrKey("label_" + tag, nhk); + setOverrideTag(v, hitk); + + } + }) + .setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() { + @Override + public void onClick(DialogInterface dialog, int which) { + + } + }).setView(view); + + builder.create().show(); + + + return false; + } + + private void putVdrKey(String key, CharSequence value) { + SharedPreferences sharedPref = getSharedPreferences("remote_" + Preferences.get().getCurrentVdr().getId(), Context.MODE_PRIVATE); + SharedPreferences.Editor edit = sharedPref.edit(); + edit.putString(key, String.valueOf(value)); + edit.commit(); + } + + private String getCurrentTag(View view) { + Object tag = view.getTag(); + if (tag instanceof String == false) { + return null; + } + + Object otag = view.getTag(TAG_KEY); + if (otag == null) { + return (String) tag; + } + return (String) otag; + } + + private void setOverrideTag(View view, String hitk) { + view.setTag(TAG_KEY, hitk); + } + + /** + * The type Hitk async task. + */ + class HitkAsyncTask extends AsyncTask<String, Void, Void> { + + /** + * The Send. + */ + Response send; + + /** + * The Ex. + */ + Exception ex; + + @Override + protected void onPostExecute(Void aVoid) { + result.setText(""); + result.fadeIn(); + if (send != null) { + result.setText(String.valueOf(send.getMessage())); + result.fadeOut(); + //Utils.say(getBaseContext(), send.toString()); + } else if (ex != null) { + result.setText(ex.getMessage()); + } + } + + @Override + protected Void doInBackground(String... hitk) { + try { + + if (connection == null) { + connection = new Connection(Preferences.get().getHost(), Preferences.get().getSvdrpPort()); + } + + send = connection.send(new HITK(hitk[0])); + } catch (Exception ex) { + this.ex = ex; + } + + return null; + } + + + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/AsyncProgressTask.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/AsyncProgressTask.java new file mode 100644 index 0000000..022b479 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/AsyncProgressTask.java @@ -0,0 +1,81 @@ +package de.bjusystems.vdrmanager.tasks; + +import android.app.Activity; +import de.bjusystems.vdrmanager.gui.SvdrpProgressDialog; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpAsyncTask; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpClient; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpEvent; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpException; + +public abstract class AsyncProgressTask<Result> { + + class AsyncProgress extends SvdrpProgressDialog<Result> { + + public AsyncProgress(final Activity activity, + final SvdrpClient<Result> client) { + super(activity, client); + } + + @Override + public void svdrpEvent(final SvdrpEvent event) { + super.svdrpEvent(event); + AsyncProgressTask.this.svdrpEvent(event); + switch (event) { + case ABORTED: + case CONNECT_ERROR: + case CONNECTION_TIMEOUT: + case ERROR: + case LOGIN_ERROR: + case FINISHED_ABNORMALY: + case FINISHED_SUCCESS: + case CACHE_HIT: + AsyncProgressTask.this.finished(event); + break; + } + } + + @Override + public void svdrpEvent(SvdrpEvent event, Throwable th) { + super.svdrpEvent(event,th); + AsyncProgressTask.this.svdrpEvent(event, th); + } + } + + Activity activity; + SvdrpClient<Result> client; + + public AsyncProgressTask(final Activity activity, + final SvdrpClient<Result> client) { + this.activity = activity; + this.client = client; + } + + public void start() { + + // delete timer + /* + * final SetTimerClient client = new SetTimerClient(timer, true) { + * + * @Override public int getProgressTextId() { return + * R.string.progress_timer_delete; } }; + */ + final SvdrpAsyncTask<Result, SvdrpClient<Result>> task = new SvdrpAsyncTask<Result, SvdrpClient<Result>>( + client); + final AsyncProgress progress = new AsyncProgress(activity, client); + task.addSvdrpListener(progress); + task.addSvdrpExceptionListener(progress); + task.run(); + } + + public void svdrpEvent(final SvdrpEvent event){ + + } + + + public void svdrpEvent(final SvdrpEvent event, Throwable th){ + + } + + + public abstract void finished(SvdrpEvent event); +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/ChannelsTask.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/ChannelsTask.java new file mode 100644 index 0000000..1623575 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/ChannelsTask.java @@ -0,0 +1,11 @@ +package de.bjusystems.vdrmanager.tasks; + +import android.app.Activity; +import de.bjusystems.vdrmanager.data.Channel; +import de.bjusystems.vdrmanager.utils.svdrp.ChannelClient; + +public abstract class ChannelsTask extends AsyncProgressTask<Channel> { + public ChannelsTask(final Activity activity, final ChannelClient client) { + super(activity, client); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/CreateTimerTask.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/CreateTimerTask.java new file mode 100644 index 0000000..fa7dc43 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/CreateTimerTask.java @@ -0,0 +1,20 @@ +package de.bjusystems.vdrmanager.tasks; + +import android.app.Activity; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Timer; +import de.bjusystems.vdrmanager.gui.CertificateProblemDialog; +import de.bjusystems.vdrmanager.utils.svdrp.SetTimerClient; +import de.bjusystems.vdrmanager.utils.svdrp.SetTimerClient.TimerOperation; + +public abstract class CreateTimerTask extends AsyncProgressTask<Timer> { + + public CreateTimerTask(final Activity activity, final Timer timer) { + super(activity, new SetTimerClient(timer, TimerOperation.CREATE, new CertificateProblemDialog(activity)) { + @Override + public int getProgressTextId() { + return R.string.progress_timer_save; + } + }); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/DeleteRecordingTask.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/DeleteRecordingTask.java new file mode 100644 index 0000000..b9f5f75 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/DeleteRecordingTask.java @@ -0,0 +1,18 @@ +package de.bjusystems.vdrmanager.tasks; + +import android.app.Activity; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Recording; +import de.bjusystems.vdrmanager.gui.CertificateProblemDialog; +import de.bjusystems.vdrmanager.utils.svdrp.DelRecordingClient; + +public abstract class DeleteRecordingTask extends AsyncProgressTask<Recording> { + public DeleteRecordingTask(final Activity activity, final Recording r) { + super(activity, new DelRecordingClient(r, new CertificateProblemDialog(activity)) { + @Override + public int getProgressTextId() { + return R.string.progress_recording_delete; + } + }); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/DeleteTimerTask.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/DeleteTimerTask.java new file mode 100644 index 0000000..b3314d2 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/DeleteTimerTask.java @@ -0,0 +1,20 @@ +package de.bjusystems.vdrmanager.tasks; + +import android.app.Activity; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Timer; +import de.bjusystems.vdrmanager.gui.CertificateProblemDialog; +import de.bjusystems.vdrmanager.utils.svdrp.SetTimerClient; +import de.bjusystems.vdrmanager.utils.svdrp.SetTimerClient.TimerOperation; + +public abstract class DeleteTimerTask extends AsyncProgressTask<Timer> { + + public DeleteTimerTask(final Activity activity, final Timer timer) { + super(activity, new SetTimerClient(timer, TimerOperation.DELETE, new CertificateProblemDialog(activity)) { + @Override + public int getProgressTextId() { + return R.string.progress_timer_delete; + } + }); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/ModifyTimerTask.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/ModifyTimerTask.java new file mode 100644 index 0000000..80aae53 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/ModifyTimerTask.java @@ -0,0 +1,24 @@ +package de.bjusystems.vdrmanager.tasks; + +import android.app.Activity; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Timer; +import de.bjusystems.vdrmanager.gui.CertificateProblemDialog; +import de.bjusystems.vdrmanager.utils.svdrp.SetTimerClient; +import de.bjusystems.vdrmanager.utils.svdrp.SetTimerClient.TimerOperation; + +public abstract class ModifyTimerTask extends AsyncProgressTask<Timer> { + + public ModifyTimerTask(final Activity activity, final Timer newTimer, final Timer oldTimer) { + super(activity, new SetTimerClient(newTimer, oldTimer, TimerOperation.MODIFY, new CertificateProblemDialog(activity)) { + @Override + public int getProgressTextId() { + return R.string.progress_timer_modify; + } + + + }); + + + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/ToggleTimerTask.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/ToggleTimerTask.java new file mode 100644 index 0000000..82daae4 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/ToggleTimerTask.java @@ -0,0 +1,27 @@ +package de.bjusystems.vdrmanager.tasks; + +import android.app.Activity; +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Timer; +import de.bjusystems.vdrmanager.gui.CertificateProblemDialog; +import de.bjusystems.vdrmanager.utils.svdrp.SetTimerClient; +import de.bjusystems.vdrmanager.utils.svdrp.SetTimerClient.TimerOperation; + +public abstract class ToggleTimerTask extends AsyncProgressTask<Timer> { + + public ToggleTimerTask(final Activity activity, final Timer timer) { + super(activity, new SetTimerClient(timer, TimerOperation.TOGGLE, new CertificateProblemDialog(activity)) { + boolean enabled = timer.isEnabled(); + + @Override + public int getProgressTextId() { + if (enabled) { + return R.string.progress_timer_disable; + } else { + return R.string.progress_timer_enable; + } + } + }); + timer.setEnabled(!timer.isEnabled()); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/VoidAsyncTask.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/VoidAsyncTask.java new file mode 100644 index 0000000..1d9f9f7 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/tasks/VoidAsyncTask.java @@ -0,0 +1,7 @@ +package de.bjusystems.vdrmanager.tasks; + +import android.os.AsyncTask; + +public abstract class VoidAsyncTask extends AsyncTask<Void, Void, Void>{ + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/date/DateFormatter.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/date/DateFormatter.java new file mode 100644 index 0000000..95f99db --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/date/DateFormatter.java @@ -0,0 +1,49 @@ +package de.bjusystems.vdrmanager.utils.date; + +import java.text.DateFormat; +import java.text.SimpleDateFormat; +import java.util.Calendar; +import java.util.Date; + +import de.bjusystems.vdrmanager.data.Preferences; + + +/** + * Class for formatting date and time values + * @author bju + * + */ +public class DateFormatter { + + private final String timeString; + private final String dateString; + private final String dailyHeader; + + public DateFormatter(final Date date) { + SimpleDateFormat sdf = new SimpleDateFormat(Preferences.get().getTimeFormat()); + timeString = sdf.format(date); + sdf = new SimpleDateFormat("EEE dd.MM.yy"); + dateString = sdf.format(date); + dailyHeader = DateFormat.getDateInstance(DateFormat.FULL).format(date); + } + + public DateFormatter(final long seconds) { + this(new Date(seconds * 1000)); + } + + public DateFormatter(final Calendar cal) { + this(cal.getTime()); + } + + public String getDateString() { + return dateString; + } + + public String getTimeString() { + return timeString; + } + + public String getDailyHeader() { + return dailyHeader; + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/http/HttpHelper.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/http/HttpHelper.java new file mode 100644 index 0000000..8d3c4d1 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/http/HttpHelper.java @@ -0,0 +1,53 @@ +package de.bjusystems.vdrmanager.utils.http; + + +import android.util.Base64; + +import java.io.IOException; +import java.net.HttpURLConnection; +import java.net.URL; +import java.util.Map; + +/** + * Apache HttpClient helper class for performing HTTP requests. + * + * This class is intentionally *not* bound to any Android classes so that it is easier + * to develop and test. Use calls to this class inside Android AsyncTask implementations + * (or manual Thread-Handlers) to make HTTP requests asynchronous and not block the UI Thread. + * + * TODO cookies + * TODO multi-part binary data + * TODO follow 302s? + * TODO shutdown connection mgr? - client.getConnectionManager().shutdown(); + * + * @author ccollins + * + */ +public class HttpHelper { + + + + /** + * Perform an HTTP GET operation with user/pass and headers. + * + */ + public int performGet(final String url, final String user, final String pass, + final Map<String, String> additionalHeaders) throws IOException { + + String authString = user + ":" + pass; + + byte[] authEncBytes = Base64.encode(authString.getBytes(), Base64.DEFAULT); + String authStringEnc = new String(authEncBytes); + + URL u = new URL(url); + + HttpURLConnection con = (HttpURLConnection) u.openConnection(); + + con.setRequestMethod("GET"); + con.setRequestProperty("Authorization", "Basic " + authStringEnc); + return con.getResponseCode(); + } + + +} + diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/AliveClient.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/AliveClient.java new file mode 100644 index 0000000..0d5dca9 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/AliveClient.java @@ -0,0 +1,47 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +import de.bjusystems.vdrmanager.data.AliveState; + +/** + * Class for retrieving informations about the running program + * @author bju + * + */ +public class AliveClient extends SvdrpClient<AliveState> { + + /** + * Constructor + * @param certificateProblemListener + */ + public AliveClient(final CertificateProblemListener certificateProblemListener) { + super(certificateProblemListener); + } + + /** + * Starts the EPG request + * @param parameter parameter for lste + */ + @Override + public void run() { + runCommand("aliv"); + } + + @Override + public AliveState parseAnswer(final String line) { + + if (line.startsWith("200")) { + return AliveState.ALIVE; + } + if (line.startsWith("400")) { + return AliveState.DEAD; + } + return AliveState.UNKNOWN; + } + + @Override + public int getProgressTextId() { + return 0; + } + + +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/CertificateProblemListener.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/CertificateProblemListener.java new file mode 100644 index 0000000..ac0ac1e --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/CertificateProblemListener.java @@ -0,0 +1,39 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +import java.security.cert.X509Certificate; + +import android.app.Activity; + +/** + * Interface for reporting problems with the SSL certificate + * @author bju + * + */ +public interface CertificateProblemListener { + + /** + * Possible user decisions on certificate problems + */ + public enum CertificateProblemAction { + + /** Abort the connection */ + ABORT, + /** Accept the certificate this time */ + ACCEPT_ONCE, + /** Accept the certificate forever */ + ACCEPT_FOREVER + } + + /** + * Reports the certificate problem and waits for a user decision + * @param chain Certificate trust chain + * @param authType authentication type + */ + CertificateProblemAction reportProblem(final X509Certificate[] chain, final String authType); + + /** + * Gets the current activity + * @return activity + */ + Activity getCurrentActivity(); +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/ChannelClient.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/ChannelClient.java new file mode 100644 index 0000000..c3761c4 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/ChannelClient.java @@ -0,0 +1,184 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.TreeMap; + +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Channel; +import de.bjusystems.vdrmanager.data.Preferences; + +/** + * Class for retrieving informations about the running program + * + * @author bju + * + */ +public class ChannelClient extends SvdrpClient<Channel> implements +SvdrpListener, SvdrpResultListener<Channel> { + + private static final ArrayList<String> channelGroups = new ArrayList<String>(); + + private static final ArrayList<String> channelSources = new ArrayList<String>(); + + private static LinkedHashMap<String, ArrayList<Channel>> groupChannels = new LinkedHashMap<String, ArrayList<Channel>>(); + + private static TreeMap<String, ArrayList<Channel>> providerChannels = new TreeMap<String, ArrayList<Channel>>(); + + private static TreeMap<String, ArrayList<Channel>> sourceChannels = new TreeMap<String, ArrayList<Channel>>(); + + private static ArrayList<Channel> channels = new ArrayList<Channel>(); + + private static Map<String, Channel> idChannels = new HashMap<String, Channel>(); + + public static Map<String, Channel> getIdChannels() { + return idChannels; + } + + private static boolean inited = false; + + public ChannelClient(final CertificateProblemListener certificateProblemListener) { + super(certificateProblemListener); + // if (useCache == false) { + // clearCache(); + // } + addSvdrpListener(this); + addSvdrpResultListener(this); + } + + public static void clearCache() { + channelSources.clear(); + sourceChannels.clear(); + channelGroups.clear(); + groupChannels.clear(); + providerChannels.clear(); + channels.clear(); + idChannels.clear(); + inited = false; + } + + public static ArrayList<String> getChannelGroups() { + return channelGroups; + } + + public static ArrayList<String> getChannelSources() { + return channelSources; + } + + + public static HashMap<String, ArrayList<Channel>> getGroupChannels() { + return groupChannels; + } + + public static TreeMap<String, ArrayList<Channel>> getProviderChannels() { + return providerChannels; + } + + public static TreeMap<String, ArrayList<Channel>> getSourceChannels() { + return sourceChannels; + } + + public static ArrayList<Channel> getChannels() { + return channels; + } + + /** + * Constructor + * + * @param host + * host + * @param port + * port + * @param ssl + * use ssl + */ + // public ChannelClient() { + // this(true); + // + // } + + /** + * Starts the EPG request + * + * @param parameter + * parameter for lste + */ + @Override + synchronized public void run() { + if (inited == true) { + informListener(SvdrpEvent.CACHE_HIT); + } else { + runCommand("channels " + Preferences.get().getChannels()); + } + } + + @Override + public Channel parseAnswer(final String line) { + return new Channel(line); + } + + @Override + public int getProgressTextId() { + return R.string.progress_channels_loading; + } + + ArrayList<Channel> currentChannels = new ArrayList<Channel>(); + + String currentGroup; + + private void addSourceChannel(final Channel c){ + ArrayList<Channel> channels = sourceChannels.get(c.getSource()); + + if(channels == null){ + channels = new ArrayList<Channel>(); + sourceChannels.put(c.getSource(), channels); + channelSources.add(c.getSource()); + } + channels.add(c); + } + + private void received(final Channel c) { + + if (c.isGroupSeparator()) { + currentGroup = c.getName(); + channelGroups.add(currentGroup); + currentChannels = new ArrayList<Channel>(); + groupChannels.put(c.getName(), currentChannels); + } else { + + addSourceChannel(c); + + if (channelGroups.isEmpty()) {// receiver channel with no previous + // group + channelGroups.add(""); + groupChannels.put("", currentChannels); + } + + c.setGroup(currentGroup); + channels.add(c); + idChannels.put(c.getId(), c); + currentChannels.add(c); + final String provider = c.getProvider(); + ArrayList<Channel> pchannels = providerChannels.get(provider); + if (pchannels == null) { + pchannels = new ArrayList<Channel>(); + providerChannels.put(provider, pchannels); + } + pchannels.add(c); + } + } + + @Override + public void svdrpEvent(final Channel c) { + received(c); + } + + @Override + public void svdrpEvent(final SvdrpEvent event) { + if (event == SvdrpEvent.FINISHED_SUCCESS) { + inited = true; + } + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/DelRecordingClient.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/DelRecordingClient.java new file mode 100644 index 0000000..522e285 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/DelRecordingClient.java @@ -0,0 +1,49 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Recording; + +/** + * Class for deleting a record + * @author lado + * + */ +public class DelRecordingClient extends SvdrpClient<Recording> { + + /** current recording */ + Recording recording; + + /** + * Constructor + * Recording + */ + public DelRecordingClient(final Recording recording, final CertificateProblemListener certificateProblemListener) { + super(certificateProblemListener); + this.recording = recording; + } + + /** + * Starts the request + */ + @Override + public void run() { + + final StringBuilder command = new StringBuilder(); + + command.append("drecording "); + command.append(recording.toCommandLine()); + runCommand(command.toString()); + } + + + @Override + public int getProgressTextId() { + return R.string.progress_timer_save; + } + + @Override + protected Recording parseAnswer(final String line) { + return null; + } +} + diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/EpgClient.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/EpgClient.java new file mode 100644 index 0000000..6b651ab --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/EpgClient.java @@ -0,0 +1,94 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +import android.content.Context; + +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Channel; +import de.bjusystems.vdrmanager.data.Epg; +import de.bjusystems.vdrmanager.data.EpgSearchParams; +import de.bjusystems.vdrmanager.data.Preferences; +import de.bjusystems.vdrmanager.data.Timer; + +/** + * Class for retrieving informations about the running program + * @author bju + * + */ +public class EpgClient extends SvdrpClient<Epg> { + + /** Time to retrieve EPG for */ + private String time; + /** Channel to retrieve EPG for */ + private Channel channel; + /** Search parameters to retrieve EPG for */ + private EpgSearchParams search; + /** Last read EPG */ + private Epg lastEpg; + + /** + * Constructor + */ + private EpgClient(final CertificateProblemListener certificateProblemListener) { + super(certificateProblemListener); + this.time = null; + this.channel = null; + this.search = null; + } + + /** + * Constructor + * @param time time to search for epg events + */ + public EpgClient(final String time, final CertificateProblemListener certificateProblemListener) { + this(certificateProblemListener); + this.time = time; + } + + /** + * Constructor + * @param channel channel to search for epg events + */ + public EpgClient(final Channel channel, final CertificateProblemListener certificateProblemListener) { + this(certificateProblemListener); + this.channel = channel; + } + + public EpgClient(final EpgSearchParams search, final CertificateProblemListener certificateProblemListener) { + this(certificateProblemListener); + this.search = search; + } + + /** + * Starts the EPG request + * @param parameter parameter for lste + */ + @Override + public void run() { + if (time != null) { + runCommand(String.format("tevents %s %s", time, Preferences.get().getChannels())); + } else if (channel != null) { + runCommand(String.format("cevents %s", channel.getNumber())); + } else if (search != null) { + runCommand(String.format("search %s:%s", Preferences.get().getChannels(), search.toCommandLine())); + } + } + + @Override + public Epg parseAnswer(final String line) { + + if (line.startsWith("E")) { + lastEpg = new Epg(line); + return lastEpg; + } else if (line.startsWith("T")) { + lastEpg.setTimer(new Timer(line)); + } + return null; + } + + @Override + public int getProgressTextId() { + return R.string.progress_whatson_loading; + } + +} + diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/MySSLSocketFactory.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/MySSLSocketFactory.java new file mode 100644 index 0000000..6c87faa --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/MySSLSocketFactory.java @@ -0,0 +1,253 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.net.Socket; +import java.security.KeyManagementException; +import java.security.KeyStore; +import java.security.KeyStoreException; +import java.security.NoSuchAlgorithmException; +import java.security.SecureRandom; +import java.security.UnrecoverableKeyException; +import java.security.cert.CertificateException; +import java.security.cert.X509Certificate; +import java.util.ArrayList; +import java.util.List; + +import javax.net.ssl.SSLContext; +import javax.net.ssl.SSLSocketFactory; +import javax.net.ssl.TrustManager; +import javax.net.ssl.TrustManagerFactory; +import javax.net.ssl.X509TrustManager; + +import android.app.Activity; +import android.content.Context; +import android.util.Log; +import de.bjusystems.vdrmanager.app.VdrManagerApp; + + +/** + * SSLSocketFactory + * @author bju + */ +public class MySSLSocketFactory extends org.apache.http.conn.ssl.SSLSocketFactory { + + /** The key store file */ + private final String keyStoreFile = "KeyStore"; + + /** the key store */ + private KeyStore appKeyStore; + + /** the real socket factory */ + private final SSLSocketFactory sslFactory; + + /** the trust managers */ + private X509TrustManager[] trustManagers; + + /** the current activity */ + private final Activity activity; + + public MySSLSocketFactory(final boolean acceptAllCertificates, final CertificateProblemListener certProblemListener) + throws KeyManagementException, NoSuchAlgorithmException, UnrecoverableKeyException, KeyStoreException { + + super(null); + + // save context + this.activity = certProblemListener.getCurrentActivity(); + + // accept all host names + this.setHostnameVerifier(org.apache.http.conn.ssl.SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER); + + // load the key store + initKeyStore(); + + // initialize the trust managers + if (acceptAllCertificates) { + initInsecureTrustManagers(); + } else { + initSecureTrustManagers(certProblemListener); + } + + // create SSL context + final SSLContext context = SSLContext.getInstance("TLS"); + context.init(null, trustManagers, new SecureRandom()); + + // create the real factory + sslFactory = context.getSocketFactory(); + + } + + @Override + public Socket createSocket() throws IOException { + return sslFactory.createSocket(); + } + + /** + * initialize the key store + * @return KeyStore + * @throws KeyStoreException + */ + private void initKeyStore() throws KeyStoreException { + + try { + appKeyStore = KeyStore.getInstance(KeyStore.getDefaultType()); + + try { + final InputStream stream = activity.openFileInput(keyStoreFile); + appKeyStore.load(stream, null); + } catch (final FileNotFoundException e) { + appKeyStore.load(null); + } + } catch (final Exception e) { + throw new KeyStoreException(e); + } + } + + /** + * initialize the trust managers validating certificates + * @param acceptAllCertificates accept all certificates + * @param certProblemListener listener to inform about certificate problems + * @throws NoSuchAlgorithmException + * @throws KeyStoreException + */ + private void initSecureTrustManagers(final CertificateProblemListener certProblemListener) throws NoSuchAlgorithmException, KeyStoreException { + + final List<X509TrustManager> trustManagerList = new ArrayList<X509TrustManager>(); + + // initialize the trust manager accepting certificates contained in the session key store + TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance("X509"); + trustManagerFactory.init(((VdrManagerApp)activity.getApplication()).getSessionKeyStore()); + X509TrustManager trustManager = getTrustManager(trustManagerFactory); + if (trustManager != null) { + trustManagerList.add(trustManager); + } + + // initialize the trust manager accepting certificates contained in the permanent key store + trustManagerFactory = TrustManagerFactory.getInstance("X509"); + trustManagerFactory.init(appKeyStore); + trustManager = getTrustManager(trustManagerFactory); + if (trustManager != null) { + trustManagerList.add(trustManager); + } + + // initialize the trust manager accepting certificates accepted from the system + trustManagerFactory = TrustManagerFactory.getInstance("X509"); + trustManagerFactory.init((KeyStore)null); + trustManager = getTrustManager(trustManagerFactory); + if (trustManager != null) { + trustManagerList.add(trustManager); + } + + trustManagers = new X509TrustManager[] { + new X509TrustManager() { + + @Override + public X509Certificate[] getAcceptedIssuers() { + return null; + } + + @Override + public void checkServerTrusted(final X509Certificate[] chain, final String authType) throws CertificateException { + CertificateException lastException = null; + for(final X509TrustManager tm : trustManagerList) { + try { + tm.checkServerTrusted(chain, authType); + return; + } catch (final CertificateException e) { + lastException = e; + } + } + + switch (certProblemListener.reportProblem(chain, authType)) { + case ACCEPT_ONCE: + saveCertificate(chain, authType, false); + return; + case ACCEPT_FOREVER: + saveCertificate(chain, authType, true); + return; + default: + if (lastException != null) { + throw lastException; + } + break; + } + + + throw new CertificateException("Certificate not validated"); + } + + @Override + public void checkClientTrusted(final X509Certificate[] chain, final String authType) throws CertificateException { + // NOP + } + } + }; + } + + /** + * initializes the trust managers validating nothing + */ + private void initInsecureTrustManagers() { + + trustManagers = new X509TrustManager[] { + new X509TrustManager() { + @Override + public X509Certificate[] getAcceptedIssuers() { + return null; + } + + @Override + public void checkServerTrusted(final X509Certificate[] chain, final String authType) throws CertificateException { + } + + @Override + public void checkClientTrusted(final X509Certificate[] chain, final String authType) throws CertificateException { + } + } + }; + } + + /** + * finds the X509 trust manager + * @param trustManagerFactory TrustManager factory + * @return X509 trust manager + */ + private X509TrustManager getTrustManager(final TrustManagerFactory trustManagerFactory) { + + for(final TrustManager trustManager : trustManagerFactory.getTrustManagers()) { + if (trustManager instanceof X509TrustManager) { + return (X509TrustManager) trustManager; + } + } + return null; + } + + /** + * Saves the certificate + * @param chain certificate chain + * @param authType authentication type + */ + private void saveCertificate(final X509Certificate[] chain, final String authType, final boolean permanently) { + + // get the certificate alias + final String alias = chain[0].getSubjectDN().toString(); + + // key store to use + final KeyStore saveKeyStore = permanently ? appKeyStore : ((VdrManagerApp)activity.getApplication()).getSessionKeyStore(); + + // store the certificate for this alias + try { + saveKeyStore.setCertificateEntry(alias, chain[0]); + + // the session key store is not saved + if (permanently) { + final FileOutputStream stream = activity.openFileOutput(keyStoreFile, Context.MODE_PRIVATE); + saveKeyStore.store(stream, null); + } + } catch (final Exception e) { + Log.e(getClass().getName(), "Can't save certificate for ' " + alias + "' as trusted"); + } + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/RecordingClient.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/RecordingClient.java new file mode 100644 index 0000000..99d88f9 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/RecordingClient.java @@ -0,0 +1,33 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +import android.content.Context; + +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Recording; + +public class RecordingClient extends SvdrpClient<Recording> { + + /** + * Constructor + * @param certificateProblemListener + */ + public RecordingClient(final CertificateProblemListener certificateProblemListener) { + super(certificateProblemListener); + } + + @Override + protected Recording parseAnswer(final String line) { + return new Recording(line); + } + + @Override + public int getProgressTextId() { + return R.string.progress_recordings_loading; + } + + @Override + public synchronized void run() { + runCommand("recordings"); + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SetTimerClient.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SetTimerClient.java new file mode 100644 index 0000000..8abc02a --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SetTimerClient.java @@ -0,0 +1,93 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +import android.content.Context; + +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Timer; + +/** + * Class for retrieving informations about the running program + * @author bju + * + */ +public class SetTimerClient extends SvdrpClient<Timer> { + + public enum TimerOperation { + CREATE("C"),// + DELETE("D"),// + MODIFY("M"),// + TOGGLE("T"),// + ; + private String command; + private TimerOperation(final String command){ + this.command = command; + } + public String getCommand(){ + return this.command; + } + + } + + /** channel names for timer */ + Timer newTimer; + + Timer oldTimer; + + /** timer should be deleted */ + private final TimerOperation timerOperation; + + /** + * @param newTimer Das was modifiziert angelegt wird + */ + public SetTimerClient(final Timer newTimer, final TimerOperation op, final CertificateProblemListener certificateProblemListener) { + this(newTimer, null, op, certificateProblemListener); + } + + /** + * @param newTimer + * @param oldTimer this is original Timer, if any (modify) + * @param op + */ + public SetTimerClient(final Timer newTimer, final Timer oldTimer, final TimerOperation op, final CertificateProblemListener certificateProblemListener) { + super(certificateProblemListener); + this.newTimer = newTimer; + this.oldTimer = oldTimer; + this.timerOperation = op; + } + + + /** + * Starts the request + */ + @Override + public void run() { + + final StringBuilder command = new StringBuilder(); + + command.append("timer "); + command.append(timerOperation.getCommand()); + //command.append(oldTimer.getNumber()); + command.append(" "); + command.append(newTimer.toCommandLine()); + if(timerOperation == TimerOperation.MODIFY){ + command.append("#|#|#").append(oldTimer.toCommandLine()); + } + //timer D 1:1:2011-11-11:1513:1710:50:99:Mirrors 2 + //timer C 1:1:2011-11-11:2223:2250:50:99:Zapping + //timer T 0:1:2011-11-11:2013:2230:50:99:So spielt das Leben + //timer M + runCommand(command.toString()); + } + + @Override + public Timer parseAnswer(final String line) { + return new Timer(line); + } + + @Override + public int getProgressTextId() { + return R.string.progress_timer_save; + } + +} + diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpAsyncTask.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpAsyncTask.java new file mode 100644 index 0000000..505b084 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpAsyncTask.java @@ -0,0 +1,165 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +import java.util.ArrayList; +import java.util.List; + +import android.os.AsyncTask; + +public class SvdrpAsyncTask<Result, Client extends SvdrpClient<Result>> extends +AsyncTask<Void, Object, Void> implements SvdrpListener, +SvdrpExceptionListener, SvdrpResultListener<Result> { + + Client client; + + Throwable ex; + + SvdrpEvent event; + + List<SvdrpListener> eventListeners = new ArrayList<SvdrpListener>(); + + List<SvdrpExceptionListener> exceptionListeners = new ArrayList<SvdrpExceptionListener>(); + + List<SvdrpFinishedListener<Result>> finishedListeners = new ArrayList<SvdrpFinishedListener<Result>>(); + + //CertificateProblemListener certificateProblemListener = null; + + //CertificateProblemAction certificateProblemAction; + + public SvdrpAsyncTask(final Client client) { + this.client = client; + this.client.addSvdrpListener(this); + this.client.addSvdrpExceptionListener(this); + this.client.addSvdrpResultListener(this); + } + + protected List<Result> results = new ArrayList<Result>(); + + + public List<Result> getResults() { + return results; + } + + + /** + * Adds the listener to the list of listeners + * + * @param listener + * listener + */ + public void addSvdrpListener(final SvdrpListener listener) { + // client.addSvdrpListener(listener); + eventListeners.add(listener); + } + + /** + * Adds the listener to the list of listeners + * + * @param listener + * listener + */ + public void addSvdrpResultListener( + final SvdrpResultListener<Result> listener) { + client.addSvdrpResultListener(listener); + } + + public void addSvdrpFinishedListener(final SvdrpFinishedListener<Result> liste) { + finishedListeners.add(liste); + } + + /** + * Adds the listener to the list of listeners + * + * @param listener + * listener + */ + public void addSvdrpExceptionListener(final SvdrpExceptionListener listener) { + // client.addSvdrpExceptionListener(listener); + exceptionListeners.add(listener); + } + + public void run() { + execute(); + } + + @Override + protected Void doInBackground(final Void... params) { + client.run(); + return null; + } + + @Override + protected void onProgressUpdate(final Object... values) { + + if (values.length == 1) { + + if (List.class.isAssignableFrom(values[0].getClass())) { + for (final SvdrpFinishedListener<Result> listener : finishedListeners) { + listener.finished((List<Result>) values[0]); + } + return; + } + + for (final SvdrpListener listener : eventListeners) { + listener.svdrpEvent((SvdrpEvent) values[0]); + } + + } else if (values.length == 2) { + for (final SvdrpExceptionListener listener : exceptionListeners) { + listener.svdrpEvent((SvdrpEvent) values[0], (Throwable) values[1]); + } + } + + /* + * switch (event) { case CONNECTING: { + * setMessage(R.string.progress_connect); progress.show(); break; } + * + * case LOGGED_IN: { setMessage(R.string.progress_login); break; } + * + * case COMMAND_SENT: { setMessage(client.getProgressTextId()); break; } + * + * case DISCONNECTING: { setMessage(R.string.progress_disconnect); + * break; } + * + * case ERROR: case CONNECTION_TIMEOUT: case CONNECT_ERROR: case + * FINISHED_ABNORMALY: case CACHE_HIT: case FINISHED_SUCCESS: case + * LOGIN_ERROR: { progress.dismiss(); } + * + * } + */ + } + + // @Override + // protected void onPostExecute(SvdrpException exception) { + // for (SvdrpExceptionListener l : exceptionListeners) { + // l.svdrpEvent(exception.getEvent(), ex); + // } + // } + + @Override + public void svdrpEvent(final SvdrpEvent event) { + publishProgress(event);; + if(event == SvdrpEvent.FINISHED_SUCCESS){ + publishProgress(results); + } + } + + // @Override + // public void finished(ListResult> results) { + // publishProgress(results); + // } + + @Override + public void svdrpEvent(final SvdrpEvent event, final Throwable t) { + publishProgress(event, t); + } + + + @Override + public void svdrpEvent(final Result result) { + results.add(result); + } + + public void abort(){ + client.abort(); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpClient.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpClient.java new file mode 100644 index 0000000..31fa0f4 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpClient.java @@ -0,0 +1,530 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.io.UnsupportedEncodingException; +import java.net.InetSocketAddress; +import java.net.Socket; +import java.net.SocketTimeoutException; +import java.util.ArrayList; +import java.util.List; +import java.util.Locale; +import java.util.Timer; +import java.util.TimerTask; +import java.util.zip.GZIPInputStream; +import java.util.zip.InflaterInputStream; + +import android.content.Context; +import android.sax.StartElementListener; +import android.util.Log; +import de.bjusystems.vdrmanager.app.C; +import de.bjusystems.vdrmanager.data.Preferences; + +/** + * Class for SVDRP communication + * + * @author bju + * + */ +public abstract class SvdrpClient<Result> { + + private final String TAG = getClass().getName(); + + /** Socket for connection to SVDRP */ + private Socket socket; + /** Output stream for sending commands */ + private OutputStream outputStream; + /** Input stream for reading answer lines */ + private InputStream inputStream; + /** flag for stopping the current request */ + private boolean abort; + /** listener for events */ + private final List<SvdrpListener> svdrpListeners = new ArrayList<SvdrpListener>(); + /** Listener for start */ + private final List<SvdrpStartListener> startListeners = new ArrayList<SvdrpStartListener>(); + /** listeners for results */ + private final List<SvdrpResultListener<Result>> svdrpResultListeners = new ArrayList<SvdrpResultListener<Result>>(); + /** listeners for exceptions */ + private final List<SvdrpExceptionListener> svdrpExceptionListeners = new ArrayList<SvdrpExceptionListener>(); + /** listeners for finished job */ + private final List<SvdrpFinishedListener<Result>> svdrpFinishedListeners = new ArrayList<SvdrpFinishedListener<Result>>(); + /** listener for certificate problems set by caller */ + private final CertificateProblemListener certificateProblemListener; + + /** list of results */ + // private final List<Result> results = new ArrayList<Result>(); + /** should the listener be informed about each received result */ + // private boolean resultInfoEnabled = false; + /** + * @return true if the client has result + */ + // public boolean hasResults(){ + // return results.isEmpty() == false; + // } + + private final Timer watchDog = new Timer(); + + private String encoding; + + + // private NativeDES crypt = new NativeDES(); + + public boolean isConnected() { + if (socket == null) { + return false; + } + return socket.isConnected(); + } + + /** + * Parse received answer line + * + * @param line + * line + * @return received data object or null if not completed yet + */ + protected abstract Result parseAnswer(String line); + + public abstract int getProgressTextId(); + + public abstract void run(); + + /** + * Constructor + * + */ + protected SvdrpClient(final CertificateProblemListener certificateProblemListener) { + this.certificateProblemListener = certificateProblemListener; + } + + /** + * Remove all listeners + */ + public void clearListener() { + svdrpExceptionListeners.clear(); + svdrpListeners.clear(); + svdrpResultListeners.clear(); + } + + /** + * Adds the listener to the list of listeners + * + * @param listener + * listener + */ + public void addSvdrpListener(final SvdrpListener listener) { + svdrpListeners.add(listener); + } + + public void addStartListener(final SvdrpStartListener listener) { + startListeners.add(listener); + } + + /** + * Adds the listener to the list of listeners + * + * @param listener + * listener + */ + public void addSvdrpResultListener( + final SvdrpResultListener<Result> listener) { + svdrpResultListeners.add(listener); + } + + /** + * Adds the listener to the list of listeners + * + * @param listener + * listener + */ + public void addSvdrpFinishedListener( + final SvdrpFinishedListener<Result> listener) { + svdrpFinishedListeners.add(listener); + } + + /** + * Adds the listener to the list of listeners + * + * @param listener + * listener + */ + public void addSvdrpExceptionListener(final SvdrpExceptionListener listener) { + svdrpExceptionListeners.add(listener); + } + + /** + * Removes the listener from the list of listeners + * + * @param listener + * listener + */ + public void removeSvdrpListener(final SvdrpListener listener) { + svdrpListeners.remove(listener); + } + + public void remoeStartListener(final SvdrpStartListener listener) { + startListeners.remove(listener); + } + + public void removeSvdrpResultListener( + final SvdrpResultListener<Result> listener) { + svdrpResultListeners.remove(listener); + } + + public void removeSvdrpExceptionListener( + final SvdrpExceptionListener listener) { + svdrpExceptionListeners.remove(listener); + } + + /** + * Cancel the current request + */ + public void abort() { + abort = true; + try { + if (isConnected()) { + socket.shutdownInput(); + socket.shutdownOutput(); + socket.close(); + } + } catch (final Exception ex) { + Log.w(TAG, ex); + } + + } + + // /** + // * Gets the list of results + // * + // * @return results + // */ + // public List<Result> getResults() { + // return results; + // } + + /** + * Connect to SVDRP + * + * @param host + * host + * @param port + * port + * @param ssl + * use SSL + * @throws IOException + * on errors + */ + protected boolean connect() throws IOException { + + final Preferences prefs = Preferences.get(); + encoding = prefs.getEncoding(); + try { + // connect + informListener(SvdrpEvent.CONNECTING); + + if (prefs.isSecure()) { + socket = new MySSLSocketFactory(false, + certificateProblemListener).createSocket(); + } else { + socket = new Socket(); + } + + socket.connect( + new InetSocketAddress(prefs.getHost(), prefs + .getPort()), + prefs.getConnectionTimeout() * 1000);// 8 secs for connect + if (abort) { + informListener(SvdrpEvent.ABORTED); + } + // + socket.setSoTimeout(prefs.getReadTimeout() * 1000);// 15 sec for + // each read + final long delay = C.ONE_MINUTE_IN_MILLIS * prefs.getTimeout() * 60; // in + // 3 + // minutes + // we + // abort + // the + // communication + watchDog.schedule(new TimerTask() { + @Override + public void run() { + Log.w(TAG, "Aborted after " + delay + " ms"); + abort = true; + } + }, delay); + informListener(SvdrpEvent.CONNECTED); + + // create streams + outputStream = socket.getOutputStream(); + inputStream = socket.getInputStream(); + + } catch (final SocketTimeoutException sote) { + Log.w(TAG, sote); + if (abort) { + informListener(SvdrpEvent.ABORTED); + } else { + informListener(SvdrpEvent.CONNECTION_TIMEOUT); + } + return false; + } catch (final Exception e) { + + Log.w(TAG, e); + if (abort) { + informListener(SvdrpEvent.ABORTED); + } else { + informListener(SvdrpEvent.CONNECT_ERROR); + } + return false; + } + + // password needed? + informListener(SvdrpEvent.LOGIN); + writeLine("passwd " + prefs.getPassword()); + if (!readLine().startsWith("!OK")) { + informListener(SvdrpEvent.LOGIN_ERROR); + disconnect(); + return false; + } else { + informListener(SvdrpEvent.LOGGED_IN); + } + return true; + } + + /** + * Disconnect from SVDRP if connected + * + * @throws IOException + * on errors + */ + protected void disconnect() throws IOException { + informListener(SvdrpEvent.DISCONNECTING); + if (socket != null && socket.isConnected()) { + writeLine("quit"); + socket.close(); + socket = null; + } + informListener(SvdrpEvent.DISCONNECTED); + } + + /** + * Sends one line to SVDRP + * + * @param line + * line of text + * @throws IOException + * on errors + */ + protected void writeLine(final String line) throws IOException { + + final String command = line + "\r\n"; + // if (false && Preferences.get().isSecure()) { + // command = crypt.encrypt(command, Preferences.get().getPassword()); + // } + final byte[] bytes = command.getBytes("utf-8"); + outputStream.write(bytes); + outputStream.flush(); + } + + /** + * Reads one line from SVDRP + * + * @return line read + * @throws IOException + * on errors + */ + protected String readLine() throws IOException { + + // handle not gzipped input + final ByteArrayOutputStream lineBytes = new ByteArrayOutputStream(); + + for (;;) { + + // read next char + final int d = inputStream.read(); + if (d < 0) { + break; + } + final char c = (char) d; + + // skip '\r' + if (c == '\r') { + continue; + } + + // with '\n' the line is completed + if (c == '\n') { + break; + } + + // remember char + lineBytes.write(c); + } + + String line = null; + try { + line = lineBytes.toString(encoding); + lineBytes.close(); + } catch (final UnsupportedEncodingException usex) { + Log.w(TAG, usex); + line = lineBytes.toString(); + } + // if (false && Preferences.get().isSecure()) { + // line = crypt.decrypt(line, Preferences.get().getPassword()); + // } + return line; + } + + public void runCommand(final String command) { + + try { + + // reset cancel flag + abort = false; + + // clear results + // results.clear(); + + // connect + final boolean connected = connect(); + if (!connected) { + return; + } + + // activate compression + Log.i(TAG, "Activate compression"); + writeLine("compress"); + + // send command + informListener(SvdrpEvent.COMMAND_SENDING); + writeLine(command); + informListener(SvdrpEvent.COMMAND_SENT); + Log.i(TAG, SvdrpEvent.COMMAND_SENT + ":" + command); + + // get the answer for the compress command or + // the first line of the answer for the command + String line = readLine(); + if (line.startsWith("!OK")) { + final String[] words = line.split(" "); + if (words.length > 1) { + final String mode = words[1].toUpperCase(Locale.getDefault()); + if (mode.equals("ZLIB")) { + Log.i(TAG, "ZLIB compression activated"); + inputStream = new InflaterInputStream(inputStream); + } else if (mode.equals("GZIP")) { + Log.i(TAG, "GZIP compression activated"); + inputStream = new GZIPInputStream(inputStream); + } else { + Log.i(TAG, "NO compression activated"); + } + } + line = readLine(); + } else { + Log.i(TAG, "NO compression activated"); + } + + // correct answer? + if (!line.startsWith("START")) { + Log.w(TAG, line); + throw new IOException("Answer not wellformed: " + line); + } + + if (line.startsWith("START|")) { + informStartListener(line.substring(6)); + } + + // read answer lines + for (; !abort;) { + + // get next line + line = readLine(); + if (line.length() == 0) { + break; + } + + // last line? + if (line.startsWith("END")) { + break; + } + + // error? + if (line.startsWith("!ERROR")) { + Log.w(TAG, line); + String msg; + if (line.startsWith("!ERROR:")) { + msg = line.substring(7); + } else { + msg = line; + } + disconnect(); + informListener(SvdrpEvent.ERROR, new SvdrpException(SvdrpEvent.ERROR,msg)); + break; + } + + // delegate analysis + Result result = null; + try { + result = parseAnswer(line); + + } catch (final Exception ex) { + Log.w(TAG, ex); + disconnect(); + Log.w(TAG, "line: " + line); + informListener(SvdrpEvent.ERROR, ex); + return; + } + if (result != null) { + informListener(result); + // results.add(result); + // if (resultInfoEnabled) { + + // } + } + + } + + // disconnect + disconnect(); + + if (abort) { + informListener(SvdrpEvent.ABORTED); + } else { + informListener(SvdrpEvent.FINISHED_SUCCESS); + } + + } catch (final Exception e) { + Log.w(TAG, e); + informListener(SvdrpEvent.FINISHED_ABNORMALY, e); + } + } + + // public void setResultInfoEnabled(final boolean resultInfoEnabled) { + // this.resultInfoEnabled = resultInfoEnabled; + // } + + protected void informListener(final SvdrpEvent event, final Throwable e) { + for (final SvdrpExceptionListener listener : svdrpExceptionListeners) { + listener.svdrpEvent(event, e); + } + } + + protected void informListener(final SvdrpEvent event) { + for (final SvdrpListener listener : svdrpListeners) { + listener.svdrpEvent(event); + } + } + + protected void informListener(final Result result) { + for (final SvdrpResultListener<Result> listener : svdrpResultListeners) { + listener.svdrpEvent(result); + } + } + + protected void informStartListener(final String result) { + for (final SvdrpStartListener l : startListeners) { + l.start(result); + } + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpEvent.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpEvent.java new file mode 100644 index 0000000..a64f905 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpEvent.java @@ -0,0 +1,24 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +public enum SvdrpEvent { + CONNECTING, + CONNECTED, + CONNECT_ERROR, + LOGIN, + LOGGED_IN, + LOGIN_ERROR, + COMMAND_SENDING, + COMMAND_SENT, + //RESULT_RECEIVED, + DISCONNECTING, + DISCONNECTED, + FINISHED_ABNORMALY, + FINISHED_SUCCESS, + ABORTED, + ERROR, + CACHE_HIT, + CONNECTION_TIMEOUT + // + ; + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpException.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpException.java new file mode 100644 index 0000000..8deb8e1 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpException.java @@ -0,0 +1,33 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +/** + * Class for exception caused by SVDRP errors + * @author bju + * + */ +@SuppressWarnings("serial") +public class SvdrpException extends Exception { + + SvdrpEvent event; + + public SvdrpEvent getEvent() { + return event; + } + + public void setEvent(SvdrpEvent event) { + this.event = event; + } + + public SvdrpException(SvdrpEvent event, String text) { + super(text); + this.event = event; + } + + public SvdrpException(String text, Throwable cause) { + super(text, cause); + } + + public SvdrpException(Throwable cause) { + super(cause); + } +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpExceptionListener.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpExceptionListener.java new file mode 100644 index 0000000..1483e6d --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpExceptionListener.java @@ -0,0 +1,5 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +public interface SvdrpExceptionListener { + void svdrpEvent(SvdrpEvent event, Throwable t); +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpFinishedListener.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpFinishedListener.java new file mode 100644 index 0000000..7fba637 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpFinishedListener.java @@ -0,0 +1,9 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +import java.util.List; + +public interface SvdrpFinishedListener<Result> { + + public void finished(List<Result> results); + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpListener.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpListener.java new file mode 100644 index 0000000..88ea35e --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpListener.java @@ -0,0 +1,9 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + + +public interface SvdrpListener{ + + + void svdrpEvent(SvdrpEvent event); + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpResultListener.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpResultListener.java new file mode 100644 index 0000000..fbea3c3 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpResultListener.java @@ -0,0 +1,6 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +public interface SvdrpResultListener<Result> { + + void svdrpEvent(Result result); +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpStartListener.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpStartListener.java new file mode 100644 index 0000000..e7c6700 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SvdrpStartListener.java @@ -0,0 +1,15 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +public interface SvdrpStartListener { + /** + * + * START is read + * + * The Start line may contain addition information separated by '|' + * + * So START|some meta info + * @param meta may be null + */ + void start(String meta); + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SwitchChannelClient.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SwitchChannelClient.java new file mode 100644 index 0000000..65a4d59 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/SwitchChannelClient.java @@ -0,0 +1,57 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +import de.bjusystems.vdrmanager.R; + + +/** + * Class for switching a channel by SETCHANNEL <NR|CHID> + * + * @author lado + * + */ +public class SwitchChannelClient extends SvdrpClient<String> { + + private Integer nr; + + private String chid; + + public SwitchChannelClient(final Integer nr, final CertificateProblemListener certificateProblemListener){ + this(certificateProblemListener); + this.nr = nr; + } + + public SwitchChannelClient(final String chid, final CertificateProblemListener certificateProblemListener){ + this(certificateProblemListener); + this.chid = chid; + } + + /** + * Constructor + */ + public SwitchChannelClient(final CertificateProblemListener certificateProblemListener) { + super(certificateProblemListener); + } + + /** + * Starts the wakeup request + */ + @Override + public void run() { + if(nr != null){ + runCommand("SETCHANNEL " + String.valueOf(nr)); + } else { + runCommand("SETCHANNEL " + chid); + } + } + + @Override + public String parseAnswer(final String line) { + return line; + } + + @Override + public int getProgressTextId() { + return R.string.progress_switching; + } + +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/TimerClient.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/TimerClient.java new file mode 100644 index 0000000..90ad2f7 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/svdrp/TimerClient.java @@ -0,0 +1,49 @@ +package de.bjusystems.vdrmanager.utils.svdrp; + +import android.content.Context; + +import java.util.HashMap; +import java.util.Map; + +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Channel; +import de.bjusystems.vdrmanager.data.Timer; + +/** + * Class for retrieving informations about the running program + * @author bju + * + */ +public class TimerClient extends SvdrpClient<Timer> { + + /** channel names for timer */ + Map<String, Channel> channels; + + /** + * Constructor + * @param certificateProblemListener CertificateProblemListener + */ + public TimerClient(final CertificateProblemListener certificateProblemListener) { + super(certificateProblemListener); + this.channels = new HashMap<String, Channel>(); + } + + /** + * Starts the EPG request + */ + @Override + public synchronized void run() { + runCommand("timers conflicts"); + } + + @Override + public Timer parseAnswer(final String line) { + return new Timer(line); + } + + @Override + public int getProgressTextId() { + return R.string.progress_timers_loading; + } +} + diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/wakeup/AsyncWakeupTask.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/wakeup/AsyncWakeupTask.java new file mode 100644 index 0000000..0b99b04 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/wakeup/AsyncWakeupTask.java @@ -0,0 +1,118 @@ +package de.bjusystems.vdrmanager.utils.wakeup; + +import android.app.ProgressDialog; +import android.content.Context; +import android.os.AsyncTask; +import android.util.Log; +import android.widget.Toast; + +import java.io.IOException; + +import de.bjusystems.vdrmanager.R; +import de.bjusystems.vdrmanager.data.Preferences; +import de.bjusystems.vdrmanager.utils.http.HttpHelper; + +public class AsyncWakeupTask extends AsyncTask<Object, WakeupProgress, Void> { + + private static final String TAG = "AsyncWakeupTask"; + /** Context */ + private final Context context; + /** Progress dialog */ + private ProgressDialog progressDialog; + + public AsyncWakeupTask(final Context context) { + this.context = context; + } + + Wakeuper getWakeuper() { + // Preferences + final Preferences prefs = Preferences.get(); + + if (Preferences.get().getWakeupMethod().equals("url")) { + return new Wakeuper() { + public void wakeup(Context context) throws Exception{ + // wakeup by http request + final HttpHelper httpHelper = new HttpHelper(); + int result = httpHelper.performGet(prefs.getWakeupUrl(), + prefs.getWakeupUser(), prefs.getWakeupPassword(), + null); + if(result == 200){ + throw new Exception("Http Status Code "+result); + } + } + }; + } else { + return new Wakeuper() { + public void wakeup(Context context) throws Exception { + WakeOnLanClient.wake(prefs.getVdrMac()); + } + }; + } + } + + @Override + protected Void doInBackground(final Object... params) { + + // open progress dialog + publishProgress(new WakeupProgress(WakeupProgressType.WAKEUP_STARTED)); + + boolean ok = false; + String msg = null; + try { + getWakeuper().wakeup(context); + ok = true; + } catch (final Exception e) { + Log.w(TAG, e); + msg = e.getMessage(); + } + + // close progress + publishProgress(new WakeupProgress(WakeupProgressType.WAKEUP_FINISHED)); + if (ok) { + publishProgress(new WakeupProgress(WakeupProgressType.WAKEUP_OK)); + } else { + publishProgress(new WakeupProgress(WakeupProgressType.WAKEUP_ERROR, + msg)); + } + + return null; + } + + @Override + protected void onProgressUpdate(final WakeupProgress... values) { + super.onProgressUpdate(values); + + WakeupProgress t = values[0]; + + switch (t.getState()) { + case WAKEUP_STARTED: + final CharSequence message = context + .getText(R.string.progress_wakeup_sending); + progressDialog = ProgressDialog.show(context, "", message); + break; + case WAKEUP_FINISHED: + progressDialog.dismiss(); + break; + case WAKEUP_OK: + showToast(R.string.progress_wakeup_sent); + break; + case WAKEUP_ERROR: + showToast(R.string.progress_wakeup_error, t.getInfo()); + break; + } + } + + private void showToast(final int textId, Object... args) { + + final CharSequence text; + if (args.length > 1) { + text = context.getString(textId); + } else { + text = context.getString(textId, args); + } + final int duration = Toast.LENGTH_SHORT; + final Toast toast = Toast.makeText(context, text, duration); + toast.show(); + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/wakeup/WakeOnLanClient.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/wakeup/WakeOnLanClient.java new file mode 100644 index 0000000..737195a --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/wakeup/WakeOnLanClient.java @@ -0,0 +1,140 @@ +/* + MythDroid: Android MythTV Remote + Copyright (C) 2009-2010 foobum@gmail.com + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +package de.bjusystems.vdrmanager.utils.wakeup; + +import java.io.BufferedReader; +import java.io.FileReader; +import java.io.IOException; +import java.net.DatagramPacket; +import java.net.DatagramSocket; +import java.net.InetAddress; + +import de.bjusystems.vdrmanager.data.Preferences; + +import android.text.TextUtils; +import android.util.Log; + +/** Send WakeOnLan packets */ +public class WakeOnLanClient { + + static private byte[] addr; + static private byte[] buf = new byte[17 * 6]; + + /** + * Send a wake on lan packet + * + * @param hwaddr + * String containing the MAC address of the target + */ + public static void wake(String hwaddr) throws Exception { + addr = parseAddr(hwaddr); + for (int i = 0; i < 6; i++) + buf[i] = (byte) 0xff; + for (int i = 6; i < buf.length; i += 6) + System.arraycopy(addr, 0, buf, i, 6); + // if (.debug) + Log.d("WakeOnLAN", //$NON-NLS-1$ + "Sending WOL packets to 255.255.255.255 " + //$NON-NLS-1$ + "ports 7, 9 for MAC address " + hwaddr //$NON-NLS-1$ + ); + + String broadcast = Preferences.get().getWolCustomBroadcast(); + if (TextUtils.isEmpty(broadcast) == true) { + broadcast = "255.255.255.255";//$NON-NLS-1$ + } + + InetAddress address = InetAddress.getByName(broadcast); + DatagramPacket dgram = new DatagramPacket(buf, buf.length, address, 9); + DatagramSocket sock = new DatagramSocket(); + sock.setBroadcast(true); + sock.send(dgram); + dgram.setPort(7); + sock.send(dgram); + sock.close(); + } + + /** + * Try to extract a hardware MAC address from a given IP address using the + * ARP cache (/proc/net/arp).<br> + * <br> + * We assume that the file has this structure:<br> + * <br> + * IP address HW type Flags HW address Mask Device 192.168.18.11 0x1 0x2 + * 00:04:20:06:55:1a * eth0 192.168.18.36 0x1 0x2 00:22:43:ab:2a:5b * eth0 + * + * @param ip + * @return the MAC from the ARP cache + */ + public static String getMacFromArpCache(String ip) { + if (ip == null) + return null; + BufferedReader br = null; + try { + br = new BufferedReader(new FileReader("/proc/net/arp")); + String line; + while ((line = br.readLine()) != null) { + String[] splitted = line.split(" +"); + if (splitted != null && splitted.length >= 4 + && ip.equals(splitted[0])) { + // Basic sanity check + String mac = splitted[3]; + if (mac.matches("..:..:..:..:..:..")) { + return mac; + } else { + return null; + } + } + } + } catch (Exception e) { + e.printStackTrace(); + } finally { + try { + br.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } + return null; + } + + /** + * + * Parse a MAC Addresse + * + * @param addr + * @return + * @throws IllegalArgumentException + */ + public static byte[] parseAddr(String addr) throws IllegalArgumentException { + byte[] bytes = new byte[6]; + String[] hex = addr.split(":"); //$NON-NLS-1$ + if (hex.length != 6) + throw new IllegalArgumentException("Invalid MAC address"); //$NON-NLS-1$ + try { + for (int i = 0; i < 6; i++) + bytes[i] = (byte) Integer.parseInt(hex[i], 16); + } catch (NumberFormatException e) { + throw new IllegalArgumentException( + "Invalid hex digit in MAC address" //$NON-NLS-1$ + ); + } + return bytes; + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/wakeup/WakeupProgress.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/wakeup/WakeupProgress.java new file mode 100644 index 0000000..f86608a --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/wakeup/WakeupProgress.java @@ -0,0 +1,26 @@ +package de.bjusystems.vdrmanager.utils.wakeup; + +public class WakeupProgress { + + public WakeupProgress(WakeupProgressType state) { + this(state, null); + } + + public WakeupProgress(WakeupProgressType state, String info) { + this.state = state; + this.info = info; + } + + private WakeupProgressType state; + + private String info; + + public WakeupProgressType getState() { + return state; + } + + public String getInfo() { + return info; + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/wakeup/WakeupProgressType.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/wakeup/WakeupProgressType.java new file mode 100644 index 0000000..28dcf38 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/wakeup/WakeupProgressType.java @@ -0,0 +1,8 @@ +package de.bjusystems.vdrmanager.utils.wakeup; + +public enum WakeupProgressType { + WAKEUP_STARTED, + WAKEUP_OK, + WAKEUP_ERROR, + WAKEUP_FINISHED +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/wakeup/WakeupUrlClient.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/wakeup/WakeupUrlClient.java new file mode 100644 index 0000000..231554a --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/wakeup/WakeupUrlClient.java @@ -0,0 +1,53 @@ +package de.bjusystems.vdrmanager.utils.wakeup; + +import de.bjusystems.vdrmanager.data.WakeupState; +import de.bjusystems.vdrmanager.utils.svdrp.CertificateProblemListener; +import de.bjusystems.vdrmanager.utils.svdrp.SvdrpClient; + +/** + * Class for retrieving informations about the running program + * @author bju + * + */ +public class WakeupUrlClient extends SvdrpClient<WakeupState> { + + private WakeupState state; + + /** + * Constructor + */ + public WakeupUrlClient(final CertificateProblemListener certificateProblemListener) { + super(certificateProblemListener); + } + + /** + * Starts the wakeup request + */ + @Override + public void run() { + runCommand("wake"); + } + + @Override + public WakeupState parseAnswer(final String line) { + + if (line.startsWith("200")) { + state = WakeupState.OK; + } else if (line.startsWith("400")) { + state = WakeupState.FAILED; + } else { + state = WakeupState.ERROR; + } + return state; + } + + @Override + public int getProgressTextId() { + return 0; + } + + public WakeupState getState() { + return state; + } + +}
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/wakeup/Wakeuper.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/wakeup/Wakeuper.java new file mode 100644 index 0000000..5b149e4 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/de/bjusystems/vdrmanager/utils/wakeup/Wakeuper.java @@ -0,0 +1,20 @@ +package de.bjusystems.vdrmanager.utils.wakeup; + +import android.content.Context; + +/** + * @author lado + * Interface to implement several wakeup methods + */ +public interface Wakeuper { + + /** + * + * + * + * @param context + * @throws Exception if the wakeup process is not ended ok. Please note, on a.e. WOL, there can + * not be no guarantee, that the host has been woken up. + */ + void wakeup(Context context) throws Exception; +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/java/org/fueri/reeldroid/network/DeviceManager.java b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/org/fueri/reeldroid/network/DeviceManager.java new file mode 100644 index 0000000..427ff35 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/java/org/fueri/reeldroid/network/DeviceManager.java @@ -0,0 +1,150 @@ +package org.fueri.reeldroid.network; + +import java.net.InetAddress; +import java.net.InetSocketAddress; +import java.net.Socket; +import java.net.UnknownHostException; +import java.util.ArrayList; +import java.util.List; + +import android.content.Context; +import android.net.ConnectivityManager; +import android.net.wifi.WifiInfo; +import android.net.wifi.WifiManager; + +/*** + * + * DeviceManager singleton + * + * @author Patrick Fürlinger fueri@fueri.ch + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * + * + */ +public class DeviceManager { + + private static final int MAX_PING_TIMEOUT_MS = 40; + + public static interface ProgressListener { + void publish(String currentIP); + } + + /** + * + * @param defaultPort + * @return + */ + public static List<String> findVDRHosts(Context context, + Integer defaultPort, ProgressListener listener) { + + if (defaultPort == null) { + defaultPort = 6420; + } + + List<String> list = new ArrayList<String>(); + ConnectivityManager conMgr = (ConnectivityManager) context + .getSystemService(Context.CONNECTIVITY_SERVICE); + + WifiManager wifiManager = (WifiManager) context + .getSystemService(Context.WIFI_SERVICE); + + boolean netStatus = conMgr + .getNetworkInfo(ConnectivityManager.TYPE_WIFI).isConnected() + || conMgr.getNetworkInfo(ConnectivityManager.TYPE_ETHERNET) + .isConnected(); + + if (netStatus == false) { + return list; + } + + WifiInfo wifiInfo = wifiManager.getConnectionInfo(); + String baseIp = intToBaseIp(wifiInfo.getIpAddress()); + + for (Integer i = 1; i <= 254; i++) { + InetAddress ia; + try { + String ipHost = baseIp + i.toString(); + if (listener != null) { + listener.publish(ipHost); + } + ia = InetAddress.getByName(ipHost); + if (findHost(ia, defaultPort, MAX_PING_TIMEOUT_MS) == false) { + continue; + } + list.add(ipHost); + } catch (UnknownHostException e) { + } + + } + + return list; + } + + /** + * + * @param ip + * @param port + * @return + */ + public static boolean findHost(String ip, int port, int pingTimeout) { + InetAddress ia = null; + try { + ia = InetAddress.getByName(ip); + } catch (UnknownHostException e) { + return false; + } + return findHost(ia, port, pingTimeout); + } + + /** + * + * @param ip + * @param port + * @return + */ + public static boolean findHost(InetAddress ip, int port, int pingTimeout) { + + try { + InetAddress address = ip; + + boolean reachable = address.isReachable(pingTimeout); + + if (reachable == false) { + return false; + } + + Socket socket = new Socket(); + socket.connect(new InetSocketAddress(ip, port), 1000); + socket.close(); + return true; + } catch (Exception e) { + return false; + } + } + + /** + * return base ip as a string. + * + * @param ip_address + * @return String + */ + public static String intToBaseIp(int ip_address) { + return (ip_address & 0xFF) + "." + ((ip_address >> 8) & 0xFF) + "." + + ((ip_address >> 16) & 0xFF) + "."; + + } + +} diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_down_in.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_down_in.xml new file mode 100644 index 0000000..dd1ca08 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_down_in.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2007 The Android Open Source Project + + 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. +--> + +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <translate android:fromYDelta="-100%p" android:toYDelta="0" android:duration="400"/> +</set> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_down_out.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_down_out.xml new file mode 100644 index 0000000..188c817 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_down_out.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2007 The Android Open Source Project + + 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. +--> + +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <translate android:fromYDelta="0" android:toYDelta="100%p" android:duration="400"/> +</set> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_left_in.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_left_in.xml new file mode 100644 index 0000000..c72fd87 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_left_in.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 The Android Open Source Project + + 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. +--> + +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <translate android:fromXDelta="100%p" android:toXDelta="0" android:duration="400"/> +</set> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_left_out.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_left_out.xml new file mode 100644 index 0000000..e4308ec --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_left_out.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 The Android Open Source Project + + 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. +--> + +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <translate android:fromXDelta="0" android:toXDelta="-100%p" android:duration="400"/> +</set> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_right_in.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_right_in.xml new file mode 100644 index 0000000..f2f97fc --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_right_in.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 The Android Open Source Project + + 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. +--> + +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <translate android:fromXDelta="-100%p" android:toXDelta="0" android:duration="400"/> +</set> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_right_out.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_right_out.xml new file mode 100644 index 0000000..1807f10 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_right_out.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 The Android Open Source Project + + 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. +--> + +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <translate android:fromXDelta="0" android:toXDelta="100%p" android:duration="400"/> +</set> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_up_in.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_up_in.xml new file mode 100644 index 0000000..675908f --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_up_in.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2007 The Android Open Source Project + + 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. +--> + +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <translate android:fromYDelta="100%p" android:toYDelta="0" android:duration="400"/> +</set> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_up_out.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_up_out.xml new file mode 100644 index 0000000..a1303a5 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/anim/slide_up_out.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2007 The Android Open Source Project + + 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. +--> + +<set xmlns:android="http://schemas.android.com/apk/res/android"> + <translate android:fromYDelta="0" android:toYDelta="-100%p" android:duration="400"/> +</set> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-finger/btn_circle.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-finger/btn_circle.xml new file mode 100644 index 0000000..9208010 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-finger/btn_circle.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2009 The Android Open Source Project + + 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. +--> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_window_focused="false" android:state_enabled="true" + android:drawable="@drawable/btn_circle_normal" /> + <item android:state_window_focused="false" android:state_enabled="false" + android:drawable="@drawable/btn_circle_disable" /> + <item android:state_pressed="true" + android:drawable="@drawable/btn_circle_pressed" /> + <item android:state_focused="true" android:state_enabled="true" + android:drawable="@drawable/btn_circle_selected" /> + <item android:state_enabled="true" + android:drawable="@drawable/btn_circle_normal" /> + <item android:state_focused="true" + android:drawable="@drawable/btn_circle_disable_focused" /> + <item + android:drawable="@drawable/btn_circle_disable" /> +</selector> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi-finger/btn_circle_disable.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi-finger/btn_circle_disable.png Binary files differnew file mode 100644 index 0000000..4f12078 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi-finger/btn_circle_disable.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi-finger/btn_circle_disable_focused.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi-finger/btn_circle_disable_focused.png Binary files differnew file mode 100644 index 0000000..bc0d77b --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi-finger/btn_circle_disable_focused.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi-finger/btn_circle_normal.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi-finger/btn_circle_normal.png Binary files differnew file mode 100644 index 0000000..d1e21d9 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi-finger/btn_circle_normal.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi-finger/btn_circle_pressed.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi-finger/btn_circle_pressed.png Binary files differnew file mode 100644 index 0000000..31e69e2 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi-finger/btn_circle_pressed.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi-finger/btn_circle_selected.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi-finger/btn_circle_selected.png Binary files differnew file mode 100644 index 0000000..0f809ee --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi-finger/btn_circle_selected.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/action_search.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/action_search.png Binary files differnew file mode 100644 index 0000000..f12e005 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/action_search.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_channels.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_channels.png Binary files differnew file mode 100644 index 0000000..ba1d15f --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_channels.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_epglist.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_epglist.png Binary files differnew file mode 100644 index 0000000..57d9200 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_epglist.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_recordings.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_recordings.png Binary files differnew file mode 100644 index 0000000..7671c31 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_recordings.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_remote.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_remote.png Binary files differnew file mode 100644 index 0000000..90d1ef4 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_remote.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_search.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_search.png Binary files differnew file mode 100644 index 0000000..7e6924d --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_search.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_timer.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_timer.png Binary files differnew file mode 100644 index 0000000..90d9da6 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_timer.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_wakeup.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_wakeup.png Binary files differnew file mode 100644 index 0000000..af19dfe --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/btn_wakeup.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/drawer_shadow.9.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/drawer_shadow.9.png Binary files differnew file mode 100644 index 0000000..224cc4f --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/drawer_shadow.9.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_btn_round_minus.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_btn_round_minus.png Binary files differnew file mode 100644 index 0000000..02bec7d --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_btn_round_minus.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_btn_round_plus.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_btn_round_plus.png Binary files differnew file mode 100644 index 0000000..1fdfb69 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_btn_round_plus.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_drawer.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_drawer.png Binary files differnew file mode 100644 index 0000000..ff7b1de --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_drawer.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_drive.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_drive.png Binary files differnew file mode 100644 index 0000000..ad159a8 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_drive.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_3d_globe.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_3d_globe.png Binary files differnew file mode 100644 index 0000000..1b55f09 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_3d_globe.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_filter.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_filter.png Binary files differnew file mode 100644 index 0000000..39472a6 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_filter.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_goto.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_goto.png Binary files differnew file mode 100644 index 0000000..ca6e835 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_goto.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_moreoverflow.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_moreoverflow.png Binary files differnew file mode 100644 index 0000000..33bb5e7 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_moreoverflow.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_play_clip.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_play_clip.png Binary files differnew file mode 100644 index 0000000..2d0d2e2 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_play_clip.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_recent_history.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_recent_history.png Binary files differnew file mode 100644 index 0000000..4101434 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_recent_history.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_refresh.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_refresh.png Binary files differnew file mode 100644 index 0000000..e13315f --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_refresh.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_view.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_view.png Binary files differnew file mode 100644 index 0000000..25c2ff3 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_menu_view.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_volume_small.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_volume_small.png Binary files differnew file mode 100644 index 0000000..4e9a7ea --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-hdpi/ic_volume_small.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi-finger/btn_circle_disable.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi-finger/btn_circle_disable.png Binary files differnew file mode 100644 index 0000000..33b74a6 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi-finger/btn_circle_disable.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi-finger/btn_circle_disable_focused.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi-finger/btn_circle_disable_focused.png Binary files differnew file mode 100644 index 0000000..005ad8d --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi-finger/btn_circle_disable_focused.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi-finger/btn_circle_normal.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi-finger/btn_circle_normal.png Binary files differnew file mode 100644 index 0000000..fc5af1c --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi-finger/btn_circle_normal.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi-finger/btn_circle_pressed.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi-finger/btn_circle_pressed.png Binary files differnew file mode 100644 index 0000000..8f40afd --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi-finger/btn_circle_pressed.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi-finger/btn_circle_selected.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi-finger/btn_circle_selected.png Binary files differnew file mode 100644 index 0000000..c74fac2 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi-finger/btn_circle_selected.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/action_search.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/action_search.png Binary files differnew file mode 100644 index 0000000..587d9e0 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/action_search.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/drawer_shadow.9.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/drawer_shadow.9.png Binary files differnew file mode 100644 index 0000000..3797f99 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/drawer_shadow.9.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_btn_round_minus.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_btn_round_minus.png Binary files differnew file mode 100644 index 0000000..96dbb17 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_btn_round_minus.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_btn_round_plus.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_btn_round_plus.png Binary files differnew file mode 100644 index 0000000..1ec8a95 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_btn_round_plus.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_drawer.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_drawer.png Binary files differnew file mode 100644 index 0000000..fb681ba --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_drawer.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_drive.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_drive.png Binary files differnew file mode 100644 index 0000000..4c2f957 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_drive.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_3d_globe.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_3d_globe.png Binary files differnew file mode 100644 index 0000000..6755d5e --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_3d_globe.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_filter.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_filter.png Binary files differnew file mode 100644 index 0000000..19e8d1b --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_filter.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_goto.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_goto.png Binary files differnew file mode 100644 index 0000000..5471f5b --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_goto.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_moreoverflow.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_moreoverflow.png Binary files differnew file mode 100644 index 0000000..e478922 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_moreoverflow.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_play_clip.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_play_clip.png Binary files differnew file mode 100644 index 0000000..5983c22 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_play_clip.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_recent_history.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_recent_history.png Binary files differnew file mode 100644 index 0000000..e5f8e2d --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_recent_history.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_refresh.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_refresh.png Binary files differnew file mode 100644 index 0000000..30b660f --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_refresh.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_video.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_video.png Binary files differnew file mode 100644 index 0000000..0a40ba6 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_video.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_view.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_view.png Binary files differnew file mode 100644 index 0000000..082810d --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_menu_view.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_video_small.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_video_small.png Binary files differnew file mode 100644 index 0000000..441b81a --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_video_small.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_volume_small.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_volume_small.png Binary files differnew file mode 100644 index 0000000..2a7ec03 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-mdpi/ic_volume_small.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/action_search.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/action_search.png Binary files differnew file mode 100644 index 0000000..3549f84 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/action_search.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/drawer_shadow.9.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/drawer_shadow.9.png Binary files differnew file mode 100644 index 0000000..fa3d853 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/drawer_shadow.9.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_drawer.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_drawer.png Binary files differnew file mode 100644 index 0000000..b9bc3d7 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_drawer.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_drive.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_drive.png Binary files differnew file mode 100644 index 0000000..378e63e --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_drive.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_3d_globe.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_3d_globe.png Binary files differnew file mode 100644 index 0000000..1fda0a2 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_3d_globe.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_filter.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_filter.png Binary files differnew file mode 100644 index 0000000..fe3836c --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_filter.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_goto.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_goto.png Binary files differnew file mode 100644 index 0000000..b925e69 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_goto.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_moreoverflow.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_moreoverflow.png Binary files differnew file mode 100644 index 0000000..2998d65 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_moreoverflow.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_play_clip.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_play_clip.png Binary files differnew file mode 100644 index 0000000..f680fce --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_play_clip.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_recent_history.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_recent_history.png Binary files differnew file mode 100644 index 0000000..fc5e1fc --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_recent_history.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_refresh.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_refresh.png Binary files differnew file mode 100644 index 0000000..9e9f10e --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_refresh.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_view.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_view.png Binary files differnew file mode 100644 index 0000000..e97c30d --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_menu_view.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_volume_small.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_volume_small.png Binary files differnew file mode 100644 index 0000000..9d6d920 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable-xhdpi/ic_volume_small.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/app_logo.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/app_logo.png Binary files differnew file mode 100644 index 0000000..40fe91f --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/app_logo.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/back.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/back.xml new file mode 100644 index 0000000..1975fd9 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/back.xml @@ -0,0 +1,7 @@ +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle" > + + <stroke + android:width="1px" + android:color="#5F5656" /> +</shape>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_channels.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_channels.png Binary files differnew file mode 100644 index 0000000..b1eff10 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_channels.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_clock.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_clock.png Binary files differnew file mode 100644 index 0000000..f682d6d --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_clock.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_epglist.jpg b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_epglist.jpg Binary files differnew file mode 100644 index 0000000..e5a6df5 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_epglist.jpg diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_recordings.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_recordings.png Binary files differnew file mode 100644 index 0000000..f2af210 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_recordings.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_remote.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_remote.png Binary files differnew file mode 100644 index 0000000..a4b8774 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_remote.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_search.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_search.png Binary files differnew file mode 100644 index 0000000..2edd18a --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_search.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_search_times.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_search_times.png Binary files differnew file mode 100644 index 0000000..4722cbb --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_search_times.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_timer.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_timer.png Binary files differnew file mode 100644 index 0000000..b7fe536 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_timer.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_wakeup.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_wakeup.png Binary files differnew file mode 100644 index 0000000..eda2e95 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/btn_wakeup.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/folder.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/folder.png Binary files differnew file mode 100644 index 0000000..5b3fcec --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/folder.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_btn_round_minus.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_btn_round_minus.png Binary files differnew file mode 100644 index 0000000..02bec7d --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_btn_round_minus.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_btn_round_plus.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_btn_round_plus.png Binary files differnew file mode 100644 index 0000000..1fdfb69 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_btn_round_plus.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_drive.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_drive.png Binary files differnew file mode 100644 index 0000000..4c2f957 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_drive.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_3d_globe.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_3d_globe.png Binary files differnew file mode 100644 index 0000000..6755d5e --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_3d_globe.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_back.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_back.png Binary files differnew file mode 100644 index 0000000..91fa3e7 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_back.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_filter.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_filter.png Binary files differnew file mode 100644 index 0000000..39472a6 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_filter.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_forward.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_forward.png Binary files differnew file mode 100644 index 0000000..632e4f6 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_forward.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_play_clip.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_play_clip.png Binary files differnew file mode 100644 index 0000000..2d0d2e2 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_play_clip.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_refresh.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_refresh.png Binary files differnew file mode 100644 index 0000000..c3551be --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_refresh.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_revert.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_revert.png Binary files differnew file mode 100644 index 0000000..2afc8e8 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_menu_revert.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_video_small.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_video_small.png Binary files differnew file mode 100644 index 0000000..67071fc --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_video_small.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_volume_small.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_volume_small.png Binary files differnew file mode 100644 index 0000000..2a7ec03 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/ic_volume_small.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/icon.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/icon.png Binary files differnew file mode 100644 index 0000000..7197eab --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/icon.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/imdb.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/imdb.png Binary files differnew file mode 100644 index 0000000..e1e0853 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/imdb.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/left.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/left.png Binary files differnew file mode 100644 index 0000000..26522f0 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/left.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/line_gradient.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/line_gradient.xml new file mode 100644 index 0000000..f04ecbc --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/line_gradient.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle" > + + <gradient + android:angle="0" + android:centerColor="@color/white" + android:endColor="@color/black" + android:startColor="@color/black" + android:type="linear" + android:useLevel="false" /> + +</shape>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/newrecording.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/newrecording.png Binary files differnew file mode 100644 index 0000000..28cae46 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/newrecording.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/omdb.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/omdb.png Binary files differnew file mode 100644 index 0000000..870e511 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/omdb.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/red_button.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/red_button.xml new file mode 100644 index 0000000..b034119 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/red_button.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" > + <corners + android:radius="14dp" + /> + <gradient + android:angle="45" + android:centerX="35%" + android:centerColor="#FF0000" + android:startColor="#FF0000" + android:endColor="#FF0000" + android:type="linear" + /> + <padding + android:left="0dp" + android:top="0dp" + android:right="0dp" + android:bottom="0dp" + /> + <size + android:width="158dp" + android:height="60dp" + /> + <stroke + android:width="3dp" + android:color="#FF0000" + /> +</shape> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/right.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/right.png Binary files differnew file mode 100644 index 0000000..f8a518d --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/right.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/roundedbutton.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/roundedbutton.xml new file mode 100644 index 0000000..26ac40f --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/roundedbutton.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android" +android:shape="rectangle"> + + <corners android:bottomRightRadius="18dip" + android:bottomLeftRadius="18dip" + android:topRightRadius="18dip" + android:topLeftRadius="18dip"/> +</shape> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/sad.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/sad.png Binary files differnew file mode 100644 index 0000000..feee3be --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/sad.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/schere.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/schere.png Binary files differnew file mode 100644 index 0000000..623367e --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/schere.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer.png Binary files differnew file mode 100644 index 0000000..a3df3c0 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_active.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_active.png Binary files differnew file mode 100644 index 0000000..5bbd402 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_active.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_active_begin.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_active_begin.png Binary files differnew file mode 100644 index 0000000..98507b2 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_active_begin.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_active_conflict.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_active_conflict.png Binary files differnew file mode 100644 index 0000000..6d31433 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_active_conflict.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_active_end.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_active_end.png Binary files differnew file mode 100644 index 0000000..b77c1f5 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_active_end.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_inactive.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_inactive.png Binary files differnew file mode 100644 index 0000000..452394d --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_inactive.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_inactive_begin.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_inactive_begin.png Binary files differnew file mode 100644 index 0000000..f12b2e8 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_inactive_begin.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_inactive_end.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_inactive_end.png Binary files differnew file mode 100644 index 0000000..d13d3fc --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_inactive_end.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_none.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_none.png Binary files differnew file mode 100644 index 0000000..a81516d --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_none.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_recording.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_recording.png Binary files differnew file mode 100644 index 0000000..c28b04c --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_recording.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_recording_begin.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_recording_begin.png Binary files differnew file mode 100644 index 0000000..98e3f27 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_recording_begin.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_recording_conflict.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_recording_conflict.png Binary files differnew file mode 100644 index 0000000..6dbe3a1 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_recording_conflict.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_recording_end.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_recording_end.png Binary files differnew file mode 100644 index 0000000..d94b615 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_recording_end.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_vps.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_vps.png Binary files differnew file mode 100644 index 0000000..a51a394 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/timer_vps.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/tmdb.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/tmdb.png Binary files differnew file mode 100644 index 0000000..20e4731 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/tmdb.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/tv.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/tv.png Binary files differnew file mode 100644 index 0000000..d233ef0 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/tv.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/vdr_logo.png b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/vdr_logo.png Binary files differnew file mode 100644 index 0000000..6d88fa6 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/drawable/vdr_logo.png diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout-land/vdrmanager.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout-land/vdrmanager.xml new file mode 100644 index 0000000..d158690 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout-land/vdrmanager.xml @@ -0,0 +1,106 @@ +<?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="match_parent" + android:paddingTop="10dp" + android:paddingBottom="20dp" + android:orientation="vertical"> + + <!-- <ListView android:id="@+id/vdrmanager_menu" android:layout_width="fill_parent" + android:layout_height="wrap_content" android:layout_below="@id/main_logo"/> --> + + + <ImageView android:id="@+id/main_logo" android:layout_width="fill_parent" + android:clickable="true" + android:layout_height="80dip" android:src="@drawable/vdr_logo" android:padding="10dip" /> + + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:orientation="horizontal"> + + <Button + android:id="@+id/action_menu_channels" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@android:drawable/list_selector_background" + android:drawableTop="@drawable/btn_channels" + android:text="@string/action_menu_channels" + android:textColor="#FFF" /> + + <Button + android:id="@+id/action_menu_epg" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@android:drawable/list_selector_background" + android:cacheColorHint="?android:attr/colorBackground" + android:drawableTop="@drawable/btn_epglist" + android:text="@string/action_menu_epg" + android:textColor="#FFF" /> + + + <Button + android:id="@+id/action_menu_recordings" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@android:drawable/list_selector_background" + android:cacheColorHint="?android:attr/colorBackground" + android:drawableTop="@drawable/btn_recordings" + android:text="@string/action_menu_recordings" + android:textColor="#FFF" /> + + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:orientation="horizontal"> + + + <Button + android:id="@+id/action_menu_wakeup" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@android:drawable/list_selector_background" + android:cacheColorHint="?android:attr/colorBackground" + android:drawableTop="@drawable/btn_wakeup" + + android:padding="5dip" + android:text="@string/action_menu_wakeup" + android:textColor="#FFF" /> + + <Button + android:id="@+id/action_menu_remote" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@android:drawable/list_selector_background" + android:cacheColorHint="?android:attr/colorBackground" + android:drawableTop="@drawable/btn_remote" + android:padding="5dip" + android:text="@string/action_menu_remote" + android:textColor="#FFF" /> + + + <Button + android:id="@+id/action_menu_timers" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@android:drawable/list_selector_background" + android:cacheColorHint="?android:attr/colorBackground" + android:drawableTop="@drawable/btn_timer" + android:text="@string/action_menu_timers" + android:textColor="#FFF" /> + + </LinearLayout> + + +</LinearLayout>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/channel_item.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/channel_item.xml new file mode 100644 index 0000000..dd09400 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/channel_item.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/channel_item" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:padding="5dp" + android:orientation="horizontal"> + + <TextView + android:id="@+id/channel_name" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + + <ImageView + android:id="@+id/channel_type" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> + +</LinearLayout>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/channel_list.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/channel_list.xml new file mode 100644 index 0000000..df2d984 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/channel_list.xml @@ -0,0 +1,102 @@ +<!-- + Copyright 2013 The Android Open Source Project + + 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. +--> + + +<!-- A DrawerLayout is intended to be used as the top-level content view using match_parent for both width and height to consume the full space available. --> +<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/drawer_layout" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <!-- + As the main content view, the view below consumes the entire + space available using match_parent in both dimensions. + --> + + <ViewFlipper + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/flipper" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" > + + <LinearLayout + android:id="@+id/main_content" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" > + + <EditText + android:id="@+id/search_box" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:hint="@string/type_to_filter" + android:inputType="text" + android:maxLines="1" + android:visibility="gone" /> + + <ExpandableListView + android:id="@+id/channel_list" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_alignParentTop="true" + android:layout_alignWithParentIfMissing="true" + android:layout_centerHorizontal="true" + android:cacheColorHint="?android:attr/colorBackground" /> + + <TextView + android:id="@android:id/empty" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Empty set" /> + </LinearLayout> + + <LinearLayout + android:id="@+id/no_connection_layout" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:gravity="center" + android:orientation="horizontal" > + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/no_connection" + android:textSize="18dip" /> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/sad" /> + + <Button + android:id="@+id/retry_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/no_connection_retry" + android:textSize="18dip" /> + </LinearLayout> + </LinearLayout> + </ViewFlipper> + + <include layout="@layout/left_drawer" /> + +</android.support.v4.widget.DrawerLayout>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/channel_list_fragment.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/channel_list_fragment.xml new file mode 100644 index 0000000..becf269 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/channel_list_fragment.xml @@ -0,0 +1,70 @@ +<ViewFlipper xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/flipper" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" > + + <LinearLayout + android:id="@+id/main_content" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" > + + <EditText + android:id="@+id/search_box" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:hint="@string/type_to_filter" + android:inputType="text" + android:maxLines="1" + android:visibility="gone" /> + + <ExpandableListView + android:id="@+id/channel_list" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_alignParentTop="true" + android:layout_alignWithParentIfMissing="true" + android:layout_centerHorizontal="true" + android:cacheColorHint="?android:attr/colorBackground" /> + + <TextView + android:id="@android:id/empty" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Empty set" /> + </LinearLayout> + + <LinearLayout + android:id="@+id/no_connection_layout" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:gravity="center" + android:orientation="horizontal" > + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/no_connection" + android:textSize="18dip" /> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/sad" /> + + <Button + android:id="@+id/retry_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/no_connection_retry" + android:textSize="18dip" /> + </LinearLayout> + </LinearLayout> + +</ViewFlipper> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/child_layout.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/child_layout.xml new file mode 100644 index 0000000..69340a6 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/child_layout.xml @@ -0,0 +1,25 @@ +<LinearLayout android:id="@+id/LinearLayout01" + android:layout_width="fill_parent" android:layout_height="40dip" + xmlns:android="http://schemas.android.com/apk/res/android" + > + <LinearLayout android:layout_width="fill_parent" + android:background="@android:drawable/list_selector_background" + android:layout_height="wrap_content"> + <TextView android:id="@+id/channel_name" + android:layout_width="wrap_content" android:layout_height="wrap_content" + android:text="Channel" android:gravity="center_vertical|left" + android:paddingLeft="15dip" android:paddingRight="5dip" + android:textColor="#ffffffff" + android:textStyle="bold" android:maxLines="2" + android:textAppearance="?android:textAppearanceMedium" + android:layout_weight="2" /> + + <TextView android:id="@+id/channel_aux" android:layout_width="40dip" + android:layout_height="40dip" android:layout_weight="1" android:text="23" + android:gravity="center_vertical|right" android:ellipsize="end" + android:layout_marginRight="5dip" android:textColor="#BDBDBD" + android:textSize="11sp" + android:textAppearance="?android:textAppearanceSmall" /> + </LinearLayout> + +</LinearLayout> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/drawer_list_item.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/drawer_list_item.xml new file mode 100644 index 0000000..ab52575 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/drawer_list_item.xml @@ -0,0 +1,27 @@ +<!-- + Copyright 2013 The Android Open Source Project + + 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. + --> + +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@android:id/text1" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceListItemSmall" + android:gravity="center_vertical" + android:paddingLeft="16dp" + android:paddingRight="16dp" + android:textColor="#fff" + android:background="?android:attr/activatedBackgroundIndicator" + android:minHeight="?android:attr/listPreferredItemHeightSmall"/>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/edit_remote_key.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/edit_remote_key.xml new file mode 100644 index 0000000..2dfe156 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/edit_remote_key.xml @@ -0,0 +1,65 @@ +<?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="match_parent" + android:orientation="vertical" + android:padding="5dp"> + + <TextView + android:id="@+id/hitkLabel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/label" /> + + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <EditText + android:id="@+id/hitk" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" /> + + <de.androvdr.widget.FontAwesomeButton + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="" /> + + </LinearLayout> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="10dp" + android:text="@string/hitkcommand" /> + + <Spinner + android:id="@+id/hitkSpinner" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:visibility="gone"> + + <Button + android:id="@+id/button7" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="right" + android:layout_weight="1" + android:text="@android:string/cancel" /> + + <Button + android:id="@+id/button6" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@android:string/ok" /> + </LinearLayout> +</LinearLayout> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/epg_detail.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/epg_detail.xml new file mode 100644 index 0000000..85bc221 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/epg_detail.xml @@ -0,0 +1,249 @@ +<?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" + android:padding="2dip" > + + <TextView + android:id="@+id/epg_detail_title" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="Unterwegs nach Cold Mountain" + android:textAppearance="?android:textAppearanceMedium" + android:textStyle="bold" /> + + <LinearLayout + android:id="@+id/epg_detail_time_channel" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + + <TextView + android:id="@+id/epg_detail_time" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="left" + android:text="20:10-20-15" + android:textAppearance="?android:textAppearanceSmall" /> + + <TextView + android:id="@+id/epg_detail_duration" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="right" + android:paddingLeft="10dip" + android:text="2/123min" + android:textAppearance="?android:textAppearanceSmall" /> + + <TextView + android:id="@+id/epg_detail_channel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="right" + android:text="Sky Cinema" + android:visibility="gone" /> + </LinearLayout> + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="0dip" + android:orientation="horizontal" + android:padding="3dip" + android:paddingBottom="1dip" > + + <ImageView + android:id="@+id/epg_timer_state" + android:layout_width="16dp" + android:layout_height="16dp" + android:layout_centerVertical="true" + android:layout_marginRight="5dip" + android:visibility="gone" /> + + <TextView + android:id="@+id/epg_detail_shorttext" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:gravity="left" + android:text="Krimikömedie" + android:textAppearance="?android:textAppearanceSmall" /> + </LinearLayout> + + <TextView + android:id="@+id/epg_detail_separator_0" + android:layout_width="fill_parent" + android:layout_height="2sp" /> + + <ProgressBar + android:id="@+id/epg_detail_progress" + style="?android:attr/progressBarStyleHorizontal" + android:layout_width="fill_parent" + android:layout_height="2dip" + android:indeterminate="false" + android:progress="40" /> + + <ScrollView + android:id="@+id/epg_detail_description_scroll" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:padding="5dip" > + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" > + + <TextView + android:id="@+id/epg_detail_description" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:textSize="16dip" > + </TextView> + + <View style="@style/Line" /> + + <LinearLayout android:id="@+id/audio_block" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + + <ImageView + android:id="@+id/audio_image" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/ic_volume_small" /> + + <TextView + android:id="@+id/epg_detail_audio" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="5dp" + android:text="" /> + </LinearLayout> + + <TextView + android:id="@+id/epg_detail_cats" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:text="Thriller, Comedy" /> + + </LinearLayout> + </ScrollView> + + <TextView + android:id="@+id/epg_detail_separator_2" + android:layout_width="fill_parent" + android:layout_height="1sp" /> + + <TextView + android:id="@+id/epg_detail_separator_3" + android:layout_width="fill_parent" + android:layout_height="4sp" /> + + <TableLayout + android:id="@+id/root" + style="@android:style/ButtonBar" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:stretchColumns="*" > + + <TableRow + android:id="@+id/first_row" + android:layout_margin="0dip" > + + <ImageButton + android:id="@+id/epg_event_livetv" + style="?android:attr/buttonStyleSmall" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:layout_gravity="center_horizontal" + android:layout_weight="1" + android:background="@android:drawable/list_selector_background" + android:src="@drawable/tv" + android:text="@string/epg_eent_livetv_text" /> + + <ImageButton + android:id="@+id/epg_event_imdb" + style="?android:attr/buttonStyleSmall" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@android:drawable/list_selector_background" + android:src="@drawable/imdb" + android:text="@string/epg_event_imdb_text" /> + + <ImageButton + android:id="@+id/epg_event_omdb" + style="?android:attr/buttonStyleSmall" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@android:drawable/list_selector_background" + android:src="@drawable/omdb" + android:text="@string/epg_event_omdb_text" /> + + <ImageButton + android:id="@+id/epg_event_tmdb" + style="?android:attr/buttonStyleSmall" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@android:drawable/list_selector_background" + android:src="@drawable/tmdb" + android:text="@string/epg_event_tmdb_text" /> + + <ImageButton + android:id="@+id/epg_event_create_timer" + style="?android:attr/buttonStyleSmall" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_centerHorizontal="true" + android:layout_gravity="center_horizontal" + android:layout_weight="1" + android:background="@android:drawable/list_selector_background" + android:src="@drawable/timer" + android:text="@string/epg_event_create_timer_text" /> + </TableRow> + </TableLayout> + <!-- + <ImageButton + android:id="@+id/epg_event_share" + android:src="@android:drawable/ic_menu_share" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:layout_marginLeft="20dip" android:layout_marginRight="20dip" + android:layout_gravity="center_horizontal" + android:layout_centerHorizontal="true" + android:background="@android:drawable/list_selector_background" + style="?android:attr/buttonStyleSmall" + android:text="@string/epg_event_share_text"/> + --> + + + <!-- + <ImageButton + android:id="@+id/epg_event_epg" + android:src="@drawable/epg" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:layout_centerHorizontal="true" android:layout_weight="1" + android:background="@android:drawable/list_selector_background" + style="?android:attr/buttonStyleSmall" + android:text="@string/epg_event_create_timer_text"/> + --> + <!-- + <ImageButton android:visibility="gone" + android:id="@+id/epg_event_right" + android:src="@drawable/ic_menu_forward" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@android:drawable/list_selector_background"/> + --> + +</LinearLayout>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/epg_event_item.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/epg_event_item.xml new file mode 100644 index 0000000..a8caa6f --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/epg_event_item.xml @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/timer_item" android:layout_width="fill_parent" + android:layout_height="fill_parent" android:padding="5dp" android:paddingBottom="2dp" + android:orientation="vertical"> + +<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" + android:background="@android:drawable/list_selector_background" +> +<TextView + android:id="@+id/timer_item_channel" + android:layout_width="wrap_content" + android:layout_height="wrap_content" android:text="Sky Film" style="@android:style/TextAppearance.Medium"/> + + <ProgressBar + android:id="@+id/timer_progress" android:layout_width="fill_parent" + android:indeterminate="false" android:layout_height="2dip" android:layout_marginTop="3dip" + style="?android:attr/progressBarStyleHorizontal" android:visibility="gone" /> + + <LinearLayout android:layout_width="fill_parent" + android:layout_height="wrap_content" android:layout_marginTop="0dip"> + + <TextView android:id="@+id/timer_item_time" android:textAppearance="?android:textAppearanceMedium" + android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@android:drawable/list_selector_background" + android:gravity="left" android:text="22:33" android:paddingRight="5dip" /> + + <TextView android:id="@+id/timer_item_title" android:text="timer_item_title" android:layout_weight="1" android:textStyle="bold" + android:ellipsize="end" android:layout_width="wrap_content" android:background="@android:drawable/list_selector_background" + android:textAppearance="?android:textAppearanceMedium" + android:layout_height="wrap_content" /> + + </LinearLayout> + + <LinearLayout android:layout_width="fill_parent" android:padding="1dip" android:paddingBottom="1dip" + android:layout_height="wrap_content" android:layout_marginTop="0dip" android:gravity="center" + android:orientation="horizontal"> + + <ImageView android:id="@+id/timer_item_state" android:layout_marginRight="3dip" android:src="@drawable/newrecording" + android:layout_width="16dp" android:layout_height="16dp" + android:visibility="gone" /> + + <ImageView android:id="@+id/timer_item_other" android:layout_marginRight="3dip" android:src="@drawable/schere" + android:layout_width="16dp" android:layout_height="16dp" + android:visibility="gone" /> + + <TextView android:id="@+id/timer_item_shorttext" android:textAppearance="?android:textAppearanceSmall" + android:text="timer_short_text" + android:ellipsize="end" + android:singleLine="true" + android:maxLines="1" + android:layout_width="wrap_content" android:layout_weight="1" + android:layout_height="wrap_content" /> + + <TextView android:id="@+id/timer_item_duration" + android:ellipsize="end" android:layout_width="wrap_content" android:gravity="right" android:textSize="13dip" + android:layout_height="wrap_content" android:text="89min"/> + + </LinearLayout> + + <TextView android:id="@+id/event_item_description" + android:layout_width="wrap_content" + android:textAppearance="?android:textAppearanceSmall" + android:visibility="gone" + android:textSize="12dip" + android:padding="3dip" + android:layout_height="wrap_content" /> +</LinearLayout> +</LinearLayout>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/epg_search.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/epg_search.xml new file mode 100644 index 0000000..4153451 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/epg_search.xml @@ -0,0 +1,32 @@ +<?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"> + + <TextView + android:id="@+id/epg_search_title" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:textStyle="bold"/> + + <EditText + android:id="@+id/epg_search_text" + android:layout_width="fill_parent" + android:layout_height="wrap_content"/> + + <TextView + android:id="@+id/epg_detail_time" + android:layout_width="fill_parent" + android:layout_height="wrap_content"/> + + <Button + android:id="@+id/epg_search_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:text="@string/epg_search_button"/> + +</LinearLayout> + diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/epg_search_times_item.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/epg_search_times_item.xml new file mode 100644 index 0000000..5680f7e --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/epg_search_times_item.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:paddingLeft="5dp" + android:paddingRight="5dp" + android:gravity= "center_vertical" + android:textAppearance="?android:textAppearanceLarge" + android:lines="2"/> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/epg_search_times_list.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/epg_search_times_list.xml new file mode 100644 index 0000000..f2ab650 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/epg_search_times_list.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> + + <ListView + android:id="@+id/epg_search_times_list" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:cacheColorHint="?android:attr/colorBackground"/> + + <Button + android:id="@+id/epg_search_times_add" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/epg_search_times_add" + android:layout_alignParentBottom="true" + android:layout_centerHorizontal="true" + android:text="@string/epg_search_times_add"/> + + +</RelativeLayout> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/epgdetails.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/epgdetails.xml new file mode 100644 index 0000000..5e29667 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/epgdetails.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> + <!-- + <com.jakewharton.androidviewpagerindicator.TitlePageIndicator + android:id="@+id/indicator" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + --> + <android.support.v4.view.ViewPager + android:id="@+id/viewpager" + android:layout_width="fill_parent" + android:layout_height="0dip" + android:layout_weight="1" /> +</LinearLayout>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/event_epg_list.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/event_epg_list.xml new file mode 100644 index 0000000..2e835d4 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/event_epg_list.xml @@ -0,0 +1,116 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- A DrawerLayout is intended to be used as the top-level content view using match_parent for both width and height to consume the full space available. --> +<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/drawer_layout" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <ViewFlipper + android:id="@+id/flipper" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" > + + <RelativeLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" > + + <LinearLayout + android:id="@+id/whatson_time" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:orientation="horizontal" > + + <Spinner + android:id="@+id/epg_list_channel_spinner" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginTop="3dip" + android:layout_weight="1" + android:prompt="@string/epg_list_channel_spinner" /> + + <ImageView + android:id="@+id/switch_epg_view" + style="?android:attr/buttonStyleSmall" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_centerHorizontal="true" + android:layout_gravity="center_horizontal" + android:background="@android:drawable/list_selector_background" + android:clickable="true" + android:src="@drawable/ic_menu_revert" /> + </LinearLayout> + + <ListView + android:id="@+id/whatson_list" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_above="@+id/channel_info" + android:layout_alignWithParentIfMissing="true" + android:layout_below="@+id/whatson_time" + android:layout_centerHorizontal="true" + android:cacheColorHint="?android:attr/colorBackground" /> + + <LinearLayout + android:id="@+id/channel_info" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_marginTop="4dp" + android:background="@drawable/back" + android:orientation="horizontal" + android:padding="2dp" > + + <ImageView + android:id="@+id/audio_image" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/ic_volume_small" /> + + <TextView + android:id="@+id/channel_audio" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="5dp" + android:text="" /> + </LinearLayout> + </RelativeLayout> + + <LinearLayout + android:id="@+id/no_connection_layout" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:gravity="center" + android:orientation="horizontal" > + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/no_connection" + android:textSize="18dip" /> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/sad" /> + + <Button + android:id="@+id/retry_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/no_connection_retry" + android:textSize="18dip" /> + </LinearLayout> + </LinearLayout> + </ViewFlipper> + + <include layout="@layout/left_drawer" /> + +</android.support.v4.widget.DrawerLayout>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/fetch_preference.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/fetch_preference.xml new file mode 100644 index 0000000..d276625 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/fetch_preference.xml @@ -0,0 +1,23 @@ +<?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="match_parent" + android:orientation="horizontal" + android:padding="5dip"> + + <EditText + android:id="@+id/edit" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:singleLine="true" /> + + <ImageButton + android:src="@drawable/ic_menu_refresh" + android:id="@+id/button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:minWidth="64dip" + android:minHeight="48dip"/> + +</LinearLayout>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/folder_item.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/folder_item.xml new file mode 100644 index 0000000..432fa13 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/folder_item.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:orientation="horizontal" + android:padding="5dip" + android:layout_height="wrap_content" > + + <ImageView + android:layout_width="24dp" + android:layout_height="24dp" + android:src="@drawable/folder" /> + + <TextView + android:id="@+id/header_item" + android:textAppearance="?android:textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="5dip" + android:layout_weight="1" + android:layout_gravity="center_vertical" + android:text="House of Cards" /> + + + <TextView + android:id="@+id/count" + android:textAppearance="?android:textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:text="3" /> + +</LinearLayout>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/group_layout.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/group_layout.xml new file mode 100644 index 0000000..48ee690 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/group_layout.xml @@ -0,0 +1,16 @@ +<LinearLayout android:id="@+id/LinearLayout01" + android:layout_width="fill_parent" android:layout_height="40dip" + xmlns:android="http://schemas.android.com/apk/res/android"> + <!-- --> + <TextView android:id="@+id/group_name" android:layout_width="wrap_content" + android:layout_height="40dip" android:text="Sky" android:gravity="center_vertical|left" + android:paddingLeft="35dip" android:paddingRight="5dip" + android:textColor="#BDBDBD" android:textStyle="bold" + android:textAppearance="?android:textAppearanceMedium" /> + <TextView android:id="@+id/channel_count" + android:layout_width="fill_parent" android:layout_height="40dip" + android:text="23" android:gravity="center_vertical|right" + android:layout_marginRight="5dip" android:textColor="#BDBDBD" + android:textStyle="bold" android:textAppearance="?android:textAppearanceMedium" /> + +</LinearLayout> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/header_item.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/header_item.xml new file mode 100644 index 0000000..0821980 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/header_item.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<TextView xmlns:android="http://schemas.android.com/apk/res/android" +android:text="Header" +android:layout_margin="2dip" android:paddingLeft="4dip" android:paddingRight="4dip" +android:background="#444444" +android:textAppearance="?android:textAppearanceMedium" +android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/header_item"/> + diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/left_drawer.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/left_drawer.xml new file mode 100644 index 0000000..ad8379a --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/left_drawer.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> + +<!-- + android:layout_gravity="start" tells DrawerLayout to treat + this as a sliding drawer on the left side for left-to-right + languages and on the right side for right-to-left languages. + The drawer is given a fixed width in dp and extends the full height of + the container. A solid background is used for contrast + with the content view. +--> +<ListView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/left_drawer" + android:layout_width="240dp" + android:layout_height="match_parent" + android:layout_gravity="start" + android:background="#111" + android:choiceMode="singleChoice" + android:divider="@android:color/transparent" + android:dividerHeight="0dp" /> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/main.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/main.xml new file mode 100644 index 0000000..1d0e21b --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/main.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<TabHost xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@android:id/tabhost" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> + <LinearLayout + android:orientation="vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:padding="5dp"> + <TabWidget + android:id="@android:id/tabs" + android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + <FrameLayout + android:id="@android:id/tabcontent" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:padding="5dp" /> + </LinearLayout> +</TabHost>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/no_connection.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/no_connection.xml new file mode 100644 index 0000000..1a6e5db --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/no_connection.xml @@ -0,0 +1,33 @@ +<?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" + android:visibility="gone" > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:gravity="center" + android:orientation="horizontal" > + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/no_connection" + android:textSize="18dip" /> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/sad" /> + + <Button + android:id="@+id/retry_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/no_connection_retry" + android:textSize="18dip" /> + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/recording_detail.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/recording_detail.xml new file mode 100644 index 0000000..0aa5da7 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/recording_detail.xml @@ -0,0 +1,99 @@ +<?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"> + + <ScrollView + android:id="@+id/timer_detail_scroll" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="0.5"> + + <LinearLayout + android:id="@+id/timer_detail_layout" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:id="@+id/timer_detail_channel_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textStyle="bold" + android:text="@string/timer_detail_channel_title"/> + + <EditText + android:id="@+id/timer_detail_channel" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:editable="false"/> + + <TextView + android:id="@+id/timer_detail_title_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textStyle="bold" + android:text="@string/timer_detail_title_title"/> + + <EditText + android:id="@+id/timer_detail_title" + android:layout_width="fill_parent" + android:layout_height="wrap_content"/> + + <TextView + android:id="@+id/timer_detail_start_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/timer_detail_start_title"/> + + <LinearLayout + android:id="@+id/timer_detail_start_daytime" + android:layout_width="fill_parent" + android:layout_height="wrap_content"> + + <EditText + android:id="@+id/timer_detail_start" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:editable="false"/> + + <EditText + android:id="@+id/timer_detail_day" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:editable="false"/> + + </LinearLayout> + + <TextView + android:id="@+id/timer_detail_end_title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/timer_detail_end_title"/> + + <EditText + android:id="@+id/timer_detail_end" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:editable="false"/> + + <TextView + android:id="@+id/timer_detail_fill" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_weight="0.5"/> + + </LinearLayout> + + </ScrollView> + + <Button + android:id="@+id/timer_details_save" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:text="@string/timer_details_create_title"/> + +</LinearLayout> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/recording_list.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/recording_list.xml new file mode 100644 index 0000000..dd4b100 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/recording_list.xml @@ -0,0 +1,111 @@ +<?xml version="1.0" encoding="utf-8"?> +<android.support.v4.widget.DrawerLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/drawer_layout" + android:layout_width="match_parent" + android:layout_height="match_parent"> +<ViewFlipper xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/flipper" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" > + + <RelativeLayout + android:id="@+id/main_content" + android:layout_width="fill_parent" + android:layout_height="wrap_content" > + + <LinearLayout + android:id="@+id/rec_folder_info" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentTop="true" + android:orientation="horizontal" + android:paddingBottom="2dp" + android:paddingLeft="5dp" + android:paddingRight="5dp" + android:paddingTop="2dp" > + + <TextView + android:id="@+id/folder_info" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" /> + + <TextView + android:id="@+id/current_count" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + </LinearLayout> + + <ListView + android:id="@+id/recording_list" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_above="@+id/driver_info_container" + android:layout_below="@+id/rec_folder_info" + android:layout_centerHorizontal="true" + android:cacheColorHint="?android:attr/colorBackground" /> + + <LinearLayout + android:id="@+id/driver_info_container" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:layout_alignWithParentIfMissing="true" + android:layout_marginTop="4dp" + android:background="@drawable/back" + android:orientation="vertical" + android:padding="2dp" > + + <TextView + android:id="@+id/drive_info" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:drawableLeft="@drawable/ic_drive" + android:drawablePadding="5dp" + android:gravity="center" > + </TextView> + + <ProgressBar + android:id="@+id/drive_info_pb" + style="?android:attr/progressBarStyleHorizontal" + android:layout_width="fill_parent" + android:layout_height="1dip" + android:indeterminate="false" /> + </LinearLayout> + </RelativeLayout> + + <LinearLayout + android:id="@+id/no_connection_layout" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:gravity="center" + android:orientation="horizontal" > + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/no_connection" + android:textSize="18sp" /> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:contentDescription="@string/sad_img" + android:src="@drawable/sad" /> + + <Button + android:id="@+id/retry_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/no_connection_retry" + android:textSize="18sp" /> + </LinearLayout> + +</ViewFlipper> + +<include layout="@layout/left_drawer" /> + +</android.support.v4.widget.DrawerLayout>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/remote.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/remote.xml new file mode 100644 index 0000000..b251ca1 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/remote.xml @@ -0,0 +1,342 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:id="@+id/remoteroot" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" + android:padding="5dp"> + + <LinearLayout + android:id="@+id/resultwrapper" + android:layout_width="fill_parent" + android:layout_alignParentEnd="true" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:layout_height="wrap_content"> + <de.androvdr.widget.AnimatedTextView + android:id="@+id/result" + android:maxLines="1" + android:layout_width="0dp" + android:layout_weight="1" + android:layout_height="wrap_content" + android:textSize="10sp" + android:gravity="right" /> + </LinearLayout> + + + + <LinearLayout + android:id="@+id/rows0" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:layout_marginBottom="10dp" + android:layout_below="@+id/resultwrapper"> + + <de.androvdr.widget.FontAwesomeButton + style="?android:attr/buttonStyleSmall" + + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:tag="Power" + android:text="" + android:id="@+id/Power" /> + + <de.androvdr.widget.FontAwesomeButton + style="?android:attr/buttonStyleSmall" + android:layout_width="0dp" + + android:layout_height="wrap_content" + android:layout_weight="1" + android:tag="Back" + android:text="Back" /> + + <de.androvdr.widget.FontAwesomeButton + style="?android:attr/buttonStyleSmall" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:tag="" + /> + + + + + + + + <de.androvdr.widget.FontAwesomeButton + style="?android:attr/buttonStyleSmall" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:tag="Setup" + android:text="" /> + </LinearLayout> + + <RelativeLayout + android:id="@+id/navigation" + + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" + android:layout_below="@+id/colorButtons" + android:layout_above="@+id/rows1"> + + <de.androvdr.widget.SquareButton + android:id="@+id/ok" + style="@style/cursorButton" + android:layout_centerVertical="true" + android:layout_gravity="center_horizontal" + android:layout_toLeftOf="@+id/right" + android:layout_toStartOf="@+id/right" + android:tag="Ok" + android:text="OK" /> + + + <de.androvdr.widget.SquareButton + android:id="@+id/right" + style="@style/cursorButton" + android:tag="Right" + android:text="▶" + android:layout_centerVertical="true" + android:layout_toRightOf="@+id/up" + android:layout_toEndOf="@+id/up" /> + + + <de.androvdr.widget.SquareButton + android:id="@+id/left" + style="@style/cursorButton" + android:tag="Left" + android:text="◀" + android:layout_centerVertical="true" + android:layout_toLeftOf="@+id/ok" + android:layout_toStartOf="@+id/ok" /> + + <de.androvdr.widget.SquareButton + android:id="@+id/up" + style="@style/cursorButton" + android:layout_gravity="center_horizontal" + android:tag="Up" + android:text="▲" + android:layout_above="@+id/ok" + android:layout_centerHorizontal="true" /> + + <de.androvdr.widget.FontAwesomeButton + android:id="@+id/ChannelUp" + style="@style/volChanButton" + + android:tag="Channel+" + android:text="" + android:layout_alignTop="@+id/up" + android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" /> + + <de.androvdr.widget.FontAwesomeButton + android:id="@+id/VolumeUp" + style="@style/volChanButton" + android:layout_height="wrap_content" + android:tag="Volume+" + android:text="" + android:layout_alignTop="@+id/up" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" /> + + <de.androvdr.widget.SquareButton + android:id="@+id/down" + style="@style/cursorButton" + + android:layout_gravity="center_horizontal" + + android:tag="Down" + android:text="▼" + android:layout_below="@+id/ok" + android:layout_toLeftOf="@+id/right" + android:layout_toStartOf="@+id/right" /> + + <de.androvdr.widget.FontAwesomeButton + android:id="@+id/ChannelDown" + style="@style/volChanButton" + android:tag="Channel-" + android:text="" + android:layout_alignBottom="@+id/down" + android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" /> + + <de.androvdr.widget.FontAwesomeButton + android:id="@+id/VolumeDown" + style="@style/volChanButton" + android:tag="Volume-" + android:text="" + android:layout_alignBottom="@+id/down" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" /> + + </RelativeLayout> + + + + <LinearLayout + android:id="@+id/colorButtons" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" + android:layout_below="@+id/rows0"> + + + <de.androvdr.widget.FontAwesomeButton + android:id="@+id/red" + style="?android:attr/buttonStyleSmall" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:tag="Red" + android:text="" + android:textColor="@color/red" + /> + + + <de.androvdr.widget.FontAwesomeButton + android:id="@+id/green" + style="?android:attr/buttonStyleSmall" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="" + android:tag="Green" + android:textColor="@color/green" + /> + + + <de.androvdr.widget.FontAwesomeButton + android:id="@+id/yellow" + style="?android:attr/buttonStyleSmall" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:tag="Yellow" + android:text="" + android:textColor="@color/yellow" + /> + + + <de.androvdr.widget.FontAwesomeButton + android:id="@+id/blue" + style="?android:attr/buttonStyleSmall" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:tag="Blue" + android:text="" + android:textColor="@color/blue" + /> + + + </LinearLayout> + + + <LinearLayout + android:id="@+id/rows1" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:orientation="horizontal" + android:layout_above="@+id/rows2"> + + <de.androvdr.widget.FontAwesomeButton + style="?android:attr/buttonStyleSmall" + + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:tag="Mute" + android:text="" /> + + + <de.androvdr.widget.FontAwesomeButton + style="?android:attr/buttonStyleSmall" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:tag="Info" + android:text="" /> + + <de.androvdr.widget.FontAwesomeButton + style="?android:attr/buttonStyleSmall" + android:layout_width="0dp" + + android:layout_height="wrap_content" + android:layout_weight="1" + android:tag="Back" + android:text="" /> + + + <de.androvdr.widget.FontAwesomeButton + style="?android:attr/buttonStyleSmall" + android:layout_width="0dp" + + android:layout_height="wrap_content" + android:layout_weight="1" + android:tag="Menu" + android:text="" /> + + </LinearLayout> + + + <LinearLayout + + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:id="@+id/rows2" + android:orientation="horizontal" + android:layout_marginTop="10dp" + android:layout_marginBottom="10dp" + android:layout_alignParentBottom="true"> + + <de.androvdr.widget.FontAwesomeButton + style="?android:attr/buttonStyleSmall" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:tag="Audio" + android:text="" /> + + + <de.androvdr.widget.FontAwesomeButton + style="?android:attr/buttonStyleSmall" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:tag="Subtitles" + android:text="S" /> + + <de.androvdr.widget.FontAwesomeButton + style="?android:attr/buttonStyleSmall" + android:layout_width="0dp" + + android:layout_height="wrap_content" + android:layout_weight="1" + android:tag="PrevChannel" + android:text="" /> + + + <de.androvdr.widget.FontAwesomeButton + style="?android:attr/buttonStyleSmall" + android:layout_width="0dp" + + android:layout_height="wrap_content" + android:layout_weight="1" + android:tag="Commands" + android:text="" /> + </LinearLayout> + + +</RelativeLayout> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/search_epg_list.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/search_epg_list.xml new file mode 100644 index 0000000..d5cc5af --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/search_epg_list.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="utf-8"?> +<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/drawer_layout" + android:layout_width="match_parent" + android:layout_height="match_parent" > +<LinearLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical"> + + <ListView + android:id="@+id/whatson_list" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_below="@id/epg_list_channel_spinner" + android:layout_alignWithParentIfMissing="true" + android:layout_alignParentTop="true" + android:layout_centerHorizontal="true" + android:cacheColorHint="?android:attr/colorBackground"/> + + <TextView + android:id="@+id/epg_list_search_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/epg_list_search_label"/> + + <LinearLayout android:orientation="vertical" + android:id="@+id/no_connection_layout" android:layout_width="fill_parent" + android:layout_height="fill_parent" android:visibility="gone"> + <LinearLayout android:layout_height="fill_parent" + android:gravity="center" android:layout_width="fill_parent" + android:orientation="horizontal"> + <TextView android:text="@string/no_connection" + android:layout_height="wrap_content" android:layout_width="wrap_content" + android:textSize="18dip" /> + <ImageView android:src="@drawable/sad" + android:layout_height="wrap_content" android:layout_width="wrap_content" /> + <Button android:text="@string/no_connection_retry" + android:textSize="18dip" android:layout_height="wrap_content" + android:layout_width="wrap_content" android:id="@+id/retry_button" /> + + </LinearLayout> + </LinearLayout> +</LinearLayout> + +<include layout="@layout/left_drawer"/> +</android.support.v4.widget.DrawerLayout> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/time_epg_list.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/time_epg_list.xml new file mode 100644 index 0000000..f42ab32 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/time_epg_list.xml @@ -0,0 +1,115 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- A DrawerLayout is intended to be used as the top-level content view using match_parent for both width and height to consume the full space available. --> +<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/drawer_layout" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <ViewFlipper + android:id="@+id/flipper" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" > + + <LinearLayout + android:id="@+id/whatson_time" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" > + + <TextView + android:id="@+id/epg_list_time_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/epg_list_time_label" + android:visibility="gone" /> + + <ImageView + android:id="@+id/epg_list_times" + style="?android:attr/buttonStyleSmall" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_centerHorizontal="true" + android:layout_gravity="center_horizontal" + android:background="@android:drawable/list_selector_background" + android:clickable="true" + android:src="@drawable/btn_search_times" /> + + <Spinner + android:id="@+id/epg_list_time_spinner" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="2dip" + android:layout_weight="1" + android:prompt="@string/epg_list_time_label" /> + + <ImageView + android:id="@+id/switch_epg_view" + style="?android:attr/buttonStyleSmall" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_centerHorizontal="true" + android:layout_gravity="center_horizontal" + android:background="@android:drawable/list_selector_background" + android:clickable="true" + android:src="@drawable/ic_menu_revert" /> + </LinearLayout> + + <ListView + android:id="@+id/whatson_list" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_alignParentTop="true" + android:layout_alignWithParentIfMissing="true" + android:layout_below="@id/epg_list_time_spinner" + android:layout_centerHorizontal="true" + android:cacheColorHint="?android:attr/colorBackground" /> + + <TextView + android:id="@+id/epg_list_search_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/epg_list_search_label" /> + </LinearLayout> + + <LinearLayout + android:id="@+id/no_connection_layout" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:gravity="center" + android:orientation="horizontal" > + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/no_connection" + android:textSize="18dip" /> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/sad" /> + + <Button + android:id="@+id/retry_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/no_connection_retry" + android:textSize="18dip" /> + </LinearLayout> + </LinearLayout> + </ViewFlipper> + + <include layout="@layout/left_drawer" /> + +</android.support.v4.widget.DrawerLayout>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/timer_detail.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/timer_detail.xml new file mode 100644 index 0000000..b74d54e --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/timer_detail.xml @@ -0,0 +1,167 @@ +<?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:paddingLeft="10.0dip" android:paddingRight="10.0dip" + android:orientation="vertical"> + + <ScrollView + android:id="@+id/timer_detail_scroll" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_weight="0.5"> + + <LinearLayout + android:id="@+id/timer_detail_layout" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <TextView + android:paddingLeft="4.0dip" android:paddingBottom="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" + android:text="@string/timer_detail_channel_title"/> + + <EditText + android:id="@+id/timer_detail_channel" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:enabled="false" + /> + + <TextView + android:paddingLeft="4.0dip" android:paddingBottom="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" + android:text="@string/timer_detail_title_title"/> + + + <EditText + android:id="@+id/timer_detail_title" + android:layout_width="fill_parent" + android:layout_height="wrap_content"/> + + + + <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> + + <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> + + <TextView + android:paddingLeft="4.0dip" android:paddingBottom="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" + android:text="@string/timer_detail_day_title"/> + + + <Button + android:id="@+id/timer_detail_day" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:editable="false"/> + + </LinearLayout> + + <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> + <TextView + android:paddingLeft="4.0dip" android:paddingBottom="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" + android:text="@string/timer_detail_repeat_title"/> + + + <Button + android:id="@+id/timer_detail_repeat" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/never" + android:editable="false"/> + + </LinearLayout> + + + </LinearLayout> + + + <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> + + <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> + + + <TextView + android:paddingLeft="4.0dip" android:paddingBottom="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" + android:text="@string/timer_detail_start_title"/> + + <Button + android:id="@+id/timer_detail_start" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="20:34" + android:editable="false"/> + + </LinearLayout> + + <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> + <TextView + android:paddingLeft="4.0dip" android:paddingBottom="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="2.0dip" + android:text="@string/timer_detail_end_title"/> + + <Button + android:id="@+id/timer_detail_end" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:editable="false"/> + + + </LinearLayout> + </LinearLayout> + + <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal" android:id="@+id/timer_block"> + <TextView android:width="80dp" android:text="@string/timer_detail_use_vps" android:layout_width="wrap_content" android:layout_height="wrap_content" /> + <CheckBox android:id="@+id/timer_detail_vps" android:layout_height="wrap_content" android:layout_width="wrap_content"/> + </LinearLayout> + + + + + <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> + + <TextView android:width="80dp" android:text="@string/timer_detail_priority" android:layout_width="wrap_content" android:layout_height="wrap_content" /> + + <EditText android:layout_height="wrap_content" android:numeric="integer" android:id="@+id/timer_detail_priority" android:layout_width="wrap_content" android:hint="@string/timer_detail_priority"/> + + + </LinearLayout> + + <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> + + <TextView android:width="80dp" android:text="@string/timer_detail_lifetime" android:layout_width="wrap_content" android:layout_height="wrap_content" /> + + <EditText android:layout_height="wrap_content" android:numeric="integer" android:id="@+id/timer_detail_lifetime" android:layout_width="wrap_content" android:hint="@string/timer_detail_lifetime_hint"/> + + + </LinearLayout> + + </LinearLayout> + + </ScrollView> + +<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" > + + <Button + android:id="@+id/timer_details_cancel" + android:layout_width="0dip" android:layout_height="fill_parent" + android:layout_weight="1" + android:text="@android:string/cancel"/> + + <Button + android:id="@+id/timer_details_modify" + android:layout_width="0dip" android:layout_height="fill_parent" + android:layout_weight="1" + android:visibility="gone" + android:text="@string/timer_details_save_title"/> + + + <Button + android:id="@+id/timer_details_save" + android:layout_width="0dip" android:layout_height="fill_parent" + android:layout_weight="1" + android:text="@string/timer_details_create_title"/> + + </LinearLayout> + +</LinearLayout> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/timer_list.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/timer_list.xml new file mode 100644 index 0000000..7a3ed02 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/timer_list.xml @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- A DrawerLayout is intended to be used as the top-level content view using match_parent for both width and height to consume the full space available. --> +<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/drawer_layout" + android:layout_width="match_parent" + android:layout_height="match_parent" > + + <ViewFlipper + android:id="@+id/flipper" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" > + + <LinearLayout + android:id="@+id/main_content" + android:layout_width="fill_parent" + android:layout_height="fill_parent" > + + <ListView + android:id="@+id/timer_list" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:layout_alignParentTop="true" + android:layout_alignWithParentIfMissing="true" + android:layout_centerHorizontal="true" + android:cacheColorHint="?android:attr/colorBackground" /> + </LinearLayout> + + <LinearLayout + android:id="@+id/no_connection_layout" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:orientation="vertical" > + + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:gravity="center" + android:orientation="horizontal" > + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/no_connection" + android:textSize="18dip" /> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/sad" /> + + <Button + android:id="@+id/retry_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/no_connection_retry" + android:textSize="18dip" /> + </LinearLayout> + </LinearLayout> + </ViewFlipper> + + <include layout="@layout/left_drawer" /> + +</android.support.v4.widget.DrawerLayout>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/timer_operation_list_item.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/timer_operation_list_item.xml new file mode 100644 index 0000000..16aa849 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/timer_operation_list_item.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:paddingLeft="5dp" + android:paddingRight="5dp" + android:gravity= "center_vertical" + android:textAppearance="?android:textAppearanceLarge" + android:textColor="#000" + android:lines="2"/> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/vdr_list_add_delete.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/vdr_list_add_delete.xml new file mode 100644 index 0000000..a8b0e85 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/vdr_list_add_delete.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:layout_height="fill_parent"> + + + + <TextView + android:id="@+id/empty_view" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:padding="20.0dip" + android:text="@string/no_vdr" + android:textAppearance="?android:textAppearanceMedium" /> + + <Button + android:id="@+id/new_vdr" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + + android:text="@string/new_vdr" /> + + + <ListView + android:id="@+id/vdr_list" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:choiceMode="singleChoice" + android:drawSelectorOnTop="false" + android:fastScrollEnabled="true" + android:layout_above="@+id/new_vdr" + android:scrollingCache="true" /> +</RelativeLayout>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/vdrlist.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/vdrlist.xml new file mode 100644 index 0000000..d04df91 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/vdrlist.xml @@ -0,0 +1,12 @@ +<?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"> + + <ListView android:id="@android:id/list" android:layout_width="fill_parent" + android:layout_height="wrap_content" /> + + <TextView android:id="@android:id/empty" android:layout_width="wrap_content" + android:layout_height="wrap_content" android:text="Empty set" /> + +</LinearLayout>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/vdrmanager.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/vdrmanager.xml new file mode 100644 index 0000000..3959a9e --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/vdrmanager.xml @@ -0,0 +1,108 @@ +<?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="match_parent" + android:paddingTop="10dp" + android:paddingBottom="20dp" + android:orientation="vertical"> + + <!-- <ListView android:id="@+id/vdrmanager_menu" android:layout_width="fill_parent" + android:layout_height="wrap_content" android:layout_below="@id/main_logo"/> --> + + + <ImageView android:id="@+id/main_logo" android:layout_width="fill_parent" + android:clickable="true" + android:layout_height="80dip" android:src="@drawable/vdr_logo" android:padding="10dip" /> + + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:orientation="horizontal"> + + <Button + android:id="@+id/action_menu_channels" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@android:drawable/list_selector_background" + android:drawableTop="@drawable/btn_channels" + android:text="@string/action_menu_channels" + android:textColor="#FFF" /> + + <Button + android:id="@+id/action_menu_epg" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@android:drawable/list_selector_background" + android:cacheColorHint="?android:attr/colorBackground" + android:drawableTop="@drawable/btn_epglist" + android:text="@string/action_menu_epg" + android:textColor="#FFF" /> + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:orientation="horizontal"> + + <Button + android:id="@+id/action_menu_recordings" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@android:drawable/list_selector_background" + android:cacheColorHint="?android:attr/colorBackground" + android:drawableTop="@drawable/btn_recordings" + android:text="@string/action_menu_recordings" + android:textColor="#FFF" /> + + <Button + android:id="@+id/action_menu_timers" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@android:drawable/list_selector_background" + android:cacheColorHint="?android:attr/colorBackground" + android:drawableTop="@drawable/btn_timer" + android:text="@string/action_menu_timers" + android:textColor="#FFF" /> + </LinearLayout> + + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + android:orientation="horizontal"> + + <Button + android:id="@+id/action_menu_wakeup" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@android:drawable/list_selector_background" + android:cacheColorHint="?android:attr/colorBackground" + android:drawableTop="@drawable/btn_wakeup" + + android:padding="5dip" + android:text="@string/action_menu_wakeup" + android:textColor="#FFF" /> + + <Button + android:id="@+id/action_menu_remote" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:background="@android:drawable/list_selector_background" + android:cacheColorHint="?android:attr/colorBackground" + android:drawableTop="@drawable/btn_remote" + android:padding="5dip" + android:text="@string/action_menu_remote" + android:textColor="#FFF" /> + </LinearLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/vdrmanager_menu_item.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/vdrmanager_menu_item.xml new file mode 100644 index 0000000..1c793d8 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/vdrmanager_menu_item.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> + +<TextView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/vdrmanager_menu_item" + android:lines="2" + android:gravity="center_vertical" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:paddingLeft="15dp" + android:paddingRight="15dp" + android:paddingTop="10dp" + android:paddingBottom="10dp"/> + +<!-- +<ImageButton xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/vdrmanager_menu_item" + android:lines="2" + android:gravity="center_vertical" + android:layout_width="wrap_content" + android:layout_height="wrap_content"/> +-->
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/video.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/video.xml new file mode 100644 index 0000000..595e02a --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/layout/video.xml @@ -0,0 +1,27 @@ +<?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"> + + <TextView + android:id="@+id/epg_search_title" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:textStyle="bold"/> + + <VideoView + android:id="@+id/video_video" + android:layout_width="fill_parent" + android:layout_height="wrap_content"/> + + <Button + android:id="@+id/video_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + android:text="Start"/> + +</LinearLayout> + diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/channel_list_group_menu.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/channel_list_group_menu.xml new file mode 100644 index 0000000..d3f7b5f --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/channel_list_group_menu.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + + <item + android:id="@+id/channel_group_menu_hide" + android:title="@string/channel_group_menu_hide"/> + <item + android:id="@+id/channel_group_menu_hide_permanent" + android:title="@string/channel_group_menu_hide_permanent"/> + +</menu>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/channel_list_item_menu.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/channel_list_item_menu.xml new file mode 100644 index 0000000..c2fc9e0 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/channel_list_item_menu.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + +<item + android:id="@+id/channel_item_menu_stream" + android:title="@string/channel_item_menu_stream"/> + +<!-- + <item + android:id="@+id/channel_item_menu_epg" + android:title="@string/channel_item_menu_epg"/> +--> + +<item + android:id="@+id/channel_item_menu_switch" + android:title="@string/channel_item_menu_switch"/> + +<!-- + <item android:visible="false" + android:id="@+id/channel_item_menu_hide" + android:title="@string/channel_item_menu_hide"/> + + <item android:visible="false" + android:id="@+id/channel_item_menu_hide_permanent" + android:title="@string/channel_item_menu_hide_permanent"/> +--> + +</menu>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/channellist.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/channellist.xml new file mode 100644 index 0000000..4f2695a --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/channellist.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:v7="http://schemas.android.com/apk/res-auto" > + + <item + android:id="@+id/channels_recent_channels" android:alphabeticShortcut="r" + android:icon="@drawable/ic_menu_recent_history" + v7:showAsAction="ifRoom" + android:title="@string/recent_channels"/> + + <item + android:id="@+id/channels_groupby" android:alphabeticShortcut="g" + android:icon="@android:drawable/ic_menu_sort_alphabetically" + v7:showAsAction="ifRoom" + android:title="@string/menu_groupby"/> + +</menu>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/epg_details.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/epg_details.xml new file mode 100644 index 0000000..6ce238a --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/epg_details.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:v7="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android" > + + <item + android:id="@+id/epg_details_menu_search_repeat" + v7:showAsAction="ifRoom" + android:icon="@drawable/ic_menu_view" + android:title="@string/search_reapt"/> + + <item + v7:showAsAction="ifRoom" + android:id="@+id/epg_details_menu_share" + android:icon="@android:drawable/ic_menu_share" + android:title="@string/share"/> + + <item + v7:showAsAction="ifRoom" + android:id="@+id/epg_details_menu_add_to_cal" + android:icon="@android:drawable/ic_menu_month" + android:title="@string/addtocal"/> + + <item + v7:showAsAction="ifRoom" + android:id="@+id/epg_details_menu_switch" + android:icon="@drawable/ic_menu_goto" + android:title="@string/switch_to_channel"/> +</menu> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/epg_event_list_menu.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/epg_event_list_menu.xml new file mode 100644 index 0000000..4796a13 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/epg_event_list_menu.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:v7="http://schemas.android.com/apk/res-auto" > + + <!-- + <item + android:id="@+id/epg_menu_search" + android:icon="@android:drawable/ic_menu_search" + android:title="@string/epg_menu_search"/> + --> + <!-- + <item + android:id="@+id/epg_menu_times" + android:icon="@android:drawable/ic_menu_search" + android:title="@string/epg_menu_times"/> + --> + <!-- --> + + <item + v7:showAsAction="ifRoom" + android:id="@+id/epg_list_stream" + android:icon="@drawable/ic_menu_play_clip" + android:title="@string/livetv"/> +</menu>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/epg_list_item_menu.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/epg_list_item_menu.xml new file mode 100644 index 0000000..15dbef8 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/epg_list_item_menu.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" > + + <item + android:id="@+id/epg_item_menu_timer_toggle" + android:title="@string/epg_item_menu_timer_enable" + android:visible="false"/> + <item + android:id="@+id/epg_item_menu_timer_add" + android:title="@string/epg_item_menu_timer_add"/> + <item + android:id="@+id/epg_item_menu_timer_delete" + android:title="@string/epg_item_menu_timer_delete" + android:visible="false"/> + <item + android:id="@+id/epg_item_menu_timer_modify" + android:title="@string/epg_item_menu_timer_modify" + android:visible="false"/> + <item + android:id="@+id/epg_item_menu_live_tv" + android:title="@string/livetv" + android:visible="false"/> + <item + android:id="@+id/epg_item_menu_switchto" + android:title="@string/switch_to_channel" + android:visible="true"/> + +</menu>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/epg_list_menu.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/epg_list_menu.xml new file mode 100644 index 0000000..2e1b029 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/epg_list_menu.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:v7="http://schemas.android.com/apk/res-auto" > + + <!-- + <item + android:id="@+id/epg_menu_search" + android:icon="@android:drawable/ic_menu_search" + android:title="@string/epg_menu_search"/> + --> + <!-- + <item + android:id="@+id/epg_menu_times" + android:icon="@android:drawable/ic_menu_search" + android:title="@string/epg_menu_times"/> + --> + <!-- --> + + <item + android:id="@+id/epg_list_sort_menu" + android:icon="@android:drawable/ic_menu_sort_alphabetically" + v7:showAsAction="ifRoom" + android:title="@string/sort"/> + +</menu>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/epg_search_menu.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/epg_search_menu.xml new file mode 100644 index 0000000..22a69ee --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/epg_search_menu.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:v7="http://schemas.android.com/apk/res-auto" > + +<!-- --> + <item + android:id="@+id/epg_search" + android:icon="@android:drawable/ic_menu_search" + android:alphabeticShortcut="s" + v7:showAsAction="always" + android:title="@string/action_menu_search"/> + +</menu>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/epg_search_time_item_menu.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/epg_search_time_item_menu.xml new file mode 100644 index 0000000..a54abf0 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/epg_search_time_item_menu.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + + <item + android:id="@+id/epg_search_time_delete" + android:title="@string/common_delete"/> + +</menu>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/main_menu.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/main_menu.xml new file mode 100644 index 0000000..f08a1fd --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/main_menu.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:v7="http://schemas.android.com/apk/res-auto" > + + <item + android:id="@+id/main_menu_goto" + android:icon="@drawable/ic_menu_goto" + v7:showAsAction="ifRoom" + android:title="@string/main_menu_goto"/> + <item + android:id="@+id/menu_search" + v7:actionViewClass="android.support.v7.widget.SearchView" + android:icon="@android:drawable/ic_menu_search" + v7:showAsAction="always" + android:title="@string/search"/> + <item + android:id="@+id/main_menu_preferences" + android:icon="@android:drawable/ic_menu_preferences" + v7:showAsAction="ifRoom" + android:title="@string/main_menu_preferences"/> + <item + android:id="@+id/main_menu_clear_search" + android:icon="@android:drawable/ic_menu_delete" + android:title="@string/main_menu_clear_search"/> + <item + android:id="@+id/main_menu_info" + android:icon="@android:drawable/ic_menu_info_details" + android:title="@string/main_menu_info"/> + <item + android:id="@+id/main_menu_exit" + android:icon="@android:drawable/ic_menu_close_clear_cancel" + android:title="@string/main_menu_exit"/> + +</menu>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/recording_list_item_menu.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/recording_list_item_menu.xml new file mode 100644 index 0000000..1da52d5 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/recording_list_item_menu.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" > + + <item + android:id="@+id/recording_item_menu_delete" + android:title="@string/recording_item_menu_delete"/> + <item + android:id="@+id/recording_item_menu_stream" + android:title="@string/recording_item_menu_stream"/> + <item + android:id="@+id/epg_item_menu_live_tv" + android:title="@string/livetv" + android:visible="false"/> + <item + android:id="@+id/epg_item_menu_switchto" + android:title="@string/switch_to_channel" + android:visible="true"/> + +</menu>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/recording_list_menu.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/recording_list_menu.xml new file mode 100644 index 0000000..ddc32e7 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/recording_list_menu.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> +<!-- + <item + android:id="@+id/epg_menu_search" + android:icon="@android:drawable/ic_menu_search" + android:title="@string/epg_menu_search"/> +--> +<!-- + <item + android:id="@+id/epg_menu_times" + android:icon="@android:drawable/ic_menu_search" + android:title="@string/epg_menu_times"/> + --> + <!-- + <item + android:id="@+id/menu_groupby" android:alphabeticShortcut="g" + android:icon="@android:drawable/ic_menu_sort_alphabetically" + android:showAsAction="ifRoom" + android:title="@string/menu_groupby"/> + --> +</menu>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/refresh_filter_menu.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/refresh_filter_menu.xml new file mode 100644 index 0000000..0046707 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/refresh_filter_menu.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:v7="http://schemas.android.com/apk/res-auto" > + + <item + android:id="@+id/list_refresh" + android:alphabeticShortcut="r" + android:icon="@drawable/ic_menu_refresh" + v7:showAsAction="ifRoom" + android:title="@string/refresh"/> + + <item + android:id="@+id/list_filter" + android:alphabeticShortcut="f" + android:icon="@drawable/ic_menu_filter" + v7:showAsAction="ifRoom" + android:title="@string/filter"/> +</menu>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/refresh_menu.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/refresh_menu.xml new file mode 100644 index 0000000..79626b9 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/refresh_menu.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:v7="http://schemas.android.com/apk/res-auto" > + + <item + android:id="@+id/list_refresh" + android:alphabeticShortcut="r" + v7:showAsAction="ifRoom" + android:icon="@drawable/ic_menu_refresh" + android:title="@string/refresh"/> +</menu>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/remote_menu.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/remote_menu.xml new file mode 100644 index 0000000..a2540d3 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/remote_menu.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> + +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/reset" + android:title="@string/menu_reset" /> + <item android:id="@+id/exprt" + android:title="@string/menu_exprt" /> + <item android:id="@+id/imprt" + android:title="@string/menu_imprt" /> + <item android:id="@+id/remapback" + android:title="@string/menu_remapback" android:checkable="true"/> +</menu> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/timer_list_menu.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/timer_list_menu.xml new file mode 100644 index 0000000..3003bea --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/timer_list_menu.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> +<!-- + <item + android:id="@+id/epg_menu_search" + android:icon="@android:drawable/ic_menu_search" + android:title="@string/epg_menu_search"/> +--> +<!-- --> + <item + android:id="@+id/timer_menu_add" + android:icon="@android:drawable/ic_menu_add" + android:alphabeticShortcut="a" + android:title="@string/epg_item_menu_timer_add"/> + +</menu>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/vdrlist.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/vdrlist.xml new file mode 100644 index 0000000..821dc21 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/menu/vdrlist.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:v7="http://schemas.android.com/apk/res-auto" > + + <item + android:id="@+id/main_menu_vdrlist_restore" + android:title="@string/settings_backup_restore"/> + +</menu>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/raw/ormlite_config.txt b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/raw/ormlite_config.txt new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/raw/ormlite_config.txt diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-de/strings.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-de/strings.xml new file mode 100644 index 0000000..3ba27fa --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-de/strings.xml @@ -0,0 +1,507 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--Generated by crowdin.com--> +<resources xmlns:tools="http://schemas.android.com/tools"> + <string name="action_menu_channels">Kanäle</string> + <string name="action_menu_timers">Timers</string> + <string name="action_menu_recordings">Aufnahmen</string> + <string name="action_menu_epg">EPG Liste</string> + <string name="action_menu_search">EPG Suche</string> + <string name="action_menu_wakeup">Aufwecken</string> + <string name="action_menu_remote">Remote</string> + <string name="app_name">VDR-Manager</string> + <string name="channel_item_menu_epg">Zeige EPG</string> + <string name="channel_item_menu_stream">Livestream</string> + <string name="channel_item_menu_hide">Verbergen</string> + <string name="channel_item_menu_hide_permanent">Permanent verbergen</string> + <string name="channel_group_menu_hide">Verbergen</string> + <string name="channel_group_menu_hide_permanent">Permanent verbergen</string> + <string name="menu_groupby">Anordnen nach</string> + <string name="groupby_group">Gruppe</string> + <string name="groupby_provider">Provider</string> + <string name="groupby_name">Name</string> + <string name="groupby_source">Quelle</string> + <string name="groupby_channel">nach Kanal</string> + <string name="groupby_date">nach Datum</string> + <string name="groupby_name_all_channels_group">Alle Kanäle</string> + <string name="groupby_window_title_templte">Nach %1$s anordnen</string> + <string name="common_delete">Löschen</string> + <string name="prefs_current_value">Aktuell:</string> + <string name="prefs_current_value_template">Aktuell: %1$s</string> + <string name="prefs_current_value_not_set"><Nicht gesetzt></string> + <string name="no_connection">Keine Verbindung</string> + <string name="aborted">Connection aborted.</string> + <string name="no_connection_retry">Wiederholen</string> + <string name="refresh">Auffrischen</string> + <string name="done">Fertig</string> + <string name="share">Share</string> + <string name="addtocal">Zum Kalender</string> + <string name="search_reapt">Wiederholungen</string> + <string name="share_chooser">Share EPG Eintrag</string> + <string name="about_text">Über \"VDR-Manager\" für Android\n +Dies ist Version %1$s\n +Falls sie zuhause einen VDR haben, der über Internet erreichbar ist, und sie ein Android-Smartphone besitzen werden sie das Programm eventuell nützlich finden. +Für weitere Informationen besuchen sie http://projects.vdr-developer.org/projects/vdr-manager/wiki. +Author:\n +bju<herrlado@gmail.com> +herrlado<herrlado@gmail.com></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> + <string name="epg_menu_search">Suche EPG</string> + <string name="epg_menu_times">Zeiten einstellen</string> + <string name="epg_item_menu_timer_add">Erzeuge Timer</string> + <string name="epg_item_menu_timer_record">Aufnahme</string> + <string name="epg_item_menu_timer_delete">Lösche Timer</string> + <string name="epg_item_menu_timer_modify">Bearbeite Timer</string> + <string name="epg_item_menu_timer_enable">Aktiviere Timer</string> + <string name="epg_item_menu_timer_disable">Deaktiviere Timer</string> + <string name="epg_no_items">Nichts gefunden…</string> + <string name="epg_client_errors">Ein Fehler ist aufgetreten, prüfe Log…</string> + <string name="navigae_at_the_end">Ende</string> + <string name="navigae_at_the_start">Anfang</string> + <string name="epg_search_times_add">Zeit hinzufügen</string> + <string name="epg_search_times_window">Selbstdefinierte Zeiten</string> + <!-- What's on display --> + <string name="epg_list_time_label">Was kommt</string> + <string name="epg_list_time_now">jetzt</string> + <string name="epg_list_time_next">als nächstes</string> + <string name="epg_list_time_adhoc">freie Zeitwahl</string> + <string name="epg_list_channel_spinner">Kanal</string> + <string name="epg_list_search_label">Suchergebnisse</string> + <!-- create timer --> + <string name="epg_event_share_text">Share</string> + <string name="epg_event_imdb_text">IMDb Suche</string> + <string name="epg_event_omdb_text">OMDB Suche</string> + <string name="epg_event_tmdb_text">TMDb Suche</string> + <string name="epg_eent_livetv_text">Stream</string> + <string name="epg_event_create_timer_text">Timer hinzufügen</string> + <string name="epg_event_modify_timer_text">Timer modifizieren</string> + <!-- search --> + <string name="epg_search_button">Suchen</string> + <string name="epg_duration_template">%1$s min</string> + <string name="epg_duration_template_live">%1$s/%2$s min</string> + <string name="epg_of_a_channel">%1$s, %2$s/%3$s</string> + <string name="epg_by_channel">EPG nach Kanälen</string> + <string name="epg_by_search">EPG Suche</string> + <string name="epg_by_search_param">EPG Suche: \'%1$s\'</string> + <string name="epg_by_time">EPG nach Zeit</string> + <string name="epg_by_time_args">EPG nach Zeit: \'%1$s\'</string> + <string name="search_epg_hint">Suche EPG</string> + <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> + <string name="vdr_error_text">Bei der Kommunikation mit dem VDR ist ein Fehler aufgetreten: %1$s</string> + <string name="livetv">Live TV</string> + <string name="settings_livetv_summary">Benötigt Streamdev-server auf dem VDR und ein externes Wiedergabeprogramm wie z.B. VPlayer</string> + <string name="settings_livetv_streamformat">Stream-Format</string> + <string name="settings_livetv_port">Stream-Port</string> + <string name="settings_livetv_port_summary">Default 3000. Der Zugriff muss in der Datei + streamdevhosts.conf aktiviert sein.</string> + <string-array name="livetv_streamformat"> + <item>TS</item> + <item>PES</item> + <item>ES</item> + <item>PS</item> + </string-array> + <string name="key_remux_enable">remux_enable</string> + <string name="key_remux_command">remux_command</string> + <string name="key_remux_parameter">remux_parameter</string> + <string name="stream_via_as">Stream</string> + <string name="stream_choose_audio">Audiospur wählen</string> + <string name="stream_via">über %s</string> + <string name="stream_as">als %s</string> + <string name="remux_title">Remux</string> + <string name="remux_enable_title">Aktiviere Remux</string> + <string name="remux_enable_summary">Aktiviere Streaming mittels remux (z.B. externremux.sh)</string> + <string name="remux_command_title">Format</string> + <string name="remux_command_summary">Typischerweise EXT oder Extern z.B. http://vdr:3000/Extern/1</string> + <string name="remux_parameter_title">Parameter</string> + <string name="remux_parameter_summary">Steuert Streaming Qualität. z.B. http://vdr:3000/Extern;DSL1000/1</string> + <string name="main_menu_preferences">Einstellungen</string> + <string name="main_menu_info">Infomationen</string> + <string name="main_menu_exit">Beenden</string> + <string name="main_menu_goto">Gerät umstellen</string> + <string name="main_menu_goto_title">Umstellen auf…</string> + <string name="main_menu_goto_no_vdr">Das gewählte Gerät kann nicht geladen werden :(</string> + <string name="main_menu_switched_to">Umgestellt auf %1$s</string> + <string name="vdr_devices_summary">Definiere ein oder weitere VDR Geräte. (aktuell nicht implementiert)</string> + <string name="vdr_devices">VDR Geräte</string> + <!-- VDR plugin preferences --> + <string name="vdr_preferences">Netzwerkeinstellungen</string> + <string name="vdr_host_title">VDR Rechner</string> + <string name="vdr_host_summary">VDR Hostrechner</string> + <string name="vdr_port_title">VDR Plugin Port </string> + <string name="vdr_port_summary">Port für Verbindungen zum VDR Plugin</string> + <string name="vdr_password_title">VDR Plugin Passwort</string> + <string name="vdr_password_summary">Passwort für das VDR Plugin</string> + <string name="vdr_ssl_title">Sichere Verbindung</string> + <string name="vdr_ssl_summary">Verwende SSL für Verbindungen (aktuell nicht implementiert)</string> + <!-- channel filter preferences --> + <string name="channel_filter_preferences">Kanaleinstellungen</string> + <string name="channel_filter_filter_title">Begrenze Kanäle</string> + <string name="channel_filter_filter_summary">Nur ausgewählte Kanäle verwenden</string> + <string name="channel_filter_last_title">Kanalfilter</string> + <string name="channel_filter_last_summary">Kommagetrennte Kanalnummern oder Bereiche (\'-\'). z.B. 1,2,4-10</string> + <!-- wakeup --> + <string name="wakeup_preferences">Ferngesteueren VDR Rechner wecken</string> + <string name="wakeup_enabled_title">VDR kann geweckt werden</string> + <string name="wakeup_enabled_summary">Aktiviert das Wecken des ferngesteuerten VDR Rechners</string> + <string name="wakeup_url_title">URL für Wecken in der Ferne</string> + <string name="wakeup_url_summary">URL für die Aufforderung zum Wecken</string> + <string name="wakeup_user_title">Nutzeraccount</string> + <string name="wakeup_user_summary">Account für Remote-Wecken</string> + <string name="wakeup_password_title">Passwort</string> + <string name="wakeup_password_summary">Passwort für Remote-Wecken</string> + <string name="wakeup_method_title">Weckmethode</string> + <string name="wakeup_method_summary">Wähle eine Methode zum Wecken des VDR Rechners</string> + <string-array name="wakeup_methods"> + <item>Rufe ein URL auf</item> + <item>WOL</item> + </string-array> + <string name="wakeup_wol_custom_boradcast_title">Ziel IP-Adresse</string> + <string name="wakeup_wol_custom_boradcast_summary">Eine WOL-Netzwerkadresse von 255.255.255.255 abweichend. Zum Beispiel sinnvoll für VPN Verbindungen.</string> + <string name="wakeup_wol_mac_title">MAC-Adresse</string> + <string name="wakeup_wol_mac_summary">MAC-Adresse des VDR Rechners. Verwende \':\' , \'-\' oder ein Leerzeichen als Trennzeichen.</string> + <!-- timer --> + <string name="timer_preferences">Voreinstellungen für Timer</string> + <string name="timer_pre_start_buffer_title">Vorlaufzeit</string> + <string name="timer_pre_start_buffer_summary">Minuten der Aufzeichnung vor dem Beginn der Sendung</string> + <string name="timer_post_end_buffer_title">Nachlaufzeit</string> + <string name="timer_post_end_buffer_summary">Minuten der Aufzeichnung nach dem Ende der Sendung</string> + <string name="timer_default_priority_title">Priorität</string> + <string name="timer_default_priority_summary">Standardmässig verwendete Priorität</string> + <string name="timer_default_primary_limit_title">Primärlimit</string> + <string name="timer_default_primary_limit_summary">Standardmässig verwendetes Primärlimit</string> + <string name="timer_default_lifetime_title">Lebenszeit</string> + <string name="timer_default_lifetime_summary">Standardmässig verwendete Lebenszeit</string> + <string name="timer_already_exists">Timer already defined.</string> + <string name="timer_created">Timer created</string> + <!-- GUI --> + <string name="gui_preferences">Einstellungen der Benutzeroberfläche</string> + <string name="gui_enable_24h_format_title">Verwende 24-h Format</string> + <string name="gui_enable_24h_format_summary_on">13:00</string> + <string name="gui_enable_24h_format_summary_off">1:00 PM</string> + <string name="gui_channels_show_channel_numbers_title">Zeige Kanalnummern</string> + <string name="gui_channels_show_channel_numbers_summary">Zeige Kanalnummern in der Kanalliste.</string> + <string name="gui_quit_on_back_title">Beenden mit Zurück Button</string> + <string name="gui_quit_on_back_summary_on">Zurück Button schließt den VDR-Manager</string> + <string name="gui_quit_on_back_summary_off">Zurück Button beendet den VDR-Manager nicht</string> + <string name="qui_show_imdb_button_title">Zeige IMDb Button</string> + <string name="qui_show_imdb_button_summary_on">IMDb Button anzeigen</string> + <string name="qui_show_imdb_button_summary_off">IMDb Button nicht anzeigen</string> + <string name="qui_imdb_url_title">IMDb Seite</string> + <string name="qui_imdb_url_summary">Welche IMDb Seite für die Suche verwenden.</string> + <string name="qui_show_omdb_button_title">Zeige OMDB Button</string> + <string name="qui_show_omdb_button_summary_on">OMDB Button anzeigen</string> + <string name="qui_show_omdb_button_summary_off">OMDB Button nicht anzeigen</string> + <string name="qui_show_tmdb_button_title">TMDb Button anzeigen</string> + <string name="qui_show_tmdb_button_summary_on">TMDb Button wird angezeigt</string> + <string name="qui_show_tmdb_button_summary_off">TMDb Button wird nicht angezeigt</string> + <string name="gui_custom_locale_title">Andere Sprache</string> + <string name="gui_custom_locale_sum">Eine andere Sprache aktivieren.</string> + <string-array name="imdb_urls"> + <item>International</item> + <item>imdb.com</item> + <item>uk.imdb.com</item> + <item>imdb.de</item> + <item>imdb.es</item> + <item>imdb.fr</item> + <item>imdb.it</item> + <item>imdb.pt</item> + </string-array> + <string-array name="lang"> + <!-- <item>Default language</item> --> + <item>Englisch</item> + <item>Deutsch</item> + <item>Französisch</item> + <item>Italienisch</item> + <item>Polnisch</item> + <item>Ukrainian</item> + </string-array> + <string-array name="remux_entries"> + <item>EXT</item> + <item>EXTERN (veraltet)</item> + </string-array> + <string name="vdr_advanced_preferences">Erweitert</string> + <string name="vdr_advanced_preferences_summary">Erweiterte Einstellungen</string> + <string name="vdr_conntimeout_title">Anmeldezeitlimit</string> + <string name="vdr_conntimeout_sum">Wie lang (in Sekunden) warten bis eine Verbindung hergestellt ist?</string> + <string name="vdr_readtimeout_title">Lese-Zeitlimit</string> + <string name="vdr_readtimeout_sum">Wie lang (in Sekunden) warten bis eine Zeile gelesen wurde?</string> + <string name="vdr_timeout_title">Gesamt-Zeitlimit</string> + <string name="vdr_timeout_sum">Wie lang maximal (in Sekunden) warten bis eine Datenübertragung entgültig abgebrochen wird?</string> + <string name="streaming_password_title">Streamdev Passwort</string> + <string name="streaming_password_sum">Streamdev Server Passwort, gesetzt mit der Option \"-a \'user:pass\'\". wird so aufgerufen: http://user:pass@vdr:3000. In der Regel nicht gesetzt.</string> + <string name="streaming_username_title">Streamdev Benutzername</string> + <string name="streaming_username_sum">Streamdev Server Benutzername, gesetzt mit der Option \"-a \'user:pass\'\". wird so http://user:pass@vdr:3000. In der Regel nicht gesetzt</string> + <string name="vdr_encoding_title">Zeichenkodierung</string> + <string name="vdr_encoding_summary">Zeichenkodierung vom VDR Gerät. Vorgabe ist Android Zeichenkodierung (utf-8).</string> + <string name="new_vdr">Neues VDR-Gerät</string> + <string name="no_vdr">Keine VDR-Geräte</string> + <string name="vdr_devices_category">VDR-Geräte</string> + <string name="vdr_prefs_category">Gerät</string> + <string name="vdr_name_title">Name</string> + <string name="vdr_name_summary">Der Name von diesem Gerät</string> + <string name="vdr_device_delete_qeustion">Soll dieses Gerät gelöscht werden?</string> + <string name="recstream">Streaming von Aufzeichnungen</string> + <string name="recstream_enable_title">Streaming von Aufzeichnungen</string> + <string name="recstream_enable_summary">Streaming von Aufzeichnungen aktivieren</string> + <string-array name="recstream_entries"> + <item>Live-plugin</item> + <item>VDR streamdev plugin</item> + <item>Smarttvweb plugin</item> + </string-array> + <string-array name="recstream_smarttvweb_entries"> + <item>Progressive</item> + <item>MPEG-DASH</item> + <item>Apple HLS</item> + </string-array> + <string name="recstream_method_title">Streamingmethode</string> + <string name="recstream_method_summary">Momentan wird Streaming über VDR live oder das streamdev-plugin unterstützt</string> + <string name="settings_live_port">VDR Live-Plugin Port</string> + <string name="settings_live_port_summary">VDR Live-Plugin hat standardmäßig den Port 8008.</string> + <!-- progress --> + <string name="progress_connect">Verbinde…</string> + <string name="progress_connect_error">Verbindung fehlgeschlagen!</string> + <string name="progress_connect_timeout">Zeitüberschreitung beim Verbindungsaufbau!</string> + <string name="progress_login">Anmelden.</string> + <string name="progress_login_error">Anmelden fehlgeschlagen.</string> + <string name="progress_whatson_loading">Lade EPG…</string> + <string name="progress_timers_loading">Lade Timer…</string> + <string name="progress_recordings_loading">Lade Aufnahmen…</string> + <string name="progress_switching">Umschalten…</string> + <string name="progress_channels_loading">Lade Kanäle…</string> + <string name="progress_loading">Lade…</string> + <string name="progress_disconnect">Trenne…</string> + <string name="progress_wakeup_sending">Initalisiere aufwecken…</string> + <string name="progress_wakeup_sent">Aufforderung zum Wecken gesendet</string> + <string name="progress_wakeup_error">Fehler beim Senden der Aufforderung zum Wecken: %1$s</string> + <string name="progress_timer_save">Speichere Timer…</string> + <string name="progress_timer_delete">Lösche Timer…</string> + <string name="progress_recording_delete">Lösche Aufnahme…</string> + <string name="progress_timer_enable">Aktiviere Timer…</string> + <string name="progress_timer_modify">Modifiziere Timer…</string> + <string name="progress_timer_disable">Deaktiviere Timer…</string> + <string name="progress_connect_finished_abnormal">Verbindung unnormal beeendet…</string> + <string name="progress_connect_finished_abnormal_arg">Verbindung unnormal beeendet: %1$s</string> + <string name="progress_cache_hit">Lade aus Cache.</string> + <string name="recording_item_menu_delete">Löschen</string> + <string name="recording_item_menu_stream">Stream</string> + <string name="recent_channels">Letzte Kanäle</string> + <string name="recent_channels_no_history">Keine aktuellen Kanäle gefunden…</string> + <string name="gui_max_recent_channels_title">Maximale Kanalhistory</string> + <string name="gui_max_recent_channels_summary">Wie viele Kanäle sollen in der Kanalhistory verbleiben?</string> + <string name="timer_detail_day_title">Tag</string> + <!-- + Repeat options that appear under an alarm on main Alarm Clock + screen to identify repetition schedule: special case for when + the alarm is set to repeat every day + --> + <string name="every_day">Jeden Tag</string> + <!-- + Repeat options that appear under an alarm on main Alarm Clock + screen to identify repetition schedule: special case for when + the alarm is set to never repeat + --> + <string name="never">Nie</string> + <!-- + Repeat options that appear under an alarm on main Alarm Clock + screen to identify repetition schedule: concatenate days with + this character, i.e. "Mon, Tue, Wed" + --> + <string name="day_concat">", "</string> + <string name="timer_detail_repeat_title">Wiederholung</string> + <string name="timer_detail_use_vps">Verwende VPS:</string> + <string name="timer_detail_priority">Priorität:</string> + <string name="timer_detail_lifetime">Lebensdauer:</string> + <string name="timer_detail_lifetime_hint">z.B. 99</string> + <string name="timer_detail_priority_hint">z.B. 50</string> + <string name="timer_detail_title_vps">%1$s (VPS)</string> + <string name="channel_item_menu_switch">Umschalten</string> + <string name="switching_success">umgeschalten zu %s</string> + <string name="switching_failed">Umschalten zu %1$s fehlgeschlagen: %2$s</string> + <string name="switch_to_channel">Umschalten zu</string> + <string name="sort">Sortieren</string> + <string name="sortby">Sortiere nach</string> + <string name="sortby_time">Zeit</string> + <string name="sortby_channel">Kanal</string> + <string name="sortby_alphabet">Alphabet</string> + <string name="sortby_channellist">Kanalliste</string> + <string name="main_menu_clear_search">Lösche Such-History</string> + <string name="vdr_host_not_defined">VDR-Server nicht definiert</string> + <string name="processing">Ausführen…</string> + <string-array name="recent_channels_order_entries"> + <item>Am meisten genutzt</item> + <item>Zuletzt genutzt</item> + </string-array> + <string-array name="epg_sort_by_time_alpha"> + <item>Zeit</item> + <item>Alphabet</item> + </string-array> + <string-array name="epg_sort_by_time_alpha_channel"> + <item>Time</item> + <item>Alphabet</item> + <item>Channel</item> + </string-array> + <string-array name="epg_sort_by_channels_alpha"> + <item>Kanäle</item> + <item>Alphabet</item> + </string-array> + <string-array name="recordings_group_by"> + <item>Nach Zeit</item> + <item>Alphabetisch</item> + </string-array> + <string name="gui_recent_channels_order_summary">Sortiere nach zuletzt genutzt oder am häufigsten genutzt</string> + <string name="gui_recent_channels_order_title">Sortierung der aktuellen Kanäle</string> + <string-array name="channels_group_by"> + <item>Gruppe</item> + <item>Anbieter</item> + <item>Quelle</item> + <item>Name</item> + </string-array> + <string-array name="navigation_array"> + <item>Kanäle</item> + <item>EPG nach Zeit</item> + <item>EPG nach Kanal</item> + <item>Aufzeichnungen</item> + <item>Timer</item> + <item>Remote</item> + </string-array> + <string name="filter">Filter</string> + <string name="audio_tracks_template">Audio Spuren: %1$s</string> + <string name="audio_track_dolby">D</string> + <string name="vdr_timezone_summary">Die Zeitzone des Servers. Das ist wichtig, falls sie verreisen und Timer von einer anderen Zeitzone aus bearbeiten.</string> + <string name="vdr_timezone_title">Zeitzone des Servers wählen</string> + <string name="zone_list_menu_sort_alphabetically">Sortiere alphabetisch</string> + <string name="zone_list_menu_sort_by_timezone">Sortiere nach Zeitzone</string> + <string name="probing">Prüfe %1$s …</string> + <string name="no_results">Keine Ergebnisse…</string> + <string name="recording_started">Aufzeichnung gestartet</string> + <string name="set_time">Zeit setzen</string> + <!-- … --> + <!-- SSL related messages --> + <string name="certificate_problem_message_title">Zertifikatswarnung</string> + <string name="certificate_problem_message_text"> +Das Serverzertifikat wurde nicht akzeptiert:\n\n +Hostname:\n + %1$s\n +Gültig von:\n + %2$s\n +Gültig bis:\n + %3$s\n\n +Wie soll verfahren werden?</string> + <string name="certificate_accept_once">Einmalig akzeptieren</string> + <string name="certificate_accepted_forever">Immer akzeptieren</string> + <string name="certificate_not_accepted">Abbruch</string> + <!-- EPG Content --> + <string name="Content_Movie__Drama">Film/Drama</string> + <string name="Content_Detective__Thriller">Detektiv/Thriller</string> + <string name="Content_Adventure__Western__War">Abenteuer/Western/Krieg</string> + <string name="Content_Science_Fiction__Fantasy__Horror">Science-Fiction/Fantasy/Horror</string> + <string name="Content_Comedy">Komödie</string> + <string name="Content_Soap__Melodrama__Folkloric">Seife/Melodram/Folklore</string> + <string name="Content_Romance">Romanze</string> + <string name="Content_Serious__Classical__Religious__Historical_Movie__Drama">Ernst/Klassik/Religion/Historischer Film/Drama</string> + <string name="Content_Adult_Movie__Drama">Erwachsenen-Film/Drama</string> + <string name="Content_News__Current_Affairs">Aktuelle Angelegenheiten</string> + <string name="Content_News__Weather_Report">Wetterbericht</string> + <string name="Content_News_Magazine">Nachrichtenmagazin</string> + <string name="Content_Documentary">Dokumentation</string> + <string name="Content_Discussion__Inverview__Debate">Diskussion/Interview/Debatte</string> + <string name="Content_Show__Game_Show">Show/Spielshow</string> + <string name="Content_Game_Show__Quiz__Contest">Spielshow/Quiz/Wettbewerb</string> + <string name="Content_Variety_Show">Variete-Show</string> + <string name="Content_Talk_Show">Talkshow</string> + <string name="Content_Sports">Sport</string> + <string name="Content_Special_Event">Besonderes Ereignis</string> + <string name="Content_Sport_Magazine">Sportmagazin</string> + <string name="Content_Football__Soccer">Football/Fußball</string> + <string name="Content_Tennis__Squash">Tennis/Squash</string> + <string name="Content_Team_Sports">Mannschaftssport</string> + <string name="Content_Athletics">Athletik</string> + <string name="Content_Motor_Sport">Motorsport</string> + <string name="Content_Water_Sport">Wassersport</string> + <string name="Content_Winter_Sports">Wintersport</string> + <string name="Content_Equestrian">Kampfsport</string> + <string name="Content_Martial_Sports">Kampfsport</string> + <string name="Content_Childrens__Youth_Programme">Kinder/Jugendprogramm</string> + <string name="Content_Preschool_Childrens_Programme">Programm für Vorschulkinder</string> + <string name="Content_Entertainment_Programme_for_6_to_14">Unterhaltungsprogramm für 6 bis 14</string> + <string name="Content_Entertainment_Programme_for_10_to_16">Unterhaltungsprogramm für 10 bis 16</string> + <string name="Content_Informational__Educational__School_Programme">Informations/Lehr/Schul-Programm</string> + <string name="Content_Cartoons__Puppets">Zeichentrick/Puppen</string> + <string name="Content_Music__Ballet__Dance">Musik/Ballett/Tanz</string> + <string name="Content_Rock__Pop">Rock/Pop</string> + <string name="Content_Serious__Classical_Music">Ernste/Klassische Musik</string> + <string name="Content_Folk__Tradional_Music">Volks/Traditionelle Musik</string> + <string name="Content_Jazz">Jazz</string> + <string name="Content_Musical__Opera">Musical/Oper</string> + <string name="Content_Ballet">Ballett</string> + <string name="Content_Arts__Culture">Kunst/Kultur</string> + <string name="Content_Performing_Arts">Bildende Künste</string> + <string name="Content_Fine_Arts">Bildende Künste</string> + <string name="Content_Religion">Religion</string> + <string name="Content_Popular_Culture__Traditional_Arts">Pop-Kultur/Traditionelle Künste</string> + <string name="Content_Literature">Literatur</string> + <string name="Content_Film__Cinema">Film/Kino</string> + <string name="Content_Experimental_Film__Video">Experimentalfilm/Video</string> + <string name="Content_Broadcasting__Press">Rundfunk/Presse</string> + <string name="Content_New_Media">Neue Medien</string> + <string name="Content_Arts__Culture_Magazine">Kunst/Kulturmagazin</string> + <string name="Content_Fashion">Mode</string> + <string name="Content_Social__Political__Economics">Gesellschaft/Politik/Wirtschaft</string> + <string name="Content_Magazine__Report__Documentary">Magazin/Bericht/Dokumentation</string> + <string name="Content_Economics__Social_Advisory">Wirtschafts/Gesellschaftsberatung</string> + <string name="Content_Remarkable_People">Bemerkenswerte Leute</string> + <string name="Content_Education__Science__Factual">Ausbildung/Wissenschaft/Sachlich</string> + <string name="Content_Nature__Animals__Environment">Natur/Tiere/Umwelt</string> + <string name="Content_Technology__Natural_Sciences">Technik/Naturwissenschaften</string> + <string name="Content_Medicine__Physiology__Psychology">Medizin/Physiologie/Psychologie</string> + <string name="Content_Foreign_Countries__Expeditions">Ausland/Expeditionen</string> + <string name="Content_Social__Spiritual_Sciences">Sozial/Geisteswissenschaften</string> + <string name="Content_Further_Education">Weiterbildung</string> + <string name="Content_Languages">Sprachen</string> + <string name="Content_Leisure__Hobbies">Freizeit/Hobbies</string> + <string name="Content_Tourism__Travel">Tourismus/Reisen</string> + <string name="Content_Handicraft">Handwerk</string> + <string name="Content_Motoring">Autofahren</string> + <string name="Content_Fitness_and_Health">Fitness & Gesundheit</string> + <string name="Content_Cooking">Kochen</string> + <string name="Content_Advertisement__Shopping">Werbung/Einkaufen</string> + <string name="Content_Gardening">Gartenbau</string> + <string name="Content_Original_Language">Originalsprache</string> + <string name="Content_Black_and_White">Schwarz-weiß</string> + <string name="Content_Unpublished">Unveröffentlicht</string> + <string name="Content_Live_Broadcast">Live Broadcast</string> + <!-- EPG Content END --> + <string name="type_to_filter">Tippen um zu filtern</string> + <string name="drive_info">Frei %1$s GB von %2$s GB (%3$s%%)</string> + <string name="drive_img">Drive</string> + <string name="sad_img">Traurig</string> + <string name="search">Search</string> + <string name="clear_term_after_search_title">Clear Term after Search</string> + <string name="clear_term_after_search_summary_off">Search term remains after peforming search</string> + <string name="clear_term_after_search_summary_on">Term gets cleared after performing search</string> + <string name="drawer_open">Open navigation drawer</string> + <string name="drawer_close">Close navigation drawer</string> + <string name="action_websearch">Web-Suche</string> + <string name="settings_smarttvweb_port_summary">VDR smarttvweb plugin has default port 8000</string> + <string name="settings_smarttvweb_port">Smarttvweb port</string> + <string name="recstream_smarttvweb_method_title">Smarttvweb Stream Type</string> + <string name="recstream_smarttvweb_method_summary">Supported methods: \'Progressive\', \'MPEG-DASH \/ OIPF HAS\', \'Apple HLS\'</string> + <string name="remote">Remote Control</string> + <string name="remote_enable_summary">Shows the remote control view if enabled</string> + <string name="remote_enable_title">Enable VDR remote control</string> + <string name="svdrp_port_title">SVDRP Port</string> + <string name="svdrp_port_summary">Default is 6419</string> + <string name="label">Label</string> + <string name="hitkcommand">HITK Command</string> + <string name="menu_reset">Reset</string> + <string name="menu_exprt">Export</string> + <string name="menu_imprt">Import</string> + <string name="menu_remapback">\'Back\' is \'Back\' HITK</string> + <string name="remapback_hint">Longpress on Back Button to leave the remote.</string> + <string name="not_yet_implemented">Not Yet Implemented</string> + <string name="timer_error">Can not create timer: %1$s</string> +</resources> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-fr/backup.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-fr/backup.xml new file mode 100644 index 0000000..6878060 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-fr/backup.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--Generated by crowdin.com--> +<resources> + <string name="generic_progress_title" translation_description="The title on a progress dialog asking the user to wait."> Veuillez attendre...</string> + <string name="generic_confirm_title" translation_description="The title on a confirmation dialog asking the user if he is sure?"> Êtes-vous sûr ?</string> + <string name="sd_card_canceled" translation_description="When importing/saving to the SD card, the message indicating that the operation was canceled."> Opération abandonnée.</string> + <string name="sd_card_error_no_storage" translation_description="When importing/saving to the SD card, the error message indicating that no SD card is found."> Pas de card SD trouvée.</string> + <string name="sd_card_import_error" translation_description="When importing from the SD card, the error message indicating not able to import."> Impossible d\'importer depuis la carte SD.</string> + <string name="sd_card_import_error_no_file" translation_description="When importing from the SD card, the error message indicating that no file is found on a SD card directory. %1$s: the SD card directory. E.g., '/mnt/sdcard/mybillingbuddy/'."> Pas de fichier trouvé dans %1$s.</string> + <string name="sd_card_import_progress_message" translation_description="When importing from the SD card, the progress message."> Import depuis la carte SD...</string> + <string name="sd_card_import_success" translation_description="When importing from the SD card, the success message."> Importation depuis la carte SD terminée.</string> + <string name="sd_card_save_error" translation_description="When saving to the SD card, the error message indicating not able to save."> Impossible de sauvegarder sur la carte SD.</string> + <string name="sd_card_save_error_create_dir" translation_description="When saving to the SD card, the error message indicating not able to create a directory on the SD card."> Impossible de créer un dossier sur la carte SD.</string> + <string name="sd_card_save_progress_message" translation_description="When saving to the SD card, the progress message."> Sauvegarde sur la carte SD...</string> + <string name="sd_card_save_success" translation_description="When saving to the SD card, the success message"> Fin de sauvegarde sur la carte SD.</string> + <string name="settings_backup_summary">Sauvegarde/Restore de vos données et des paramètres</string> + <string name="settings_backup_now" translation_description="In the 'Backup' settings, under the 'SD card' section, the option to backup to the SD card now. Character limit: ~26 (1 line)"> Sauvegarder maintenant</string> + <string name="settings_backup_now_summary">Créer un cliché des vos données et des paramètres</string> + <string name="settings_backup_now_progress_message" translation_description="In the 'Backup' settings, after pressing the 'Backup now' option, the progress message telling the user that it is writing all data and settings to the SD card."> Écriture de toutes les données et des paramètres...</string> + <string name="settings_backup_restore" translation_description="In the 'Backup' settings, under the 'SD card' section, the option to restore everything from the SD card. Character limit: ~26 (1 line)"> Restaurer maintenant</string> + <string name="settings_backup_restore_summary">Restaurer un cliché des paramètres et des données</string> + <string name="settings_backup" translation_description="In the 'Settings' page, the option to change the data backup related settings. Character limit: ~26 (1 line)"> Sauvegarder</string> + <string name="settings_backup_restore_confirm_message" translation_description="In the 'Backup' settings, after pressing the 'Restore now' option, the message in the alert dialog asking the user to confirm that he wants to restore from a backup and it will overwrite all the current data and settings."> Restaurer une sauvegarde depuis la carte DS écrasera toutes vos données et vos paramètres.</string> + <string name="settings_backup_restore_no_backup" translation_description="In the 'Backup' settings, after pressing the 'Restore now' option, the message in the alert dialog informing the user that there is no backup to restore from."> Pas de sauvegarde trouvée.</string> + <string name="settings_backup_restore_progress_message" translation_description="In the 'Backup' settings, after pressing the 'Restore now' option, the progress message informing that My Billinbg Buddy is reading all data and settings from the backup on the SD card."> Lecture des données et des paramètres...</string> + <string name="settings_backup_restore_select_title" translation_description="In the 'Backup' settings, after pressing the 'Restore now' option, the title in the picker dialog asking the user to select a backup."> Sélectionner une sauvegarde à restaurer</string> + <string name="settings_backup_key">Paramètres Sauvegardes</string> + <string name="settings_backup_now_key">Paramètres Sauvegarde Immédiate</string> + <string name="settings_backup_restore_key">Paramètres Sauvegarde Restaure</string> + <string name="choose">Choisir un fichier de sauvegarde</string> +</resources> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-fr/strings.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-fr/strings.xml new file mode 100644 index 0000000..f7087cb --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-fr/strings.xml @@ -0,0 +1,507 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--Generated by crowdin.com--> +<resources xmlns:tools="http://schemas.android.com/tools"> + <string name="action_menu_channels">Chaînes</string> + <string name="action_menu_timers">Programmations</string> + <string name="action_menu_recordings">Enregistrements</string> + <string name="action_menu_epg">Liste EPG</string> + <string name="action_menu_search">Recherche EPG</string> + <string name="action_menu_wakeup">Réveil</string> + <string name="action_menu_remote">Remote</string> + <string name="app_name">VDR-Manager</string> + <string name="channel_item_menu_epg">Afficher EPG</string> + <string name="channel_item_menu_stream">Direct en streaming</string> + <string name="channel_item_menu_hide">Cacher</string> + <string name="channel_item_menu_hide_permanent">Cacher en permanence</string> + <string name="channel_group_menu_hide">Cacher</string> + <string name="channel_group_menu_hide_permanent">Cacher en permanence</string> + <string name="menu_groupby">Grouper par</string> + <string name="groupby_group">Groupe</string> + <string name="groupby_provider">Fournisseur</string> + <string name="groupby_name">Nom</string> + <string name="groupby_source">Source</string> + <string name="groupby_channel">Par Chaîne</string> + <string name="groupby_date">Par Date</string> + <string name="groupby_name_all_channels_group">Toutes les chaînes</string> + <string name="groupby_window_title_templte">Grouper par %1$s</string> + <string name="common_delete">Supprimer</string> + <string name="prefs_current_value">Courant :</string> + <string name="prefs_current_value_template">\nCourant : %1$s</string> + <string name="prefs_current_value_not_set"><non configurét></string> + <string name="no_connection">Pas de connexion</string> + <string name="aborted">Connexion interrompue.</string> + <string name="no_connection_retry">Réessayer</string> + <string name="refresh">Rafraîchir</string> + <string name="done">Fini</string> + <string name="share">Partager</string> + <string name="addtocal">Ajouter au calendrier</string> + <string name="search_reapt">Rediffusions</string> + <string name="share_chooser">Partager une entrée EPG</string> + <string name="about_text"> A propos de \"VDR-Manager\" Logiciel pour Android\n + Version %1$s\n + Si vous posséder un VDR à la maison accessible + par internet et un téléphone sous Android alors, vous trouverez surement ce programme utile. + Pour plus de détails visiter http://projects.vdr-developer.org/projects/vdr-manager/wiki. + Auteur :\n + bju<herrlado@gmail.com> + herrlado<herrlado@gmail.com></string> + <string name="about_title">À propos de</string> + <string name="no_internet_connection">Pas de connexion aux données</string> + <string name="update_will_start_in">La mise à jour commencera dans une seconde</string> + <string name="epg_menu_search">Chercher dans l\'EPG</string> + <string name="epg_menu_times">Recherche horaires</string> + <string name="epg_item_menu_timer_add">Créer une programmation</string> + <string name="epg_item_menu_timer_record">Enregistrer</string> + <string name="epg_item_menu_timer_delete">Supprimer une programmation</string> + <string name="epg_item_menu_timer_modify">Modifier une programmation</string> + <string name="epg_item_menu_timer_enable">Activer une programmation</string> + <string name="epg_item_menu_timer_disable">Désactiver une programmation</string> + <string name="epg_no_items">Rien n\'a été trouvé…</string> + <string name="epg_client_errors">Une erreur s\'est produite, vérifier les logs…</string> + <string name="navigae_at_the_end">Fin</string> + <string name="navigae_at_the_start">Début</string> + <string name="epg_search_times_add">Ajouter du temps</string> + <string name="epg_search_times_window">Temps personnalisé</string> + <!-- What's on display --> + <string name="epg_list_time_label">Qu\'y a-t-il maintenant</string> + <string name="epg_list_time_now">Maintenant</string> + <string name="epg_list_time_next">Après</string> + <string name="epg_list_time_adhoc">Ad Hoc</string> + <string name="epg_list_channel_spinner">Chaîne</string> + <string name="epg_list_search_label">Résultats de la recherche</string> + <!-- create timer --> + <string name="epg_event_share_text">Partager</string> + <string name="epg_event_imdb_text">Recherche sur IMDb</string> + <string name="epg_event_omdb_text">Recherche sur OMDB</string> + <string name="epg_event_tmdb_text">Recherche sur TMDb</string> + <string name="epg_eent_livetv_text">Diffusion en stream</string> + <string name="epg_event_create_timer_text">Ajouter une programmation</string> + <string name="epg_event_modify_timer_text">Modifier une programmation</string> + <!-- search --> + <string name="epg_search_button">Rechercher</string> + <string name="epg_duration_template">%1$s min</string> + <string name="epg_duration_template_live">%1$s/%2$s min</string> + <string name="epg_of_a_channel">%1$s, %2$s/%3$s</string> + <string name="epg_by_channel">EPG par chaîne</string> + <string name="epg_by_search">Recherche EPG</string> + <string name="epg_by_search_param">Recherche EPG : \'%1$s\'</string> + <string name="epg_by_time">EPG par heure</string> + <string name="epg_by_time_args">EPG par heure : \'%1$s\'</string> + <string name="search_epg_hint">Recherche EPG</string> + <string name="epg_search_settings_description">Rechercher dans l\'EPG de VDR</string> + <string name="epg_window_title_count">%1$s, %2$s éléments</string> + <string name="channels_window_title_count">%1$s,%2$s%3$s</string> + <string name="new_timer">Nouvelle programmation</string> + <string name="vdr_error_text">La communication avec VDR a généré une erreur : %1$s</string> + <string name="livetv">TV en direct</string> + <string name="settings_livetv_summary">Streamdev-server sur VDR et un lecteur externe comme VPlayer sont nécessaire</string> + <string name="settings_livetv_streamformat">Format du streaming</string> + <string name="settings_livetv_port">Port du streaming</string> + <string name="settings_livetv_port_summary">Par défaut 3000. L\'accès doit être autoriser dans +streamdevhosts.conf.</string> + <string-array name="livetv_streamformat"> + <item>TS</item> + <item>PES</item> + <item>ES</item> + <item>PS</item> + </string-array> + <string name="key_remux_enable">remux_activé</string> + <string name="key_remux_command">remux_commande</string> + <string name="key_remux_parameter">remux_paramètre</string> + <string name="stream_via_as">Stream</string> + <string name="stream_choose_audio">Choisir la Piste Audio</string> + <string name="stream_via">via %s</string> + <string name="stream_as">comme %s</string> + <string name="remux_title">Remux</string> + <string name="remux_enable_title">Autoriser Remux</string> + <string name="remux_enable_summary">Autoriser le streaming via remux (ex: externremux.sh)</string> + <string name="remux_command_title">Commande</string> + <string name="remux_command_summary">Typiquement EXT ou Externe ex: http://vdr:3000/EXT/1</string> + <string name="remux_parameter_title">Paramètre</string> + <string name="remux_parameter_summary">Contrôle de la qualité du flux. Ex : http://vdr:3000/EXT;DSL1000/1</string> + <string name="main_menu_preferences">Préférences</string> + <string name="main_menu_info">Info</string> + <string name="main_menu_exit">Sortir</string> + <string name="main_menu_goto">Changement de périphérique</string> + <string name="main_menu_goto_title">Basculer vers…</string> + <string name="main_menu_goto_no_vdr">Impossible de charger le périphérique sélectionné :(</string> + <string name="main_menu_switched_to">Basculer vers %1$s</string> + <string name="vdr_devices_summary">Définir un ou plusieurs équipements VDR.</string> + <string name="vdr_devices">Équipement VDR</string> + <!-- VDR plugin preferences --> + <string name="vdr_preferences">Paramètres réseau</string> + <string name="vdr_host_title">Hôte VDR</string> + <string name="vdr_host_summary">Hôte VDR en fonctionnement</string> + <string name="vdr_port_title">Port pour plugin VDR </string> + <string name="vdr_port_summary">Port pour les connexions au plugin VDR</string> + <string name="vdr_password_title">Mot de passe pour le plugin VDR</string> + <string name="vdr_password_summary">Mot de passe pour le plugin VDR</string> + <string name="vdr_ssl_title">Connexion sécurisée</string> + <string name="vdr_ssl_summary">Utiliser SSL pour les connexions</string> + <!-- channel filter preferences --> + <string name="channel_filter_preferences">Paramètres des chaînes</string> + <string name="channel_filter_filter_title">Limitation pour les chaînes</string> + <string name="channel_filter_filter_summary">Utiliser uniquement les chaines données</string> + <string name="channel_filter_last_title">Filtrer chaîne</string> + <string name="channel_filter_last_summary">Séparer par une virgule les numéros de chaîne ou les intervalles (séparateur \'-\'). Ex: 1,2,4-10</string> + <!-- wakeup --> + <string name="wakeup_preferences">Réveiller VDR à distance</string> + <string name="wakeup_enabled_title">Pouvoir réveiller à distance VDR</string> + <string name="wakeup_enabled_summary">Permettre de réveiller VDR à distance</string> + <string name="wakeup_url_title">URL pour le réveil à distance</string> + <string name="wakeup_url_summary">Requête pour l\'URL du réveil à distance</string> + <string name="wakeup_user_title">Nom de l’utilisateur pour le réveil</string> + <string name="wakeup_user_summary">Utilisateur pour le réveil à distance</string> + <string name="wakeup_password_title">Mot de passe pour le réveil à distance</string> + <string name="wakeup_password_summary">Mot de passe le réveil à distance</string> + <string name="wakeup_method_title">Méthode du réveil</string> + <string name="wakeup_method_summary">Choisir une méthode pour réveiller le VDR</string> + <string-array name="wakeup_methods"> + <item>Appeler une URL</item> + <item>WOL</item> + </string-array> + <string name="wakeup_wol_custom_boradcast_title">Adresse IP de destination</string> + <string name="wakeup_wol_custom_boradcast_summary">À moins que vous n\'ayez une table ARP statique vous devriez utiliser une adresse de broadcast.</string> + <string name="wakeup_wol_mac_title">Adresse MAC</string> + <string name="wakeup_wol_mac_summary">Adresse MAC du hôte VDR. Utiliser \':\' ou \'-\' ou espace comme séparateur.</string> + <!-- timer --> + <string name="timer_preferences">Programmation par défaut</string> + <string name="timer_pre_start_buffer_title">Marge de début</string> + <string name="timer_pre_start_buffer_summary">Minutes enregistrées avant le commencement de l\'émission</string> + <string name="timer_post_end_buffer_title">Marge de fin</string> + <string name="timer_post_end_buffer_summary">Minutes enregistrées en plus à la fin de l\'émission</string> + <string name="timer_default_priority_title">Priorité par défaut</string> + <string name="timer_default_priority_summary">Priorité par défaut</string> + <string name="timer_default_primary_limit_title">Limite principale par défaut</string> + <string name="timer_default_primary_limit_summary">Limite principale par défaut</string> + <string name="timer_default_lifetime_title">Durée de vie par défaut</string> + <string name="timer_default_lifetime_summary">Durée de vie par défaut</string> + <string name="timer_already_exists">Timer already defined.</string> + <string name="timer_created">Timer created</string> + <!-- GUI --> + <string name="gui_preferences">Paramètres GUI</string> + <string name="gui_enable_24h_format_title">Utiliser le format 24h</string> + <string name="gui_enable_24h_format_summary_on">13:00</string> + <string name="gui_enable_24h_format_summary_off">1:00 PM</string> + <string name="gui_channels_show_channel_numbers_title">Afficher le numéro des chaînes</string> + <string name="gui_channels_show_channel_numbers_summary">Afficher le numéro des chaînes dans la liste des chaînes.</string> + <string name="gui_quit_on_back_title">Quitter avec le bouton retour</string> + <string name="gui_quit_on_back_summary_on">Le bouton retour quitte VDR-Manager</string> + <string name="gui_quit_on_back_summary_off">Le bouton retour ne quitte pas VDR-Manager</string> + <string name="qui_show_imdb_button_title">Afficher le Bouton IMDb</string> + <string name="qui_show_imdb_button_summary_on">Le Bouton IMDb est affiché</string> + <string name="qui_show_imdb_button_summary_off">Le Bouton IMDb n\'est pas affiché</string> + <string name="qui_imdb_url_title">Site IMDb</string> + <string name="qui_imdb_url_summary">Quel site IMDb pour chercher.</string> + <string name="qui_show_omdb_button_title">Afficher le Bouton OMDB</string> + <string name="qui_show_omdb_button_summary_on">Le Bouton OMDB est affiché</string> + <string name="qui_show_omdb_button_summary_off">Le Bouton OMDB n\'est pas affiché</string> + <string name="qui_show_tmdb_button_title">Afficher le Bouton TMDb</string> + <string name="qui_show_tmdb_button_summary_on">Le Bouton TMDb est affiché</string> + <string name="qui_show_tmdb_button_summary_off">Le Bouton TMDb n\'est pas affiché</string> + <string name="gui_custom_locale_title">Personnaliser la langue</string> + <string name="gui_custom_locale_sum">Définir une langue personnalisée.</string> + <string-array name="imdb_urls"> + <item>International</item> + <item>imdb.com</item> + <item>uk.imdb.com</item> + <item>imdb.de</item> + <item>imdb.es</item> + <item>imdb.fr</item> + <item>imdb.it</item> + <item>imdb.pt</item> + </string-array> + <string-array name="lang"> + <!-- <item>Default language</item> --> + <item>Anglais</item> + <item>Allemand</item> + <item>Français</item> + <item>Italien</item> + <item>Polonais</item> + <item>Ukrainien</item> + </string-array> + <string-array name="remux_entries"> + <item>EXT</item> + <item>EXTERNE (déconseillé)</item> + </string-array> + <string name="vdr_advanced_preferences">Avancé</string> + <string name="vdr_advanced_preferences_summary">Paramètres avancés</string> + <string name="vdr_conntimeout_title">Délai de connexion expiré</string> + <string name="vdr_conntimeout_sum">Combien de temps à attendre (en secondes) avant d\'établir la connexion ?</string> + <string name="vdr_readtimeout_title">Délai de Lecture</string> + <string name="vdr_readtimeout_sum">Combien de temps à attendre (en secondes) avant l\'action de lecture en ligne ?</string> + <string name="vdr_timeout_title">Total pour l\'expiration</string> + <string name="vdr_timeout_sum">Combien de temps à attendre (en secondes) avant d\'abandonner toutes les opérations I/O ?</string> + <string name="streaming_password_title">Mot de passe pour Streamdev</string> + <string name="streaming_password_sum">Ajouter votre mot passe pour streamdev. (ex: -a \'utilisateur:mot_de_passe\')</string> + <string name="streaming_username_title">Utilisateur Streamdev</string> + <string name="streaming_username_sum">Ajouter votre utilisateur pour streamdev. (ex: -a \'utilisateur:mot_de_passe\')</string> + <string name="vdr_encoding_title">Encodage des caractères</string> + <string name="vdr_encoding_summary">Encodage des caractères de votre VDR. Par défaut utf-8.</string> + <string name="new_vdr">Nouveau VDR</string> + <string name="no_vdr">Aucun équipement VDR</string> + <string name="vdr_devices_category">Équipements VDR</string> + <string name="vdr_prefs_category">Appareil</string> + <string name="vdr_name_title">Nom</string> + <string name="vdr_name_summary">Un nom pour cet équipement</string> + <string name="vdr_device_delete_qeustion">Supprimer cet équipement ?</string> + <string name="recstream">Diffusion en streaming des enregistrements</string> + <string name="recstream_enable_title">Streaming des enregistrements</string> + <string name="recstream_enable_summary">Autoriser le streaming des enregistrements</string> + <string-array name="recstream_entries"> + <item>Plugin live</item> + <item>Plugin streamdev</item> + <item>plugin smarttvweb</item> + </string-array> + <string-array name="recstream_smarttvweb_entries"> + <item>Progressif</item> + <item>MPEG-DASH</item> + <item>Apple HLS</item> + </string-array> + <string name="recstream_method_title">Méthode pour le streaming</string> + <string name="recstream_method_summary">Actuellement le Streaming par VDR live et ou le plugin streamdev est supporté</string> + <string name="settings_live_port">Port pour le plugin VDR live</string> + <string name="settings_live_port_summary">Le port par défaut pour le plugin VDR live est 8008.</string> + <!-- progress --> + <string name="progress_connect">Connexion…</string> + <string name="progress_connect_error">Échec de connexion !</string> + <string name="progress_connect_timeout">Connexion expirée !</string> + <string name="progress_login">Identifiant.</string> + <string name="progress_login_error">Échec de connexion.</string> + <string name="progress_whatson_loading">Chargement des données EPG…</string> + <string name="progress_timers_loading">Chargement des programmations…</string> + <string name="progress_recordings_loading">Chargement des enregistrements…</string> + <string name="progress_switching">Changement…</string> + <string name="progress_channels_loading">Chargement des chaînes…</string> + <string name="progress_loading">Chargement…</string> + <string name="progress_disconnect">Déconnecter…</string> + <string name="progress_wakeup_sending">Initialisation d\'une requête pour le réveil…</string> + <string name="progress_wakeup_sent">Requête du réveil envoyée</string> + <string name="progress_wakeup_error">Erreur à l\'envoi de la requête du réveil : %1$s</string> + <string name="progress_timer_save">Sauvegarde de la programmation…</string> + <string name="progress_timer_delete">Supprimer la programmation…</string> + <string name="progress_recording_delete">Supprimer l\'enregistrement…</string> + <string name="progress_timer_enable">Activer la programmation…</string> + <string name="progress_timer_modify">Mise à jour de la programmation…</string> + <string name="progress_timer_disable">Désactiver la programmation…</string> + <string name="progress_connect_finished_abnormal">La connexion s\'est terminée anormalement</string> + <string name="progress_connect_finished_abnormal_arg">La connexion s\'est terminée anormalement : %1$s</string> + <string name="progress_cache_hit">Chargement depuis le cache.</string> + <string name="recording_item_menu_delete">Supprimer</string> + <string name="recording_item_menu_stream">Flux</string> + <string name="recent_channels">Chaînes récentes</string> + <string name="recent_channels_no_history">Pas d’historique…</string> + <string name="gui_max_recent_channels_title">Chaînes récentes Max</string> + <string name="gui_max_recent_channels_summary">Combien de chaines voulez-vous garder dans les chaînes récentes ?</string> + <string name="timer_detail_day_title">Jour</string> + <!-- + Repeat options that appear under an alarm on main Alarm Clock + screen to identify repetition schedule: special case for when + the alarm is set to repeat every day + --> + <string name="every_day">Tous les jours</string> + <!-- + Repeat options that appear under an alarm on main Alarm Clock + screen to identify repetition schedule: special case for when + the alarm is set to never repeat + --> + <string name="never">Jamais</string> + <!-- + Repeat options that appear under an alarm on main Alarm Clock + screen to identify repetition schedule: concatenate days with + this character, i.e. "Mon, Tue, Wed" + --> + <string name="day_concat">","</string> + <string name="timer_detail_repeat_title">Répéter</string> + <string name="timer_detail_use_vps">Utiliser VPS :</string> + <string name="timer_detail_priority">Priorité :</string> + <string name="timer_detail_lifetime">Durée de vie :</string> + <string name="timer_detail_lifetime_hint">Ex: 99</string> + <string name="timer_detail_priority_hint">Ex: 50</string> + <string name="timer_detail_title_vps">%1$s (VPS)</string> + <string name="channel_item_menu_switch">Basculer vers</string> + <string name="switching_success">Basculer vers %s</string> + <string name="switching_failed">Basculer vers %1$s raté : %2$s</string> + <string name="switch_to_channel">Basculer vers</string> + <string name="sort">Trier</string> + <string name="sortby">Trier par</string> + <string name="sortby_time">Heure</string> + <string name="sortby_channel">Chaîne</string> + <string name="sortby_alphabet">Alphabet</string> + <string name="sortby_channellist">Liste des chaînes</string> + <string name="main_menu_clear_search">Effacer l\'historique de recherche</string> + <string name="vdr_host_not_defined">Le hôte VDR n\'est pas défini</string> + <string name="processing">Traitement…</string> + <string-array name="recent_channels_order_entries"> + <item>Couramment utilisé</item> + <item>Dernier utilisé</item> + </string-array> + <string-array name="epg_sort_by_time_alpha"> + <item>Heure</item> + <item>Alphabet</item> + </string-array> + <string-array name="epg_sort_by_time_alpha_channel"> + <item>Heure</item> + <item>Alphabet</item> + <item>Chaîne</item> + </string-array> + <string-array name="epg_sort_by_channels_alpha"> + <item>Chaînes</item> + <item>Alphabet</item> + </string-array> + <string-array name="recordings_group_by"> + <item>Par heure</item> + <item>Par ordre alphabétique</item> + </string-array> + <string name="gui_recent_channels_order_summary">Classement par le plus utilisé ou le plus souvent utilisé</string> + <string name="gui_recent_channels_order_title">Classement des chaînes récentes</string> + <string-array name="channels_group_by"> + <item>Groupe</item> + <item>Fournisseur</item> + <item>Source</item> + <item>Nom</item> + </string-array> + <string-array name="navigation_array"> + <item>Chaînes</item> + <item>EPG par heure</item> + <item>EPG par Chaîne</item> + <item>Enregistrements</item> + <item>Enregistrements</item> + <item>Remote</item> + </string-array> + <string name="filter">Filtre</string> + <string name="audio_tracks_template">Pistes audio : %1$s</string> + <string name="audio_track_dolby">D</string> + <string name="vdr_timezone_summary">Fuseau horaire utilisé pour le serveur. Ceci est important sur vous voyagez que vous modifiez l\'enregistrement depuis un autre fuseau horaire.</string> + <string name="vdr_timezone_title">Sélectionner le fuseau horaire du serveur</string> + <string name="zone_list_menu_sort_alphabetically">Trier par ordre alphabétique</string> + <string name="zone_list_menu_sort_by_timezone">Trier par fuseau horaire</string> + <string name="probing">Examiner %1$s …</string> + <string name="no_results">Pas de résultat…</string> + <string name="recording_started">L\'enregistrement a commencé</string> + <string name="set_time">Définir l\'heure</string> + <!-- … --> + <!-- SSL related messages --> + <string name="certificate_problem_message_title">Avertissement du certificat</string> + <string name="certificate_problem_message_text">Le certificat n\'a pas été accepté:\n\n +Nom d\'hôte:\n + %1$s\n +Valide depuis le:\n + %2$s\n +Valide jusqu\'au:\n + %3$s\n\n +Que voulez-vous faire?</string> + <string name="certificate_accept_once">Accepter une fois</string> + <string name="certificate_accepted_forever">Toujours accepter</string> + <string name="certificate_not_accepted">Abandonner</string> + <!-- EPG Content --> + <string name="Content_Movie__Drama">Film/Dramatique</string> + <string name="Content_Detective__Thriller">Détectives/Polar</string> + <string name="Content_Adventure__Western__War">Aventure/Western/Guerre</string> + <string name="Content_Science_Fiction__Fantasy__Horror">Science Fiction/Fantaisie/Horreur</string> + <string name="Content_Comedy">Comédie</string> + <string name="Content_Soap__Melodrama__Folkloric">Feuilleton/Mélodrame/Folklorique</string> + <string name="Content_Romance">Romance</string> + <string name="Content_Serious__Classical__Religious__Historical_Movie__Drama">Sérieux/Classique/Religieux/Film Historique/Drame</string> + <string name="Content_Adult_Movie__Drama">Film pour adultes/Drame</string> + <string name="Content_News__Current_Affairs">Informations/Actualités</string> + <string name="Content_News__Weather_Report">Informations/Météo</string> + <string name="Content_News_Magazine">Magazine d\'information</string> + <string name="Content_Documentary">Documentaire</string> + <string name="Content_Discussion__Inverview__Debate">Discussion/Interview/Débat</string> + <string name="Content_Show__Game_Show">Spectacle/Jeu Télévisé</string> + <string name="Content_Game_Show__Quiz__Contest">Jeu Télévisé/Quiz/Concours</string> + <string name="Content_Variety_Show">Spectacle de variétés</string> + <string name="Content_Talk_Show">Débat télévisé</string> + <string name="Content_Sports">Sports</string> + <string name="Content_Special_Event">Évènement spécial</string> + <string name="Content_Sport_Magazine">Magazine sportif</string> + <string name="Content_Football__Soccer">Football/Foot</string> + <string name="Content_Tennis__Squash">Tennis/Squash</string> + <string name="Content_Team_Sports">Sports d\'équipe</string> + <string name="Content_Athletics">Sports d\'équipe</string> + <string name="Content_Motor_Sport">Sports mécaniques</string> + <string name="Content_Water_Sport">Sports nautiques</string> + <string name="Content_Winter_Sports">Sports d\'hiver</string> + <string name="Content_Equestrian">Équitation</string> + <string name="Content_Martial_Sports">Sports de combat</string> + <string name="Content_Childrens__Youth_Programme">Enfant/Programme jeunesse</string> + <string name="Content_Preschool_Childrens_Programme">Programme pour les enfants d\'âge préscolaire</string> + <string name="Content_Entertainment_Programme_for_6_to_14">Programme de divertissement pour les 6-14 ans</string> + <string name="Content_Entertainment_Programme_for_10_to_16">Programme de divertissement pour les 10 - 16 ans</string> + <string name="Content_Informational__Educational__School_Programme">Informationnel/Éducatif/Programme Scolaire</string> + <string name="Content_Cartoons__Puppets">Dessins animés/Marionnettes</string> + <string name="Content_Music__Ballet__Dance">Musique/Ballet/Danse</string> + <string name="Content_Rock__Pop">Rock/Pop</string> + <string name="Content_Serious__Classical_Music">Sérieux/Musique Classique</string> + <string name="Content_Folk__Tradional_Music">Folk/Musique Traditionnelle</string> + <string name="Content_Jazz">Jazz</string> + <string name="Content_Musical__Opera">Comédie Musicale/Opéra</string> + <string name="Content_Ballet">Ballet</string> + <string name="Content_Arts__Culture">Arts/Culture</string> + <string name="Content_Performing_Arts">Performances artistiques</string> + <string name="Content_Fine_Arts">Beaux Arts</string> + <string name="Content_Religion">Religion</string> + <string name="Content_Popular_Culture__Traditional_Arts">Culture Populaire/Arts Traditionnels</string> + <string name="Content_Literature">Littérature</string> + <string name="Content_Film__Cinema">Film/Cinéma</string> + <string name="Content_Experimental_Film__Video">Film Expérimental/Vidéo</string> + <string name="Content_Broadcasting__Press">Télédiffusion/Presse</string> + <string name="Content_New_Media">Nouveau Média</string> + <string name="Content_Arts__Culture_Magazine">Arts/Magazine Culturel</string> + <string name="Content_Fashion">Mode</string> + <string name="Content_Social__Political__Economics">Société/Politique/Économie</string> + <string name="Content_Magazine__Report__Documentary">Magazine/Reportage/Documentaire</string> + <string name="Content_Economics__Social_Advisory">Économie/Reportage de Société</string> + <string name="Content_Remarkable_People">Personnalités</string> + <string name="Content_Education__Science__Factual">Éducation/Science/Factuel</string> + <string name="Content_Nature__Animals__Environment">Nature/Animaux/Environnement</string> + <string name="Content_Technology__Natural_Sciences">Technologie/Sciences Naturelles</string> + <string name="Content_Medicine__Physiology__Psychology">Médecine/Physiologie/Psychologie</string> + <string name="Content_Foreign_Countries__Expeditions">Pays Étrangers/Expéditions</string> + <string name="Content_Social__Spiritual_Sciences">Société/Sciences Spirituelles</string> + <string name="Content_Further_Education">Formation Continue</string> + <string name="Content_Languages">Langages</string> + <string name="Content_Leisure__Hobbies">Loisir/Passe temps</string> + <string name="Content_Tourism__Travel">Tourisme/Voyage</string> + <string name="Content_Handicraft">Artisanat</string> + <string name="Content_Motoring">Automobilisme</string> + <string name="Content_Fitness_and_Health">Forme & Santé</string> + <string name="Content_Cooking">Cuisine</string> + <string name="Content_Advertisement__Shopping">Publicité/Téléachat</string> + <string name="Content_Gardening">Jardinage</string> + <string name="Content_Original_Language">Version originale</string> + <string name="Content_Black_and_White">Noir & Blanc</string> + <string name="Content_Unpublished">Inédit</string> + <string name="Content_Live_Broadcast">Live Broadcast</string> + <!-- EPG Content END --> + <string name="type_to_filter">Type de filtre</string> + <string name="drive_info">Libre %1$s Go of %2$s Go (%3$s%%)</string> + <string name="drive_img">Disque</string> + <string name="sad_img">Triste</string> + <string name="search">Rechercher</string> + <string name="clear_term_after_search_title">Effacer les Termes après Recherche</string> + <string name="clear_term_after_search_summary_off">Garder les termes après la recherche</string> + <string name="clear_term_after_search_summary_on">Effacer les termes après la recherche</string> + <string name="drawer_open">Ouvrir panneau coulissant</string> + <string name="drawer_close">Fermer le panneau coulissant de navigation</string> + <string name="action_websearch">Recherche Web</string> + <string name="settings_smarttvweb_port_summary">Plugin VDR smarttvweb a le port 8000 par défaut</string> + <string name="settings_smarttvweb_port">Port Smarttvweb</string> + <string name="recstream_smarttvweb_method_title">Type de streaming pour Smarttvweb</string> + <string name="recstream_smarttvweb_method_summary">Méthode supportées : \'Progressive\', \'MPEG-DASH \/ OIPF HAS\', \'Apple HLS\'</string> + <string name="remote">Télécommande</string> + <string name="remote_enable_summary">Afficher la télécommande si activée</string> + <string name="remote_enable_title">Activer la télécommande de VDR</string> + <string name="svdrp_port_title">Port DVDRP</string> + <string name="svdrp_port_summary">Par défaut le 6419</string> + <string name="label">Label</string> + <string name="hitkcommand">HITK Command</string> + <string name="menu_reset">Reset</string> + <string name="menu_exprt">Export</string> + <string name="menu_imprt">Import</string> + <string name="menu_remapback">\'Back\' is \'Back\' HITK</string> + <string name="remapback_hint">Longpress on Back Button to leave the remote.</string> + <string name="not_yet_implemented">Not Yet Implemented</string> + <string name="timer_error">Can not create timer: %1$s</string> +</resources> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-fr/timers.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-fr/timers.xml new file mode 100644 index 0000000..f789f9a --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-fr/timers.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--Generated by crowdin.com--> +<resources> + <string name="timer_detail_title_title">Titre :</string> + <string name="timer_detail_channel_title">Chaîne :</string> + <string name="timer_detail_start_title">Début :</string> + <string name="timer_detail_end_title">Fin :</string> + <string name="timer_details_create_title">Créer une programmation</string> + <string name="timer_details_save_title">Sauvegarder les changements</string> + <string name="timer_details_delete_title">Supprimer la programmation</string> + <string name="timer_details_add_title">Créer une nouvelle programmation</string> + <string name="timer_details_modify_title">Modifier la programmation</string> +</resources> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-it/strings.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-it/strings.xml new file mode 100644 index 0000000..01575cb --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-it/strings.xml @@ -0,0 +1,507 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--Generated by crowdin.com--> +<resources xmlns:tools="http://schemas.android.com/tools"> + <string name="action_menu_channels">Canali</string> + <string name="action_menu_timers">Timer</string> + <string name="action_menu_recordings">Registrazioni</string> + <string name="action_menu_epg">Elenco EPG</string> + <string name="action_menu_search">Ricerca EPG</string> + <string name="action_menu_wakeup">Accensione</string> + <string name="action_menu_remote">Remote</string> + <string name="app_name">Gestore VDR</string> + <string name="channel_item_menu_epg">Mostra EPG</string> + <string name="channel_item_menu_stream">Flusso dal vivo</string> + <string name="channel_item_menu_hide">Nascondi</string> + <string name="channel_item_menu_hide_permanent">Nascondi sempre</string> + <string name="channel_group_menu_hide">Nascondi</string> + <string name="channel_group_menu_hide_permanent">Nascondi sempre</string> + <string name="menu_groupby">Ordina per</string> + <string name="groupby_group">Gruppo</string> + <string name="groupby_provider">Emittente</string> + <string name="groupby_name">Nome</string> + <string name="groupby_source">Sorgente</string> + <string name="groupby_channel">Per canale</string> + <string name="groupby_date">Per data</string> + <string name="groupby_name_all_channels_group">Tutti i canali</string> + <string name="groupby_window_title_templte">Ordina per %1$s</string> + <string name="common_delete">Elimina</string> + <string name="prefs_current_value">Attuale:</string> + <string name="prefs_current_value_template">\nAttuale: %1$s</string> + <string name="prefs_current_value_not_set"><non impostato></string> + <string name="no_connection">Nessuna connessione</string> + <string name="aborted">Connessione terminata.</string> + <string name="no_connection_retry">Riprova</string> + <string name="refresh">Aggiorna</string> + <string name="done">Completato</string> + <string name="share">Condividi</string> + <string name="addtocal">Aggiungi al calendario</string> + <string name="search_reapt">Riesegui</string> + <string name="share_chooser">Condividi valore EPG</string> + <string name="about_text">Info sul software \"VDR-Manager\" per Android\n +Questa è la versione %1$s\n +Se a casa possiedi una VDR raggiungibile +da Internet e disponi di un proprio dispositivo Android allora questa applicazione potrebbe esserti utile. +Per ulteriori dettagli visita http://projects.vdr-developer.org/projects/vdr-manager/wiki. +Autore:\n +bju<herrlado@gmail.com> +herrlado<herrlado@gmail.com></string> + <string name="about_title">Info</string> + <string name="no_internet_connection">Nessuna connessione dati</string> + <string name="update_will_start_in">L\'aggiornamento si avvierà tra qualche secondo</string> + <string name="epg_menu_search">Ricerca EPG</string> + <string name="epg_menu_times">Numero ricerche</string> + <string name="epg_item_menu_timer_add">Crea timer</string> + <string name="epg_item_menu_timer_record">Registra</string> + <string name="epg_item_menu_timer_delete">Elimina timer</string> + <string name="epg_item_menu_timer_modify">Modifica timer</string> + <string name="epg_item_menu_timer_enable">Abilita timer</string> + <string name="epg_item_menu_timer_disable">Disabilita timer</string> + <string name="epg_no_items">Nessun risultato trovato...</string> + <string name="epg_client_errors">Si è verificato un errore, verifica il registro...</string> + <string name="navigae_at_the_end">Fine</string> + <string name="navigae_at_the_start">Inizio</string> + <string name="epg_search_times_add">Aggiungi numero</string> + <string name="epg_search_times_window">Numero personalizzato</string> + <!-- What's on display --> + <string name="epg_list_time_label">In programmazione alle</string> + <string name="epg_list_time_now">In onda</string> + <string name="epg_list_time_next">Successivo</string> + <string name="epg_list_time_adhoc">Alle</string> + <string name="epg_list_channel_spinner">Canale</string> + <string name="epg_list_search_label">Ricerca risultati</string> + <!-- create timer --> + <string name="epg_event_share_text">Condividi</string> + <string name="epg_event_imdb_text">Ricerca IMDb</string> + <string name="epg_event_omdb_text">Ricerca OMDB</string> + <string name="epg_event_tmdb_text">Ricerca TMDb</string> + <string name="epg_eent_livetv_text">Trasmissione</string> + <string name="epg_event_create_timer_text">Aggiungi timer</string> + <string name="epg_event_modify_timer_text">Modifica timer</string> + <!-- search --> + <string name="epg_search_button">Cerca</string> + <string name="epg_duration_template">%1$s min</string> + <string name="epg_duration_template_live">%1$s/%2$s min</string> + <string name="epg_of_a_channel">%1$s, %2$s/%3$s</string> + <string name="epg_by_channel">EPG per canale</string> + <string name="epg_by_search">Ricerca EPG</string> + <string name="epg_by_search_param">Ricerca EPG: \'%1$s\'</string> + <string name="epg_by_time">EPG per ora</string> + <string name="epg_by_time_args">EPG per ora: \'%1$s\'</string> + <string name="search_epg_hint">Ricerca EPG</string> + <string name="epg_search_settings_description">Ricerca EPG in VDR</string> + <string name="epg_window_title_count">%1$s, %2$s</string> + <string name="channels_window_title_count">%1$s, %2$s/%3$s</string> + <string name="new_timer">Nuovo timer</string> + <string name="vdr_error_text">La comunicazione con VDR ha causato un errore: %1$s</string> + <string name="livetv">Trasmissione dal vivo</string> + <string name="settings_livetv_summary">Sono necessari \"streamdev-server\" nella VDR e un riproduttore esterno come VPlayer</string> + <string name="settings_livetv_streamformat">Formato trasmissione</string> + <string name="settings_livetv_port">Porta trasmissione</string> + <string name="settings_livetv_port_summary">Predefinita 3000. L\'accesso deve essere abilitato in \"streamdevhosts.conf\".</string> + <string-array name="livetv_streamformat"> + <item>TS</item> + <item>PES</item> + <item>ES</item> + <item>PS</item> + </string-array> + <string name="key_remux_enable">remux_enable</string> + <string name="key_remux_command">remux_command</string> + <string name="key_remux_parameter">remux_parameter</string> + <string name="stream_via_as">Trasmissione</string> + <string name="stream_choose_audio">Scegli traccia audio</string> + <string name="stream_via">tramite %s</string> + <string name="stream_as">come %s</string> + <string name="remux_title">Remux</string> + <string name="remux_enable_title">Abilita Remux</string> + <string name="remux_enable_summary">Abilita trasmissione tramite remux (es. externremux.sh)</string> + <string name="remux_command_title">Comando</string> + <string name="remux_command_summary">Di solito EXT o Extern (es. http://vdr:3000/Extern/1)</string> + <string name="remux_parameter_title">Parametro</string> + <string name="remux_parameter_summary">Controllo qualità trasmissione (es. http://vdr:3000/Extern;DSL1000/1)</string> + <string name="main_menu_preferences">Impostazioni</string> + <string name="main_menu_info">Info</string> + <string name="main_menu_exit">Esci</string> + <string name="main_menu_goto">Cambia dispositivo</string> + <string name="main_menu_goto_title">Passa a...</string> + <string name="main_menu_goto_no_vdr">Impossibile caricare il dispositivo selezionato</string> + <string name="main_menu_switched_to">Passato a %1$s</string> + <string name="vdr_devices_summary">Definisci uno o più dispositivi VDR (in arrivo)</string> + <string name="vdr_devices">Dispositivi VDR</string> + <!-- VDR plugin preferences --> + <string name="vdr_preferences">Impostazioni rete</string> + <string name="vdr_host_title">Nome sistema/IP</string> + <string name="vdr_host_summary">Nome sistema o indirizzo IP della VDR in esecuzione</string> + <string name="vdr_port_title">Porta plugin VDR</string> + <string name="vdr_port_summary">Porta per connessioni al plugin di VDR</string> + <string name="vdr_password_title">Password plugin VDR</string> + <string name="vdr_password_summary">Password per il plugin di VDR</string> + <string name="vdr_ssl_title">Connessione sicura</string> + <string name="vdr_ssl_summary">Usa SSL per le connessioni (al momento non supportato)</string> + <!-- channel filter preferences --> + <string name="channel_filter_preferences">Impostazioni canale</string> + <string name="channel_filter_filter_title">Limita canali</string> + <string name="channel_filter_filter_summary">Usa solo determinati canali</string> + <string name="channel_filter_last_title">Filtro canale</string> + <string name="channel_filter_last_summary">Numero di canali o sequenze separate da virgole (separatore \'-\'). Es. 1,2,4-10</string> + <!-- wakeup --> + <string name="wakeup_preferences">Accensione VDR da remoto</string> + <string name="wakeup_enabled_title">Può accendere VDR da remoto</string> + <string name="wakeup_enabled_summary">Abilita accensione VDR da remoto</string> + <string name="wakeup_url_title">URL per accensione remota</string> + <string name="wakeup_url_summary">URL per richiesta esecuzione accensione</string> + <string name="wakeup_user_title">Utente accensione</string> + <string name="wakeup_user_summary">Utente per accensione remota</string> + <string name="wakeup_password_title">Password accensione</string> + <string name="wakeup_password_summary">Password per accensione remota</string> + <string name="wakeup_method_title">Metodo accensione</string> + <string name="wakeup_method_summary">Scegli un metodo per accendere VDR</string> + <string-array name="wakeup_methods"> + <item>Chiama URL</item> + <item>WOL</item> + </string-array> + <string name="wakeup_wol_custom_boradcast_title">Indirizzo IP destinazione</string> + <string name="wakeup_wol_custom_boradcast_summary">A meno di non avere delle tabelle ARP statiche dovresti usare un indirizzo di broadcast.</string> + <string name="wakeup_wol_mac_title">Indirizzo MAC</string> + <string name="wakeup_wol_mac_summary">Indirizzo MAC di VDR. Usa \':\' o \'-\' o uno spazio come separatore.</string> + <!-- timer --> + <string name="timer_preferences">Valori predefiniti timer</string> + <string name="timer_pre_start_buffer_title">Margine inizio</string> + <string name="timer_pre_start_buffer_summary">Minuti di avvio registrazione prima dell\'inizio + dell\'evento</string> + <string name="timer_post_end_buffer_title">Margine fine</string> + <string name="timer_post_end_buffer_summary">Minuti di fermo registrazione dopo la fine + dell\'evento</string> + <string name="timer_default_priority_title">Priorità predefinita</string> + <string name="timer_default_priority_summary">Priorità predefinita</string> + <string name="timer_default_primary_limit_title">Limite primario predefinito</string> + <string name="timer_default_primary_limit_summary">Limite primario predefinito</string> + <string name="timer_default_lifetime_title">Durata predefinita</string> + <string name="timer_default_lifetime_summary">Durata predefinita</string> + <string name="timer_already_exists">Timer already defined.</string> + <string name="timer_created">Timer created</string> + <!-- GUI --> + <string name="gui_preferences">Impostazioni GUI</string> + <string name="gui_enable_24h_format_title">Usa formato 24 ore</string> + <string name="gui_enable_24h_format_summary_on">13:00</string> + <string name="gui_enable_24h_format_summary_off">1:00 PM</string> + <string name="gui_channels_show_channel_numbers_title">Mostra numero canali</string> + <string name="gui_channels_show_channel_numbers_summary">Mostra il numero di canali nella lista canali</string> + <string name="gui_quit_on_back_title">Esci con tasto Indietro</string> + <string name="gui_quit_on_back_summary_on">Il tasto Indietro chiude VDR-Manager</string> + <string name="gui_quit_on_back_summary_off">Il tasto Indietro non chiude VDR-Manager</string> + <string name="qui_show_imdb_button_title">Mostra tasto IMDb</string> + <string name="qui_show_imdb_button_summary_on">Mostra il tasto IMDb</string> + <string name="qui_show_imdb_button_summary_off">Non mostrare il tasto IMDb</string> + <string name="qui_imdb_url_title">Sito IMDb</string> + <string name="qui_imdb_url_summary">Sito IMDb da usare</string> + <string name="qui_show_omdb_button_title">Mostra tasto OMDB</string> + <string name="qui_show_omdb_button_summary_on">Mostra il tasto OMDB</string> + <string name="qui_show_omdb_button_summary_off">Non mostrare il tasto OMDB</string> + <string name="qui_show_tmdb_button_title">Mostra tasto TMDb</string> + <string name="qui_show_tmdb_button_summary_on">Tasto TMDb visibile</string> + <string name="qui_show_tmdb_button_summary_off">Tasto TMDb non visibile</string> + <string name="gui_custom_locale_title">Lingua</string> + <string name="gui_custom_locale_sum">Seleziona una lingua</string> + <string-array name="imdb_urls"> + <item>akas.imdb.com</item> + <item>imdb.com</item> + <item>uk.imdb.com</item> + <item>imdb.de</item> + <item>imdb.es</item> + <item>imdb.fr</item> + <item>imdb.it</item> + <item>imdb.pt</item> + </string-array> + <string-array name="lang"> + <item>Inglese</item> + <item>Tedesco</item> + <item>Francese</item> + <item>Italiano</item> + <item>Polacco</item> + <item>Ucraino</item> + </string-array> + <string-array name="remux_entries"> + <item>EXT</item> + <item>EXTERN (deprecato)</item> + </string-array> + <string name="vdr_advanced_preferences">Avanzate</string> + <string name="vdr_advanced_preferences_summary">Impostazioni avanzate</string> + <string name="vdr_conntimeout_title">Durata connessione</string> + <string name="vdr_conntimeout_sum">Tempo (in secondi) da aspettare prima che la connessione venga stabilita</string> + <string name="vdr_readtimeout_title">Durata lettura</string> + <string name="vdr_readtimeout_sum">Tempo (in secondi) da apsettare per ogni operazione di lettura</string> + <string name="vdr_timeout_title">Durata totale</string> + <string name="vdr_timeout_sum">Tempo (in secondi) da aspettare per un\'intera operazione di I/O prima di essere terminata</string> + <string name="streaming_password_title">Password streamdev</string> + <string name="streaming_password_sum">Imposta la password del server streamdev (es. -a \'nomeutente:password\')</string> + <string name="streaming_username_title">Nome utente streamdev</string> + <string name="streaming_username_sum">Imposta il nome utente del server streamdev (es. -a \'nomeutente:password\')</string> + <string name="vdr_encoding_title">Codifica caratteri</string> + <string name="vdr_encoding_summary">Codifica caratteri della VDR. Predefinito utf-8.</string> + <string name="new_vdr">Nuova VDR</string> + <string name="no_vdr">Nessun dispositivo VDR</string> + <string name="vdr_devices_category">Dispositivi VDR</string> + <string name="vdr_prefs_category">Dispositivo</string> + <string name="vdr_name_title">Nome</string> + <string name="vdr_name_summary">Nome del dispositivo</string> + <string name="vdr_device_delete_qeustion">Eliminare questo dispositivo?</string> + <string name="recstream">Trasmissione registrazioni</string> + <string name="recstream_enable_title">Trasmissione registrazioni</string> + <string name="recstream_enable_summary">Abilita trasmissione registrazioni</string> + <string-array name="recstream_entries"> + <item>Plugin Live</item> + <item>Plugin VDR streamdev</item> + <item>Plugin Smarttvweb</item> + </string-array> + <string-array name="recstream_smarttvweb_entries"> + <item>Progressivo</item> + <item>MPEG-DASH</item> + <item>Apple HLS</item> + </string-array> + <string name="recstream_method_title">Metodo trasmissione</string> + <string name="recstream_method_summary">Attualmente è supportata la trasmissione con i plugin VDR Live o Streamdev</string> + <string name="settings_live_port">Porta plugin VDR Live</string> + <string name="settings_live_port_summary">Il plugin VDR Live usa la porta 8008 come predefinita.</string> + <!-- progress --> + <string name="progress_connect">Connessione...</string> + <string name="progress_connect_error">Connessione fallita!</string> + <string name="progress_connect_timeout">Connessione scaduta!</string> + <string name="progress_login">Accedi</string> + <string name="progress_login_error">Accesso fallito!</string> + <string name="progress_whatson_loading">Caricamento EPG...</string> + <string name="progress_timers_loading">Caricamento timer...</string> + <string name="progress_recordings_loading">Caricamento registrazioni...</string> + <string name="progress_switching">Cambio...</string> + <string name="progress_channels_loading">Caricamento canali...</string> + <string name="progress_loading">Caricamento...</string> + <string name="progress_disconnect">Disconnessione...</string> + <string name="progress_wakeup_sending">Inizio richiesta accensione...</string> + <string name="progress_wakeup_sent">Richiesta accensione inviata</string> + <string name="progress_wakeup_error">Errore invio richiesta accensione: %1$s</string> + <string name="progress_timer_save">Salvataggio timer...</string> + <string name="progress_timer_delete">Rimozione timer...</string> + <string name="progress_recording_delete">Eliminazione registrazione...</string> + <string name="progress_timer_enable">Attivazione timer...</string> + <string name="progress_timer_modify">Aggiornamento timer...</string> + <string name="progress_timer_disable">Disattivazione timer...</string> + <string name="progress_connect_finished_abnormal">Connessione completata in modo anomalo</string> + <string name="progress_connect_finished_abnormal_arg">Connessione completata in modo anomalo: %1$s</string> + <string name="progress_cache_hit">Caricato dalla cache</string> + <string name="recording_item_menu_delete">Elimina</string> + <string name="recording_item_menu_stream">Trasmissione</string> + <string name="recent_channels">Canali recenti</string> + <string name="recent_channels_no_history">Nessuna cronologia...</string> + <string name="gui_max_recent_channels_title">Numero massimo canali recenti</string> + <string name="gui_max_recent_channels_summary">Quanti canali vuoi conservare tra quelli recenti?</string> + <string name="timer_detail_day_title">Giorno</string> + <!-- + Repeat options that appear under an alarm on main Alarm Clock + screen to identify repetition schedule: special case for when + the alarm is set to repeat every day + --> + <string name="every_day">Ogni giorno</string> + <!-- + Repeat options that appear under an alarm on main Alarm Clock + screen to identify repetition schedule: special case for when + the alarm is set to never repeat + --> + <string name="never">Mai</string> + <!-- + Repeat options that appear under an alarm on main Alarm Clock + screen to identify repetition schedule: concatenate days with + this character, i.e. "Mon, Tue, Wed" + --> + <string name="day_concat">", "</string> + <string name="timer_detail_repeat_title">Replica</string> + <string name="timer_detail_use_vps">Usa VPS:</string> + <string name="timer_detail_priority">Priorità:</string> + <string name="timer_detail_lifetime">Durata:</string> + <string name="timer_detail_lifetime_hint">es. 99</string> + <string name="timer_detail_priority_hint">es. 50</string> + <string name="timer_detail_title_vps">%1$s (VPS)</string> + <string name="channel_item_menu_switch">Cambia a</string> + <string name="switching_success">Cambiato a %s</string> + <string name="switching_failed">Cambio a %1$s fallito: %2$s</string> + <string name="switch_to_channel">Cambia a</string> + <string name="sort">Ordina</string> + <string name="sortby">Ordina per</string> + <string name="sortby_time">Ora</string> + <string name="sortby_channel">Canale</string> + <string name="sortby_alphabet">Alfabetico</string> + <string name="sortby_channellist">Lista canali</string> + <string name="main_menu_clear_search">Pulisci cronologia ricerca</string> + <string name="vdr_host_not_defined">Nome sistema VDR non impostato</string> + <string name="processing">Elaborazione...</string> + <string-array name="recent_channels_order_entries"> + <item>Più usati</item> + <item>Ultimo usato</item> + </string-array> + <string-array name="epg_sort_by_time_alpha"> + <item>Ora</item> + <item>Alfabetico</item> + </string-array> + <string-array name="epg_sort_by_time_alpha_channel"> + <item>Ora</item> + <item>Alphabet</item> + <item>Channel</item> + </string-array> + <string-array name="epg_sort_by_channels_alpha"> + <item>Canali</item> + <item>Alfabetico</item> + </string-array> + <string-array name="recordings_group_by"> + <item>Per ora</item> + <item>Per alfabeto</item> + </string-array> + <string name="gui_recent_channels_order_summary">Ordina per ultimo usato o più usato</string> + <string name="gui_recent_channels_order_title">Ordinamento canali recente</string> + <string-array name="channels_group_by"> + <item>Gruppo</item> + <item>Provider</item> + <item>Sorgente</item> + <item>Nome</item> + </string-array> + <string-array name="navigation_array"> + <item>Canali</item> + <item>EPG per ora</item> + <item>EPG per canale</item> + <item>Registrazioni</item> + <item>Timer</item> + <item>Remote</item> + </string-array> + <string name="filter">Filtro</string> + <string name="audio_tracks_template">Tracce audio: %1$s</string> + <string name="audio_track_dolby">D</string> + <string name="vdr_timezone_summary">Il fuso orario utilizzato dal server. E\' importante se viaggiate e modificate i timer da un altro fuso orario.</string> + <string name="vdr_timezone_title">Seleziona fuso orario del server</string> + <string name="zone_list_menu_sort_alphabetically">Ordina alfabeticamente</string> + <string name="zone_list_menu_sort_by_timezone">Ordina per fuso orario</string> + <string name="probing">Impostando %1$s …</string> + <string name="no_results">Nessun risultato...</string> + <string name="recording_started">Registrazione avviata</string> + <string name="set_time">Imposta orario</string> + <!-- … --> + <!-- SSL related messages --> + <string name="certificate_problem_message_title">Certificate warning</string> + <string name="certificate_problem_message_text">The server certificate was not accepted:\n\n +Hostname:\n + %1$s\n +Valid from:\n + %2$s\n +Valid until:\n + %3$s\n\n +What do you want to do?</string> + <string name="certificate_accept_once">Accept once</string> + <string name="certificate_accepted_forever">Accept forever</string> + <string name="certificate_not_accepted">Abort</string> + <!-- EPG Content --> + <string name="Content_Movie__Drama">Movie/Drama</string> + <string name="Content_Detective__Thriller">Detective/Thriller</string> + <string name="Content_Adventure__Western__War">Adventure/Western/War</string> + <string name="Content_Science_Fiction__Fantasy__Horror">Science Fiction/Fantasy/Horror</string> + <string name="Content_Comedy">Comedy</string> + <string name="Content_Soap__Melodrama__Folkloric">Soap/Melodrama/Folkloric</string> + <string name="Content_Romance">Romance</string> + <string name="Content_Serious__Classical__Religious__Historical_Movie__Drama">Serious/Classical/Religious/Historical Movie/Drama</string> + <string name="Content_Adult_Movie__Drama">Adult Movie/Drama</string> + <string name="Content_News__Current_Affairs">News/Current Affairs</string> + <string name="Content_News__Weather_Report">News/Weather Report</string> + <string name="Content_News_Magazine">News Magazine</string> + <string name="Content_Documentary">Documentary</string> + <string name="Content_Discussion__Inverview__Debate">Discussion/Inverview/Debate</string> + <string name="Content_Show__Game_Show">Show/Game Show</string> + <string name="Content_Game_Show__Quiz__Contest">Game Show/Quiz/Contest</string> + <string name="Content_Variety_Show">Variety Show</string> + <string name="Content_Talk_Show">Talk Show</string> + <string name="Content_Sports">Sports</string> + <string name="Content_Special_Event">Special Event</string> + <string name="Content_Sport_Magazine">Sport Magazine</string> + <string name="Content_Football__Soccer">Football/Soccer</string> + <string name="Content_Tennis__Squash">Tennis/Squash</string> + <string name="Content_Team_Sports">Team Sports</string> + <string name="Content_Athletics">Athletics</string> + <string name="Content_Motor_Sport">Motor Sport</string> + <string name="Content_Water_Sport">Water Sport</string> + <string name="Content_Winter_Sports">Winter Sports</string> + <string name="Content_Equestrian">Equestrian</string> + <string name="Content_Martial_Sports">Martial Sports</string> + <string name="Content_Childrens__Youth_Programme">Children\'s/Youth Programme</string> + <string name="Content_Preschool_Childrens_Programme">Pre-school Children\'s Programme</string> + <string name="Content_Entertainment_Programme_for_6_to_14">Entertainment Programme for 6 to 14</string> + <string name="Content_Entertainment_Programme_for_10_to_16">Entertainment Programme for 10 to 16</string> + <string name="Content_Informational__Educational__School_Programme">Informational/Educational/School Programme</string> + <string name="Content_Cartoons__Puppets">Cartoons/Puppets</string> + <string name="Content_Music__Ballet__Dance">Music/Ballet/Dance</string> + <string name="Content_Rock__Pop">Rock/Pop</string> + <string name="Content_Serious__Classical_Music">Serious/Classical Music</string> + <string name="Content_Folk__Tradional_Music">Folk/Tradional Music</string> + <string name="Content_Jazz">Jazz</string> + <string name="Content_Musical__Opera">Musical/Opera</string> + <string name="Content_Ballet">Ballet</string> + <string name="Content_Arts__Culture">Arts/Culture</string> + <string name="Content_Performing_Arts">Performing Arts</string> + <string name="Content_Fine_Arts">Fine Arts</string> + <string name="Content_Religion">Religion</string> + <string name="Content_Popular_Culture__Traditional_Arts">Popular Culture/Traditional Arts</string> + <string name="Content_Literature">Literature</string> + <string name="Content_Film__Cinema">Film/Cinema</string> + <string name="Content_Experimental_Film__Video">Experimental Film/Video</string> + <string name="Content_Broadcasting__Press">Broadcasting/Press</string> + <string name="Content_New_Media">New Media</string> + <string name="Content_Arts__Culture_Magazine">Arts/Culture Magazine</string> + <string name="Content_Fashion">Fashion</string> + <string name="Content_Social__Political__Economics">Social/Political/Economics</string> + <string name="Content_Magazine__Report__Documentary">Magazine/Report/Documentary</string> + <string name="Content_Economics__Social_Advisory">Economics/Social Advisory</string> + <string name="Content_Remarkable_People">Remarkable People</string> + <string name="Content_Education__Science__Factual">Education/Science/Factual</string> + <string name="Content_Nature__Animals__Environment">Nature/Animals/Environment</string> + <string name="Content_Technology__Natural_Sciences">Technology/Natural Sciences</string> + <string name="Content_Medicine__Physiology__Psychology">Medicine/Physiology/Psychology</string> + <string name="Content_Foreign_Countries__Expeditions">Foreign Countries/Expeditions</string> + <string name="Content_Social__Spiritual_Sciences">Social/Spiritual Sciences</string> + <string name="Content_Further_Education">Further Education</string> + <string name="Content_Languages">Languages</string> + <string name="Content_Leisure__Hobbies">Leisure/Hobbies</string> + <string name="Content_Tourism__Travel">Tourism/Travel</string> + <string name="Content_Handicraft">Handicraft</string> + <string name="Content_Motoring">Motoring</string> + <string name="Content_Fitness_and_Health">Fitness & Health</string> + <string name="Content_Cooking">Cooking</string> + <string name="Content_Advertisement__Shopping">Advertisement/Shopping</string> + <string name="Content_Gardening">Gardening</string> + <string name="Content_Original_Language">Original Language</string> + <string name="Content_Black_and_White">Black & White</string> + <string name="Content_Unpublished">Unpublished</string> + <string name="Content_Live_Broadcast">Live Broadcast</string> + <!-- EPG Content END --> + <string name="type_to_filter">type to filter</string> + <string name="drive_info">Free %1$s GB of %2$s GB (%3$s%%)</string> + <string name="drive_img">Drive</string> + <string name="sad_img">Sad</string> + <string name="search">Search</string> + <string name="clear_term_after_search_title">Clear Term after Search</string> + <string name="clear_term_after_search_summary_off">Search term remains after peforming search</string> + <string name="clear_term_after_search_summary_on">Term gets cleared after performing search</string> + <string name="drawer_open">Open navigation drawer</string> + <string name="drawer_close">Close navigation drawer</string> + <string name="action_websearch">Web search</string> + <string name="settings_smarttvweb_port_summary">VDR smarttvweb plugin has default port 8000</string> + <string name="settings_smarttvweb_port">Smarttvweb port</string> + <string name="recstream_smarttvweb_method_title">Smarttvweb Stream Type</string> + <string name="recstream_smarttvweb_method_summary">Supported methods: \'Progressive\', \'MPEG-DASH \/ OIPF HAS\', \'Apple HLS\'</string> + <string name="remote">Remote Control</string> + <string name="remote_enable_summary">Shows the remote control view if enabled</string> + <string name="remote_enable_title">Enable VDR remote control</string> + <string name="svdrp_port_title">SVDRP Port</string> + <string name="svdrp_port_summary">Default is 6419</string> + <string name="label">Label</string> + <string name="hitkcommand">HITK Command</string> + <string name="menu_reset">Reset</string> + <string name="menu_exprt">Export</string> + <string name="menu_imprt">Import</string> + <string name="menu_remapback">\'Back\' is \'Back\' HITK</string> + <string name="remapback_hint">Longpress on Back Button to leave the remote.</string> + <string name="not_yet_implemented">Not Yet Implemented</string> + <string name="timer_error">Can not create timer: %1$s</string> +</resources> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-pl/backup.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-pl/backup.xml new file mode 100644 index 0000000..f6afef3 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-pl/backup.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--Generated by crowdin.com--> +<resources> + <string name="generic_progress_title" translation_description="The title on a progress dialog asking the user to wait."> Proszę czekać ...</string> + <string name="generic_confirm_title" translation_description="The title on a confirmation dialog asking the user if he is sure?">Jesteś pewien?</string> + <!-- SD Card --> + <string name="sd_card_canceled" translation_description="When importing/saving to the SD card, the message indicating that the operation was canceled."> Działanie zostało przerwane</string> + <string name="sd_card_error_no_storage" translation_description="When importing/saving to the SD card, the error message indicating that no SD card is found."> Brak karty pamięci.</string> + <string name="sd_card_import_error" translation_description="When importing from the SD card, the error message indicating not able to import."> Nieudany import z karty pamięci.</string> + <string name="sd_card_import_error_no_file" translation_description="When importing from the SD card, the error message indicating that no file is found on a SD card directory. %1$s: the SD card directory. E.g., '/mnt/sdcard/mybillingbuddy/'."> Brak pliku w %1$s</string> + <string name="sd_card_import_progress_message" translation_description="When importing from the SD card, the progress message."> Import z karty SD ...</string> + <string name="sd_card_import_success" translation_description="When importing from the SD card, the success message."> Import z karty pamięci zakończony.</string> + <string name="sd_card_save_error" translation_description="When saving to the SD card, the error message indicating not able to save."> Nie można zapisać na karcie pamięci.</string> + <string name="sd_card_save_error_create_dir" translation_description="When saving to the SD card, the error message indicating not able to create a directory on the SD card."> Nie mogę utworzyć katalogu na karcie pamięci.</string> + <string name="sd_card_save_progress_message" translation_description="When saving to the SD card, the progress message."> Zapis na kartę pamięci...</string> + <string name="sd_card_save_success" translation_description="When saving to the SD card, the success message"> Zakończono zapis na kartę pamięci.</string> + <!-- Settings Backup --> + <string name="settings_backup_summary">Utwórz kopie zapasową/Odzyskaj z kopii zapasowej</string> + <string name="settings_backup_now" translation_description="In the 'Backup' settings, under the 'SD card' section, the option to backup to the SD card now. Character limit: ~26 (1 line)"> Utwórz kopię</string> + <string name="settings_backup_now_summary">Tworzy kopię aktualnych danych i ustawień aplikacji</string> + <string name="settings_backup_now_progress_message" translation_description="In the 'Backup' settings, after pressing the 'Backup now' option, the progress message telling the user that it is writing all data and settings to the SD card."> Zapisuje dane i ustawienia aplikacji ...</string> + <string name="settings_backup_restore" translation_description="In the 'Backup' settings, under the 'SD card' section, the option to restore everything from the SD card. Character limit: ~26 (1 line)"> Odzyskaj</string> + <string name="settings_backup_restore_summary">Odzyskaj dane i ustawienia z kopii zapasowej</string> + <!-- Settings Backup --> + <string name="settings_backup" translation_description="In the 'Settings' page, the option to change the data backup related settings. Character limit: ~26 (1 line)"> Kopia zapasowa</string> + <string name="settings_backup_restore_confirm_message" translation_description="In the 'Backup' settings, after pressing the 'Restore now' option, the message in the alert dialog asking the user to confirm that he wants to restore from a backup and it will overwrite all the current data and settings."> Odzyskanie danych z kopii zapasowej nadpisze wszystkie aktualne dane i ustawienia aplikacji.</string> + <string name="settings_backup_restore_no_backup" translation_description="In the 'Backup' settings, after pressing the 'Restore now' option, the message in the alert dialog informing the user that there is no backup to restore from."> Nie znaleziono kopi.</string> + <string name="settings_backup_restore_progress_message" translation_description="In the 'Backup' settings, after pressing the 'Restore now' option, the progress message informing that My Billinbg Buddy is reading all data and settings from the backup on the SD card."> Odczyt danych i ustawień aplikacji...</string> + <string name="settings_backup_restore_select_title" translation_description="In the 'Backup' settings, after pressing the 'Restore now' option, the title in the picker dialog asking the user to select a backup."> Wybierz kopię do odzyskania</string> + <string name="settings_backup_key">settingsBackup</string> + <string name="settings_backup_now_key">settingsBackupNow</string> + <string name="settings_backup_restore_key">settingsBackupRestore</string> + <string name="choose">Wybierz plik kopii zapasowej</string> +</resources> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-pl/strings.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-pl/strings.xml new file mode 100644 index 0000000..a4338a4 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-pl/strings.xml @@ -0,0 +1,494 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--Generated by crowdin.com--> +<resources xmlns:tools="http://schemas.android.com/tools"> + <string name="action_menu_channels">Kanały</string> + <string name="action_menu_timers">Timers</string> + <string name="action_menu_recordings">Nagrania</string> + <string name="action_menu_epg">Lista EPG</string> + <string name="action_menu_search">Szukaj w EPG</string> + <string name="action_menu_wakeup">Obudź</string> + <string name="app_name">VDR-Manager</string> + <string name="channel_item_menu_epg">Pokaż EPG</string> + <string name="channel_item_menu_stream">Oglądaj na żywo</string> + <string name="channel_item_menu_hide">Ukryj</string> + <string name="channel_item_menu_hide_permanent">Ukryj na stałe</string> + <string name="channel_group_menu_hide">Ukryj</string> + <string name="channel_group_menu_hide_permanent">Ukryj na stałe</string> + <string name="menu_groupby">Grupuj po</string> + <string name="groupby_group">Grupuj</string> + <string name="groupby_provider">Dostawca</string> + <string name="groupby_name">Nazwa</string> + <string name="groupby_source">Źródło</string> + <string name="groupby_channel">kanale</string> + <string name="groupby_date">dacie</string> + <string name="groupby_name_all_channels_group">Wszystkie kanały</string> + <string name="groupby_window_title_templte">Grupuj po %1%s</string> + <string name="common_delete">Usuń</string> + <string name="prefs_current_value">Aktualnie:</string> + <string name="prefs_current_value_template">\nAktualnie: %1$s</string> + <string name="prefs_current_value_not_set"><nie ustawione></string> + <string name="no_connection">Brak połączenia</string> + <string name="aborted">Połączenie odrzucone.</string> + <string name="no_connection_retry">Powtórz</string> + <string name="refresh">Odśwież</string> + <string name="done">Wykonane</string> + <string name="share">Udostepnij</string> + <string name="addtocal">Dodaj do kalendarza</string> + <string name="search_reapt">Powtórki</string> + <string name="share_chooser">Udostępnij wpis z EPG</string> + <string name="about_text"> \"VDR-Manager\" dla Androida\n +Wersja: %1$s\n +Jeśli masz w domu VDR-a dostępnego przez sieć internet i telefon komórkowy z systemem Android to ten program może Ci się przydać. +Więcej szczegółów znajdziesz na: http://projects.vdr-developer.org/projects/vdr-manager/wiki. +Autor: \n +bju<herrlado@gmail.com> +herrlado<herrlado@gmail.com></string> + <string name="about_title">O</string> + <string name="no_internet_connection">Błąd dostępu do sieci</string> + <string name="update_will_start_in">Aktualizacja zaraz się zacznie</string> + <string name="epg_menu_search">Przeszukaj EPG</string> + <string name="epg_menu_times">Przeszukaj timery</string> + <string name="epg_item_menu_timer_add">Utwórz timer</string> + <string name="epg_item_menu_timer_record">Nagrywaj</string> + <string name="epg_item_menu_timer_delete">Usuń timer</string> + <string name="epg_item_menu_timer_modify">Modyfikuj timer</string> + <string name="epg_item_menu_timer_enable">Włącz timer</string> + <string name="epg_item_menu_timer_disable">Wyłącz timer</string> + <string name="epg_no_items">Nie nie znaleziono</string> + <string name="epg_client_errors">Wystąpił błąd. Sprawdź plik logów.</string> + <string name="navigae_at_the_end">Koniec</string> + <string name="navigae_at_the_start">Początek</string> + <string name="epg_search_times_add">Dodaj czas</string> + <string name="epg_search_times_window">Czas</string> + <!-- What's on display --> + <string name="epg_list_time_label">What\'s on at</string> + <string name="epg_list_time_now">Teraz</string> + <string name="epg_list_time_next">Następnie</string> + <string name="epg_list_time_adhoc">Ad Hoc</string> + <string name="epg_list_channel_spinner">Kanał</string> + <string name="epg_list_search_label">Przeszukaj wyniki</string> + <!-- create timer --> + <string name="epg_event_share_text">Udostępnij</string> + <string name="epg_event_imdb_text">Szukaj w IMDb</string> + <string name="epg_event_omdb_text">Szukaj w OMDB</string> + <string name="epg_event_tmdb_text">Szukaj w TMDb</string> + <string name="epg_eent_livetv_text">Strumień</string> + <string name="epg_event_create_timer_text">Dodaj timer</string> + <string name="epg_event_modify_timer_text">Modyfikuj timer</string> + <!-- search --> + <string name="epg_search_button">Szukaj</string> + <string name="epg_duration_template">%1$s min</string> + <string name="epg_duration_template_live">%1$s/%2$s min</string> + <string name="epg_of_a_channel">%1$s, %2$s/%3$s</string> + <string name="epg_by_channel">EPG per kanał</string> + <string name="epg_by_search">Szukaj w EPG</string> + <string name="epg_by_search_param">Szukaj w EPG: \'$%1$s\'</string> + <string name="epg_by_time">EPG w czasie</string> + <string name="epg_by_time_args">EPG by time: \'%1$s\'</string> + <string name="search_epg_hint">Przeszukaj EPG</string> + <string name="epg_search_settings_description">Przeszukaj EPG VDR-a</string> + <string name="epg_window_title_count">%1$s, %2$s elementów</string> + <string name="channels_window_title_count">%1$s, %2$s/%3$s</string> + <string name="new_timer">Nowy timer</string> + <string name="vdr_error_text">Błąd w trakcie komunikacji z VDR, kod błędu: %1$s</string> + <string name="livetv">Telewizja na żywo</string> + <string name="settings_livetv_summary">Needs streamdev-server on VDR and an external + player such as VPlayer</string> + <string name="settings_livetv_streamformat">Format strumienia</string> + <string name="settings_livetv_port">Port</string> + <string name="settings_livetv_port_summary">Domyslnie: 3000. Dostęp musi zostać włączony w pliku streamdevhosts.conf.</string> + <string-array name="livetv_streamformat"> + <item>TS</item> + <item>PES</item> + <item>ES</item> + <item>PS</item> + </string-array> + <string name="key_remux_enable">włącz remux</string> + <string name="key_remux_command">polecenie remux</string> + <string name="key_remux_parameter">parametry remux</string> + <string name="stream_via_as">Strumień</string> + <string name="stream_choose_audio">Wybierz ścieżkę audio</string> + <string name="stream_via">przez %s</string> + <string name="stream_as">jako %s</string> + <string name="remux_title">Remux</string> + <string name="remux_enable_title">Włącz Remux</string> + <string name="remux_enable_summary">Włącz strumieniowanie przez remux (np. externremux.sh)</string> + <string name="remux_command_title">Polecenie</string> + <string name="remux_command_summary">Typically EXT or Extern e.g. http://vdr:3000/EXT/1</string> + <string name="remux_parameter_title">Parametr</string> + <string name="remux_parameter_summary">Control Streaming quality. E.g. http://vdr:3000/EXT;DSL1000/1</string> + <string name="main_menu_preferences">Ustawienia</string> + <string name="main_menu_info">Informacje</string> + <string name="main_menu_exit">Wyjście</string> + <string name="main_menu_goto">Przełącz urządzenie</string> + <string name="main_menu_goto_title">Przełącz na…</string> + <string name="main_menu_goto_no_vdr">Nie można załadować wybranego urządzenia :(</string> + <string name="main_menu_switched_to">Przełączono na %1$s</string> + <string name="vdr_devices_summary">Ustaw jedno lub więcej urządzeń VDR.</string> + <string name="vdr_devices">Urządzenia VDR</string> + <!-- VDR plugin preferences --> + <string name="vdr_preferences">Ustawienia sieci</string> + <string name="vdr_host_title">Nazwa hosta VDR</string> + <string name="vdr_host_summary">Host running VDR</string> + <string name="vdr_port_title">VDR plugin port </string> + <string name="vdr_port_summary">Port for connections to VDR plugin</string> + <string name="vdr_password_title">Hasło dodatku VDR</string> + <string name="vdr_password_summary">Hasło do dodatku VDR</string> + <string name="vdr_ssl_title">Bezpieczne połączenie</string> + <string name="vdr_ssl_summary">Używaj SSL</string> + <!-- channel filter preferences --> + <string name="channel_filter_preferences">Ustawienia kanału</string> + <string name="channel_filter_filter_title">Ogranicz kanały</string> + <string name="channel_filter_filter_summary">Używaj tylko podanych kanałów</string> + <string name="channel_filter_last_title">Filtr kanałów</string> + <string name="channel_filter_last_summary">Comma separated channelnumbers or ranges (separator \'-\'). A.e. 1,2,4-10</string> + <!-- wakeup --> + <string name="wakeup_preferences">Remote VDR host wakeup</string> + <string name="wakeup_enabled_title">Can remote wakeup VDR</string> + <string name="wakeup_enabled_summary">Enables to remote wakeup the VDR host</string> + <string name="wakeup_url_title">URL for remote wakeup</string> + <string name="wakeup_url_summary">URL for a request doing the wakeup</string> + <string name="wakeup_user_title">Wakeup user</string> + <string name="wakeup_user_summary">User for remote wakeup</string> + <string name="wakeup_password_title">Hasło wybudzania</string> + <string name="wakeup_password_summary">Hasło dla zdalnego wybudzania</string> + <string name="wakeup_method_title">Metoda wybudzania</string> + <string name="wakeup_method_summary">Choose a method to wakeup the vdr host</string> + <string-array name="wakeup_methods"> + <item>Call a URL</item> + <item>WOL</item> + </string-array> + <string name="wakeup_wol_custom_boradcast_title">Docelowy adres IP</string> + <string name="wakeup_wol_custom_boradcast_summary">Unless you have static ARP tables you should use some kind of broadcast address.</string> + <string name="wakeup_wol_mac_title">Adres MAC</string> + <string name="wakeup_wol_mac_summary">MAC-Address of the VDR host. Use \':\' or \'-\' or a space as separator.</string> + <!-- timer --> + <string name="timer_preferences">Timer defaults</string> + <string name="timer_pre_start_buffer_title">Margines początkowy</string> + <string name="timer_pre_start_buffer_summary">Minutes recording starts before the beginning of + the broadcast</string> + <string name="timer_post_end_buffer_title">Margines końcowy</string> + <string name="timer_post_end_buffer_summary">Minutes recording stops after the end of the + broadcast</string> + <string name="timer_default_priority_title">Domyślny priorytet</string> + <string name="timer_default_priority_summary">Domyślny priorytet</string> + <string name="timer_default_primary_limit_title">Default primary limit</string> + <string name="timer_default_primary_limit_summary">Default primary limit</string> + <string name="timer_default_lifetime_title">Default lifetime</string> + <string name="timer_default_lifetime_summary">Default lifetime</string> + <!-- GUI --> + <string name="gui_preferences">Ustawienia interfejsu</string> + <string name="gui_enable_24h_format_title">Użyj formatu 24-ro godzinnego</string> + <string name="gui_enable_24h_format_summary_on">13:00</string> + <string name="gui_enable_24h_format_summary_off">1:00 PM</string> + <string name="gui_channels_show_channel_numbers_title">Pokazuj numery kanałów</string> + <string name="gui_channels_show_channel_numbers_summary">Pokazuj numery kanałów na liście.</string> + <string name="gui_quit_on_back_title">Wyjdź przy cofaniu</string> + <string name="gui_quit_on_back_summary_on">Back button quits the VDR-Manager</string> + <string name="gui_quit_on_back_summary_off">Back button does not quit VDR-Manager</string> + <string name="qui_show_imdb_button_title">Pokaż guzik IMDb</string> + <string name="qui_show_imdb_button_summary_on">Guzik IMDb jest widoczny</string> + <string name="qui_show_imdb_button_summary_off">Guzik IMDb jest niewidoczny</string> + <string name="qui_imdb_url_title">Strona IMDb</string> + <string name="qui_imdb_url_summary">Którą ze stron IMDb przeszukać.</string> + <string name="qui_show_omdb_button_title">Pokaż guzik OMDB</string> + <string name="qui_show_omdb_button_summary_on">Guzik OMDb jest widoczny</string> + <string name="qui_show_omdb_button_summary_off">Guzik OMDb jest niewidoczny</string> + <string name="qui_show_tmdb_button_title">Pokaż guzik TMDb</string> + <string name="qui_show_tmdb_button_summary_on">Guzik TMDb jest widoczny</string> + <string name="qui_show_tmdb_button_summary_off">Guzik TMDb jest niewidoczny</string> + <string name="gui_custom_locale_title">Inny język</string> + <string name="gui_custom_locale_sum">Ustaw wybrany język.</string> + <string-array name="imdb_urls"> + <item>Międzynarodowe</item> + <item>imdb.com</item> + <item>uk.imdb.com</item> + <item>imdb.de</item> + <item>imdb.es</item> + <item>imdb.fr</item> + <item>imdb.it</item> + <item>imdb.pt</item> + </string-array> + <string-array name="lang"> + <item>Angielski</item> + <item>Niemiecki</item> + <item>Francuski</item> + <item>Włoski</item> + <item>Polski</item> + <item>Ukraiński</item> + </string-array> + <string-array name="remux_entries"> + <item>EXT</item> + <item>EXTERN (deprecated)</item> + </string-array> + <string name="vdr_advanced_preferences">Zaawansowane</string> + <string name="vdr_advanced_preferences_summary">Ustawienia zaawansowane</string> + <string name="vdr_conntimeout_title">Limit czas upołączenia</string> + <string name="vdr_conntimeout_sum">Jak długo (w sekundach) czekać na nawiązani połączenia?</string> + <string name="vdr_readtimeout_title">Limit czasu odczytu</string> + <string name="vdr_readtimeout_sum">Jak długo (w sekundach) oczekiwać na odczyt kolejnej linii?</string> + <string name="vdr_timeout_title">Całkowity limit czasu</string> + <string name="vdr_timeout_sum">Jak długo (w sekundach) czekać na zakończenie wszystkich operacji I/O przed anulowaniem?</string> + <string name="streaming_password_title">Streamdev password</string> + <string name="streaming_password_sum">Set your streamdev server password. (a.e. -a \'username:password\')</string> + <string name="streaming_username_title">Streamdev username</string> + <string name="streaming_username_sum">Set your streamdev server username. (a.e. -a \'username:password\')</string> + <string name="vdr_encoding_title">Kodowanie znaków</string> + <string name="vdr_encoding_summary">Kodowanie znaków w VDR. Domyślnie jest to \"utf-8\".</string> + <string name="new_vdr">Nowy VDR</string> + <string name="no_vdr">Brak urządzeń VDR</string> + <string name="vdr_devices_category">Urzędzenia VDR</string> + <string name="vdr_prefs_category">Urządzenie</string> + <string name="vdr_name_title">Nazwa</string> + <string name="vdr_name_summary">Nazwa dla tego urządzenia</string> + <string name="vdr_device_delete_qeustion">Usunąć urządzenie?</string> + <string name="recstream">Strumieniowanie nagrań</string> + <string name="recstream_enable_title">Strumieniowanie nagrań</string> + <string name="recstream_enable_summary">Włącz strumieniowanie nagrań</string> + <string-array name="recstream_entries"> + <item>dodatek \"live\"</item> + <item>dodatek \"streamdev\"</item> + <item>dodatek \"smarttvweb\"</item> + </string-array> + <string-array name="recstream_smarttvweb_entries"> + <item>Progressive</item> + <item>MPEG-DASH</item> + <item>Apple HLS</item> + </string-array> + <string name="recstream_method_title">Metody strumieniowania</string> + <string name="recstream_method_summary">Currently Streaming over VDR live and or streamdev plugin is supported</string> + <string name="settings_live_port">Port dodatku \"live\" do VDR</string> + <string name="settings_live_port_summary">Domyśly port dla dodatku \"live\" to 8008.</string> + <!-- progress --> + <string name="progress_connect">Łączę ...</string> + <string name="progress_connect_error">Połaczenie nieudane!</string> + <string name="progress_connect_timeout">Przekroczono czas połączenia!</string> + <string name="progress_login">Login.</string> + <string name="progress_login_error">Logowanie nieudane.</string> + <string name="progress_whatson_loading">Ładowanie EPG…</string> + <string name="progress_timers_loading">Ładowanie listy timerów...</string> + <string name="progress_recordings_loading">Ładowanie listy nagrań...</string> + <string name="progress_switching">Przełączam…</string> + <string name="progress_channels_loading">Wczytuję listę kanałów…</string> + <string name="progress_loading">Wczytywanie…</string> + <string name="progress_disconnect">Rozłączam…</string> + <string name="progress_wakeup_sending">Wysyłanie żądania przebudzenia…</string> + <string name="progress_wakeup_sent">Wysłano żądanie przebudzenia</string> + <string name="progress_wakeup_error">Błąd podczas wysyłania komunikatu przebudzenia: %1$s</string> + <string name="progress_timer_save">Zapisuje timer…</string> + <string name="progress_timer_delete">Kasuje timer…</string> + <string name="progress_recording_delete">Kasuje nagranie…</string> + <string name="progress_timer_enable">Właczam timer…</string> + <string name="progress_timer_modify">Aktualizuje timer…</string> + <string name="progress_timer_disable">Wyłączam timer…</string> + <string name="progress_connect_finished_abnormal">Połączenie błędnie zakończone</string> + <string name="progress_connect_finished_abnormal_arg">Połączenie zakończone błędem: %1$s</string> + <string name="progress_cache_hit">Wczytane z pamięci podręcznej.</string> + <string name="recording_item_menu_delete">Usuń</string> + <string name="recording_item_menu_stream">Strumień</string> + <string name="recent_channels">Ostatnio przeglądane kanały</string> + <string name="recent_channels_no_history">Brak historii…</string> + <string name="gui_max_recent_channels_title">Maksymalna ilość ostatnio przeglądanych kanałów</string> + <string name="gui_max_recent_channels_summary">Ile kanałów powinno być zapisanych w ostatnio przeglądanych kanałach?</string> + <string name="timer_detail_day_title">Dzień</string> + <!-- + Repeat options that appear under an alarm on main Alarm Clock + screen to identify repetition schedule: special case for when + the alarm is set to repeat every day + --> + <string name="every_day">Każdego dnia</string> + <!-- + Repeat options that appear under an alarm on main Alarm Clock + screen to identify repetition schedule: special case for when + the alarm is set to never repeat + --> + <string name="never">Nigdy</string> + <!-- + Repeat options that appear under an alarm on main Alarm Clock + screen to identify repetition schedule: concatenate days with + this character, i.e. "Mon, Tue, Wed" + --> + <string name="day_concat">","</string> + <string name="timer_detail_repeat_title">Powtórz</string> + <string name="timer_detail_use_vps">Użyj VPS:</string> + <string name="timer_detail_priority">Priorytet:</string> + <string name="timer_detail_lifetime">Czas życia:</string> + <string name="timer_detail_lifetime_hint">np. 99</string> + <string name="timer_detail_priority_hint">np. 50</string> + <string name="timer_detail_title_vps">%1$s (VPS)</string> + <string name="channel_item_menu_switch">Przełącz na</string> + <string name="switching_success">Przełączono na %s</string> + <string name="switching_failed">Przełączenie na %1$s nieudane, błąd: %2$s</string> + <string name="switch_to_channel">Przełącz na</string> + <string name="sort">Sortuj</string> + <string name="sortby">Sortuj po</string> + <string name="sortby_time">Czas</string> + <string name="sortby_channel">Kanał</string> + <string name="sortby_alphabet">Alfabetycznie</string> + <string name="sortby_channellist">Listy kanałów</string> + <string name="main_menu_clear_search">Wyczyść historię wyszukiwania</string> + <string name="vdr_host_not_defined">VDR host not defined</string> + <string name="processing">Przetwarzam…</string> + <string-array name="recent_channels_order_entries"> + <item>Najczęściej używane</item> + <item>Ostatnio używane</item> + </string-array> + <string-array name="epg_sort_by_time_alpha"> + <item>Czasie</item> + <item>Alfabetycznie</item> + </string-array> + <string-array name="epg_sort_by_time_alpha_channel"> + <item>Czas</item> + <item>Alfabetycznie</item> + <item>Kanał</item> + </string-array> + <string-array name="epg_sort_by_channels_alpha"> + <item>Kanały</item> + <item>Alfabetycznie</item> + </string-array> + <string-array name="recordings_group_by"> + <item>Po czasie</item> + <item>Alfabetycznie</item> + </string-array> + <string name="gui_recent_channels_order_summary">Sortuj po ostatnio lub najczęściej żywancych</string> + <string name="gui_recent_channels_order_title">Sortowanie ostatnio używanych kanałów</string> + <string-array name="channels_group_by"> + <item>Grupa</item> + <item>Dostawca</item> + <item>Źródło</item> + <item>Nazwa</item> + </string-array> + <string-array name="navigation_array"> + <item>Kanały</item> + <item>EPG w czasie</item> + <item>EPG per kanał</item> + <item>Nagrania</item> + <item>Timery</item> + </string-array> + <string name="filter">Filtry</string> + <string name="audio_tracks_template">Ścieżka dźwiękowa: %1$s</string> + <string name="audio_track_dolby">D</string> + <string name="vdr_timezone_summary">The time zone used on the server. It is important if you travel and modify timers from another time zone.</string> + <string name="vdr_timezone_title">Wybierz strefę czasową serwera</string> + <string name="zone_list_menu_sort_alphabetically">Sortuj alfabetycznie</string> + <string name="zone_list_menu_sort_by_timezone">Sortuj wg. strefy czasowej</string> + <string name="probing">Probing %1$s …</string> + <string name="no_results">Brak wyników…</string> + <string name="recording_started">Nagrywanie rozpoczęte</string> + <string name="set_time">Ustaw czas</string> + <!-- … --> + <!-- SSL related messages --> + <string name="certificate_problem_message_title">Błąd certyfikatu</string> + <string name="certificate_problem_message_text">The server certificate was not accepted:\n\n +Hostname:\n + %1$s\n +Valid from:\n + %2$s\n +Valid until:\n + %3$s\n\n +What do you want to do?</string> + <string name="certificate_accept_once">Zaakceptuj raz</string> + <string name="certificate_accepted_forever">Zaakceptuj na zawsze</string> + <string name="certificate_not_accepted">Anuluj</string> + <!-- EPG Content --> + <string name="Content_Movie__Drama">Film/Dramat</string> + <string name="Content_Detective__Thriller">Thriller</string> + <string name="Content_Adventure__Western__War">Przygodowy/Western/Wojenny</string> + <string name="Content_Science_Fiction__Fantasy__Horror">Science Fiction/Fantastyka/Horror</string> + <string name="Content_Comedy">Komedia</string> + <string name="Content_Soap__Melodrama__Folkloric">Opera mydlana/Melodramat/Folklor</string> + <string name="Content_Romance">Romans</string> + <string name="Content_Serious__Classical__Religious__Historical_Movie__Drama">Serious/Classical/Religious/Historical Movie/Drama</string> + <string name="Content_Adult_Movie__Drama">Adult Movie/Drama</string> + <string name="Content_News__Current_Affairs">News/Current Affairs</string> + <string name="Content_News__Weather_Report">News/Weather Report</string> + <string name="Content_News_Magazine">News Magazine</string> + <string name="Content_Documentary">Dokumentalny</string> + <string name="Content_Discussion__Inverview__Debate">Discussion/Inverview/Debate</string> + <string name="Content_Show__Game_Show">Show/Game Show</string> + <string name="Content_Game_Show__Quiz__Contest">Game Show/Quiz/Contest</string> + <string name="Content_Variety_Show">Variety Show</string> + <string name="Content_Talk_Show">Talk Show</string> + <string name="Content_Sports">Sport</string> + <string name="Content_Special_Event">Wydarzenia specjalne</string> + <string name="Content_Sport_Magazine">Magazyn sportowy</string> + <string name="Content_Football__Soccer">Biłka nożna</string> + <string name="Content_Tennis__Squash">Tenis/Squash</string> + <string name="Content_Team_Sports">Sporty drużynowe</string> + <string name="Content_Athletics">Lekkoatletyka</string> + <string name="Content_Motor_Sport">Sporty motorowe</string> + <string name="Content_Water_Sport">Sporty wodne</string> + <string name="Content_Winter_Sports">Sporty zimowe</string> + <string name="Content_Equestrian">Equestrian</string> + <string name="Content_Martial_Sports">Martial Sports</string> + <string name="Content_Childrens__Youth_Programme">Children\'s/Youth Programme</string> + <string name="Content_Preschool_Childrens_Programme">Pre-school Children\'s Programme</string> + <string name="Content_Entertainment_Programme_for_6_to_14">Entertainment Programme for 6 to 14</string> + <string name="Content_Entertainment_Programme_for_10_to_16">Entertainment Programme for 10 to 16</string> + <string name="Content_Informational__Educational__School_Programme">Informational/Educational/School Programme</string> + <string name="Content_Cartoons__Puppets">Cartoons/Puppets</string> + <string name="Content_Music__Ballet__Dance">Music/Ballet/Dance</string> + <string name="Content_Rock__Pop">Rock/Pop</string> + <string name="Content_Serious__Classical_Music">Serious/Classical Music</string> + <string name="Content_Folk__Tradional_Music">Folk/Tradional Music</string> + <string name="Content_Jazz">Jazz</string> + <string name="Content_Musical__Opera">Musical/Opera</string> + <string name="Content_Ballet">Ballet</string> + <string name="Content_Arts__Culture">Arts/Culture</string> + <string name="Content_Performing_Arts">Performing Arts</string> + <string name="Content_Fine_Arts">Fine Arts</string> + <string name="Content_Religion">Religion</string> + <string name="Content_Popular_Culture__Traditional_Arts">Popular Culture/Traditional Arts</string> + <string name="Content_Literature">Literature</string> + <string name="Content_Film__Cinema">Film/Cinema</string> + <string name="Content_Experimental_Film__Video">Experimental Film/Video</string> + <string name="Content_Broadcasting__Press">Broadcasting/Press</string> + <string name="Content_New_Media">New Media</string> + <string name="Content_Arts__Culture_Magazine">Arts/Culture Magazine</string> + <string name="Content_Fashion">Fashion</string> + <string name="Content_Social__Political__Economics">Social/Political/Economics</string> + <string name="Content_Magazine__Report__Documentary">Magazine/Report/Documentary</string> + <string name="Content_Economics__Social_Advisory">Economics/Social Advisory</string> + <string name="Content_Remarkable_People">Remarkable People</string> + <string name="Content_Education__Science__Factual">Education/Science/Factual</string> + <string name="Content_Nature__Animals__Environment">Nature/Animals/Environment</string> + <string name="Content_Technology__Natural_Sciences">Technology/Natural Sciences</string> + <string name="Content_Medicine__Physiology__Psychology">Medicine/Physiology/Psychology</string> + <string name="Content_Foreign_Countries__Expeditions">Foreign Countries/Expeditions</string> + <string name="Content_Social__Spiritual_Sciences">Social/Spiritual Sciences</string> + <string name="Content_Further_Education">Further Education</string> + <string name="Content_Languages">Languages</string> + <string name="Content_Leisure__Hobbies">Leisure/Hobbies</string> + <string name="Content_Tourism__Travel">Tourism/Travel</string> + <string name="Content_Handicraft">Handicraft</string> + <string name="Content_Motoring">Motoring</string> + <string name="Content_Fitness_and_Health">Fitness & Health</string> + <string name="Content_Cooking">Cooking</string> + <string name="Content_Advertisement__Shopping">Advertisement/Shopping</string> + <string name="Content_Gardening">Gardening</string> + <string name="Content_Original_Language">Original Language</string> + <string name="Content_Black_and_White">Black & White</string> + <string name="Content_Unpublished">Unpublished</string> + <string name="Content_Live_Broadcast">Live Broadcas</string> + <!-- EPG Content END --> + <string name="type_to_filter">type to filter</string> + <string name="drive_info">Free %1$s GB of %2$s GB (%3$s%%)</string> + <string name="drive_img">Drive</string> + <string name="sad_img">Sad</string> + <string name="search">Search</string> + <string name="clear_term_after_search_title">Clear Term after Search</string> + <string name="clear_term_after_search_summary_off">Search term remains after peforming search</string> + <string name="clear_term_after_search_summary_on">Term gets cleared after performing search</string> + <string name="drawer_open">Open navigation drawer</string> + <string name="drawer_close">Close navigation drawer</string> + <string name="action_websearch">Web search</string> + <string name="settings_smarttvweb_port_summary">VDR smarttvweb plugin has default port 8000</string> + <string name="settings_smarttvweb_port">Smarttvweb port</string> + <string name="recstream_smarttvweb_method_title">Smarttvweb Stream Type</string> + <string name="recstream_smarttvweb_method_summary">Supported methods: \'Progressive\', \'MPEG-DASH \/ OIPF HAS\', \'Apple HLS\'</string> + <string name="remote">Remote Control</string> + <string name="remote_enable_summary">Shows the remote control view if enabled</string> + <string name="remote_enable_title">Enable VDR remote control</string> + <string name="svdrp_port_title">SVDRP Port</string> + <string name="svdrp_port_summary">Default is 6419</string> +</resources> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-pl/timers.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-pl/timers.xml new file mode 100644 index 0000000..1f25a3a --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-pl/timers.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--Generated by crowdin.com--> +<resources> + <string name="timer_detail_title_title">Tytuł:</string> + <string name="timer_detail_channel_title">Kanał:</string> + <string name="timer_detail_start_title">Początek:</string> + <string name="timer_detail_end_title">Koniec:</string> + <string name="timer_details_create_title">Czas utworzenia</string> + <string name="timer_details_save_title">Zapisz zmiany</string> + <string name="timer_details_delete_title">Usuń timer</string> + <string name="timer_details_add_title">Utwórz nowy timer</string> + <string name="timer_details_modify_title">Zmień timer</string> +</resources> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-uk/strings.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-uk/strings.xml new file mode 100644 index 0000000..46dc34f --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values-uk/strings.xml @@ -0,0 +1,505 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--Generated by crowdin.com--> +<resources xmlns:tools="http://schemas.android.com/tools"> + <string name="action_menu_channels">Канали</string> + <string name="action_menu_timers">Таймери</string> + <string name="action_menu_recordings">Записи</string> + <string name="action_menu_epg">Список EPG</string> + <string name="action_menu_search">Пошук EPG</string> + <string name="action_menu_wakeup">Пробудження</string> + <string name="action_menu_remote">Remote</string> + <string name="app_name">VDR-менеджер</string> + <string name="channel_item_menu_epg">Показати EPG</string> + <string name="channel_item_menu_stream">Живий ефір</string> + <string name="channel_item_menu_hide">Сховати</string> + <string name="channel_item_menu_hide_permanent">Ховати постійно</string> + <string name="channel_group_menu_hide">Сховати</string> + <string name="channel_group_menu_hide_permanent">Ховати постійно</string> + <string name="menu_groupby">Групувати за</string> + <string name="groupby_group">Група</string> + <string name="groupby_provider">Постачальник</string> + <string name="groupby_name">Назва</string> + <string name="groupby_source">Джерело</string> + <string name="groupby_channel">За каналом</string> + <string name="groupby_date">За датою</string> + <string name="groupby_name_all_channels_group">Всі канали</string> + <string name="groupby_window_title_templte">Групувати за %1$s</string> + <string name="common_delete">Вилучити</string> + <string name="prefs_current_value">Поточний:</string> + <string name="prefs_current_value_template">\nПоточний: %1$s</string> + <string name="prefs_current_value_not_set"><не встановлено></string> + <string name="no_connection">Немає підключення</string> + <string name="aborted">Підключення перервано.</string> + <string name="no_connection_retry">Повторити</string> + <string name="refresh">Оновити</string> + <string name="done">Виконано</string> + <string name="share">Поділитися</string> + <string name="addtocal">Додати до календаря</string> + <string name="search_reapt">Перезапустити</string> + <string name="share_chooser">Поділитися текстом EPG</string> + <string name="about_text"> About \"VDR-Manager\" Software for Android\n + This is Version %1$s\n + If you have a VDR at home reachable + over the internet and own a mobile phone running Android then you possibly find this program useful. + For further details visit http://projects.vdr-developer.org/projects/vdr-manager/wiki. + Author:\n + bju<herrlado@gmail.com> + herrlado<herrlado@gmail.com></string> + <string name="about_title">Про програму</string> + <string name="no_internet_connection">Немає даних з’єднання</string> + <string name="update_will_start_in">Оновлення розпочнеться протягом однієї секунди</string> + <string name="epg_menu_search">Пошук EPG</string> + <string name="epg_menu_times">Пошук часів</string> + <string name="epg_item_menu_timer_add">Створити таймер</string> + <string name="epg_item_menu_timer_record">Запис</string> + <string name="epg_item_menu_timer_delete">Вилучити таймер</string> + <string name="epg_item_menu_timer_modify">Змінити таймер</string> + <string name="epg_item_menu_timer_enable">Увімкнути таймер</string> + <string name="epg_item_menu_timer_disable">Вимкнути таймер</string> + <string name="epg_no_items">Нічого не знайдено…</string> + <string name="epg_client_errors">Сталася помилка, перевірте журнали…</string> + <string name="navigae_at_the_end">Кінець</string> + <string name="navigae_at_the_start">Початок</string> + <string name="epg_search_times_add">Додати час</string> + <string name="epg_search_times_window">Час користувача</string> + <!-- What's on display --> + <string name="epg_list_time_label">А що зараз на</string> + <string name="epg_list_time_now">Зараз</string> + <string name="epg_list_time_next">Наступний</string> + <string name="epg_list_time_adhoc">Без точки доступу</string> + <string name="epg_list_channel_spinner">Канал</string> + <string name="epg_list_search_label">Результати пошуку</string> + <!-- create timer --> + <string name="epg_event_share_text">Поділитися</string> + <string name="epg_event_imdb_text">Пошук IMDb</string> + <string name="epg_event_omdb_text">Пошук OMDB</string> + <string name="epg_event_tmdb_text">TMDb пошук</string> + <string name="epg_eent_livetv_text">Потік</string> + <string name="epg_event_create_timer_text">Додати таймер</string> + <string name="epg_event_modify_timer_text">Змінити таймер</string> + <!-- search --> + <string name="epg_search_button">Пошук</string> + <string name="epg_duration_template">%1$s хв</string> + <string name="epg_duration_template_live">%1$s/%2$s хв</string> + <string name="epg_of_a_channel">%1$s, %2$s/%3$s</string> + <string name="epg_by_channel">EPG по каналу</string> + <string name="epg_by_search">Пошук EPG</string> + <string name="epg_by_search_param">Пошук EPG: \'%1$s\'</string> + <string name="epg_by_time">EPG по часу</string> + <string name="epg_by_time_args">EPG по часу: \'%1$s\'</string> + <string name="search_epg_hint">Пошук EPG</string> + <string name="epg_search_settings_description">Пошук VDR EPG</string> + <string name="epg_window_title_count">%1$s, %2$s елементів</string> + <string name="channels_window_title_count">%1$s, %2$s/%3$s</string> + <string name="new_timer">Новий таймер</string> + <string name="vdr_error_text">Зв\'язок з VDR викликав помилку: %1$s</string> + <string name="livetv">Прямий ефір</string> + <string name="settings_livetv_summary">Потрібен streamdev сервер на VDR і зовнішній програвач, наприклад VPlayer</string> + <string name="settings_livetv_streamformat">Формат потоку</string> + <string name="settings_livetv_port">Порт трансляції потоку</string> + <string name="settings_livetv_port_summary">Типово 3000. Доступ повинен бути включений в streamdevhosts.conf.</string> + <string-array name="livetv_streamformat"> + <item>TS</item> + <item>PES</item> + <item>ES</item> + <item>PS</item> + </string-array> + <string name="key_remux_enable">remux_enable</string> + <string name="key_remux_command">remux_command</string> + <string name="key_remux_parameter">remux_parameter</string> + <string name="stream_via_as">Потік</string> + <string name="stream_choose_audio">Вибір звукової доріжки</string> + <string name="stream_via">через %s</string> + <string name="stream_as">як %s</string> + <string name="remux_title">Remux</string> + <string name="remux_enable_title">Увімкнути Remux</string> + <string name="remux_enable_summary">Активувати потік через remux (тобто externremux.sh)</string> + <string name="remux_command_title">Команда</string> + <string name="remux_command_summary">Зазвичай EXT або Extern, наприклад http://vdr:3000/EXT/1</string> + <string name="remux_parameter_title">Параметр</string> + <string name="remux_parameter_summary">Контроль якості потокової трансляції. Наприклад http://vdr:3000/EXT;DSL1000/1</string> + <string name="main_menu_preferences">Уподобання</string> + <string name="main_menu_info">Інформація</string> + <string name="main_menu_exit">Вийти</string> + <string name="main_menu_goto">Перемикач пристроїв</string> + <string name="main_menu_goto_title">Перемкнутися до...</string> + <string name="main_menu_goto_no_vdr">Не вдається завантажити вибраний пристрій :(</string> + <string name="main_menu_switched_to">Перейшли до %1$s</string> + <string name="vdr_devices_summary">Визначити один або кілька пристроїв VDR.</string> + <string name="vdr_devices">Пристрої VDR</string> + <!-- VDR plugin preferences --> + <string name="vdr_preferences">Параметри мережі</string> + <string name="vdr_host_title">Вузол VDR</string> + <string name="vdr_host_summary">Вузол з запущеним VDR</string> + <string name="vdr_port_title">Порт додатку VDR </string> + <string name="vdr_port_summary">Порт для підключення до додатку VDR</string> + <string name="vdr_password_title">Пароль додатку VDR</string> + <string name="vdr_password_summary">Пароль для додатка VDR</string> + <string name="vdr_ssl_title">Безпечне підключення</string> + <string name="vdr_ssl_summary">Використовувати SSL для підключень (в даний час не підтримується)</string> + <!-- channel filter preferences --> + <string name="channel_filter_preferences">Налаштування каналу</string> + <string name="channel_filter_filter_title">Обмеження на канали</string> + <string name="channel_filter_filter_summary">Вокористовувати тільки дані канали</string> + <string name="channel_filter_last_title">Фільтр каналів</string> + <string name="channel_filter_last_summary">Розділені комами номери каналів або діапазони (роздільник \"-\"). Наприклад 1,2,4-10</string> + <!-- wakeup --> + <string name="wakeup_preferences">Пробудження віддаленого VDR</string> + <string name="wakeup_enabled_title">Може пробудити віддалений вузол VDR</string> + <string name="wakeup_enabled_summary">Дозволяє пробудити віддалений вузол VDR</string> + <string name="wakeup_url_title">URL-адреса для віддаленого пробудження</string> + <string name="wakeup_url_summary">URL-адреса для запиту пробудження</string> + <string name="wakeup_user_title">Користувач пробудження</string> + <string name="wakeup_user_summary">Користувач для віддаленого пробудження</string> + <string name="wakeup_password_title">Пароль пробудження</string> + <string name="wakeup_password_summary">Пароль для віддаленого пробудження</string> + <string name="wakeup_method_title">Метод пробудження</string> + <string name="wakeup_method_summary">Виберіть метод пробудження вузла VDR</string> + <string-array name="wakeup_methods"> + <item>Виклик URL</item> + <item>WOL (пробудження через інтернет)</item> + </string-array> + <string name="wakeup_wol_custom_boradcast_title">IP-адреса призначення</string> + <string name="wakeup_wol_custom_boradcast_summary">Якщо у Вас немає статичних таблиці ARP, Вам потрібно використовувати якусь широкомовну адресу.</string> + <string name="wakeup_wol_mac_title">MAC-адреса</string> + <string name="wakeup_wol_mac_summary">MAC-адреса вузла VDR. Використайте \':\' або \'-\' або пропуск як роздільник.</string> + <!-- timer --> + <string name="timer_preferences">Типовий таймер</string> + <string name="timer_pre_start_buffer_title">Зміщення при початку</string> + <string name="timer_pre_start_buffer_summary">Хвилини запису перед початком трансляції</string> + <string name="timer_post_end_buffer_title">Зміщення при зупинці</string> + <string name="timer_post_end_buffer_summary">Хвилини запису після закінчення трансляції</string> + <string name="timer_default_priority_title">Типовий пріоритет</string> + <string name="timer_default_priority_summary">Типовий пріоритет</string> + <string name="timer_default_primary_limit_title">Типове основне обмеження</string> + <string name="timer_default_primary_limit_summary">Типове основне обмеження</string> + <string name="timer_default_lifetime_title">Типова тривалість</string> + <string name="timer_default_lifetime_summary">Типова тривалість</string> + <string name="timer_already_exists">Timer already defined.</string> + <string name="timer_created">Timer created</string> + <!-- GUI --> + <string name="gui_preferences">Налаштування графічного інтерфейсу</string> + <string name="gui_enable_24h_format_title">Використання 24-годинного формату</string> + <string name="gui_enable_24h_format_summary_on">13:00</string> + <string name="gui_enable_24h_format_summary_off">1:00 вечора</string> + <string name="gui_channels_show_channel_numbers_title">Показати номери каналів</string> + <string name="gui_channels_show_channel_numbers_summary">Показати номери каналів у списку каналів.</string> + <string name="gui_quit_on_back_title">Вийти на кнопку \"Назад\"</string> + <string name="gui_quit_on_back_summary_on">Кнопки \"Назад\" завершує роботу VDR-менеджера</string> + <string name="gui_quit_on_back_summary_off">Кнопка \"Назад\" не завершує роботу VDR-менеджера</string> + <string name="qui_show_imdb_button_title">Показати кнопку IMDb</string> + <string name="qui_show_imdb_button_summary_on">Кнопка IMDb відображається</string> + <string name="qui_show_imdb_button_summary_off">Кнопка IMDb не відображається</string> + <string name="qui_imdb_url_title">Сторінка IMDb</string> + <string name="qui_imdb_url_summary">На якій сторінці IMDb шукати.</string> + <string name="qui_show_omdb_button_title">Показати кнопку OMDB</string> + <string name="qui_show_omdb_button_summary_on">Кнопка OMDB відображається</string> + <string name="qui_show_omdb_button_summary_off">Кнопка OMDB не відображається</string> + <string name="qui_show_tmdb_button_title">Показати кнопку TMDb</string> + <string name="qui_show_tmdb_button_summary_on">Кнопка TMDb відображається</string> + <string name="qui_show_tmdb_button_summary_off">Кнопка TMDb не відображається</string> + <string name="gui_custom_locale_title">Мова</string> + <string name="gui_custom_locale_sum">Встановити мову.</string> + <string-array name="imdb_urls"> + <item>Міжнародний</item> + <item>imdb.com</item> + <item>uk.imdb.com</item> + <item>imdb.de</item> + <item>imdb.es</item> + <item>imdb.fr</item> + <item>imdb.it</item> + <item>imdb.pt</item> + </string-array> + <string-array name="lang"> + <item>Англійська</item> + <item>Німецька</item> + <item>французька</item> + <item>Італійська</item> + <item>Польська</item> + <item>українська</item> + </string-array> + <string-array name="remux_entries"> + <item>EXT</item> + <item>EXTERN (не рекомендується)</item> + </string-array> + <string name="vdr_advanced_preferences">Додатково</string> + <string name="vdr_advanced_preferences_summary">Додаткові параметри</string> + <string name="vdr_conntimeout_title">Затримка з\'єднання</string> + <string name="vdr_conntimeout_sum">Як довго (в секундах) почекати, перш ніж встановиться підключення?</string> + <string name="vdr_readtimeout_title">Час очікування читання</string> + <string name="vdr_readtimeout_sum">Як довго (в секундах) очікувати для кожної операції читання рядка?</string> + <string name="vdr_timeout_title">Загальний час очікування</string> + <string name="vdr_timeout_sum">Як довго (в секундах) очікавати на операцію вводу/виводу, перш ніж вона перерветься?</string> + <string name="streaming_password_title">Пароль Streamdev</string> + <string name="streaming_password_sum">Встановити пароль користувача сервера потокового відео (наприклад: -a \'користувач:пароль\')</string> + <string name="streaming_username_title">Ім\'я користувача Streamdev</string> + <string name="streaming_username_sum">Встановити ім\'я користувача сервера потокового відео (наприклад: -a \'користувач:пароль\')</string> + <string name="vdr_encoding_title">Кодування символів</string> + <string name="vdr_encoding_summary">Кодування символів Вашого VDR пристрою. За замовчуванням UTF-8.</string> + <string name="new_vdr">Новий VDR</string> + <string name="no_vdr">Немає VDR пристроїв</string> + <string name="vdr_devices_category">Пристрої VDR</string> + <string name="vdr_prefs_category">Пристрій</string> + <string name="vdr_name_title">Назва</string> + <string name="vdr_name_summary">Назва для цього пристрою</string> + <string name="vdr_device_delete_qeustion">Вилучити цей пристрій?</string> + <string name="recstream">Потокове передавання записів</string> + <string name="recstream_enable_title">Потокове передавання записів</string> + <string name="recstream_enable_summary">Увімкнення потокового передавання записів</string> + <string-array name="recstream_entries"> + <item>додаток live</item> + <item>додаток streamdev</item> + <item>додаток smarttvweb</item> + </string-array> + <string-array name="recstream_smarttvweb_entries"> + <item>Прогресивне</item> + <item>MPEG-DASH</item> + <item>Apple HLS</item> + </string-array> + <string name="recstream_method_title">Метод передачі потоку</string> + <string name="recstream_method_summary">На даний час підтримується потокова трансляція за допомогою додатку VDR live і/або додатку streamdev</string> + <string name="settings_live_port">Порт додатка VDR live</string> + <string name="settings_live_port_summary">Додаток VDR live має стандартний порт 8008.</string> + <!-- progress --> + <string name="progress_connect">Підключення...</string> + <string name="progress_connect_error">Невдале з’єднання!</string> + <string name="progress_connect_timeout">Затримка з\'єднання!</string> + <string name="progress_login">Логін.</string> + <string name="progress_login_error">Увійти не вдалося.</string> + <string name="progress_whatson_loading">Завантаження EPG…</string> + <string name="progress_timers_loading">Завантаження таймерів…</string> + <string name="progress_recordings_loading">Завантаження записів…</string> + <string name="progress_switching">Перемикання…</string> + <string name="progress_channels_loading">Завантаження каналів…</string> + <string name="progress_loading">Завантаження…</string> + <string name="progress_disconnect">Відключення…</string> + <string name="progress_wakeup_sending">Ініціювання запиту пробудження…</string> + <string name="progress_wakeup_sent">Запит пробудження надісланий</string> + <string name="progress_wakeup_error">Помилка при відправці запиту пробудження: %1$s</string> + <string name="progress_timer_save">Збереження таймера...</string> + <string name="progress_timer_delete">Вилучення таймера...</string> + <string name="progress_recording_delete">Вилучення запису...</string> + <string name="progress_timer_enable">Включення таймера...</string> + <string name="progress_timer_modify">Оновлення таймера...</string> + <string name="progress_timer_disable">Відключення таймера...</string> + <string name="progress_connect_finished_abnormal">Зв’язок несподівано завершено</string> + <string name="progress_connect_finished_abnormal_arg">Зв’язок несподівано завершено: %1$s</string> + <string name="progress_cache_hit">Завантажено з кешу</string> + <string name="recording_item_menu_delete">Вилучити</string> + <string name="recording_item_menu_stream">Потік</string> + <string name="recent_channels">Недавні канали</string> + <string name="recent_channels_no_history">Немає історії...</string> + <string name="gui_max_recent_channels_title">Макс. к-сть недавніх каналів</string> + <string name="gui_max_recent_channels_summary">Скільки каналів повинно зберігатися в недавніх каналах?</string> + <string name="timer_detail_day_title">День</string> + <!-- + Repeat options that appear under an alarm on main Alarm Clock + screen to identify repetition schedule: special case for when + the alarm is set to repeat every day + --> + <string name="every_day">Щодня</string> + <!-- + Repeat options that appear under an alarm on main Alarm Clock + screen to identify repetition schedule: special case for when + the alarm is set to never repeat + --> + <string name="never">Ніколи</string> + <!-- + Repeat options that appear under an alarm on main Alarm Clock + screen to identify repetition schedule: concatenate days with + this character, i.e. "Mon, Tue, Wed" + --> + <string name="day_concat">", "</string> + <string name="timer_detail_repeat_title">Повторити</string> + <string name="timer_detail_use_vps">Використовувати VPS:</string> + <string name="timer_detail_priority">Пріоритет:</string> + <string name="timer_detail_lifetime">Термін служби:</string> + <string name="timer_detail_lifetime_hint">наприклад, 99</string> + <string name="timer_detail_priority_hint">наприклад, 50</string> + <string name="timer_detail_title_vps">%1$s (VPS)</string> + <string name="channel_item_menu_switch">Перейти до</string> + <string name="switching_success">Перейдено до %s</string> + <string name="switching_failed">Перехід до %1$s не вдався: %2$s</string> + <string name="switch_to_channel">Перейти до</string> + <string name="sort">Сортування</string> + <string name="sortby">Сортувати за</string> + <string name="sortby_time">Час</string> + <string name="sortby_channel">Канал</string> + <string name="sortby_alphabet">Абетка</string> + <string name="sortby_channellist">Список каналів</string> + <string name="main_menu_clear_search">Очищення історії пошуку</string> + <string name="vdr_host_not_defined">Сервер VDR не визначено</string> + <string name="processing">Обробка…</string> + <string-array name="recent_channels_order_entries"> + <item>В основному використовується</item> + <item>Останнє використання</item> + </string-array> + <string-array name="epg_sort_by_time_alpha"> + <item>Час</item> + <item>Абетка</item> + </string-array> + <string-array name="epg_sort_by_time_alpha_channel"> + <item>Час</item> + <item>Alphabet</item> + <item>Channel</item> + </string-array> + <string-array name="epg_sort_by_channels_alpha"> + <item>Channels</item> + <item>Alphabet</item> + </string-array> + <string-array name="recordings_group_by"> + <item>By Time</item> + <item>By Alphabet</item> + </string-array> + <string name="gui_recent_channels_order_summary">Sort by last used or mostly used</string> + <string name="gui_recent_channels_order_title">Recent Channels Sorting</string> + <string-array name="channels_group_by"> + <item>Group</item> + <item>Provider</item> + <item>Source</item> + <item>Name</item> + </string-array> + <string-array name="navigation_array"> + <item>Channels</item> + <item>EPG by Time</item> + <item>EPG by Channel</item> + <item>Recordings</item> + <item>Timers</item> + <item>Remote</item> + </string-array> + <string name="filter">Filter</string> + <string name="audio_tracks_template">Audio Tracks: %1$s</string> + <string name="audio_track_dolby">D</string> + <string name="vdr_timezone_summary">The time zone used on the server. It is important if you travel and modify timers from another time zone.</string> + <string name="vdr_timezone_title">Select server time zone</string> + <string name="zone_list_menu_sort_alphabetically">Sort alphabetically</string> + <string name="zone_list_menu_sort_by_timezone">Sort by time zone</string> + <string name="probing">Probing %1$s …</string> + <string name="no_results">No results…</string> + <string name="recording_started">Recording started</string> + <string name="set_time">Set time</string> + <!-- … --> + <!-- SSL related messages --> + <string name="certificate_problem_message_title">Certificate warning</string> + <string name="certificate_problem_message_text">The server certificate was not accepted:\n\n +Hostname:\n + %1$s\n +Valid from:\n + %2$s\n +Valid until:\n + %3$s\n\n +What do you want to do?</string> + <string name="certificate_accept_once">Accept once</string> + <string name="certificate_accepted_forever">Accept forever</string> + <string name="certificate_not_accepted">Abort</string> + <!-- EPG Content --> + <string name="Content_Movie__Drama">Movie/Drama</string> + <string name="Content_Detective__Thriller">Detective/Thriller</string> + <string name="Content_Adventure__Western__War">Adventure/Western/War</string> + <string name="Content_Science_Fiction__Fantasy__Horror">Science Fiction/Fantasy/Horror</string> + <string name="Content_Comedy">Comedy</string> + <string name="Content_Soap__Melodrama__Folkloric">Soap/Melodrama/Folkloric</string> + <string name="Content_Romance">Romance</string> + <string name="Content_Serious__Classical__Religious__Historical_Movie__Drama">Serious/Classical/Religious/Historical Movie/Drama</string> + <string name="Content_Adult_Movie__Drama">Adult Movie/Drama</string> + <string name="Content_News__Current_Affairs">News/Current Affairs</string> + <string name="Content_News__Weather_Report">News/Weather Report</string> + <string name="Content_News_Magazine">News Magazine</string> + <string name="Content_Documentary">Documentary</string> + <string name="Content_Discussion__Inverview__Debate">Discussion/Inverview/Debate</string> + <string name="Content_Show__Game_Show">Show/Game Show</string> + <string name="Content_Game_Show__Quiz__Contest">Game Show/Quiz/Contest</string> + <string name="Content_Variety_Show">Вар\'єте</string> + <string name="Content_Talk_Show">Ток-шоу</string> + <string name="Content_Sports">Спорт</string> + <string name="Content_Special_Event">Спеціальна подія</string> + <string name="Content_Sport_Magazine">Спортивний журнал</string> + <string name="Content_Football__Soccer">Футбол</string> + <string name="Content_Tennis__Squash">Теніс/сквош</string> + <string name="Content_Team_Sports">Командні види спорту</string> + <string name="Content_Athletics">Легка атлетика</string> + <string name="Content_Motor_Sport">Автоспорт</string> + <string name="Content_Water_Sport">Водний спорт</string> + <string name="Content_Winter_Sports">Зимові види спорту</string> + <string name="Content_Equestrian">Кінний спорт</string> + <string name="Content_Martial_Sports">Бойові мистецтва</string> + <string name="Content_Childrens__Youth_Programme">Дитяча/молодіжна програма</string> + <string name="Content_Preschool_Childrens_Programme">Програма для дітей дошкільного віку</string> + <string name="Content_Entertainment_Programme_for_6_to_14">Розважальна програма для 6-14 років</string> + <string name="Content_Entertainment_Programme_for_10_to_16">Розважальна програма для 10-16 років</string> + <string name="Content_Informational__Educational__School_Programme">Інформаційна/освітня/шкільна програма</string> + <string name="Content_Cartoons__Puppets">Мультфільми/маріонетки</string> + <string name="Content_Music__Ballet__Dance">Music/Ballet/Dance</string> + <string name="Content_Rock__Pop">Rock/Pop</string> + <string name="Content_Serious__Classical_Music">Serious/Classical Music</string> + <string name="Content_Folk__Tradional_Music">Folk/Tradional Music</string> + <string name="Content_Jazz">Jazz</string> + <string name="Content_Musical__Opera">Musical/Opera</string> + <string name="Content_Ballet">Ballet</string> + <string name="Content_Arts__Culture">Arts/Culture</string> + <string name="Content_Performing_Arts">Performing Arts</string> + <string name="Content_Fine_Arts">Fine Arts</string> + <string name="Content_Religion">Religion</string> + <string name="Content_Popular_Culture__Traditional_Arts">Popular Culture/Traditional Arts</string> + <string name="Content_Literature">Literature</string> + <string name="Content_Film__Cinema">Film/Cinema</string> + <string name="Content_Experimental_Film__Video">Experimental Film/Video</string> + <string name="Content_Broadcasting__Press">Broadcasting/Press</string> + <string name="Content_New_Media">New Media</string> + <string name="Content_Arts__Culture_Magazine">Arts/Culture Magazine</string> + <string name="Content_Fashion">Fashion</string> + <string name="Content_Social__Political__Economics">Social/Political/Economics</string> + <string name="Content_Magazine__Report__Documentary">Magazine/Report/Documentary</string> + <string name="Content_Economics__Social_Advisory">Economics/Social Advisory</string> + <string name="Content_Remarkable_People">Remarkable People</string> + <string name="Content_Education__Science__Factual">Education/Science/Factual</string> + <string name="Content_Nature__Animals__Environment">Nature/Animals/Environment</string> + <string name="Content_Technology__Natural_Sciences">Technology/Natural Sciences</string> + <string name="Content_Medicine__Physiology__Psychology">Medicine/Physiology/Psychology</string> + <string name="Content_Foreign_Countries__Expeditions">Foreign Countries/Expeditions</string> + <string name="Content_Social__Spiritual_Sciences">Social/Spiritual Sciences</string> + <string name="Content_Further_Education">Further Education</string> + <string name="Content_Languages">Languages</string> + <string name="Content_Leisure__Hobbies">Leisure/Hobbies</string> + <string name="Content_Tourism__Travel">Tourism/Travel</string> + <string name="Content_Handicraft">Handicraft</string> + <string name="Content_Motoring">Motoring</string> + <string name="Content_Fitness_and_Health">Fitness & Health</string> + <string name="Content_Cooking">Cooking</string> + <string name="Content_Advertisement__Shopping">Advertisement/Shopping</string> + <string name="Content_Gardening">Gardening</string> + <string name="Content_Original_Language">Original Language</string> + <string name="Content_Black_and_White">Black & White</string> + <string name="Content_Unpublished">Unpublished</string> + <string name="Content_Live_Broadcast">Live Broadcast</string> + <!-- EPG Content END --> + <string name="type_to_filter">type to filter</string> + <string name="drive_info">Free %1$s GB of %2$s GB (%3$s%%)</string> + <string name="drive_img">Drive</string> + <string name="sad_img">Sad</string> + <string name="search">Search</string> + <string name="clear_term_after_search_title">Clear Term after Search</string> + <string name="clear_term_after_search_summary_off">Search term remains after peforming search</string> + <string name="clear_term_after_search_summary_on">Term gets cleared after performing search</string> + <string name="drawer_open">Open navigation drawer</string> + <string name="drawer_close">Close navigation drawer</string> + <string name="action_websearch">Web search</string> + <string name="settings_smarttvweb_port_summary">VDR smarttvweb plugin has default port 8000</string> + <string name="settings_smarttvweb_port">Smarttvweb port</string> + <string name="recstream_smarttvweb_method_title">Smarttvweb Stream Type</string> + <string name="recstream_smarttvweb_method_summary">Supported methods: \'Progressive\', \'MPEG-DASH \/ OIPF HAS\', \'Apple HLS\'</string> + <string name="remote">Remote Control</string> + <string name="remote_enable_summary">Shows the remote control view if enabled</string> + <string name="remote_enable_title">Enable VDR remote control</string> + <string name="svdrp_port_title">SVDRP Port</string> + <string name="svdrp_port_summary">Default is 6419</string> + <string name="label">Label</string> + <string name="hitkcommand">HITK Command</string> + <string name="menu_reset">Reset</string> + <string name="menu_exprt">Export</string> + <string name="menu_imprt">Import</string> + <string name="menu_remapback">\'Back\' is \'Back\' HITK</string> + <string name="remapback_hint">Longpress on Back Button to leave the remote.</string> + <string name="not_yet_implemented">Not Yet Implemented</string> + <string name="timer_error">Can not create timer: %1$s</string> +</resources> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/arrays.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/arrays.xml new file mode 100644 index 0000000..c0398bd --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/arrays.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <string-array name="wakeup_methods_values"> + <item>url</item> + <item>wol</item> + </string-array> + <string-array name="lang_values"> + <item>en</item> + <item>de</item> + <item>fr</item> + <item>it</item> + <item>pl</item> + <item>uk</item> + </string-array> + + <string-array name="remux_entry_values"> + <item>EXT</item> + <item>EXTERN</item> + </string-array> + + <string-array name="imdb_urls_velues"> + <item>akas.imdb.com</item> + <item>imdb.com</item> + <item>uk.imdb.com</item> + <item>imdb.de</item> + <item>imdb.es</item> + <item>imdb.fr</item> + <item>imdb.it</item> + <item>imdb.pt</item> + </string-array> + + + <string-array name="recstream_entry_values"> + <item>vdr-live</item> + <item>vdr-streamdev</item> + <item>vdr-smarttvweb</item> + </string-array> + + <string-array name="recent_channels_order_entry_values"> + <item>most</item> + <item>last</item> + </string-array> + <array name="recstream_smarttvweb_entry_values"> + <item>progressive</item> + <item>has</item> + <item>hls</item> + </array> + + + + +</resources>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/attrs.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/attrs.xml new file mode 100644 index 0000000..5c07b63 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/attrs.xml @@ -0,0 +1,86 @@ +<?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> + + <declare-styleable name="ColoredButton"> + <attr name="normalStateColor" format="string" /> + <attr name="cornerRadius" format="dimension" /> + </declare-styleable> + <declare-styleable name="SearchableSpinner"> + <attr name="list" format="reference" /> + </declare-styleable> +</resources> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/backup.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/backup.xml new file mode 100644 index 0000000..35c7d97 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/backup.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <string name="generic_progress_title" translation_description="The title on a progress dialog asking the user to wait."> Please wait...</string> + <string name="generic_confirm_title" translation_description="The title on a confirmation dialog asking the user if he is sure?"> Are you sure?</string> + + <!-- SD Card --> + <string name="sd_card_canceled" translation_description="When importing/saving to the SD card, the message indicating that the + operation was canceled."> The operation was canceled.</string> + <string name="sd_card_error_no_storage" translation_description="When importing/saving to the SD card, the error message indicating that + no SD card is found."> No SD card is found.</string> + <string name="sd_card_import_error" translation_description="When importing from the SD card, the error message indicating not able + to import."> Unable to import from SD card.</string> + <string name="sd_card_import_error_no_file" translation_description="When importing from the SD card, the error message indicating that no + file is found on a SD card directory. + + %1$s: the SD card directory. E.g., '/mnt/sdcard/mybillingbuddy/'."> No file found in %1$s.</string> + <string name="sd_card_import_progress_message" translation_description="When importing from the SD card, the progress message."> Importing from SD card...</string> + <string name="sd_card_import_success" translation_description="When importing from the SD card, the success message."> Finished importing from SD card.</string> + <string name="sd_card_save_error" translation_description="When saving to the SD card, the error message indicating not able to + save."> Unable to save to SD card.</string> + <string name="sd_card_save_error_create_dir" translation_description="When saving to the SD card, the error message indicating not able to + create a directory on the SD card."> Unable to create a directory on SD card.</string> + <string name="sd_card_save_progress_message" translation_description="When saving to the SD card, the progress message."> Saving to SD card...</string> + <string name="sd_card_save_success" translation_description="When saving to the SD card, the success message"> Finished saving to SD card.</string> + <!-- Settings Backup --> + + <string name="settings_backup_summary">Backup/Restore your data and settings</string> + <string name="settings_backup_now" translation_description="In the 'Backup' settings, under the 'SD card' section, the + option to backup to the SD card now. + + Character limit: ~26 (1 line)"> Backup now</string> + <string name="settings_backup_now_summary">Creates a snapshot of the current data and the settings</string> + <string name="settings_backup_now_progress_message" translation_description="In the 'Backup' settings, after pressing the 'Backup now' option, the + progress message telling the user that it is writing all data and settings to the SD card."> Writing all data and settings...</string> + <string name="settings_backup_restore" translation_description="In the 'Backup' settings, under the 'SD card' section, the + option to restore everything from the SD card. + + Character limit: ~26 (1 line)"> Restore now</string> + <string name="settings_backup_restore_summary">Restore a snapshot of the settings and the data</string> + <!-- Settings Backup --> + <string name="settings_backup" translation_description="In the 'Settings' page, the option to change the data backup related + settings. + + Character limit: ~26 (1 line)"> Backup</string> + <string name="settings_backup_restore_confirm_message" translation_description="In the 'Backup' settings, after pressing the 'Restore now' option, the + message in the alert dialog asking the user to confirm that he wants to restore from a backup + and it will overwrite all the current data and settings."> Restoring a backup from the SD card will overwrite all your current data and settings.</string> + <string name="settings_backup_restore_no_backup" translation_description="In the 'Backup' settings, after pressing the 'Restore now' option, the + message in the alert dialog informing the user that there is no backup to restore from."> No backup found.</string> + <string name="settings_backup_restore_progress_message" translation_description="In the 'Backup' settings, after pressing the 'Restore now' option, the + progress message informing that My Billinbg Buddy is reading all data and settings from the backup + on the SD card."> Reading all data and settings...</string> + <string name="settings_backup_restore_select_title" translation_description="In the 'Backup' settings, after pressing the 'Restore now' option, the + title in the picker dialog asking the user to select a backup."> Select a backup to restore</string> + <string name="settings_backup_key">settingsBackup</string> + <string name="settings_backup_now_key">settingsBackupNow</string> + <string name="settings_backup_restore_key">settingsBackupRestore</string> + <string name="choose">Choose a backup file</string> + +</resources>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/colors.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/colors.xml new file mode 100644 index 0000000..4a6db26 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/colors.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <color name="black">#000</color> + <color name="white">#fff</color> + + <color name="red">#F00</color> + <color name="green">#008000</color> + <color name="yellow">#FFFF00</color> + <color name="blue">#0000FF</color> + +</resources>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/defaults.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/defaults.xml new file mode 100644 index 0000000..d78ad73 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/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/de.bjusystems.vdrmanager/src/main/res/values/integers.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/integers.xml new file mode 100644 index 0000000..807a6a9 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/integers.xml @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <integer name="svdrp_default_port">6419</integer> +</resources> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/no_translate.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/no_translate.xml new file mode 100644 index 0000000..d416c8b --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/no_translate.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <string name="default_wakeup_method">wol</string> + <string name="vdr_port_default">6420</string> + + <string-array name="livetv_streamformat_values"> + <item>TS</item> + <item>PES</item> + <item>ES</item> + <item>PS</item> + </string-array> + + <string name="vdr_stream_proxy_key">key_vdr_stream_proxy</string> + <string name="timezone_key">key_timezone</string> + +</resources>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/preferences_keys.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/preferences_keys.xml new file mode 100644 index 0000000..1512b76 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/preferences_keys.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <string name="vdr_host_key">vdr_host</string> + <string name="vdr_name_key">vdr_name</string> + <string name="vdr_port_key">vdr_port </string> + <string name="vdr_password_key">vdr_password</string> + <string name="vdr_ssl_key">vdr_secure</string> + <string name="vdr_stream_format">stream_format</string> + <string name="vdr_stream_port">stream_port</string> + + <string name="alive_check_enabled_key">alive_check_enabled</string> + <string name="alive_check_interval_key">alive_check_interval</string> + + <string name="channel_filter_filter_key">limit_channels</string> + <string name="channel_filter_last_key">last_channel</string> + + + <string name="timer_pre_start_buffer_key">timer_pre_start_buffer</string> + <string name="timer_post_end_buffer_key">timer_post_end_buffer</string> + <string name="timer_default_priority_key">timer_default_priority</string> + <string name="timer_default_primary_limit_key">timer_default_primary_limit</string> + <string name="timer_default_lifetime_key">timer_default_lifetime</string> + + <string name="epg_search_times_key">epg_search_times</string> + <string name="current_vdr_id_key">key_current_vdr_id</string> + + + <string name="streaming_password_key">key_streaming_password</string> + <string name="streaming_username_key">key_streaming_username</string> + <string name="vdr_encoding_key">key_vdr_encoding</string> + + <string name="wakeup_enabled_key">key_wakeup_enabled</string> + <string name="wakeup_url_key">key_wakeup_url</string> + <string name="wakeup_user_key">key_wakeup_user</string> + <string name="wakeup_password_key">key_wakeup_password</string> + <string name="wakeup_method_key">key_wakeup_method</string> + <string name="wakeup_wol_custom_broadcast_key">key_wol_custom_broadcast</string> + <string name="wakeup_wol_mac_key">key_wakeup_wol_mac</string> + + + <string name="gui_enable_24h_format_key">key_enable_24h</string> + <string name="gui_channels_show_channel_numbers_key">key_channels_show_channel_numbers</string> + <string name="qui_quit_on_back_key">key_gui_quit_on_back</string> + <string name="qui_show_imdb_button_key">key_qui_show_imdb_button</string> + <string name="qui_show_omdb_button_key">key_qui_show_omdb_button</string> + <string name="qui_show_tmdb_button_key">key_qui_show_tmdb_button</string> + <string name="qui_imdb_url_key">key_qui_imdb_url</string> + <string name="gui_custom_locale_key">key_gui_custom_locale</string> + + + <string name="vdr_conntimeout_key">key_conntimeout_key</string> + <string name="vdr_readtimeout_key">key_vdr_readtimeout</string> + <string name="vdr_timeout_key">key_vdr_timeout</string> + + <string name="gui_max_recent_channels_key">key_gui_max_recent_channels</string> + <string name="clear_term_after_search_key">key_clear_term_after_search</string> +</resources> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/strings.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/strings.xml new file mode 100644 index 0000000..ec417e0 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/strings.xml @@ -0,0 +1,560 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources xmlns:tools="http://schemas.android.com/tools"> + + <string name="action_menu_channels">Channels</string> + <string name="action_menu_timers">Timers</string> + <string name="action_menu_recordings">Recordings</string> + <string name="action_menu_epg">EPG list</string> + <string name="action_menu_search">EPG search</string> + <string name="action_menu_wakeup">Wakeup</string> + <string name="action_menu_remote">Remote</string> + <string name="app_name">VDR-Manager</string> + <string name="channel_item_menu_epg">Show EPG</string> + <string name="channel_item_menu_stream">Live stream</string> + <string name="channel_item_menu_hide">Hide</string> + <string name="channel_item_menu_hide_permanent">Hide permanent</string> + <string name="channel_group_menu_hide">Hide</string> + <string name="channel_group_menu_hide_permanent">Hide permanent</string> + <string name="menu_groupby">Group by</string> + <string name="groupby_group">Group</string> + <string name="groupby_provider">Provider</string> + <string name="groupby_name">Name</string> + <string name="groupby_source">Source</string> + <string name="groupby_channel">By Channel</string> + <string name="groupby_date">By Date</string> + <string name="groupby_name_all_channels_group">All Channels</string> + <string name="groupby_window_title_templte">Group by %1$s</string> + <string name="common_delete">Delete</string> + <string name="prefs_current_value">Current:</string> + <string name="prefs_current_value_template">\nCurrent: %1$s</string> + <string name="prefs_current_value_not_set"><not set></string> + <string name="no_connection">No connection</string> + <string name="aborted">Connection aborted.</string> + <string name="no_connection_retry">Retry</string> + <string name="refresh">Refresh</string> + <string name="done">Done</string> + <string name="share">Share</string> + <string name="addtocal">Add to calendar</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 + This is Version %1$s\n + If you have a VDR at home reachable + over the internet and own a mobile phone running Android then you possibly find this program useful. + For further details visit http://projects.vdr-developer.org/projects/vdr-manager/wiki. + Author:\n + bju<herrlado@gmail.com> + herrlado<herrlado@gmail.com> + </string> + <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> + <string name="epg_menu_search">Search EPG</string> + <string name="epg_menu_times">Search times</string> + <string name="epg_item_menu_timer_add">Create timer</string> + <string name="epg_item_menu_timer_record">Record</string> + <string name="epg_item_menu_timer_delete">Delete timer</string> + <string name="epg_item_menu_timer_modify">Modify timer</string> + <string name="epg_item_menu_timer_enable">Enable timer</string> + <string name="epg_item_menu_timer_disable">Disable timer</string> + <string name="epg_no_items">Nothing found…</string> + <string name="epg_client_errors">An error occurred, check logs…</string> + <string name="navigae_at_the_end">End</string> + <string name="navigae_at_the_start">Beginning</string> + <string name="epg_search_times_add">Add time</string> + <string name="epg_search_times_window">Custom times</string> + + <!-- What's on display --> + <string name="epg_list_time_label">What\'s on at</string> + <string name="epg_list_time_now">Now</string> + <string name="epg_list_time_next">Next</string> + <string name="epg_list_time_adhoc">Ad Hoc</string> + <string name="epg_list_channel_spinner">Channel</string> + <string name="epg_list_search_label">Search results</string> + + <!-- create timer --> + <string name="epg_event_share_text">Share</string> + <string name="epg_event_imdb_text">IMDb Search</string> + <string name="epg_event_omdb_text">OMDB Search</string> + <string name="epg_event_tmdb_text">TMDb Search</string> + <string name="epg_eent_livetv_text">Stream</string> + <string name="epg_event_create_timer_text">Add timer</string> + <string name="epg_event_modify_timer_text">Modify timer</string> + + <!-- search --> + <string name="epg_search_button">Search</string> + <string name="epg_duration_template">%1$s min</string> + <string name="epg_duration_template_live">%1$s/%2$s min</string> + <string name="epg_of_a_channel">%1$s, %2$s/%3$s</string> + <string name="epg_by_channel">EPG by channel</string> + <string name="epg_by_search">EPG Search</string> + <string name="epg_by_search_param">EPG Search: \'%1$s\'</string> + <string name="epg_by_time">EPG by time</string> + <string name="epg_by_time_args">EPG by time: \'%1$s\'</string> + <string name="search_epg_hint">Search EPG</string> + <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> + <string name="vdr_error_text">The communication with VDR has caused an error: %1$s</string> + <string name="livetv">Live TV</string> + <string name="settings_livetv_summary">Needs streamdev-server on VDR and an external + player such as VPlayer + </string> + <string name="settings_livetv_streamformat">Streamformat</string> + <string name="settings_livetv_port">Streaming Port</string> + <string name="settings_livetv_port_summary">Default 3000. The access must be enabled in + streamdevhosts.conf. + </string> + + <string-array name="livetv_streamformat"> + <item>TS</item> + <item>PES</item> + <item>ES</item> + <item>PS</item> + </string-array> + + <string name="key_remux_enable">remux_enable</string> + <string name="key_remux_command">remux_command</string> + <string name="key_remux_parameter">remux_parameter</string> + <string name="stream_via_as">Stream</string> + <string name="stream_choose_audio">Choose Audio Track</string> + <string name="stream_via">via %s</string> + <string name="stream_as">as %s</string> + <string name="remux_title">Remux</string> + <string name="remux_enable_title">Enable Remux</string> + <string name="remux_enable_summary">Enable streaming via remux (e.g. externremux.sh)</string> + <string name="remux_command_title">Command</string> + <string name="remux_command_summary">Typically EXT or Extern e.g. http://vdr:3000/EXT/1</string> + <string name="remux_parameter_title">Parameter</string> + <string name="remux_parameter_summary">Control Streaming quality. E.g. http://vdr:3000/EXT;DSL1000/1</string> + <string name="main_menu_preferences">Preferences</string> + <string name="main_menu_info">Info</string> + <string name="main_menu_exit">Exit</string> + <string name="main_menu_goto">Switch Device</string> + <string name="main_menu_goto_title">Switch to…</string> + <string name="main_menu_goto_no_vdr">Can not load selected device :(</string> + <string name="main_menu_switched_to">Switched to %1$s</string> + <string name="vdr_devices_summary">Define one or more VDR Devices.</string> + <string name="vdr_devices">VDR Devices</string> + + <!-- VDR plugin preferences --> + <string name="vdr_preferences">Network settings</string> + <string name="vdr_host_title">VDR host</string> + <string name="vdr_host_summary">Host running VDR</string> + <string name="vdr_port_title">VDR plugin port</string> + <string name="vdr_port_summary">Port for connections to VDR plugin</string> + <string name="vdr_password_title">VDR plugin password</string> + <string name="vdr_password_summary">Password for the VDR plugin</string> + <string name="vdr_ssl_title">Secure connect</string> + <string name="vdr_ssl_summary">Use SSL for connections</string> + + <!-- channel filter preferences --> + <string name="channel_filter_preferences">Channel settings</string> + <string name="channel_filter_filter_title">Limit channels</string> + <string name="channel_filter_filter_summary">Use only given channels</string> + <string name="channel_filter_last_title">Channel filter</string> + <string name="channel_filter_last_summary">Comma separated channelnumbers or ranges (separator \'-\'). A.e. 1,2,4-10 + </string> + + <!-- wakeup --> + <string name="wakeup_preferences">Remote VDR host wakeup</string> + <string name="wakeup_enabled_title">Can remote wakeup VDR</string> + <string name="wakeup_enabled_summary">Enables to remote wakeup the VDR host</string> + <string name="wakeup_url_title">URL for remote wakeup</string> + <string name="wakeup_url_summary">URL for a request doing the wakeup</string> + <string name="wakeup_user_title">Wakeup user</string> + <string name="wakeup_user_summary">User for remote wakeup</string> + <string name="wakeup_password_title">Wakeup password</string> + <string name="wakeup_password_summary">Password for remote wakeup</string> + <string name="wakeup_method_title">Wakeup method</string> + <string name="wakeup_method_summary">Choose a method to wakeup the vdr host</string> + + <string-array name="wakeup_methods"> + <item>Call a URL</item> + <item>WOL</item> + </string-array> + + <string name="wakeup_wol_custom_boradcast_title">Destination IP address</string> + <string name="wakeup_wol_custom_boradcast_summary">Unless you have static ARP tables you should use some kind of + broadcast address. + </string> + <string name="wakeup_wol_mac_title">MAC-Address</string> + <string name="wakeup_wol_mac_summary">MAC-Address of the VDR host. Use \':\' or \'-\' or a space as separator.</string> + + <!-- timer --> + <string name="timer_preferences">Timer defaults</string> + <string name="timer_pre_start_buffer_title">Margin at start</string> + <string name="timer_pre_start_buffer_summary">Minutes recording starts before the beginning of + the broadcast + </string> + <string name="timer_post_end_buffer_title">Margin at stop</string> + <string name="timer_post_end_buffer_summary">Minutes recording stops after the end of the + broadcast + </string> + <string name="timer_default_priority_title">Default priority</string> + <string name="timer_default_priority_summary">Default priority</string> + <string name="timer_default_primary_limit_title">Default primary limit</string> + <string name="timer_default_primary_limit_summary">Default primary limit</string> + <string name="timer_default_lifetime_title">Default lifetime</string> + <string name="timer_default_lifetime_summary">Default lifetime</string> + <string name="timer_already_exists">Timer already defined.</string> + <string name="timer_created">Timer created</string> + + + <!-- GUI --> + <string name="gui_preferences">GUI Settings</string> + <string name="gui_enable_24h_format_title">Use 24-hour format</string> + <string name="gui_enable_24h_format_summary_on">13:00</string> + <string name="gui_enable_24h_format_summary_off">1:00 PM</string> + <string name="gui_channels_show_channel_numbers_title">Show channel numbers</string> + <string name="gui_channels_show_channel_numbers_summary">Show channel numbers in the channel list.</string> + <string name="gui_quit_on_back_title">Quit on back button</string> + <string name="gui_quit_on_back_summary_on">Back button quits the VDR-Manager</string> + <string name="gui_quit_on_back_summary_off">Back button does not quit VDR-Manager</string> + <string name="qui_show_imdb_button_title">Show IMDb Button</string> + <string name="qui_show_imdb_button_summary_on">IMDb Button is shown</string> + <string name="qui_show_imdb_button_summary_off">IMDb Button is not shown</string> + <string name="qui_imdb_url_title">IMDb Site</string> + <string name="qui_imdb_url_summary">Which IMDb site to search.</string> + <string name="qui_show_omdb_button_title">Show OMDB Button</string> + <string name="qui_show_omdb_button_summary_on">OMDB Button is shown</string> + <string name="qui_show_omdb_button_summary_off">OMDB Button is not shown</string> + <string name="qui_show_tmdb_button_title">Show TMDb Button</string> + <string name="qui_show_tmdb_button_summary_on">TMDb Button is shown</string> + <string name="qui_show_tmdb_button_summary_off">TMDb Button is not shown</string> + <string name="gui_custom_locale_title">Custom language</string> + <string name="gui_custom_locale_sum">Set a custom language.</string> + + <string-array name="imdb_urls"> + <item>International</item> + <item>imdb.com</item> + <item>uk.imdb.com</item> + <item>imdb.de</item> + <item>imdb.es</item> + <item>imdb.fr</item> + <item>imdb.it</item> + <item>imdb.pt</item> + </string-array> + <string-array name="lang"> + + <!-- <item>Default language</item> --> + <item>English</item> + <item>German</item> + <item>French</item> + <item>Italian</item> + <item>Polish</item> + <item>Ukrainian</item> + </string-array> + <string-array name="remux_entries"> + <item>EXT</item> + <item>EXTERN (deprecated)</item> + </string-array> + + <string name="vdr_advanced_preferences">Advanced</string> + <string name="vdr_advanced_preferences_summary">Advanced settings</string> + <string name="vdr_conntimeout_title">Connection Timeout</string> + <string name="vdr_conntimeout_sum">How long (in seconds) to wait before the connection is established?</string> + <string name="vdr_readtimeout_title">Read Timeout</string> + <string name="vdr_readtimeout_sum">How long (in seconds) to wait for every read line operation?</string> + <string name="vdr_timeout_title">Total timeout</string> + <string name="vdr_timeout_sum">How long (in seconds) to wait for a whole I/O operation, before it gets aborted? + </string> + <string name="streaming_password_title">Streamdev password</string> + <string name="streaming_password_sum">Set your streamdev server password. (a.e. -a \'username:password\')</string> + <string name="streaming_username_title">Streamdev username</string> + <string name="streaming_username_sum">Set your streamdev server username. (a.e. -a \'username:password\')</string> + <string name="vdr_encoding_title">Character encoding</string> + <string name="vdr_encoding_summary">Character encoding of your VDR device. Default is utf-8.</string> + <string name="new_vdr">New VDR</string> + <string name="no_vdr">No VDR Devices</string> + <string name="vdr_devices_category">VDR devices</string> + <string name="vdr_prefs_category">Device</string> + <string name="vdr_name_title">Name</string> + <string name="vdr_name_summary">A name for this device</string> + <string name="vdr_device_delete_qeustion">Delete this device?</string> + <string name="recstream">Streaming of recordings</string> + <string name="recstream_enable_title">Streaming of recordings</string> + <string name="recstream_enable_summary">Enable Streaming of recordings</string> + + <string-array name="recstream_entries"> + <item>live plugin</item> + <item>streamdev plugin</item> + <item>smarttvweb plugin</item> + </string-array> + + + <string-array name="recstream_smarttvweb_entries"> + <item>Progressive</item> + <item>MPEG-DASH</item> + <item>Apple HLS</item> + </string-array> + + <string name="recstream_method_title">Streaming method</string> + <string name="recstream_method_summary">Currently Streaming over VDR live and or streamdev plugin is supported</string> + <string name="settings_live_port">VDR live plugin port</string> + <string name="settings_live_port_summary">VDR live plugin has default port 8008.</string> + + <!-- progress --> + <string name="progress_connect">Connecting…</string> + <string name="progress_connect_error">Connection failed!</string> + <string name="progress_connect_timeout">Connection timeout!</string> + <string name="progress_login">Login.</string> + <string name="progress_login_error">Login failed.</string> + <string name="progress_whatson_loading">Loading EPG…</string> + <string name="progress_timers_loading">Loading timers…</string> + <string name="progress_recordings_loading">Loading recordings…</string> + <string name="progress_switching">Switching…</string> + <string name="progress_channels_loading">Loading channels…</string> + <string name="progress_loading">Loading…</string> + <string name="progress_disconnect">Disconnecting…</string> + <string name="progress_wakeup_sending">Initiating wakeup request…</string> + <string name="progress_wakeup_sent">Wakeup request sent</string> + <string name="progress_wakeup_error">Error sending wakeup request: %1$s</string> + <string name="progress_timer_save">Saving timer…</string> + <string name="progress_timer_delete">Deleting timer…</string> + <string name="progress_recording_delete">Deleting recording…</string> + <string name="progress_timer_enable">Enabling timer…</string> + <string name="progress_timer_modify">Updating timer…</string> + <string name="progress_timer_disable">Disabling timer…</string> + <string name="progress_connect_finished_abnormal">Connection finished abnormal</string> + <string name="progress_connect_finished_abnormal_arg">Connection finished abnormal: %1$s</string> + <string name="progress_cache_hit">Loaded from cache.</string> + <string name="recording_item_menu_delete">Delete</string> + <string name="recording_item_menu_stream">Stream</string> + <string name="recent_channels">Recent channels</string> + <string name="recent_channels_no_history">No history…</string> + <string name="gui_max_recent_channels_title">Max. recent channels</string> + <string name="gui_max_recent_channels_summary">How many channels should be kept in the recent channels?</string> + <string name="timer_detail_day_title">Day</string> + + <!-- + Repeat options that appear under an alarm on main Alarm Clock + screen to identify repetition schedule: special case for when + the alarm is set to repeat every day + --> + <string name="every_day">Every day</string> + + <!-- + Repeat options that appear under an alarm on main Alarm Clock + screen to identify repetition schedule: special case for when + the alarm is set to never repeat + --> + <string name="never">Never</string> + + <!-- + Repeat options that appear under an alarm on main Alarm Clock + screen to identify repetition schedule: concatenate days with + this character, i.e. "Mon, Tue, Wed" + --> + <string name="day_concat">", "</string> + <string name="timer_detail_repeat_title">Repeat</string> + <string name="timer_detail_use_vps">Use VPS:</string> + <string name="timer_detail_priority">Priority:</string> + <string name="timer_detail_lifetime">Lifetime:</string> + <string name="timer_detail_lifetime_hint">e.g. 99</string> + <string name="timer_detail_priority_hint">e.g. 50</string> + <string name="timer_detail_title_vps">%1$s (VPS)</string> + <string name="channel_item_menu_switch">Switch to</string> + <string name="switching_success">Switched to %s</string> + <string name="switching_failed">Switching to %1$s failed: %2$s</string> + <string name="switch_to_channel">Switch to</string> + <string name="sort">Sort</string> + <string name="sortby">Sort by</string> + <string name="sortby_time">Time</string> + <string name="sortby_channel">Channel</string> + <string name="sortby_alphabet">Alphabet</string> + <string name="sortby_channellist">Chanellist</string> + <string name="main_menu_clear_search">Clear Search History</string> + <string name="vdr_host_not_defined">VDR host not defined</string> + <string name="processing">Processing…</string> + + <string-array name="recent_channels_order_entries"> + <item>Mostly used</item> + <item>Last used</item> + </string-array> + <string-array name="epg_sort_by_time_alpha"> + <item>Time</item> + <item>Alphabet</item> + </string-array> + <string-array name="epg_sort_by_time_alpha_channel"> + <item>Time</item> + <item>Alphabet</item> + <item>Channel</item> + </string-array> + <string-array name="epg_sort_by_channels_alpha"> + <item>Channels</item> + <item>Alphabet</item> + </string-array> + <string-array name="recordings_group_by"> + <item>By Time</item> + <item>By Alphabet</item> + </string-array> + + <string name="gui_recent_channels_order_summary">Sort by last used or mostly used</string> + <string name="gui_recent_channels_order_title">Recent Channels Sorting</string> + + <string-array name="channels_group_by"> + <item>Group</item> + <item>Provider</item> + <item>Source</item> + <item>Name</item> + </string-array> + <string-array name="navigation_array"> + <item>Channels</item> + <item>EPG by Time</item> + <item>EPG by Channel</item> + <item>Recordings</item> + <item>Timers</item> + <item>Remote</item> + </string-array> + + <string name="filter">Filter</string> + <string name="audio_tracks_template">Audio Tracks: %1$s</string> + <string name="audio_track_dolby">D</string> + <string name="vdr_timezone_summary">The time zone used on the server. It is important if you travel and modify timers + from another time zone. + </string> + <string name="vdr_timezone_title">Select server time zone</string> + <string name="zone_list_menu_sort_alphabetically">Sort alphabetically</string> + <string name="zone_list_menu_sort_by_timezone">Sort by time zone</string> + <string name="probing">Probing %1$s …</string> + <string name="no_results">No results…</string> + <string name="recording_started">Recording started</string> + <string name="set_time">Set time</string> + <!-- … --> + + + <!-- SSL related messages --> + + <string name="certificate_problem_message_title">Certificate warning</string> + <string name="certificate_problem_message_text">The server certificate was not accepted:\n\n + Hostname:\n + %1$s\n + Valid from:\n + %2$s\n + Valid until:\n + %3$s\n\n + What do you want to do? + </string> + <string name="certificate_accept_once">Accept once</string> + <string name="certificate_accepted_forever">Accept forever</string> + <string name="certificate_not_accepted">Abort</string> + + <!-- EPG Content --> + <string name="Content_Movie__Drama">Movie/Drama</string> + <string name="Content_Detective__Thriller">Detective/Thriller</string> + <string name="Content_Adventure__Western__War">Adventure/Western/War</string> + <string name="Content_Science_Fiction__Fantasy__Horror">Science Fiction/Fantasy/Horror</string> + <string name="Content_Comedy">Comedy</string> + <string name="Content_Soap__Melodrama__Folkloric">Soap/Melodrama/Folkloric</string> + <string name="Content_Romance">Romance</string> + <string name="Content_Serious__Classical__Religious__Historical_Movie__Drama">Serious/Classical/Religious/Historical + Movie/Drama + </string> + <string name="Content_Adult_Movie__Drama">Adult Movie/Drama</string> + <string name="Content_News__Current_Affairs">News/Current Affairs</string> + <string name="Content_News__Weather_Report">News/Weather Report</string> + <string name="Content_News_Magazine">News Magazine</string> + <string name="Content_Documentary">Documentary</string> + <string name="Content_Discussion__Inverview__Debate">Discussion/Inverview/Debate</string> + <string name="Content_Show__Game_Show">Show/Game Show</string> + <string name="Content_Game_Show__Quiz__Contest">Game Show/Quiz/Contest</string> + <string name="Content_Variety_Show">Variety Show</string> + <string name="Content_Talk_Show">Talk Show</string> + <string name="Content_Sports">Sports</string> + <string name="Content_Special_Event">Special Event</string> + <string name="Content_Sport_Magazine">Sport Magazine</string> + <string name="Content_Football__Soccer">Football/Soccer</string> + <string name="Content_Tennis__Squash">Tennis/Squash</string> + <string name="Content_Team_Sports">Team Sports</string> + <string name="Content_Athletics">Athletics</string> + <string name="Content_Motor_Sport">Motor Sport</string> + <string name="Content_Water_Sport">Water Sport</string> + <string name="Content_Winter_Sports">Winter Sports</string> + <string name="Content_Equestrian">Equestrian</string> + <string name="Content_Martial_Sports">Martial Sports</string> + <string name="Content_Childrens__Youth_Programme">Children\'s/Youth Programme</string> + <string name="Content_Preschool_Childrens_Programme">Pre-school Children\'s Programme</string> + <string name="Content_Entertainment_Programme_for_6_to_14">Entertainment Programme for 6 to 14</string> + <string name="Content_Entertainment_Programme_for_10_to_16">Entertainment Programme for 10 to 16</string> + <string name="Content_Informational__Educational__School_Programme">Informational/Educational/School Programme</string> + <string name="Content_Cartoons__Puppets">Cartoons/Puppets</string> + <string name="Content_Music__Ballet__Dance">Music/Ballet/Dance</string> + <string name="Content_Rock__Pop">Rock/Pop</string> + <string name="Content_Serious__Classical_Music">Serious/Classical Music</string> + <string name="Content_Folk__Tradional_Music">Folk/Tradional Music</string> + <string name="Content_Jazz">Jazz</string> + <string name="Content_Musical__Opera">Musical/Opera</string> + <string name="Content_Ballet">Ballet</string> + <string name="Content_Arts__Culture">Arts/Culture</string> + <string name="Content_Performing_Arts">Performing Arts</string> + <string name="Content_Fine_Arts">Fine Arts</string> + <string name="Content_Religion">Religion</string> + <string name="Content_Popular_Culture__Traditional_Arts">Popular Culture/Traditional Arts</string> + <string name="Content_Literature">Literature</string> + <string name="Content_Film__Cinema">Film/Cinema</string> + <string name="Content_Experimental_Film__Video">Experimental Film/Video</string> + <string name="Content_Broadcasting__Press">Broadcasting/Press</string> + <string name="Content_New_Media">New Media</string> + <string name="Content_Arts__Culture_Magazine">Arts/Culture Magazine</string> + <string name="Content_Fashion">Fashion</string> + <string name="Content_Social__Political__Economics">Social/Political/Economics</string> + <string name="Content_Magazine__Report__Documentary">Magazine/Report/Documentary</string> + <string name="Content_Economics__Social_Advisory">Economics/Social Advisory</string> + <string name="Content_Remarkable_People">Remarkable People</string> + <string name="Content_Education__Science__Factual">Education/Science/Factual</string> + <string name="Content_Nature__Animals__Environment">Nature/Animals/Environment</string> + <string name="Content_Technology__Natural_Sciences">Technology/Natural Sciences</string> + <string name="Content_Medicine__Physiology__Psychology">Medicine/Physiology/Psychology</string> + <string name="Content_Foreign_Countries__Expeditions">Foreign Countries/Expeditions</string> + <string name="Content_Social__Spiritual_Sciences">Social/Spiritual Sciences</string> + <string name="Content_Further_Education">Further Education</string> + <string name="Content_Languages">Languages</string> + <string name="Content_Leisure__Hobbies">Leisure/Hobbies</string> + <string name="Content_Tourism__Travel">Tourism/Travel</string> + <string name="Content_Handicraft">Handicraft</string> + <string name="Content_Motoring">Motoring</string> + <string name="Content_Fitness_and_Health">Fitness & Health</string> + <string name="Content_Cooking">Cooking</string> + <string name="Content_Advertisement__Shopping">Advertisement/Shopping</string> + <string name="Content_Gardening">Gardening</string> + <string name="Content_Original_Language">Original Language</string> + <string name="Content_Black_and_White">Black & White</string> + <string name="Content_Unpublished">Unpublished</string> + <string name="Content_Live_Broadcast">Live Broadcast</string> + <string name="Content_Unknown"></string> + <!-- EPG Content END --> + <string name="type_to_filter">type to filter</string> + <string name="drive_info">Free %1$s GB of %2$s GB (%3$s%%)</string> + <string name="drive_img">Drive</string> + <string name="sad_img">Sad</string> + <string name="search">Search</string> + <string name="clear_term_after_search_title">Clear Term after Search</string> + <string name="clear_term_after_search_summary_off">Search term remains after peforming search</string> + <string name="clear_term_after_search_summary_on">Term gets cleared after performing search</string> + <string name="drawer_open">Open navigation drawer</string> + <string name="drawer_close">Close navigation drawer</string> + <string name="action_websearch">Web search</string> + <string name="settings_smarttvweb_port_summary">VDR smarttvweb plugin has default port 8000</string> + <string name="settings_smarttvweb_port">Smarttvweb port</string> + <string name="recstream_smarttvweb_method_title">Smarttvweb Stream Type</string> + <string name="recstream_smarttvweb_method_summary">Supported methods: \'Progressive\', \'MPEG-DASH \/ OIPF HAS\', + \'Apple HLS\' + </string> + <string name="remote">Remote Control</string> + <string name="remote_enable_summary">Shows the remote control view if enabled</string> + <string name="remote_enable_title">Enable VDR remote control</string> + <string name="svdrp_port_title">SVDRP Port</string> + <string name="svdrp_port_summary">Default is 6419</string> + <string name="label">Label</string> + <string name="hitkcommand">HITK Command</string> + <string name="menu_reset">Reset</string> + <string name="menu_exprt">Export</string> + <string name="export_custom_key_mapping">Export Custom Key Mapping</string> + <string name="menu_imprt">Import</string> + <string name="menu_remapback">\'Back\' is \'Back\' HITK</string> + <string name="remapback_hint">Longpress on Back Button to leave the remote.</string> + <string name="not_yet_implemented">Not Yet Implemented</string> + <string name="timer_error">Can not create timer: %1$s</string> +</resources> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/styles.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/styles.xml new file mode 100644 index 0000000..8ab89d1 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/styles.xml @@ -0,0 +1,103 @@ +<?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> + + <style name="MinusButton"> + <item name="android:background">@drawable/btn_circle</item> + <item name="android:src">@drawable/ic_btn_round_minus</item> + </style> + + <style name="PlusButton"> + <item name="android:background">@drawable/btn_circle</item> + <item name="android:src">@drawable/ic_btn_round_plus</item> + </style> + + <style name="Line"> + <item name="android:layout_width">fill_parent</item> + <item name="android:layout_height">1px</item> + <item name="android:layout_marginLeft">10dp</item> + <item name="android:layout_marginRight">10dp</item> + <item name="android:layout_marginTop">10dp</item> + <item name="android:layout_marginBottom">10dp</item> + <item name="android:background">@drawable/line_gradient</item> + </style> + + <style name="Line2"> + <item name="android:layout_width">fill_parent</item> + <item name="android:layout_height">1px</item> + <item name="android:layout_marginLeft">10dp</item> + <item name="android:layout_marginRight">10dp</item> + <item name="android:layout_marginTop">1dp</item> + <item name="android:layout_marginBottom">1dp</item> + <item name="android:background">@drawable/line_gradient</item> + </style> + + <style name="AppTheme" parent="@style/Base.Theme.AppCompat" /> + + <style name="cursorButton"> + <item name="android:layout_width">70dp</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:layout_margin">5dp</item> + </style> + + <style name="volChanButton" paren="@android:attr/buttonStyleSmall"> + <item name="android:layout_width">wrap_content</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:bottomRightRadius">20dp</item> + <item name="android:bottomLeftRadius">20dp</item> + <item name="android:layout_margin">10dp</item> + <item name="android:topLeftRadius">20dp</item> + <item name="android:topRightRadius">20dp</item> + </style> + + +</resources> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/timers.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/timers.xml new file mode 100644 index 0000000..b091acd --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/values/timers.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + + <string name="timer_detail_title_title">Title:</string> + <string name="timer_detail_channel_title">Channel:</string> + <string name="timer_detail_start_title">Start:</string> + <string name="timer_detail_end_title">End:</string> + + <string name="timer_details_create_title">Create timer</string> + <string name="timer_details_save_title">Save changes</string> + <string name="timer_details_delete_title">Delete timer</string> + + <string name="timer_details_add_title">Create a new timer</string> + <string name="timer_details_modify_title">Modify a timer</string> +</resources> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/xml/backup_settings.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/xml/backup_settings.xml new file mode 100644 index 0000000..dfe91c6 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/xml/backup_settings.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright 2012 Google Inc. + +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. +--> +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + android:title="@string/settings_backup" android:summary="@string/settings_backup_summary"> + <Preference + android:key="@string/settings_backup_now_key" + android:persistent="false" + android:title="@string/settings_backup_now" + android:summary="@string/settings_backup_now_summary" + /> + <Preference + android:key="@string/settings_backup_restore_key" + android:persistent="false" + android:title="@string/settings_backup_restore" + android:summary="@string/settings_backup_restore_summary" + /> +</PreferenceScreen>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/xml/preferences.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/xml/preferences.xml new file mode 100644 index 0000000..ec5aff6 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/xml/preferences.xml @@ -0,0 +1,88 @@ +<?xml version="1.0" encoding="utf-8"?> +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" > + + <PreferenceCategory android:title="@string/vdr_devices_category" > + <PreferenceScreen + android:summary="@string/vdr_devices_summary" + android:title="@string/vdr_devices" > + <intent + android:action="android.intent.action.MAIN" + android:targetClass="de.bjusystems.vdrmanager.gui.VdrListActivity" + android:targetPackage="de.bjusystems.vdrmanager" /> + </PreferenceScreen> + </PreferenceCategory> + <PreferenceCategory + android:key="gui_preferences" + android:title="@string/gui_preferences" > + <CheckBoxPreference + android:defaultValue="false" + android:key="@string/gui_channels_show_channel_numbers_key" + android:summary="@string/gui_channels_show_channel_numbers_summary" + android:title="@string/gui_channels_show_channel_numbers_title" /> + + <EditTextPreference + android:defaultValue="10" + android:inputType="number" + android:key="@string/gui_max_recent_channels_key" + android:summary="@string/gui_max_recent_channels_summary" + android:title="@string/gui_max_recent_channels_title" /> + + <ListPreference + android:defaultValue="most" + android:entries="@array/recent_channels_order_entries" + android:entryValues="@array/recent_channels_order_entry_values" + android:key="gui_recent_channels_order" + android:summary="@string/gui_recent_channels_order_summary" + android:title="@string/gui_recent_channels_order_title" /> + + <CheckBoxPreference + android:defaultValue="true" + android:key="@string/gui_enable_24h_format_key" + android:summaryOff="@string/gui_enable_24h_format_summary_off" + android:summaryOn="@string/gui_enable_24h_format_summary_on" + android:title="@string/gui_enable_24h_format_title" /> + <CheckBoxPreference + android:defaultValue="true" + android:key="@string/qui_show_imdb_button_key" + android:summaryOff="@string/qui_show_imdb_button_summary_off" + android:summaryOn="@string/qui_show_imdb_button_summary_on" + android:title="@string/qui_show_imdb_button_title" /> + + <ListPreference + android:defaultValue="akas.imdb.com" + android:dependency="@string/qui_show_imdb_button_key" + android:entries="@array/imdb_urls" + android:entryValues="@array/imdb_urls_velues" + android:key="@string/qui_imdb_url_key" + android:summaryOn="@string/qui_imdb_url_summary" + android:title="@string/qui_imdb_url_title" /> + + <CheckBoxPreference + android:defaultValue="false" + android:key="@string/qui_show_omdb_button_key" + android:summaryOff="@string/qui_show_omdb_button_summary_off" + android:summaryOn="@string/qui_show_omdb_button_summary_on" + android:title="@string/qui_show_omdb_button_title" /> + <CheckBoxPreference + android:defaultValue="false" + android:key="@string/qui_show_tmdb_button_key" + android:summaryOff="@string/qui_show_tmdb_button_summary_off" + android:summaryOn="@string/qui_show_tmdb_button_summary_on" + android:title="@string/qui_show_tmdb_button_title" /> + + <ListPreference + android:defaultValue="DEFAULT" + android:entries="@array/lang" + android:entryValues="@array/lang_values" + android:key="@string/gui_custom_locale_key" + android:summary="@string/gui_custom_locale_sum" + android:title="@string/gui_custom_locale_title" /> + </PreferenceCategory> + + <Preference + android:key="@string/settings_backup_key" + android:persistent="false" + android:summary="@string/settings_backup_summary" + android:title="@string/settings_backup" /> + +</PreferenceScreen>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/xml/searchable.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/xml/searchable.xml new file mode 100644 index 0000000..05f7087 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/xml/searchable.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<searchable xmlns:android="http://schemas.android.com/apk/res/android" + android:hint="@string/search_epg_hint" + android:includeInGlobalSearch="true" + android:label="@string/app_name" + android:searchSettingsDescription="@string/epg_search_settings_description" + android:searchSuggestAuthority="de.bjusystems.vdrmanager.data.db.EPGSearchSuggestionsProvider" + android:searchSuggestSelection=" ?" + android:imeOptions="actionSearch" + android:inputType="text" + android:voiceSearchMode="showVoiceSearchButton|launchRecognizer" > + + <!-- + <actionkey + android:keycode="KEYCODE_SEARCH" + android:queryActionMsg="string" + android:suggestActionMsg="string" + android:suggestActionMsgColumn="string"/> + --> + +</searchable>
\ No newline at end of file diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/xml/timezones.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/xml/timezones.xml new file mode 100644 index 0000000..a66faf8 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/xml/timezones.xml @@ -0,0 +1,87 @@ +<timezones> + <timezone id="Pacific/Majuro">Marshall Islands</timezone> + <timezone id="Pacific/Midway">Midway Island</timezone> + <timezone id="Pacific/Honolulu">Hawaii</timezone> + <timezone id="America/Anchorage">Alaska</timezone> + <timezone id="America/Los_Angeles">Pacific Time</timezone> + <timezone id="America/Tijuana">Tijuana</timezone> + <timezone id="America/Phoenix">Arizona</timezone> + <timezone id="America/Chihuahua">Chihuahua</timezone> + <timezone id="America/Denver">Mountain Time</timezone> + <timezone id="America/Costa_Rica">Central America</timezone> + <timezone id="America/Chicago">Central Time</timezone> + <timezone id="America/Mexico_City">Mexico City</timezone> + <timezone id="America/Regina">Saskatchewan</timezone> + <timezone id="America/Bogota">Bogota</timezone> + <timezone id="America/New_York">Eastern Time</timezone> + <timezone id="America/Caracas">Venezuela</timezone> + <timezone id="America/Barbados">Atlantic Time (Barbados)</timezone> + <timezone id="America/Halifax">Atlantic Time (Canada)</timezone> + <timezone id="America/Manaus">Manaus</timezone> + <timezone id="America/Santiago">Santiago</timezone> + <timezone id="America/St_Johns">Newfoundland</timezone> + <timezone id="America/Sao_Paulo">Brasilia</timezone> + <timezone id="America/Argentina/Buenos_Aires">Buenos Aires</timezone> + <timezone id="America/Godthab">Greenland</timezone> + <timezone id="America/Montevideo">Montevideo</timezone> + <timezone id="Atlantic/South_Georgia">Mid-Atlantic</timezone> + <timezone id="Atlantic/Azores">Azores</timezone> + <timezone id="Atlantic/Cape_Verde">Cape Verde Islands</timezone> + <timezone id="Africa/Casablanca">Casablanca</timezone> + <timezone id="Europe/London">London, Dublin</timezone> + <timezone id="Europe/Berlin">Berlin</timezone> + <timezone id="Europe/Amsterdam">Amsterdam</timezone> + <timezone id="Europe/Belgrade">Belgrade</timezone> + <timezone id="Europe/Brussels">Brussels</timezone> + <timezone id="Europe/Sarajevo">Sarajevo</timezone> + <timezone id="Africa/Windhoek">Windhoek</timezone> + <timezone id="Africa/Brazzaville">W. Africa Time</timezone> + <timezone id="Asia/Amman">Amman, Jordan</timezone> + <timezone id="Europe/Athens">Athens, Istanbul</timezone> + <timezone id="Asia/Beirut">Beirut, Lebanon</timezone> + <timezone id="Africa/Cairo">Cairo</timezone> + <timezone id="Europe/Helsinki">Helsinki</timezone> + <timezone id="Asia/Jerusalem">Jerusalem</timezone> + <timezone id="Europe/Minsk">Minsk</timezone> + <timezone id="Africa/Harare">Harare</timezone> + <timezone id="Asia/Baghdad">Baghdad</timezone> + <timezone id="Europe/Moscow">Moscow</timezone> + <timezone id="Asia/Kuwait">Kuwait</timezone> + <timezone id="Africa/Nairobi">Nairobi</timezone> + <timezone id="Asia/Tehran">Tehran</timezone> + <timezone id="Asia/Baku">Baku</timezone> + <timezone id="Asia/Tbilisi">Tbilisi</timezone> + <timezone id="Asia/Yerevan">Yerevan</timezone> + <timezone id="Asia/Dubai">Dubai</timezone> + <timezone id="Asia/Kabul">Kabul</timezone> + <timezone id="Asia/Karachi">Islamabad, Karachi</timezone> + <timezone id="Asia/Oral">Ural'sk</timezone> + <timezone id="Asia/Yekaterinburg">Yekaterinburg</timezone> + <timezone id="Asia/Calcutta">Kolkata</timezone> + <timezone id="Asia/Colombo">Sri Lanka</timezone> + <timezone id="Asia/Katmandu">Kathmandu</timezone> + <timezone id="Asia/Almaty">Astana</timezone> + <timezone id="Asia/Rangoon">Yangon</timezone> + <timezone id="Asia/Krasnoyarsk">Krasnoyarsk</timezone> + <timezone id="Asia/Bangkok">Bangkok</timezone> + <timezone id="Asia/Shanghai">Beijing</timezone> + <timezone id="Asia/Hong_Kong">Hong Kong</timezone> + <timezone id="Asia/Irkutsk">Irkutsk</timezone> + <timezone id="Asia/Kuala_Lumpur">Kuala Lumpur</timezone> + <timezone id="Australia/Perth">Perth</timezone> + <timezone id="Asia/Taipei">Taipei</timezone> + <timezone id="Asia/Seoul">Seoul</timezone> + <timezone id="Asia/Tokyo">Tokyo, Osaka</timezone> + <timezone id="Asia/Yakutsk">Yakutsk</timezone> + <timezone id="Australia/Adelaide">Adelaide</timezone> + <timezone id="Australia/Darwin">Darwin</timezone> + <timezone id="Australia/Brisbane">Brisbane</timezone> + <timezone id="Australia/Hobart">Hobart</timezone> + <timezone id="Australia/Sydney">Sydney, Canberra</timezone> + <timezone id="Asia/Vladivostok">Vladivostok</timezone> + <timezone id="Pacific/Guam">Guam</timezone> + <timezone id="Asia/Magadan">Magadan</timezone> + <timezone id="Pacific/Auckland">Auckland</timezone> + <timezone id="Pacific/Fiji">Fiji</timezone> + <timezone id="Pacific/Tongatapu">Tonga</timezone> +</timezones> diff --git a/vdrmanager/de.bjusystems.vdrmanager/src/main/res/xml/vdr_prefs.xml b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/xml/vdr_prefs.xml new file mode 100644 index 0000000..5c6e8b1 --- /dev/null +++ b/vdrmanager/de.bjusystems.vdrmanager/src/main/res/xml/vdr_prefs.xml @@ -0,0 +1,245 @@ +<?xml version="1.0" encoding="utf-8"?> +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" > + + <PreferenceCategory android:title="@string/vdr_prefs_category" > + <EditTextPreference + android:inputType="textCapWords" + android:key="@string/vdr_name_key" + android:summary="@string/vdr_name_summary" + android:title="@string/vdr_name_title" /> + </PreferenceCategory> + <PreferenceCategory + android:key="vdr_preferences" + android:title="@string/vdr_preferences" > + <de.bjusystems.vdrmanager.data.FetchEditTextPreference + android:inputType="textNoSuggestions" + android:key="@string/vdr_host_key" + android:summary="@string/vdr_host_summary" + android:title="@string/vdr_host_title" /> + <EditTextPreference + android:inputType="number" + android:key="@string/vdr_port_key" + android:summary="@string/vdr_port_summary" + android:title="@string/vdr_port_title" /> + <EditTextPreference + android:key="@string/vdr_password_key" + android:password="true" + android:summary="@string/vdr_password_summary" + android:title="@string/vdr_password_title" /> + + <CheckBoxPreference + android:key="@string/vdr_ssl_key" + android:enabled="true" + android:summary="@string/vdr_ssl_summary" + android:title="@string/vdr_ssl_title" /> + </PreferenceCategory> + <PreferenceCategory + android:key="filter_preferences" + android:title="@string/channel_filter_preferences" > + <CheckBoxPreference + android:key="@string/channel_filter_filter_key" + android:summary="@string/channel_filter_filter_summary" + android:title="@string/channel_filter_filter_title" /> + + <EditTextPreference + android:dependency="@string/channel_filter_filter_key" + android:key="@string/channel_filter_last_key" + android:summary="@string/channel_filter_last_summary" + android:title="@string/channel_filter_last_title" /> + </PreferenceCategory> + <PreferenceCategory + android:key="wakeup_preferences" + android:title="@string/wakeup_preferences" > + <CheckBoxPreference + android:key="@string/wakeup_enabled_key" + android:summary="@string/wakeup_enabled_summary" + android:title="@string/wakeup_enabled_title" /> + + <ListPreference + android:dependency="@string/wakeup_enabled_key" + android:entries="@array/wakeup_methods" + android:entryValues="@array/wakeup_methods_values" + android:key="@string/wakeup_method_key" + android:summary="@string/wakeup_method_summary" + android:title="@string/wakeup_method_title" /> + + <EditTextPreference + android:dependency="@string/wakeup_enabled_key" + android:key="@string/wakeup_url_key" + android:summary="@string/wakeup_url_summary" + android:title="@string/wakeup_url_title" /> + <EditTextPreference + android:dependency="@string/wakeup_enabled_key" + android:key="@string/wakeup_user_key" + android:summary="@string/wakeup_user_summary" + android:title="@string/wakeup_user_title" /> + <EditTextPreference + android:dependency="@string/wakeup_enabled_key" + android:key="@string/wakeup_password_key" + android:password="true" + android:summary="@string/wakeup_password_summary" + android:title="@string/wakeup_password_title" /> + + <de.bjusystems.vdrmanager.data.FetchEditTextPreference + android:dependency="@string/wakeup_enabled_key" + android:key="@string/wakeup_wol_mac_key" + android:summary="@string/wakeup_wol_mac_summary" + android:title="@string/wakeup_wol_mac_title" /> + + <EditTextPreference + android:dependency="@string/wakeup_enabled_key" + android:key="@string/wakeup_wol_custom_broadcast_key" + android:summaryOn="@string/wakeup_wol_custom_boradcast_summary" + android:title="@string/wakeup_wol_custom_boradcast_title" /> + </PreferenceCategory> + <PreferenceCategory + android:key="timer_preferences" + android:title="@string/timer_preferences" > + <EditTextPreference + android:key="@string/timer_pre_start_buffer_key" + android:summary="@string/timer_pre_start_buffer_summary" + android:title="@string/timer_pre_start_buffer_title" /> + <EditTextPreference + android:key="@string/timer_post_end_buffer_key" + android:summary="@string/timer_post_end_buffer_summary" + android:title="@string/timer_post_end_buffer_title" /> + <EditTextPreference + android:key="@string/timer_default_lifetime_key" + android:summary="@string/timer_default_lifetime_summary" + android:title="@string/timer_default_lifetime_title" /> + <EditTextPreference + android:key="@string/timer_default_priority_key" + android:summary="@string/timer_default_priority_summary" + android:title="@string/timer_default_priority_title" /> + </PreferenceCategory> + <PreferenceCategory android:title="@string/livetv" > + <EditTextPreference + android:inputType="number" + android:key="streamingport" + android:summary="@string/settings_livetv_port_summary" + android:title="@string/settings_livetv_port" /> + <EditTextPreference + android:key="@string/streaming_username_key" + android:summary="@string/streaming_username_sum" + android:title="@string/streaming_username_title" /> + <EditTextPreference + android:key="@string/streaming_password_key" + android:password="true" + android:summary="@string/streaming_password_sum" + android:title="@string/streaming_password_title" /> + + <ListPreference + android:entries="@array/livetv_streamformat" + android:entryValues="@array/livetv_streamformat_values" + android:key="livetv_streamformat" + android:title="@string/settings_livetv_streamformat" /> + + <CheckBoxPreference + android:key="remux_enable" + android:summary="@string/remux_enable_summary" + android:title="@string/remux_enable_title" /> + + <ListPreference + android:dependency="remux_enable" + android:entries="@array/remux_entries" + android:entryValues="@array/remux_entry_values" + android:key="remux_command" + android:summary="@string/remux_command_summary" + android:title="@string/remux_command_title" /> + + <EditTextPreference + android:dependency="remux_enable" + android:key="remux_parameter" + android:summary="@string/remux_parameter_summary" + android:title="@string/remux_parameter_title" /> + </PreferenceCategory> + <PreferenceCategory + android:key="key_streaming_category" + android:title="@string/recstream" > + <CheckBoxPreference + android:key="key_rec_stream_enable" + android:summary="@string/recstream_enable_summary" + android:title="@string/recstream_enable_title" /> + + <ListPreference + android:dependency="key_rec_stream_enable" + android:entries="@array/recstream_entries" + android:entryValues="@array/recstream_entry_values" + android:key="key_recstream_method" + android:summary="@string/recstream_method_summary" + android:title="@string/recstream_method_title" /> + + <EditTextPreference + android:defaultValue="8008" + android:dependency="key_rec_stream_enable" + android:inputType="number" + android:key="key_live_port" + android:summary="@string/settings_live_port_summary" + android:title="@string/settings_live_port" /> + + + <ListPreference + android:dependency="key_rec_stream_enable" + android:entries="@array/recstream_smarttvweb_entries" + android:entryValues="@array/recstream_smarttvweb_entry_values" + android:key="key_smarttvweb_recstream_method" + android:summary="@string/recstream_smarttvweb_method_summary" + android:title="@string/recstream_smarttvweb_method_title" /> + + <EditTextPreference + android:defaultValue="8000" + android:dependency="key_rec_stream_enable" + android:inputType="number" + android:key="key_smarttvweb_port" + android:summary="@string/settings_smarttvweb_port_summary" + android:title="@string/settings_smarttvweb_port" /> + </PreferenceCategory> + + <PreferenceCategory + android:key="key_remote_category" + android:title="@string/remote" > + <CheckBoxPreference + android:key="key_remote_enable" + android:summary="@string/remote_enable_summary" + android:title="@string/remote_enable_title" /> + + <EditTextPreference + android:inputType="number" + android:key="key_svdrp_port" + android:dependency="key_remote_enable" + android:summary="@string/svdrp_port_summary" + android:defaultValue="@integer/svdrp_default_port" + android:title="@string/svdrp_port_title" /> + + </PreferenceCategory> + + <PreferenceScreen android:title="Advanced" > + <EditTextPreference + android:inputType="number" + android:key="@string/vdr_conntimeout_key" + android:summary="@string/vdr_conntimeout_sum" + android:title="@string/vdr_conntimeout_title" /> + <EditTextPreference + android:inputType="number" + android:key="@string/vdr_readtimeout_key" + android:summary="@string/vdr_readtimeout_sum" + android:title="@string/vdr_readtimeout_title" /> + <EditTextPreference + android:inputType="number" + android:key="@string/vdr_timeout_key" + android:summary="@string/vdr_timeout_sum" + android:title="@string/vdr_timeout_title" /> + <EditTextPreference + android:key="@string/vdr_encoding_key" + android:summary="@string/vdr_encoding_summary" + android:title="@string/vdr_encoding_title" /> + + <Preference + android:fragment="de.bjusystems.vdrmanager.ZonePicker" + android:key="@string/timezone_key" + android:summary="@string/vdr_timezone_summary" + android:title="@string/vdr_timezone_title" /> + + </PreferenceScreen> + +</PreferenceScreen>
\ No newline at end of file |