hide headlines row separator in small screen mode

This commit is contained in:
Andrew Dolgov 2012-03-12 15:04:52 +03:00
parent 8caa0fcd82
commit 7101a92b06
11 changed files with 21 additions and 0 deletions

View File

@ -13,6 +13,7 @@
android:layout_height="match_parent" >
<ImageView
android:id="@+id/headlines_separator"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?headlineSeparatorNormal"

View File

@ -14,6 +14,7 @@
android:layout_height="match_parent" >
<ImageView
android:id="@+id/headlines_separator"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?headlineSeparatorSelected"

View File

@ -14,6 +14,7 @@
android:layout_height="match_parent" >
<ImageView
android:id="@+id/headlines_separator"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?headlineSeparatorUnread"

View File

@ -16,6 +16,7 @@
<ImageView
android:id="@+id/headlines_separator"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?headlineSeparatorNormal"

View File

@ -14,6 +14,7 @@
android:orientation="horizontal" >
<ImageView
android:id="@+id/headlines_separator"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?headlineSeparatorSelected"

View File

@ -14,6 +14,7 @@
android:orientation="horizontal" >
<ImageView
android:id="@+id/headlines_separator"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?headlineSeparatorUnread"

View File

@ -16,6 +16,7 @@
<ImageView
android:id="@+id/headlines_separator"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?headlineSeparatorNormal"

View File

@ -14,6 +14,7 @@
android:orientation="horizontal" >
<ImageView
android:id="@+id/headlines_separator"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?headlineSeparatorSelected"

View File

@ -14,6 +14,7 @@
android:orientation="horizontal" >
<ImageView
android:id="@+id/headlines_separator"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?headlineSeparatorUnread"

View File

@ -442,6 +442,12 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
}
}
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);
if (content != null) {

View File

@ -349,6 +349,12 @@ public class OfflineHeadlinesFragment extends Fragment implements OnItemClickLis
}
}
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);
if (content != null) {