Added stylesheet for itemdescription webview
This commit is contained in:
parent
bc977e1e20
commit
9539ead467
@ -27,6 +27,8 @@ public class ItemDescriptionFragment extends SherlockFragment {
|
|||||||
private static final String ARG_FEED_ID = "arg.feedId";
|
private static final String ARG_FEED_ID = "arg.feedId";
|
||||||
private static final String ARG_FEEDITEM_ID = "arg.feedItemId";
|
private static final String ARG_FEEDITEM_ID = "arg.feedItemId";
|
||||||
|
|
||||||
|
private static final String WEBVIEW_STYLE = "<head><style type=\"text/css\"> * { font-family: Helvetica; line-height: 1.5em; font-size: 12pt; } a { font-style: normal; text-decoration: none; font-weight: normal; color: #00A8DF; }</style></head>";
|
||||||
|
|
||||||
private WebView webvDescription;
|
private WebView webvDescription;
|
||||||
private FeedItem item;
|
private FeedItem item;
|
||||||
|
|
||||||
@ -109,9 +111,8 @@ public class ItemDescriptionFragment extends SherlockFragment {
|
|||||||
protected void onPostExecute(Void result) {
|
protected void onPostExecute(Void result) {
|
||||||
super.onPostExecute(result);
|
super.onPostExecute(result);
|
||||||
// /webvDescription.loadData(url, "text/html", "utf-8");
|
// /webvDescription.loadData(url, "text/html", "utf-8");
|
||||||
webvDescription.loadDataWithBaseURL(null,
|
webvDescription.loadDataWithBaseURL(null, data, "text/html",
|
||||||
item.getContentEncoded(), "text/html", "utf-8",
|
"utf-8", "about:blank");
|
||||||
"about:blank");
|
|
||||||
getSherlockActivity()
|
getSherlockActivity()
|
||||||
.setSupportProgressBarIndeterminateVisibility(false);
|
.setSupportProgressBarIndeterminateVisibility(false);
|
||||||
Log.d(TAG, "Webview loaded");
|
Log.d(TAG, "Webview loaded");
|
||||||
@ -137,6 +138,8 @@ public class ItemDescriptionFragment extends SherlockFragment {
|
|||||||
.getContentEncoded());
|
.getContentEncoded());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
data = WEBVIEW_STYLE + data;
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user