Merge branch 'theme' into develop
|
@ -29,12 +29,11 @@
|
||||||
android:icon="@drawable/ic_launcher"
|
android:icon="@drawable/ic_launcher"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:logo="@drawable/ic_launcher"
|
android:logo="@drawable/ic_launcher"
|
||||||
android:theme="@style/Theme.Sherlock.Light.ForceOverflow" >
|
android:theme="@style/Theme.AntennaPod.Light" >
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.MainActivity"
|
android:name=".activity.MainActivity"
|
||||||
android:configChanges="keyboardHidden|orientation"
|
android:configChanges="keyboardHidden|orientation"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name">
|
||||||
android:theme="@style/StyledIndicators" >
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.intent.action.MAIN" />
|
<action android:name="android.intent.action.MAIN" />
|
||||||
|
|
||||||
|
@ -75,8 +74,7 @@
|
||||||
android:name=".activity.AudioplayerActivity"
|
android:name=".activity.AudioplayerActivity"
|
||||||
android:configChanges="keyboardHidden|orientation"
|
android:configChanges="keyboardHidden|orientation"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
android:screenOrientation="portrait"
|
android:screenOrientation="portrait"/>
|
||||||
android:theme="@style/Theme.MediaPlayer" />
|
|
||||||
|
|
||||||
<service
|
<service
|
||||||
android:name=".service.download.DownloadService"
|
android:name=".service.download.DownloadService"
|
||||||
|
@ -159,8 +157,7 @@
|
||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.AboutActivity"
|
android:name=".activity.AboutActivity"
|
||||||
android:label="@string/about_pref"
|
android:label="@string/about_pref">
|
||||||
android:theme="@style/Theme.Sherlock.Light.NoActionBar" >
|
|
||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.OpmlImportActivity"
|
android:name=".activity.OpmlImportActivity"
|
||||||
|
@ -211,8 +208,7 @@
|
||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.MiroGuideCategoryActivity"
|
android:name=".activity.MiroGuideCategoryActivity"
|
||||||
android:configChanges="keyboardHidden|orientation"
|
android:configChanges="keyboardHidden|orientation">
|
||||||
android:theme="@style/StyledIndicators" >
|
|
||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.MiroGuideChannelViewActivity"
|
android:name=".activity.MiroGuideChannelViewActivity"
|
||||||
|
@ -222,8 +218,7 @@
|
||||||
<activity
|
<activity
|
||||||
android:name=".activity.VideoplayerActivity"
|
android:name=".activity.VideoplayerActivity"
|
||||||
android:configChanges="keyboardHidden|orientation"
|
android:configChanges="keyboardHidden|orientation"
|
||||||
android:screenOrientation="landscape"
|
android:screenOrientation="landscape">
|
||||||
android:theme="@style/VideoplayerTheme" >
|
|
||||||
</activity>
|
</activity>
|
||||||
<activity android:label="@string/playback_history_label" android:name=".activity.PlaybackHistoryActivity"></activity>
|
<activity android:label="@string/playback_history_label" android:name=".activity.PlaybackHistoryActivity"></activity>
|
||||||
</application>
|
</application>
|
||||||
|
|
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 693 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 338 B |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 307 B |
After Width: | Height: | Size: 219 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 426 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 271 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 974 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 440 B |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 1.3 KiB |
|
@ -1,10 +1,10 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:state_pressed="true"><shape android:shape="rectangle">
|
<item android:state_pressed="true"><shape android:shape="rectangle">
|
||||||
<solid android:color="#FEBB20" />
|
<solid android:color="@color/selection_background_color_light" />
|
||||||
</shape></item>
|
</shape></item>
|
||||||
<item android:state_focused="true"><shape android:shape="rectangle">
|
<item android:state_focused="true"><shape android:shape="rectangle">
|
||||||
<solid android:color="#FEBB20" />
|
<solid android:color="@color/selection_background_color_light" />
|
||||||
</shape></item>
|
</shape></item>
|
||||||
<item><shape android:shape="rectangle">
|
<item><shape android:shape="rectangle">
|
||||||
<solid android:color="@android:color/transparent" />
|
<solid android:color="@android:color/transparent" />
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<item android:state_pressed="true"><shape android:shape="rectangle">
|
<item android:state_pressed="true"><shape android:shape="rectangle">
|
||||||
<solid android:color="@color/selection_background" />
|
<solid android:color="@color/selection_background_color_dark" />
|
||||||
</shape></item>
|
</shape></item>
|
||||||
<item android:state_focused="true"><shape android:shape="rectangle">
|
<item android:state_focused="true"><shape android:shape="rectangle">
|
||||||
<solid android:color="@color/selection_background" />
|
<solid android:color="@color/selection_background_color_dark" />
|
||||||
</shape></item>
|
</shape></item>
|
||||||
<item><shape android:shape="rectangle">
|
<item><shape android:shape="rectangle">
|
||||||
<solid android:color="@android:color/transparent" />
|
<solid android:color="@android:color/transparent" />
|
|
@ -23,7 +23,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="bottom|center"
|
android:layout_gravity="bottom|center"
|
||||||
android:background="@color/actionbar_gray"
|
android:background="?attr/video_overlay_background"
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical" >
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
|
@ -38,8 +38,8 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerHorizontal="true"
|
android:layout_centerHorizontal="true"
|
||||||
android:background="@drawable/borderless_button"
|
android:background="?attr/borderless_button"
|
||||||
android:src="@drawable/av_pause" />
|
android:src="?attr/av_pause" />
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/butFF"
|
android:id="@+id/butFF"
|
||||||
|
@ -48,8 +48,8 @@
|
||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
android:layout_marginLeft="8dp"
|
android:layout_marginLeft="8dp"
|
||||||
android:layout_toRightOf="@+id/butPlay"
|
android:layout_toRightOf="@+id/butPlay"
|
||||||
android:background="@drawable/borderless_button"
|
android:background="?attr/borderless_button"
|
||||||
android:src="@drawable/av_fast_forward" />
|
android:src="?attr/av_fast_forward" />
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/butRev"
|
android:id="@+id/butRev"
|
||||||
|
@ -58,8 +58,8 @@
|
||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
android:layout_marginRight="8dp"
|
android:layout_marginRight="8dp"
|
||||||
android:layout_toLeftOf="@+id/butPlay"
|
android:layout_toLeftOf="@+id/butPlay"
|
||||||
android:background="@drawable/borderless_button"
|
android:background="?attr/borderless_button"
|
||||||
android:src="@drawable/av_rewind" />
|
android:src="?attr/av_rewind" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="@drawable/borderless_button" >
|
android:background="?attr/borderless_button" >
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/imgvCover"
|
android:id="@+id/imgvCover"
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
android:id="@+id/butPlay"
|
android:id="@+id/butPlay"
|
||||||
android:layout_width="@dimen/external_player_height"
|
android:layout_width="@dimen/external_player_height"
|
||||||
android:layout_height="@dimen/external_player_height"
|
android:layout_height="@dimen/external_player_height"
|
||||||
android:background="@drawable/borderless_button" />
|
android:background="?attr/borderless_button" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
|
@ -56,7 +56,7 @@
|
||||||
android:layout_height="@dimen/enc_icons_size"
|
android:layout_height="@dimen/enc_icons_size"
|
||||||
android:layout_below="@id/txtvPublished"
|
android:layout_below="@id/txtvPublished"
|
||||||
android:layout_toLeftOf="@+id/imgvDownloaded"
|
android:layout_toLeftOf="@+id/imgvDownloaded"
|
||||||
android:src="@drawable/stat_playlist"
|
android:src="?attr/stat_playlist"
|
||||||
android:visibility="visible" />
|
android:visibility="visible" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
android:layout_height="@dimen/enc_icons_size"
|
android:layout_height="@dimen/enc_icons_size"
|
||||||
android:layout_below="@id/txtvPublished"
|
android:layout_below="@id/txtvPublished"
|
||||||
android:layout_toLeftOf="@+id/imgvDownloading"
|
android:layout_toLeftOf="@+id/imgvDownloading"
|
||||||
android:src="@drawable/av_download"
|
android:src="?attr/av_download"
|
||||||
android:visibility="visible" />
|
android:visibility="visible" />
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
android:layout_height="@dimen/enc_icons_size"
|
android:layout_height="@dimen/enc_icons_size"
|
||||||
android:layout_below="@id/txtvPublished"
|
android:layout_below="@id/txtvPublished"
|
||||||
android:layout_toLeftOf="@id/butAction"
|
android:layout_toLeftOf="@id/butAction"
|
||||||
android:src="@drawable/navigation_refresh"
|
android:src="?attr/navigation_refresh"
|
||||||
android:visibility="visible" />
|
android:visibility="visible" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
@ -91,13 +91,13 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:background="@drawable/borderless_button"
|
android:background="?attr/borderless_button"
|
||||||
android:clickable="false"
|
android:clickable="false"
|
||||||
android:focusable="false"
|
android:focusable="false"
|
||||||
android:focusableInTouchMode="false"
|
android:focusableInTouchMode="false"
|
||||||
android:padding="8dp"
|
android:padding="8dp"
|
||||||
android:scaleType="center"
|
android:scaleType="center"
|
||||||
android:src="@drawable/navigation_expand" />
|
android:src="?attr/navigation_expand" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
|
@ -2,7 +2,7 @@
|
||||||
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
android:background="@color/white" >
|
android:background="?attr/non_transparent_background" >
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@color/white"
|
android:background="?attr/non_transparent_background"
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical" >
|
||||||
|
|
||||||
<com.viewpagerindicator.TabPageIndicator
|
<com.viewpagerindicator.TabPageIndicator
|
||||||
|
@ -23,8 +23,8 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="0.02"
|
android:layout_weight="0.02"
|
||||||
android:background="@drawable/borderless_button"
|
android:background="?attr/borderless_button"
|
||||||
android:src="@drawable/av_rewind" />
|
android:src="?attr/av_rewind" />
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="0.5dp"
|
android:layout_width="0.5dp"
|
||||||
|
@ -38,8 +38,8 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="0.14"
|
android:layout_weight="0.14"
|
||||||
android:background="@drawable/borderless_button"
|
android:background="?attr/borderless_button"
|
||||||
android:src="@drawable/av_pause" />
|
android:src="?attr/av_pause" />
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="0.5dp"
|
android:layout_width="0.5dp"
|
||||||
|
@ -53,8 +53,8 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="0.02"
|
android:layout_weight="0.02"
|
||||||
android:background="@drawable/borderless_button"
|
android:background="?attr/borderless_button"
|
||||||
android:src="@drawable/av_fast_forward" />
|
android:src="?attr/av_fast_forward" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<SeekBar
|
<SeekBar
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@color/white" >
|
android:background="#262C31" >
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/butPlay"
|
android:id="@+id/butPlay"
|
||||||
|
@ -15,8 +15,8 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_margin="12dp"
|
android:layout_margin="12dp"
|
||||||
android:background="@drawable/borderless_button"
|
android:background="@drawable/borderless_button_dark"
|
||||||
android:src="@drawable/av_play" />
|
android:src="@drawable/av_play_dark" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/layout_left"
|
android:id="@+id/layout_left"
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_toLeftOf="@id/butPlay"
|
android:layout_toLeftOf="@id/butPlay"
|
||||||
android:background="@drawable/borderless_button"
|
android:background="@drawable/borderless_button_dark"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical" >
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
android:layout_margin="8dp"
|
android:layout_margin="8dp"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:text="@string/no_media_playing_label"
|
android:text="@string/no_media_playing_label"
|
||||||
android:textColor="@color/black"
|
android:textColor="@color/white"
|
||||||
android:textSize="18dp"
|
android:textSize="18dp"
|
||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="8dp"
|
android:layout_margin="8dp"
|
||||||
android:textColor="@color/ics_gray" />
|
android:textColor="@color/gray" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||||
<item android:id="@+id/add_feed" android:icon="@drawable/content_new" android:title="@string/add_new_feed_label" android:showAsAction="ifRoom"></item>
|
<item android:id="@+id/add_feed" android:icon="?attr/content_new" android:title="@string/add_new_feed_label" android:showAsAction="ifRoom"></item>
|
||||||
<item android:id="@+id/visit_website_item" android:title="@string/visit_website_label" android:showAsAction="ifRoom" android:icon="@drawable/location_web_site"></item>
|
<item android:id="@+id/visit_website_item" android:title="@string/visit_website_label" android:showAsAction="ifRoom" android:icon="?attr/location_web_site"></item>
|
||||||
|
|
||||||
|
|
||||||
</menu>
|
</menu>
|
|
@ -2,7 +2,7 @@
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||||
<item
|
<item
|
||||||
android:id="@+id/visit_website_item"
|
android:id="@+id/visit_website_item"
|
||||||
android:icon="@drawable/location_web_site"
|
android:icon="?attr/location_web_site"
|
||||||
android:showAsAction="ifRoom|collapseActionView"
|
android:showAsAction="ifRoom|collapseActionView"
|
||||||
android:title="@string/visit_website_label"
|
android:title="@string/visit_website_label"
|
||||||
android:visible="true">
|
android:visible="true">
|
||||||
|
|
|
@ -3,35 +3,35 @@
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/download_item"
|
android:id="@+id/download_item"
|
||||||
android:icon="@drawable/av_download"
|
android:icon="?attr/av_download"
|
||||||
android:showAsAction="ifRoom"
|
android:showAsAction="ifRoom"
|
||||||
android:title="@string/download_label"
|
android:title="@string/download_label"
|
||||||
android:visible="false">
|
android:visible="false">
|
||||||
</item>
|
</item>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/stream_item"
|
android:id="@+id/stream_item"
|
||||||
android:icon="@drawable/action_stream"
|
android:icon="?attr/action_stream"
|
||||||
android:showAsAction="ifRoom"
|
android:showAsAction="ifRoom"
|
||||||
android:title="@string/stream_label"
|
android:title="@string/stream_label"
|
||||||
android:visible="false">
|
android:visible="false">
|
||||||
</item>
|
</item>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/play_item"
|
android:id="@+id/play_item"
|
||||||
android:icon="@drawable/av_play"
|
android:icon="?attr/av_play"
|
||||||
android:showAsAction="ifRoom"
|
android:showAsAction="ifRoom"
|
||||||
android:title="@string/play_label"
|
android:title="@string/play_label"
|
||||||
android:visible="false">
|
android:visible="false">
|
||||||
</item>
|
</item>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/remove_item"
|
android:id="@+id/remove_item"
|
||||||
android:icon="@drawable/content_discard"
|
android:icon="?attr/content_discard"
|
||||||
android:showAsAction="collapseActionView"
|
android:showAsAction="collapseActionView"
|
||||||
android:title="@string/remove_label"
|
android:title="@string/remove_label"
|
||||||
android:visible="false">
|
android:visible="false">
|
||||||
</item>
|
</item>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/cancel_download_item"
|
android:id="@+id/cancel_download_item"
|
||||||
android:icon="@drawable/navigation_cancel"
|
android:icon="?attr/navigation_cancel"
|
||||||
android:showAsAction="ifRoom"
|
android:showAsAction="ifRoom"
|
||||||
android:title="@string/cancel_download_label">
|
android:title="@string/cancel_download_label">
|
||||||
</item>
|
</item>
|
||||||
|
@ -66,7 +66,7 @@
|
||||||
</item>
|
</item>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/visit_website_item"
|
android:id="@+id/visit_website_item"
|
||||||
android:icon="@drawable/location_web_site"
|
android:icon="?attr/location_web_site"
|
||||||
android:showAsAction="ifRoom|collapseActionView"
|
android:showAsAction="ifRoom|collapseActionView"
|
||||||
android:title="@string/visit_website_label"
|
android:title="@string/visit_website_label"
|
||||||
android:visible="false">
|
android:visible="false">
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<item
|
<item
|
||||||
android:id="@+id/refresh_item"
|
android:id="@+id/refresh_item"
|
||||||
android:showAsAction="ifRoom|collapseActionView"
|
android:showAsAction="ifRoom|collapseActionView"
|
||||||
android:title="@string/refresh_label" android:icon="@drawable/navigation_refresh">
|
android:title="@string/refresh_label" android:icon="?attr/navigation_refresh">
|
||||||
</item>
|
</item>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/mark_all_read_item"
|
android:id="@+id/mark_all_read_item"
|
||||||
|
@ -13,20 +13,20 @@
|
||||||
</item>
|
</item>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/show_info_item"
|
android:id="@+id/show_info_item"
|
||||||
android:icon="@drawable/action_about"
|
android:icon="?attr/action_about"
|
||||||
android:showAsAction="collapseActionView"
|
android:showAsAction="collapseActionView"
|
||||||
android:title="@string/show_info_label">
|
android:title="@string/show_info_label">
|
||||||
</item>
|
</item>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/remove_item"
|
android:id="@+id/remove_item"
|
||||||
android:icon="@drawable/content_discard"
|
android:icon="?attr/content_discard"
|
||||||
android:showAsAction="collapseActionView"
|
android:showAsAction="collapseActionView"
|
||||||
android:title="@string/remove_feed_label"
|
android:title="@string/remove_feed_label"
|
||||||
android:visible="true">
|
android:visible="true">
|
||||||
</item>
|
</item>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/visit_website_item"
|
android:id="@+id/visit_website_item"
|
||||||
android:icon="@drawable/location_web_site"
|
android:icon="?attr/location_web_site"
|
||||||
android:showAsAction="collapseActionView"
|
android:showAsAction="collapseActionView"
|
||||||
android:title="@string/visit_website_label"
|
android:title="@string/visit_website_label"
|
||||||
android:visible="true">
|
android:visible="true">
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||||
|
|
||||||
<item android:id="@+id/disable_sleeptimer_item" android:icon="@drawable/device_access_time" android:title="@string/sleep_timer_label" android:showAsAction="always"></item><item android:id="@+id/set_sleeptimer_item" android:showAsAction="collapseActionView" android:title="@string/set_sleeptimer_label"></item><item
|
<item android:id="@+id/disable_sleeptimer_item" android:icon="?attr/device_access_time" android:title="@string/sleep_timer_label" android:showAsAction="always"></item><item android:id="@+id/set_sleeptimer_item" android:showAsAction="collapseActionView" android:title="@string/set_sleeptimer_label"></item><item
|
||||||
android:id="@+id/share_link_item"
|
android:id="@+id/share_link_item"
|
||||||
android:showAsAction="collapseActionView"
|
android:showAsAction="collapseActionView"
|
||||||
android:title="@string/share_link_label">
|
android:title="@string/share_link_label">
|
||||||
</item>
|
</item>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/visit_website_item"
|
android:id="@+id/visit_website_item"
|
||||||
android:icon="@drawable/location_web_site"
|
android:icon="?attr/location_web_site"
|
||||||
android:showAsAction="ifRoom|collapseActionView"
|
android:showAsAction="ifRoom|collapseActionView"
|
||||||
android:title="@string/visit_website_label"
|
android:title="@string/visit_website_label"
|
||||||
android:visible="false">
|
android:visible="false">
|
||||||
|
|
|
@ -1,17 +1,17 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:id="@+id/all_feed_refresh" android:title="@string/refresh_label" android:icon="@drawable/navigation_refresh" android:showAsAction="ifRoom|collapseActionView">
|
<item android:id="@+id/all_feed_refresh" android:title="@string/refresh_label" android:icon="?attr/navigation_refresh" android:showAsAction="ifRoom|collapseActionView">
|
||||||
</item><item
|
</item><item
|
||||||
android:id="@+id/add_feed"
|
android:id="@+id/add_feed"
|
||||||
android:title="@string/add_feed_label"
|
android:title="@string/add_feed_label"
|
||||||
android:icon="@drawable/content_new"
|
android:icon="?attr/content_new"
|
||||||
android:showAsAction="ifRoom|collapseActionView">
|
android:showAsAction="ifRoom|collapseActionView">
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<item android:id="@id/search_item" android:icon="@drawable/action_search" android:title="@string/search_label" android:showAsAction="ifRoom|collapseActionView"></item><item android:id="@+id/show_player" android:title="@string/show_player_label" android:icon="@drawable/av_play" android:showAsAction="collapseActionView"></item><item android:id="@+id/show_playback_history" android:title="@string/playback_history_label" android:showAsAction="collapseActionView"></item><item android:id="@+id/show_downloads" android:title="@string/downloads_label" android:icon="@drawable/av_download" android:showAsAction="collapseActionView">
|
<item android:id="@id/search_item" android:icon="?attr/action_search" android:title="@string/search_label" android:showAsAction="ifRoom|collapseActionView"></item><item android:id="@+id/show_player" android:title="@string/show_player_label" android:icon="@drawable/av_play" android:showAsAction="collapseActionView"></item><item android:id="@+id/show_playback_history" android:title="@string/playback_history_label" android:showAsAction="collapseActionView"></item><item android:id="@+id/show_downloads" android:title="@string/downloads_label" android:icon="@drawable/av_download" android:showAsAction="collapseActionView">
|
||||||
</item><item android:id="@+id/show_preferences" android:title="@string/settings_label" android:icon="@drawable/action_settings" android:showAsAction="collapseActionView"></item>
|
</item><item android:id="@+id/show_preferences" android:title="@string/settings_label" android:icon="?attr/action_settings" android:showAsAction="collapseActionView"></item>
|
||||||
|
|
||||||
|
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<resources>
|
|
||||||
|
|
||||||
<style name="Theme.MediaPlayer" parent="@style/StyledIndicators"></style>
|
|
||||||
|
|
||||||
</resources>
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<color name="selection_background">#81CFEA</color>
|
<color name="selection_background_color_dark">#286E8A</color>
|
||||||
|
<color name="selection_background_color_light">#81CFEA</color>
|
||||||
</resources>
|
</resources>
|
|
@ -3,12 +3,12 @@
|
||||||
|
|
||||||
<string-array name="update_intervall_options">
|
<string-array name="update_intervall_options">
|
||||||
<item>Manual</item>
|
<item>Manual</item>
|
||||||
<item>1 h</item>
|
<item>1 hour</item>
|
||||||
<item>2 h</item>
|
<item>2 hours</item>
|
||||||
<item>4 h</item>
|
<item>4 hours</item>
|
||||||
<item>8 h</item>
|
<item>8 hours</item>
|
||||||
<item>12 h</item>
|
<item>12 hours</item>
|
||||||
<item>24 h</item>
|
<item>24 hours</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<string-array name="update_intervall_values">
|
<string-array name="update_intervall_values">
|
||||||
|
@ -20,5 +20,15 @@
|
||||||
<item>12</item>
|
<item>12</item>
|
||||||
<item>24</item>
|
<item>24</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
|
<string-array name="theme_options">
|
||||||
|
<item>Light</item>
|
||||||
|
<item>Dark</item>
|
||||||
|
</string-array>
|
||||||
|
|
||||||
|
<string-array name="theme_values">
|
||||||
|
<item>0</item>
|
||||||
|
<item>1</item>
|
||||||
|
</string-array>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
|
@ -0,0 +1,31 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<attr name="action_about" format="reference" />
|
||||||
|
<attr name="action_search" format="reference" />
|
||||||
|
<attr name="action_settings" format="reference" />
|
||||||
|
<attr name="action_stream" format="reference" />
|
||||||
|
<attr name="av_download" format="reference" />
|
||||||
|
<attr name="av_fast_forward" format="reference" />
|
||||||
|
<attr name="av_pause" format="reference" />
|
||||||
|
<attr name="av_play" format="reference" />
|
||||||
|
<attr name="av_rewind" format="reference" />
|
||||||
|
<attr name="content_discard" format="reference" />
|
||||||
|
<attr name="content_new" format="reference" />
|
||||||
|
<attr name="default_cover" format="reference" />
|
||||||
|
<attr name="device_access_time" format="reference" />
|
||||||
|
<attr name="location_web_site" format="reference" />
|
||||||
|
<attr name="navigation_accept" format="reference" />
|
||||||
|
<attr name="navigation_cancel" format="reference" />
|
||||||
|
<attr name="navigation_expand" format="reference" />
|
||||||
|
<attr name="navigation_refresh" format="reference" />
|
||||||
|
<attr name="social_share" format="reference" />
|
||||||
|
<attr name="stat_playlist" format="reference" />
|
||||||
|
<attr name="type_audio" format="reference" />
|
||||||
|
<attr name="type_video" format="reference" />
|
||||||
|
<attr name="borderless_button" format="reference" />
|
||||||
|
<!-- Used in itemdescription -->
|
||||||
|
<attr name="non_transparent_background" format="reference" />
|
||||||
|
<attr name="video_overlay_background" format="color" />
|
||||||
|
|
||||||
|
</resources>
|
|
@ -19,12 +19,16 @@
|
||||||
<color name="black">#000000</color>
|
<color name="black">#000000</color>
|
||||||
<color name="bright_blue">#33B5E5</color>
|
<color name="bright_blue">#33B5E5</color>
|
||||||
<color name="ics_gray">#858585</color>
|
<color name="ics_gray">#858585</color>
|
||||||
<color name="selection_background">#FEBB20</color>
|
|
||||||
<color name="actionbar_gray">#DDDDDD</color>
|
<color name="actionbar_gray">#DDDDDD</color>
|
||||||
<color name="download_success_green">#669900</color>
|
<color name="download_success_green">#669900</color>
|
||||||
<color name="download_failed_red">#CC0000</color>
|
<color name="download_failed_red">#CC0000</color>
|
||||||
<color name="status_unread">#99CC00</color>
|
<color name="status_unread">#99CC00</color>
|
||||||
<color name="status_progress">#FFBB33</color>
|
<color name="status_progress">#FFBB33</color>
|
||||||
<color name="status_playing">#EE5F52</color>
|
<color name="status_playing">#EE5F52</color>
|
||||||
|
<color name="video_overlay_dark">#262C31</color>
|
||||||
|
<color name="video_overlay_light">#DDDDDD</color>
|
||||||
|
<!-- Use Gingerbread-orange -->
|
||||||
|
<color name="selection_background_color_dark">#FEBB20</color>
|
||||||
|
<color name="selection_background_color_light">#FEBB20</color>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
|
@ -164,6 +164,8 @@
|
||||||
<string name="user_interface_label">User Interface</string>
|
<string name="user_interface_label">User Interface</string>
|
||||||
<string name="pref_auto_delete_title">Auto-delete</string>
|
<string name="pref_auto_delete_title">Auto-delete</string>
|
||||||
<string name="pref_auto_delete_sum">Delete an episode when playback completes or when it is removed from the queue.</string>
|
<string name="pref_auto_delete_sum">Delete an episode when playback completes or when it is removed from the queue.</string>
|
||||||
|
<string name="pref_set_theme_title">Select Theme</string>
|
||||||
|
<string name="pref_set_theme_sum">Change the appearance of AntennaPod.</string>
|
||||||
|
|
||||||
<!-- Search -->
|
<!-- Search -->
|
||||||
<string name="search_hint">Search for Feeds or Episodes</string>
|
<string name="search_hint">Search for Feeds or Episodes</string>
|
||||||
|
|
|
@ -1,18 +1,71 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
<style name="PodTheme" parent="@style/Theme.Sherlock.Light.ForceOverflow">
|
<style name="Theme.AntennaPod.Light" parent="@style/Theme.Sherlock.Light.ForceOverflow">
|
||||||
<item name="vpiTabPageIndicatorStyle">@style/Widget.TabPageIndicator</item>
|
<item name="vpiTabPageIndicatorStyle">@style/AntennaPod.LightTabPageIndicator</item>
|
||||||
</style>
|
<item name="attr/action_about">@drawable/action_about</item>
|
||||||
|
<item name="attr/action_search">@drawable/action_search</item>
|
||||||
<style name="StyledIndicators" parent="PodTheme">
|
<item name="attr/action_settings">@drawable/action_settings</item>
|
||||||
<item name="vpiTabPageIndicatorStyle">@style/Widget.TabPageIndicator</item>
|
<item name="attr/action_stream">@drawable/action_stream</item>
|
||||||
<item name="android:textColor">@color/black</item>
|
<item name="attr/av_download">@drawable/av_download</item>
|
||||||
</style>
|
<item name="attr/av_fast_forward">@drawable/av_fast_forward</item>
|
||||||
|
<item name="attr/av_pause">@drawable/av_pause</item>
|
||||||
|
<item name="attr/av_play">@drawable/av_play</item>
|
||||||
|
<item name="attr/av_rewind">@drawable/av_rewind</item>
|
||||||
|
<item name="attr/content_discard">@drawable/content_discard</item>
|
||||||
|
<item name="attr/content_new">@drawable/content_new</item>
|
||||||
|
<item name="attr/default_cover">@drawable/default_cover</item>
|
||||||
|
<item name="attr/device_access_time">@drawable/device_access_time</item>
|
||||||
|
<item name="attr/location_web_site">@drawable/location_web_site</item>
|
||||||
|
<item name="attr/navigation_accept">@drawable/navigation_accept</item>
|
||||||
|
<item name="attr/navigation_cancel">@drawable/navigation_cancel</item>
|
||||||
|
<item name="attr/navigation_expand">@drawable/navigation_expand</item>
|
||||||
|
<item name="attr/navigation_refresh">@drawable/navigation_refresh</item>
|
||||||
|
<item name="attr/social_share">@drawable/social_share</item>
|
||||||
|
<item name="attr/stat_playlist">@drawable/stat_playlist</item>
|
||||||
|
<item name="attr/type_audio">@drawable/type_audio</item>
|
||||||
|
<item name="attr/type_video">@drawable/type_video</item>
|
||||||
|
<item name="attr/non_transparent_background">@color/white</item>
|
||||||
|
<item name="attr/borderless_button">@drawable/borderless_button</item>
|
||||||
|
<item name="attr/video_overlay_background">@color/video_overlay_light</item>
|
||||||
|
|
||||||
|
|
||||||
<style name="VideoplayerTheme" parent="@style/Theme.Sherlock.Light.ForceOverflow">
|
|
||||||
<item name="android:windowActionBarOverlay">true</item>
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="AntennaPod.LightTabPageIndicator" parent="Widget.TabPageIndicator">
|
||||||
|
<item name="android:textColor">@color/black</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="Theme.AntennaPod.Dark" parent="@style/Theme.Sherlock.ForceOverflow">
|
||||||
|
<item name="vpiTabPageIndicatorStyle">@style/AntennaPod.DarkTabPageIndicator</item>
|
||||||
|
<item name="attr/action_about">@drawable/action_about_dark</item>
|
||||||
|
<item name="attr/action_search">@drawable/action_search_dark</item>
|
||||||
|
<item name="attr/action_settings">@drawable/action_settings_dark</item>
|
||||||
|
<item name="attr/action_stream">@drawable/action_stream_dark</item>
|
||||||
|
<item name="attr/av_download">@drawable/av_download_dark</item>
|
||||||
|
<item name="attr/av_fast_forward">@drawable/av_fast_forward_dark</item>
|
||||||
|
<item name="attr/av_pause">@drawable/av_pause_dark</item>
|
||||||
|
<item name="attr/av_play">@drawable/av_play_dark</item>
|
||||||
|
<item name="attr/av_rewind">@drawable/av_rewind_dark</item>
|
||||||
|
<item name="attr/content_discard">@drawable/content_discard_dark</item>
|
||||||
|
<item name="attr/content_new">@drawable/content_new_dark</item>
|
||||||
|
<item name="attr/default_cover">@drawable/default_cover_dark</item>
|
||||||
|
<item name="attr/device_access_time">@drawable/device_access_time_dark</item>
|
||||||
|
<item name="attr/location_web_site">@drawable/location_web_site_dark</item>
|
||||||
|
<item name="attr/navigation_accept">@drawable/navigation_accept_dark</item>
|
||||||
|
<item name="attr/navigation_cancel">@drawable/navigation_cancel_dark</item>
|
||||||
|
<item name="attr/navigation_expand">@drawable/navigation_expand_dark</item>
|
||||||
|
<item name="attr/navigation_refresh">@drawable/navigation_refresh_dark</item>
|
||||||
|
<item name="attr/social_share">@drawable/social_share_dark</item>
|
||||||
|
<item name="attr/stat_playlist">@drawable/stat_playlist_dark</item>
|
||||||
|
<item name="attr/type_audio">@drawable/type_audio_dark</item>
|
||||||
|
<item name="attr/type_video">@drawable/type_video_dark</item>
|
||||||
|
<item name="attr/non_transparent_background">@color/black</item>
|
||||||
|
<item name="attr/borderless_button">@drawable/borderless_button_dark</item>
|
||||||
|
<item name="attr/video_overlay_background">@color/video_overlay_dark</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="AntennaPod.DarkTabPageIndicator" parent="Widget.TabPageIndicator">
|
||||||
|
<item name="android:textColor">#FFFFFF</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
<PreferenceCategory android:title="@string/user_interface_label">
|
<PreferenceCategory android:title="@string/user_interface_label">
|
||||||
<CheckBoxPreference android:title="@string/pref_display_only_episodes_title" android:summary="@string/pref_display_only_episodes_sum" android:key="prefDisplayOnlyEpisodes"/>
|
<CheckBoxPreference android:title="@string/pref_display_only_episodes_title" android:summary="@string/pref_display_only_episodes_sum" android:key="prefDisplayOnlyEpisodes"/>
|
||||||
|
<ListPreference android:entryValues="@array/theme_values" android:entries="@array/theme_options" android:title="@string/pref_set_theme_title" android:key="prefTheme" android:summary="@string/pref_set_theme_sum" android:defaultValue="0"/>
|
||||||
</PreferenceCategory><PreferenceCategory android:title="@string/playback_pref" >
|
</PreferenceCategory><PreferenceCategory android:title="@string/playback_pref" >
|
||||||
<CheckBoxPreference
|
<CheckBoxPreference
|
||||||
android:defaultValue="true"
|
android:defaultValue="true"
|
||||||
|
|
|
@ -11,6 +11,7 @@ import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.content.res.Configuration;
|
import android.content.res.Configuration;
|
||||||
|
import android.preference.PreferenceActivity;
|
||||||
import android.preference.PreferenceManager;
|
import android.preference.PreferenceManager;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import de.danoeh.antennapod.activity.OpmlImportActivity;
|
import de.danoeh.antennapod.activity.OpmlImportActivity;
|
||||||
|
@ -35,6 +36,7 @@ public class PodcastApp extends Application implements
|
||||||
public static final String PREF_AUTO_QUEUE = "prefAutoQueue";
|
public static final String PREF_AUTO_QUEUE = "prefAutoQueue";
|
||||||
public static final String PREF_DISPLAY_ONLY_EPISODES = "prefDisplayOnlyEpisodes";
|
public static final String PREF_DISPLAY_ONLY_EPISODES = "prefDisplayOnlyEpisodes";
|
||||||
public static final String PREF_AUTO_DELETE = "prefAutoDelete";
|
public static final String PREF_AUTO_DELETE = "prefAutoDelete";
|
||||||
|
public static final String PREF_THEME = "prefTheme";
|
||||||
|
|
||||||
private static float LOGICAL_DENSITY;
|
private static float LOGICAL_DENSITY;
|
||||||
|
|
||||||
|
@ -43,6 +45,9 @@ public class PodcastApp extends Application implements
|
||||||
private boolean displayOnlyEpisodes;
|
private boolean displayOnlyEpisodes;
|
||||||
|
|
||||||
private static long currentlyPlayingMediaId;
|
private static long currentlyPlayingMediaId;
|
||||||
|
|
||||||
|
/** Resource id of the currently selected theme. */
|
||||||
|
private static int theme;
|
||||||
|
|
||||||
public static PodcastApp getInstance() {
|
public static PodcastApp getInstance() {
|
||||||
return singleton;
|
return singleton;
|
||||||
|
@ -60,6 +65,7 @@ public class PodcastApp extends Application implements
|
||||||
currentlyPlayingMediaId = prefs.getLong(
|
currentlyPlayingMediaId = prefs.getLong(
|
||||||
PlaybackService.PREF_CURRENTLY_PLAYING_MEDIA,
|
PlaybackService.PREF_CURRENTLY_PLAYING_MEDIA,
|
||||||
PlaybackService.NO_MEDIA_PLAYING);
|
PlaybackService.NO_MEDIA_PLAYING);
|
||||||
|
readThemeValue();
|
||||||
createImportDirectory();
|
createImportDirectory();
|
||||||
createNoMediaFile();
|
createNoMediaFile();
|
||||||
prefs.registerOnSharedPreferenceChangeListener(this);
|
prefs.registerOnSharedPreferenceChangeListener(this);
|
||||||
|
@ -162,6 +168,8 @@ public class PodcastApp extends Application implements
|
||||||
if (id != currentlyPlayingMediaId) {
|
if (id != currentlyPlayingMediaId) {
|
||||||
currentlyPlayingMediaId = id;
|
currentlyPlayingMediaId = id;
|
||||||
}
|
}
|
||||||
|
} else if (key.equals(PREF_THEME)) {
|
||||||
|
readThemeValue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -182,4 +190,22 @@ public class PodcastApp extends Application implements
|
||||||
|| (getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_XLARGE;
|
|| (getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_XLARGE;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static int getThemeResourceId() {
|
||||||
|
return theme;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Read value of prefTheme and determine the correct resource id. */
|
||||||
|
private void readThemeValue() {
|
||||||
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
|
||||||
|
int prefTheme = Integer.parseInt(prefs.getString(PREF_THEME, "0"));
|
||||||
|
switch (prefTheme) {
|
||||||
|
case 0:
|
||||||
|
theme = R.style.Theme_AntennaPod_Light;
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
theme = R.style.Theme_AntennaPod_Dark;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@ public class AboutActivity extends SherlockActivity {
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
getSupportActionBar().hide();
|
||||||
setContentView(R.layout.about);
|
setContentView(R.layout.about);
|
||||||
webview = (WebView) findViewById(R.id.webvAbout);
|
webview = (WebView) findViewById(R.id.webvAbout);
|
||||||
webview.loadUrl("file:///android_asset/about.html");
|
webview.loadUrl("file:///android_asset/about.html");
|
||||||
|
|
|
@ -18,6 +18,7 @@ import com.actionbarsherlock.view.Menu;
|
||||||
import com.actionbarsherlock.view.MenuItem;
|
import com.actionbarsherlock.view.MenuItem;
|
||||||
|
|
||||||
import de.danoeh.antennapod.AppConfig;
|
import de.danoeh.antennapod.AppConfig;
|
||||||
|
import de.danoeh.antennapod.PodcastApp;
|
||||||
import de.danoeh.antennapod.R;
|
import de.danoeh.antennapod.R;
|
||||||
import de.danoeh.antennapod.feed.Feed;
|
import de.danoeh.antennapod.feed.Feed;
|
||||||
import de.danoeh.antennapod.storage.DownloadRequestException;
|
import de.danoeh.antennapod.storage.DownloadRequestException;
|
||||||
|
@ -44,6 +45,7 @@ public class AddFeedActivity extends SherlockActivity {
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
setTheme(PodcastApp.getThemeResourceId());
|
||||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
StorageUtils.checkStorageAvailability(this);
|
StorageUtils.checkStorageAvailability(this);
|
||||||
setContentView(R.layout.addfeed);
|
setContentView(R.layout.addfeed);
|
||||||
|
|
|
@ -7,6 +7,7 @@ import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.IntentFilter;
|
import android.content.IntentFilter;
|
||||||
import android.content.ServiceConnection;
|
import android.content.ServiceConnection;
|
||||||
|
import android.content.res.TypedArray;
|
||||||
import android.os.AsyncTask;
|
import android.os.AsyncTask;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.IBinder;
|
import android.os.IBinder;
|
||||||
|
@ -21,6 +22,7 @@ import com.actionbarsherlock.view.Menu;
|
||||||
import com.actionbarsherlock.view.MenuItem;
|
import com.actionbarsherlock.view.MenuItem;
|
||||||
|
|
||||||
import de.danoeh.antennapod.AppConfig;
|
import de.danoeh.antennapod.AppConfig;
|
||||||
|
import de.danoeh.antennapod.PodcastApp;
|
||||||
import de.danoeh.antennapod.R;
|
import de.danoeh.antennapod.R;
|
||||||
import de.danoeh.antennapod.adapter.DownloadlistAdapter;
|
import de.danoeh.antennapod.adapter.DownloadlistAdapter;
|
||||||
import de.danoeh.antennapod.asynctask.DownloadStatus;
|
import de.danoeh.antennapod.asynctask.DownloadStatus;
|
||||||
|
@ -51,6 +53,7 @@ public class DownloadActivity extends SherlockListActivity implements
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
setTheme(PodcastApp.getThemeResourceId());
|
||||||
if (AppConfig.DEBUG)
|
if (AppConfig.DEBUG)
|
||||||
Log.d(TAG, "Creating Activity");
|
Log.d(TAG, "Creating Activity");
|
||||||
requester = DownloadRequester.getInstance();
|
requester = DownloadRequester.getInstance();
|
||||||
|
@ -185,7 +188,8 @@ public class DownloadActivity extends SherlockListActivity implements
|
||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case android.R.id.home:
|
case android.R.id.home:
|
||||||
Intent intent = new Intent(this, MainActivity.class);
|
Intent intent = new Intent(this, MainActivity.class);
|
||||||
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
|
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP
|
||||||
|
| Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
break;
|
break;
|
||||||
case MENU_SHOW_LOG:
|
case MENU_SHOW_LOG:
|
||||||
|
@ -201,9 +205,10 @@ public class DownloadActivity extends SherlockListActivity implements
|
||||||
@Override
|
@Override
|
||||||
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
|
public boolean onCreateActionMode(ActionMode mode, Menu menu) {
|
||||||
if (!selectedDownload.isDone()) {
|
if (!selectedDownload.isDone()) {
|
||||||
|
TypedArray drawables = obtainStyledAttributes(new int[] { R.attr.navigation_cancel });
|
||||||
menu.add(Menu.NONE, R.id.cancel_download_item, Menu.NONE,
|
menu.add(Menu.NONE, R.id.cancel_download_item, Menu.NONE,
|
||||||
R.string.cancel_download_label).setIcon(
|
R.string.cancel_download_label).setIcon(
|
||||||
R.drawable.navigation_cancel);
|
drawables.getDrawable(0));
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@ import com.actionbarsherlock.app.SherlockListActivity;
|
||||||
import com.actionbarsherlock.view.Menu;
|
import com.actionbarsherlock.view.Menu;
|
||||||
import com.actionbarsherlock.view.MenuItem;
|
import com.actionbarsherlock.view.MenuItem;
|
||||||
|
|
||||||
|
import de.danoeh.antennapod.PodcastApp;
|
||||||
import de.danoeh.antennapod.adapter.DownloadLogAdapter;
|
import de.danoeh.antennapod.adapter.DownloadLogAdapter;
|
||||||
import de.danoeh.antennapod.feed.FeedManager;
|
import de.danoeh.antennapod.feed.FeedManager;
|
||||||
|
|
||||||
|
@ -26,6 +27,7 @@ public class DownloadLogActivity extends SherlockListActivity {
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
setTheme(PodcastApp.getThemeResourceId());
|
||||||
manager = FeedManager.getInstance();
|
manager = FeedManager.getInstance();
|
||||||
|
|
||||||
dla = new DownloadLogAdapter(this, 0, manager.getDownloadLog());
|
dla = new DownloadLogAdapter(this, 0, manager.getDownloadLog());
|
||||||
|
|
|
@ -11,6 +11,7 @@ import com.actionbarsherlock.view.MenuInflater;
|
||||||
import com.actionbarsherlock.view.MenuItem;
|
import com.actionbarsherlock.view.MenuItem;
|
||||||
|
|
||||||
import de.danoeh.antennapod.AppConfig;
|
import de.danoeh.antennapod.AppConfig;
|
||||||
|
import de.danoeh.antennapod.PodcastApp;
|
||||||
import de.danoeh.antennapod.R;
|
import de.danoeh.antennapod.R;
|
||||||
import de.danoeh.antennapod.asynctask.FeedImageLoader;
|
import de.danoeh.antennapod.asynctask.FeedImageLoader;
|
||||||
import de.danoeh.antennapod.dialog.DownloadRequestErrorDialogCreator;
|
import de.danoeh.antennapod.dialog.DownloadRequestErrorDialogCreator;
|
||||||
|
@ -37,6 +38,7 @@ public class FeedInfoActivity extends SherlockActivity {
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
setTheme(PodcastApp.getThemeResourceId());
|
||||||
setContentView(R.layout.feedinfo);
|
setContentView(R.layout.feedinfo);
|
||||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||||
long feedId = getIntent().getLongExtra(EXTRA_FEED_ID, -1);
|
long feedId = getIntent().getLongExtra(EXTRA_FEED_ID, -1);
|
||||||
|
|
|
@ -3,6 +3,7 @@ package de.danoeh.antennapod.activity;
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.content.res.TypedArray;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.support.v4.app.FragmentManager;
|
import android.support.v4.app.FragmentManager;
|
||||||
import android.support.v4.app.FragmentTransaction;
|
import android.support.v4.app.FragmentTransaction;
|
||||||
|
@ -14,6 +15,7 @@ import com.actionbarsherlock.view.MenuInflater;
|
||||||
import com.actionbarsherlock.view.MenuItem;
|
import com.actionbarsherlock.view.MenuItem;
|
||||||
import com.actionbarsherlock.view.Window;
|
import com.actionbarsherlock.view.Window;
|
||||||
|
|
||||||
|
import de.danoeh.antennapod.PodcastApp;
|
||||||
import de.danoeh.antennapod.R;
|
import de.danoeh.antennapod.R;
|
||||||
import de.danoeh.antennapod.asynctask.FeedRemover;
|
import de.danoeh.antennapod.asynctask.FeedRemover;
|
||||||
import de.danoeh.antennapod.dialog.ConfirmationDialog;
|
import de.danoeh.antennapod.dialog.ConfirmationDialog;
|
||||||
|
@ -41,6 +43,7 @@ public class FeedItemlistActivity extends SherlockFragmentActivity {
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
setTheme(PodcastApp.getThemeResourceId());
|
||||||
StorageUtils.checkStorageAvailability(this);
|
StorageUtils.checkStorageAvailability(this);
|
||||||
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
|
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
|
||||||
|
|
||||||
|
@ -76,8 +79,9 @@ public class FeedItemlistActivity extends SherlockFragmentActivity {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCreateOptionsMenu(Menu menu) {
|
public boolean onCreateOptionsMenu(Menu menu) {
|
||||||
|
TypedArray drawables = obtainStyledAttributes(new int[] { R.attr.action_search });
|
||||||
menu.add(Menu.NONE, R.id.search_item, Menu.NONE, R.string.search_label)
|
menu.add(Menu.NONE, R.id.search_item, Menu.NONE, R.string.search_label)
|
||||||
.setIcon(R.drawable.action_search)
|
.setIcon(drawables.getDrawable(0))
|
||||||
.setShowAsAction(MenuItem.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW);
|
.setShowAsAction(MenuItem.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW);
|
||||||
return FeedMenuHandler
|
return FeedMenuHandler
|
||||||
.onCreateOptionsMenu(new MenuInflater(this), menu);
|
.onCreateOptionsMenu(new MenuInflater(this), menu);
|
||||||
|
@ -110,7 +114,8 @@ public class FeedItemlistActivity extends SherlockFragmentActivity {
|
||||||
R.string.feed_delete_confirmation_msg) {
|
R.string.feed_delete_confirmation_msg) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onConfirmButtonPressed(DialogInterface dialog) {
|
public void onConfirmButtonPressed(
|
||||||
|
DialogInterface dialog) {
|
||||||
dialog.dismiss();
|
dialog.dismiss();
|
||||||
remover.executeAsync();
|
remover.executeAsync();
|
||||||
}
|
}
|
||||||
|
@ -129,7 +134,8 @@ public class FeedItemlistActivity extends SherlockFragmentActivity {
|
||||||
}
|
}
|
||||||
} catch (DownloadRequestException e) {
|
} catch (DownloadRequestException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
DownloadRequestErrorDialogCreator.newRequestErrorDialog(this, e.getMessage());
|
DownloadRequestErrorDialogCreator.newRequestErrorDialog(this,
|
||||||
|
e.getMessage());
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,6 +17,7 @@ import com.actionbarsherlock.view.Menu;
|
||||||
import com.actionbarsherlock.view.MenuItem;
|
import com.actionbarsherlock.view.MenuItem;
|
||||||
|
|
||||||
import de.danoeh.antennapod.AppConfig;
|
import de.danoeh.antennapod.AppConfig;
|
||||||
|
import de.danoeh.antennapod.PodcastApp;
|
||||||
import de.danoeh.antennapod.R;
|
import de.danoeh.antennapod.R;
|
||||||
import de.danoeh.antennapod.util.flattr.FlattrUtils;
|
import de.danoeh.antennapod.util.flattr.FlattrUtils;
|
||||||
|
|
||||||
|
@ -36,6 +37,7 @@ public class FlattrAuthActivity extends SherlockActivity {
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
setTheme(PodcastApp.getThemeResourceId());
|
||||||
singleton = this;
|
singleton = this;
|
||||||
authSuccessful = false;
|
authSuccessful = false;
|
||||||
if (AppConfig.DEBUG) Log.d(TAG, "Activity created");
|
if (AppConfig.DEBUG) Log.d(TAG, "Activity created");
|
||||||
|
|