fix swiperefreshlayout clipping under actionbar

This commit is contained in:
Andrew Dolgov 2015-05-12 16:18:31 +03:00
parent 8484fa22e6
commit aefb9b4591
2 changed files with 6 additions and 2 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttrss"
android:versionCode="328"
android:versionName="1.102" >
android:versionCode="329"
android:versionName="1.103" >
<uses-sdk
android:minSdkVersion="15"

View File

@ -369,6 +369,10 @@ public class HeadlinesFragment extends Fragment implements OnItemClickListener,
if (m_activity.isSmallScreen()) {
View layout = inflater.inflate(R.layout.headlines_heading_spacer, m_list, false);
m_list.addHeaderView(layout);
m_swipeLayout.setProgressViewOffset(false, 0,
m_activity.getResources().getDimensionPixelSize(R.dimen.abc_action_bar_default_height_material) +
m_activity.getResources().getDimensionPixelSize(R.dimen.abc_action_bar_default_padding_material));
}
m_adapter = new ArticleListAdapter(getActivity(), R.layout.headlines_row, (ArrayList<Article>)m_articles);