add shadows to light theme, misc layout/theme tweaks

This commit is contained in:
Andrew Dolgov 2012-06-22 00:35:53 +04:00
parent 15e0e4ec0d
commit bc7e851b9a
27 changed files with 145 additions and 229 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 B

5
res/drawable/shadow.xml Normal file
View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<bitmap
xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/shadow_bitmap"
android:gravity="fill_vertical|right" />

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@color/feeds_light"/>
<item android:drawable="@drawable/shadow"/>
</layer-list>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:drawable="@color/headlines_light"/>
<item android:drawable="@drawable/shadow"/>
</layer-list>

View File

@ -12,13 +12,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:id="@+id/headlines_separator"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?headlineSeparatorNormal"
android:paddingRight="4dip" />
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"

View File

@ -12,13 +12,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:id="@+id/headlines_separator"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?headlineSeparatorSelected"
android:paddingRight="4dip" />
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"

View File

@ -12,13 +12,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:id="@+id/headlines_separator"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?headlineSeparatorUnread"
android:paddingRight="4dip" />
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
@ -34,7 +27,7 @@
android:ellipsize="end"
android:singleLine="true"
android:text="There are many variations of passages of Lorem Ipsum available"
android:textColor="?headlineTextColor"
android:textColor="?headlineUnreadTextColor"
android:textSize="16sp" />
<LinearLayout

View File

@ -3,6 +3,44 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<LinearLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<FrameLayout
android:id="@+id/feeds_fragment"
android:layout_width="300dp"
android:layout_height="match_parent"
android:layout_weight="0"
android:background="?feedlistBackground" >
</FrameLayout>
<LinearLayout
android:id="@+id/vertical_fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<FrameLayout
android:id="@+id/headlines_fragment"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.5"
android:background="?headlinesBackgroundSolid" >
</FrameLayout>
<FrameLayout
android:id="@+id/article_fragment"
android:layout_width="match_parent"
android:layout_height="0dp"
android:background="?articleHeader"
android:layout_weight="0.5" >
</FrameLayout>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/loading_container"
android:layout_width="match_parent"
@ -18,40 +56,4 @@
android:text="@string/loading_message"
android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<FrameLayout
android:id="@+id/feeds_fragment"
android:layout_width="300dp"
android:layout_height="match_parent"
android:layout_weight="0" >
</FrameLayout>
<LinearLayout
android:id="@+id/vertical_fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<FrameLayout
android:id="@+id/headlines_fragment"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.5" >
</FrameLayout>
<FrameLayout
android:id="@+id/article_fragment"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.5" >
</FrameLayout>
</LinearLayout>
</LinearLayout>
</FrameLayout>

View File

@ -14,14 +14,6 @@
android:gravity="center_vertical"
android:orientation="horizontal" >
<ImageView
android:id="@+id/headlines_separator"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?headlineSeparatorNormal"
android:paddingRight="4dip" />
<CheckBox
android:id="@+id/selected"
android:layout_width="wrap_content"

View File

@ -13,13 +13,6 @@
android:gravity="center_vertical"
android:orientation="horizontal" >
<ImageView
android:id="@+id/headlines_separator"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?headlineSeparatorSelected"
android:paddingRight="4dip" />
<CheckBox
android:id="@+id/selected"
android:layout_width="wrap_content"

View File

@ -13,13 +13,6 @@
android:gravity="center_vertical"
android:orientation="horizontal" >
<ImageView
android:id="@+id/headlines_separator"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?headlineSeparatorUnread"
android:paddingRight="4dip" />
<CheckBox
android:id="@+id/selected"
android:layout_width="wrap_content"
@ -43,7 +36,7 @@
android:ellipsize="end"
android:singleLine="true"
android:text="{Title...}"
android:textColor="?headlineTextColor"
android:textColor="?headlineUnreadTextColor"
android:textSize="16sp" >
</TextView>

View File

@ -4,6 +4,37 @@
android:layout_height="fill_parent"
>
<LinearLayout
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<FrameLayout
android:id="@+id/feeds_fragment"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.3"
android:background="?feedlistBackground" >
</FrameLayout>
<FrameLayout
android:id="@+id/headlines_fragment"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.4"
android:background="?headlinesBackground" >
</FrameLayout>
<FrameLayout
android:id="@+id/article_fragment"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.6"
android:background="?articleHeader" >
</FrameLayout>
</LinearLayout>
<LinearLayout
android:id="@+id/loading_container"
android:layout_width="match_parent"
@ -20,32 +51,4 @@
android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:id="@+id/fragment_container"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<FrameLayout
android:id="@+id/feeds_fragment"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.3" >
</FrameLayout>
<FrameLayout
android:id="@+id/headlines_fragment"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.4" >
</FrameLayout>
<FrameLayout
android:id="@+id/article_fragment"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.6" >
</FrameLayout>
</LinearLayout>
</FrameLayout>

View File

@ -3,17 +3,7 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >
<ImageView
android:id="@+id/splitter_vertical"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="0"
android:background="?articleDivider"
android:clickable="true"
android:paddingLeft="4dip" >
</ImageView>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
@ -21,26 +11,16 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical" >
<ImageView
android:id="@+id/splitter_horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:background="?articleDivider"
android:clickable="true"
android:paddingTop="4dip" />
android:orientation="vertical"
android:padding="5sp" >
<LinearLayout
android:id="@+id/article_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:background="?articleHeader"
android:layout_weight="0"
android:orientation="vertical"
android:paddingLeft="5dp"
android:paddingRight="5dp" >
android:paddingBottom="5sp">
<TextView
android:id="@+id/title"
@ -48,7 +28,7 @@
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="There are many variations of passages of Lorem Ipsum available"
android:textSize="15sp" />
android:textSize="16sp" />
<LinearLayout
android:layout_width="match_parent"
@ -89,7 +69,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:padding="3dip" >
android:padding="5sp" >
</WebView>
<LinearLayout

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent" android:layout_width="match_parent" android:id="@+id/feeds_fragment">
<LinearLayout android:id="@+id/loading_container" android:gravity="center" android:layout_height="match_parent" android:layout_width="match_parent">
<TextView android:layout_width="wrap_content" android:textAppearance="?android:attr/textAppearanceLarge" android:id="@+id/loading_message" android:layout_height="wrap_content" ></TextView>
@ -8,7 +9,7 @@
<ListView android:id="@+id/feeds" android:layout_height="match_parent" android:layout_width="match_parent"></ListView>
<TextView android:id="@+id/no_feeds"
android:visibility="invisible"
android:visibility="invisible"
android:layout_gravity="center" android:color="#909090"
android:textAppearance="?android:attr/textAppearanceLarge" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/no_feeds"></TextView>

View File

@ -14,14 +14,6 @@
android:gravity="center_vertical"
android:orientation="horizontal" >
<ImageView
android:id="@+id/headlines_separator"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?headlineSeparatorNormal"
android:paddingRight="4dip" />
<CheckBox
android:id="@+id/selected"
android:layout_width="wrap_content"

View File

@ -13,13 +13,6 @@
android:gravity="center_vertical"
android:orientation="horizontal" >
<ImageView
android:id="@+id/headlines_separator"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?headlineSeparatorSelected"
android:paddingRight="4dip" />
<CheckBox
android:id="@+id/selected"
android:layout_width="wrap_content"

View File

@ -13,13 +13,6 @@
android:gravity="center_vertical"
android:orientation="horizontal" >
<ImageView
android:id="@+id/headlines_separator"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?headlineSeparatorUnread"
android:paddingRight="4dip" />
<CheckBox
android:id="@+id/selected"
android:layout_width="wrap_content"
@ -43,7 +36,7 @@
android:ellipsize="end"
android:singleLine="true"
android:text="{Title...}"
android:textColor="?headlineTextColor"
android:textColor="?headlineUnreadTextColor"
android:textSize="16sp" >
</TextView>

View File

@ -1,49 +0,0 @@
<resources>
<style name="LightTheme" parent="android:Theme.Holo.Light">
<item name="feedlistDivider">@android:drawable/divider_horizontal_bright</item>
<item name="feedlistBackground">#fafafa</item>
<item name="unreadCounterColor">#0000ff</item>
<item name="headlinesBackground">#ffffff</item>
<item name="articleDivider">#96c5ff</item>
<item name="articleHeader">@android:color/transparent</item>
<item name="headlineSelectedBackground">#fff7d5</item>
<item name="headlineUnreadBackground">#ffffff</item>
<item name="headlineNormalBackground">@android:color/transparent</item>
<item name="feedsSelectedBackground">#96C5FF</item>
<item name="headlineSeparatorUnread">#96C5FF</item>
<item name="headlineSeparatorNormal">#909090</item>
<item name="headlineSeparatorSelected">#DBC981</item>
<item name="feedlistTextColor">@android:color/primary_text_light</item>
<item name="feedlistSelectedTextColor">@android:color/primary_text_light</item>
<item name="headlineTextColor">@android:color/primary_text_light</item>
<item name="headlineSelectedTextColor">@android:color/primary_text_light</item>
<item name="headlineExcerptTextColor">@android:color/secondary_text_light</item>
<item name="headlineSelectedExcerptTextColor">@android:color/secondary_text_light</item>
<item name="linkColor">#5858F8</item>
</style>
<style name="DarkTheme" parent="android:Theme.Holo">
<item name="feedlistDivider">@android:drawable/divider_horizontal_dark</item>
<item name="feedlistBackground">#101010</item>
<item name="unreadCounterColor">#303030</item>
<item name="headlinesBackground">#000000</item>
<item name="articleDivider">#303060</item>
<item name="articleHeader">@android:color/transparent</item>
<item name="headlineSelectedBackground">#303060</item>
<item name="headlineUnreadBackground">#303030</item>
<item name="headlineNormalBackground">@android:color/transparent</item>
<item name="feedsSelectedBackground">#303060</item>
<item name="headlineSeparatorUnread">#303060</item>
<item name="headlineSeparatorNormal">#303030</item>
<item name="headlineSeparatorSelected">#47478E</item>
<item name="feedlistTextColor">@android:color/primary_text_dark</item>
<item name="feedlistSelectedTextColor">@android:color/primary_text_dark</item>
<item name="headlineTextColor">@android:color/primary_text_dark</item>
<item name="headlineSelectedTextColor">@android:color/primary_text_dark</item>
<item name="headlineExcerptTextColor">@android:color/secondary_text_dark</item>
<item name="headlineSelectedExcerptTextColor">@android:color/secondary_text_dark</item>
<item name="linkColor">#5858F8</item>
</style>
</resources>

View File

@ -1,21 +1,23 @@
<resources>
<style name="LightTheme" parent="android:Theme.Holo.Light">
<item name="feedlistDivider">@android:drawable/divider_horizontal_bright</item>
<item name="feedlistBackground">#fafafa</item>
<item name="feedlistBackground"><!-- #e0e0e0 -->@drawable/shadow_feeds</item>
<item name="unreadCounterColor">#0000ff</item>
<item name="headlinesBackground">#ffffff</item>
<item name="headlinesBackground"><!-- #f0f0f0 -->@drawable/shadow_headlines</item>
<item name="headlinesBackgroundSolid">#f0f0f0</item>
<item name="articleDivider">#96c5ff</item>
<item name="articleHeader">@android:color/transparent</item>
<item name="headlineSelectedBackground">#fff7d5</item>
<item name="headlineUnreadBackground">#ffffff</item>
<item name="articleHeader">#ffffff</item>
<item name="headlineSelectedBackground">#ffffff</item>
<item name="headlineUnreadBackground">@android:color/transparent</item>
<item name="headlineNormalBackground">@android:color/transparent</item>
<item name="feedsSelectedBackground">#96C5FF</item>
<item name="feedsSelectedBackground">#f0f0f0</item>
<item name="headlineSeparatorUnread">#96C5FF</item>
<item name="headlineSeparatorNormal">#909090</item>
<item name="headlineSeparatorSelected">#DBC981</item>
<item name="feedlistTextColor">@android:color/primary_text_light</item>
<item name="feedlistSelectedTextColor">@android:color/primary_text_light</item>
<item name="headlineTextColor">@android:color/primary_text_light</item>
<item name="headlineTextColor">@android:color/secondary_text_light</item>
<item name="headlineUnreadTextColor">@android:color/primary_text_light</item>
<item name="headlineSelectedTextColor">@android:color/primary_text_light</item>
<item name="headlineExcerptTextColor">@android:color/secondary_text_light</item>
<item name="headlineSelectedExcerptTextColor">@android:color/secondary_text_light</item>
@ -24,13 +26,14 @@
<style name="DarkTheme" parent="android:Theme.Holo">
<item name="feedlistDivider">@android:drawable/divider_horizontal_dark</item>
<item name="feedlistBackground">#101010</item>
<item name="feedlistBackground">@android:color/transparent</item>
<item name="unreadCounterColor">#303030</item>
<item name="headlinesBackground">#000000</item>
<item name="headlinesBackground">#101010</item>
<item name="headlinesBackgroundSolid">#101010</item>
<item name="articleDivider">#33b5e5</item>
<item name="articleHeader">@android:color/transparent</item>
<item name="headlineSelectedBackground">#33b5e5</item>
<item name="headlineUnreadBackground">#303030</item>
<item name="headlineUnreadBackground">@android:color/transparent</item>
<item name="headlineNormalBackground">@android:color/transparent</item>
<item name="feedsSelectedBackground">#33b5e5</item>
<item name="headlineSeparatorUnread">#33b5e5</item>
@ -38,7 +41,8 @@
<item name="headlineSeparatorSelected">#33b5e5</item>
<item name="feedlistTextColor">@android:color/primary_text_dark</item>
<item name="feedlistSelectedTextColor">@android:color/black</item>
<item name="headlineTextColor">@android:color/primary_text_dark</item>
<item name="headlineTextColor">@android:color/secondary_text_dark</item>
<item name="headlineUnreadTextColor">@android:color/primary_text_dark</item>
<item name="headlineSelectedTextColor">@android:color/black</item>
<item name="headlineExcerptTextColor">@android:color/secondary_text_dark</item>
<item name="headlineSelectedExcerptTextColor">@android:color/black</item>

View File

@ -4,6 +4,7 @@
<attr name="feedlistBackground" format="reference|color" />
<attr name="unreadCounterColor" format="reference|color" />
<attr name="headlinesBackground" format="reference|color" />
<attr name="headlinesBackgroundSolid" format="reference|color" />
<attr name="articleHeader" format="reference|color" />
<attr name="articleDivider" format="reference|color" />
<attr name="headlineSelectedBackground" format="reference|color" />
@ -16,6 +17,7 @@
<attr name="feedlistTextColor" format="reference|color" />
<attr name="feedlistSelectedTextColor" format="reference|color" />
<attr name="headlineTextColor" format="reference|color" />
<attr name="headlineUnreadTextColor" format="reference|color" />
<attr name="headlineSelectedTextColor" format="reference|color" />
<attr name="headlineExcerptTextColor" format="reference|color" />
<attr name="headlineSelectedExcerptTextColor" format="reference|color" />

7
res/values/resources.xml Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="feeds_light">#e0e0e0</color>
<color name="headlines_light">#f0f0f0</color>
</resources>

View File

@ -5,6 +5,7 @@
<item name="feedlistBackground">#fafafa</item>
<item name="unreadCounterColor">#0000ff</item>
<item name="headlinesBackground">#ffffff</item>
<item name="headlinesBackgroundSolid">#ffffff</item>
<item name="articleDivider">#96c5ff</item>
<item name="articleHeader">@android:color/transparent</item>
<item name="headlineSelectedBackground">#fff7d5</item>
@ -17,6 +18,7 @@
<item name="feedlistTextColor">@android:color/primary_text_light</item>
<item name="feedlistSelectedTextColor">@android:color/primary_text_light</item>
<item name="headlineTextColor">@android:color/primary_text_light</item>
<item name="headlineUnreadTextColor">@android:color/primary_text_light</item>
<item name="headlineSelectedTextColor">@android:color/primary_text_light</item>
<item name="headlineExcerptTextColor">@android:color/secondary_text_light</item>
<item name="headlineSelectedExcerptTextColor">@android:color/secondary_text_light</item>
@ -28,6 +30,7 @@
<item name="feedlistBackground">#101010</item>
<item name="unreadCounterColor">#303030</item>
<item name="headlinesBackground">#000000</item>
<item name="headlinesBackgroundSolid">#000000</item>
<item name="articleDivider">#F5B800</item>
<item name="articleHeader">@android:color/transparent</item>
<item name="headlineSelectedBackground">#F5B800</item>
@ -40,6 +43,7 @@
<item name="feedlistTextColor">@android:color/primary_text_dark</item>
<item name="feedlistSelectedTextColor">@android:color/primary_text_dark</item>
<item name="headlineTextColor">@android:color/primary_text_dark</item>
<item name="headlineUnreadTextColor">@android:color/primary_text_dark</item>
<item name="headlineSelectedTextColor">@android:color/black</item>
<item name="headlineExcerptTextColor">@android:color/secondary_text_dark</item>
<item name="headlineSelectedExcerptTextColor">@android:color/black</item>

View File

@ -88,7 +88,7 @@ public class ArticleFragment extends Fragment {
Activity activity = (Activity)getActivity();
if (activity != null) {
/* if (activity != null) {
int orientation = activity.getWindowManager().getDefaultDisplay().getOrientation();
if (!m_onlineServices.isSmallScreen()) {
@ -103,7 +103,7 @@ public class ArticleFragment extends Fragment {
}
} else {
view.findViewById(R.id.splitter_horizontal).setVisibility(View.GONE);
}
} */
if (m_article != null) {
@ -187,6 +187,7 @@ public class ArticleFragment extends Fragment {
"<meta content=\"text/html; charset=utf-8\" http-equiv=\"content-type\">" +
//"<meta name=\"viewport\" content=\"target-densitydpi=device-dpi\" />" +
"<style type=\"text/css\">" +
"body { padding : 0px; margin : 0px; }" +
cssOverride +
"div.attachments { font-size : 70%; margin-top : 1em; }" +
"img { max-width : 98%; height : auto; }" +

View File

@ -464,11 +464,11 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
}
}
ImageView separator = (ImageView)v.findViewById(R.id.headlines_separator);
/* ImageView separator = (ImageView)v.findViewById(R.id.headlines_separator);
if (separator != null && m_onlineServices.isSmallScreen()) {
separator.setVisibility(View.GONE);
}
} */
TextView content = (TextView)v.findViewById(R.id.content);

View File

@ -420,6 +420,7 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
private void setUnreadOnly(boolean unread) {
m_unreadOnly = unread;
m_lastRefresh = 0;
refresh();
}
@ -975,6 +976,7 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
startActivityForResult(intent, 0);
return true;
case R.id.update_feeds:
m_lastRefresh = 0;
refresh();
return true;
case R.id.logout:
@ -1390,7 +1392,11 @@ public class MainActivity extends FragmentActivity implements OnlineServices {
getActionBar().setTitle(R.string.app_name);
}
getActionBar().setDisplayHomeAsUpEnabled(m_selectedArticle != null || m_activeCategory != null);
if (m_smallScreenMode) {
getActionBar().setDisplayHomeAsUpEnabled(m_selectedArticle != null || m_activeCategory != null);
} else {
getActionBar().setDisplayHomeAsUpEnabled(m_selectedArticle != null || m_activeCategory != null || m_activeFeed != null);
}
if (android.os.Build.VERSION.SDK_INT >= 14) {
ShareActionProvider shareProvider = (ShareActionProvider) m_menu.findItem(R.id.share_article).getActionProvider();

View File

@ -75,7 +75,7 @@ public class OfflineArticleFragment extends Fragment {
// TODO change to interface?
Activity activity = getActivity();
if (activity != null) {
/* if (activity != null) {
int orientation = activity.getWindowManager().getDefaultDisplay().getOrientation();
if (!m_offlineServices.isSmallScreen()) {
@ -90,7 +90,7 @@ public class OfflineArticleFragment extends Fragment {
}
} else {
view.findViewById(R.id.splitter_horizontal).setVisibility(View.GONE);
}
} */
m_cursor = m_offlineServices.getReadableDb().query("articles", null, BaseColumns._ID + "=?",
new String[] { String.valueOf(m_articleId) }, null, null, null);
@ -193,6 +193,7 @@ public class OfflineArticleFragment extends Fragment {
"<meta content=\"text/html; charset=utf-8\" http-equiv=\"content-type\">" +
//"<meta name=\"viewport\" content=\"target-densitydpi=device-dpi\" />" +
"<style type=\"text/css\">" +
"body { padding : 0px; margin : 0px; }" +
cssOverride +
"img { max-width : 98%; height : auto; }" +
"</style>" +

View File

@ -364,11 +364,11 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis
}
}
ImageView separator = (ImageView)v.findViewById(R.id.headlines_separator);
/* ImageView separator = (ImageView)v.findViewById(R.id.headlines_separator);
if (separator != null && m_offlineServices.isSmallScreen()) {
separator.setVisibility(View.GONE);
}
} */
TextView content = (TextView)v.findViewById(R.id.content);