diff --git a/res/layout/feeditemview.xml b/res/layout/feeditemview.xml
index c16cd5762..b54665d90 100644
--- a/res/layout/feeditemview.xml
+++ b/res/layout/feeditemview.xml
@@ -1,8 +1,7 @@
-
+ android:layout_height="fill_parent" >
+ android:layout_margin="8dp"
+ android:textSize="18dp" />
+ android:layout_marginBottom="8dp"
+ android:layout_marginLeft="8dp"
+ android:layout_marginRight="8dp"
+ android:textColor="@color/gray"
+ android:textStyle="italic" />
+
+
+
+
+
-
-
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/de/podfetcher/activity/ItemviewActivity.java b/src/de/podfetcher/activity/ItemviewActivity.java
index f98196a46..931ba9f7c 100644
--- a/src/de/podfetcher/activity/ItemviewActivity.java
+++ b/src/de/podfetcher/activity/ItemviewActivity.java
@@ -43,6 +43,7 @@ public class ItemviewActivity extends SherlockFragmentActivity {
StorageUtils.checkStorageAvailability(this);
manager = FeedManager.getInstance();
requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS);
+ getSupportActionBar().setDisplayShowTitleEnabled(false);
extractFeeditem();
populateUI();
}
@@ -90,8 +91,8 @@ public class ItemviewActivity extends SherlockFragmentActivity {
FragmentManager fragmentManager = getSupportFragmentManager();
FragmentTransaction fragmentTransaction = fragmentManager
.beginTransaction();
- ItemDescriptionFragment fragment = ItemDescriptionFragment
- .newInstance(item);
+ ItemDescriptionFragment fragment = ItemDescriptionFragment.newInstance(
+ item, false);
fragmentTransaction.add(R.id.description_fragment, fragment);
fragmentTransaction.commit();
}
diff --git a/src/de/podfetcher/activity/MediaplayerActivity.java b/src/de/podfetcher/activity/MediaplayerActivity.java
index dc3d5aeff..655a12182 100644
--- a/src/de/podfetcher/activity/MediaplayerActivity.java
+++ b/src/de/podfetcher/activity/MediaplayerActivity.java
@@ -702,7 +702,7 @@ public class MediaplayerActivity extends SherlockFragmentActivity implements
return activity.coverFragment;
case POS_DESCR:
activity.descriptionFragment = ItemDescriptionFragment
- .newInstance(activity.media.getItem());
+ .newInstance(activity.media.getItem(), true);
return activity.descriptionFragment;
default:
return CoverFragment.newInstance(null);
diff --git a/src/de/podfetcher/fragment/ItemDescriptionFragment.java b/src/de/podfetcher/fragment/ItemDescriptionFragment.java
index bbb0e2c24..ea565854c 100644
--- a/src/de/podfetcher/fragment/ItemDescriptionFragment.java
+++ b/src/de/podfetcher/fragment/ItemDescriptionFragment.java
@@ -26,19 +26,22 @@ public class ItemDescriptionFragment extends SherlockFragment {
private static final String TAG = "ItemDescriptionFragment";
private static final String ARG_FEED_ID = "arg.feedId";
private static final String ARG_FEEDITEM_ID = "arg.feedItemId";
+ private static final String ARG_SCROLLBAR_ENABLED = "arg.scrollbarEnabled";
private static final String WEBVIEW_STYLE = "
";
+ private boolean scrollbarEnabled;
private WebView webvDescription;
private FeedItem item;
private AsyncTask webViewLoader;
- public static ItemDescriptionFragment newInstance(FeedItem item) {
+ public static ItemDescriptionFragment newInstance(FeedItem item, boolean scrollbarEnabled) {
ItemDescriptionFragment f = new ItemDescriptionFragment();
Bundle args = new Bundle();
args.putLong(ARG_FEED_ID, item.getFeed().getId());
args.putLong(ARG_FEEDITEM_ID, item.getId());
+ args.putBoolean(ARG_SCROLLBAR_ENABLED, scrollbarEnabled);
f.setArguments(args);
return f;
}
@@ -47,6 +50,7 @@ public class ItemDescriptionFragment extends SherlockFragment {
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
webvDescription = new WebView(getActivity());
+ webvDescription.setHorizontalScrollBarEnabled(scrollbarEnabled);
return webvDescription;
}
@@ -82,6 +86,7 @@ public class ItemDescriptionFragment extends SherlockFragment {
Bundle args = getArguments();
long feedId = args.getLong(ARG_FEED_ID, -1);
long itemId = args.getLong(ARG_FEEDITEM_ID, -1);
+ scrollbarEnabled = args.getBoolean(ARG_SCROLLBAR_ENABLED, true);
if (feedId != -1 && itemId != -1) {
Feed feed = manager.getFeed(feedId);
item = manager.getFeedItem(itemId, feed);