do not show drawer header in tablet horizontal mode
This commit is contained in:
parent
cb0c9b06e0
commit
99216872d0
@ -28,6 +28,8 @@ public abstract class BaseFeedlistFragment extends Fragment {
|
|||||||
|
|
||||||
if (true /*m_activity.findViewById(R.id.headlines_drawer) != null*/) {
|
if (true /*m_activity.findViewById(R.id.headlines_drawer) != null*/) {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
if (activity.isSmallScreen()) {
|
||||||
View layout = inflater.inflate(R.layout.drawer_header, list, false);
|
View layout = inflater.inflate(R.layout.drawer_header, list, false);
|
||||||
list.addHeaderView(layout, null, false);
|
list.addHeaderView(layout, null, false);
|
||||||
|
|
||||||
@ -55,6 +57,7 @@ public abstract class BaseFeedlistFragment extends Fragment {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/* deal with ~material~ footers */
|
/* deal with ~material~ footers */
|
||||||
|
|
||||||
|
@ -225,7 +225,10 @@ public class FeedCategoriesFragment extends BaseFeedlistFragment implements OnIt
|
|||||||
registerForContextMenu(m_list);
|
registerForContextMenu(m_list);
|
||||||
|
|
||||||
View loadingBar = (View) view.findViewById(R.id.feeds_loading_bar);
|
View loadingBar = (View) view.findViewById(R.id.feeds_loading_bar);
|
||||||
|
|
||||||
|
if (loadingBar != null) {
|
||||||
loadingBar.setVisibility(View.VISIBLE);
|
loadingBar.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
|
|
||||||
//m_activity.m_pullToRefreshAttacher.addRefreshableView(list, this);
|
//m_activity.m_pullToRefreshAttacher.addRefreshableView(list, this);
|
||||||
|
|
||||||
|
@ -309,7 +309,10 @@ public class FeedsFragment extends BaseFeedlistFragment implements OnItemClickLi
|
|||||||
//m_enableFeedIcons = m_prefs.getBoolean("download_feed_icons", false);
|
//m_enableFeedIcons = m_prefs.getBoolean("download_feed_icons", false);
|
||||||
|
|
||||||
View loadingBar = (View) view.findViewById(R.id.feeds_loading_bar);
|
View loadingBar = (View) view.findViewById(R.id.feeds_loading_bar);
|
||||||
|
|
||||||
|
if (loadingBar != null) {
|
||||||
loadingBar.setVisibility(View.VISIBLE);
|
loadingBar.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
|
|
||||||
//Log.d(TAG, "mpTRA=" + m_activity.m_pullToRefreshAttacher);
|
//Log.d(TAG, "mpTRA=" + m_activity.m_pullToRefreshAttacher);
|
||||||
//m_activity.m_pullToRefreshAttacher.addRefreshableView(list, this);
|
//m_activity.m_pullToRefreshAttacher.addRefreshableView(list, this);
|
||||||
|
@ -1,11 +1,18 @@
|
|||||||
<LinearLayout
|
<RelativeLayout
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:layout_height="fill_parent"
|
||||||
android:fitsSystemWindows="true"
|
android:fitsSystemWindows="true"
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
|
||||||
|
<include layout="@layout/actionbar_toolbar" android:id="@+id/actionbar_toolbar" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
android:id="@+id/fragment_container"
|
android:id="@+id/fragment_container"
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
android:baselineAligned="false"
|
android:baselineAligned="false"
|
||||||
android:orientation="horizontal" >
|
android:orientation="horizontal"
|
||||||
|
android:layout_below="@+id/actionbar_toolbar">
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/sw600dp_anchor"
|
android:id="@+id/sw600dp_anchor"
|
||||||
@ -14,7 +21,6 @@
|
|||||||
android:visibility="gone" >
|
android:visibility="gone" >
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:id="@+id/feeds_fragment"
|
android:id="@+id/feeds_fragment"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
@ -23,21 +29,16 @@
|
|||||||
android:background="?feedlistBackground" >
|
android:background="?feedlistBackground" >
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
<RelativeLayout
|
<FrameLayout
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_weight="0.75"
|
android:layout_weight="0.75"
|
||||||
android:layout_height="match_parent">
|
|
||||||
|
|
||||||
<include layout="@layout/actionbar_toolbar" android:id="@+id/actionbar_toolbar" />
|
|
||||||
|
|
||||||
<FrameLayout
|
|
||||||
android:id="@+id/headlines_fragment"
|
android:id="@+id/headlines_fragment"
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:background="?headlinesBackground"
|
android:background="?headlinesBackground"
|
||||||
android:layout_below="@+id/actionbar_toolbar">
|
android:elevation="4dp"
|
||||||
|
android:layout_height="match_parent">
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
android:id="@+id/headlines_fragment"
|
android:id="@+id/headlines_fragment"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="0.4"
|
android:layout_weight="0.3"
|
||||||
android:background="?headlinesBackground" >
|
android:background="?headlinesBackground" >
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
@ -34,7 +34,7 @@
|
|||||||
android:id="@+id/article_fragment"
|
android:id="@+id/article_fragment"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="0.6"
|
android:layout_weight="0.7"
|
||||||
android:elevation="4dp"
|
android:elevation="4dp"
|
||||||
android:background="?articleBackground" >
|
android:background="?articleBackground" >
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
Loading…
Reference in New Issue
Block a user