I have action bar with the swipable tabs,
Here the problem is when i integrate the uk.co.senab.actionbarpulltorefresh.library for pull to refresh it is looking fine ,the refresh bar is also looking fine.
when am using the custom header to the action bar, the refresh view is going top of the Tab bar.![First time with out adding custom header to the action bar the refresh bar is fine!
After adding the custom header to the action bar,when i pull the layout it is refresh bar is above to the tabs ]1
Here is the snippet of the code:
Am adding this code in the hh extends FragmentActivity
getActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
View viewActionBar = getLayoutInflater().inflate(R.layout.hedaer, null);
ActionBar.LayoutParams params = new ActionBar.LayoutParams(
// Center the textview in the ActionBar !
ActionBar.LayoutParams.WRAP_CONTENT,
ActionBar.LayoutParams.MATCH_PARENT, Gravity.CENTER);
TextView textviewTitle = (TextView) viewActionBar
.findViewById(R.id.textView1);
morebutton = (Button) viewActionBar.findViewById(R.id.morebutton);
getActionBar().setCustomView(viewActionBar, params);
if i comment this refresh bar is fine..but i want the refresh bar is below tabs with the action bar header
0 comments:
Post a Comment