# HG changeset patch # User Da Risk # Date 1343147407 -7200 # Node ID e818646525da13d91ec8ae202e226178ebbb18f5 # Parent 7067aa2679170e1edf3ce573d859ab47223134fe Checkstyle diff -r 7067aa267917 -r e818646525da src/com/beem/project/beem/ui/ContactList.java --- a/src/com/beem/project/beem/ui/ContactList.java Tue Jul 24 18:22:08 2012 +0200 +++ b/src/com/beem/project/beem/ui/ContactList.java Tue Jul 24 18:30:07 2012 +0200 @@ -49,8 +49,6 @@ import java.util.ListIterator; import java.util.Map; -import org.jivesoftware.smack.util.StringUtils; - import android.app.Dialog; import android.content.ComponentName; import android.content.Intent; @@ -87,6 +85,8 @@ import com.beem.project.beem.ui.dialogs.builders.ResendSubscription; import com.beem.project.beem.utils.BeemBroadcastReceiver; +import org.jivesoftware.smack.util.StringUtils; + /** * The contact list activity displays the roster of the user. */ @@ -98,6 +98,7 @@ } private static final String TAG = "ContactList"; + private static final float PAGER_TAB_SECONDARY_ALPHA = 0.5f; private final List mListGroup = new ArrayList(); /** Map containing a list of the different contacts of a given group. @@ -116,7 +117,7 @@ private boolean mBinded; private ViewPager viewPager; private ListPagerAdapter groupsPagesAdapter; - private PagerTabStrip pagerTabs; + private PagerTabStrip pagerTabs; /** * Constructor. @@ -182,8 +183,8 @@ groupsPagesAdapter = new ListPagerAdapter(getSupportFragmentManager(), viewPager); pagerTabs = (PagerTabStrip) findViewById(R.id.tabstrip); pagerTabs.setTabIndicatorColorResource(R.color.vert_manu); - pagerTabs.setNonPrimaryAlpha(0.50f); - + pagerTabs.setNonPrimaryAlpha(PAGER_TAB_SECONDARY_ALPHA); + mListGroup.add(getString(R.string.contact_list_all_contact)); mListGroup.add(getString(R.string.contact_list_no_group)); groupsPagesAdapter.notifyDataSetChanged(); @@ -310,7 +311,7 @@ * Hide the groups view. */ private void hideGroups() { - pagerTabs.setVisibility(View.GONE); + pagerTabs.setVisibility(View.GONE); } /** @@ -567,10 +568,10 @@ public int getCount() { return mListGroup.size(); } - + @Override public String getPageTitle(int position) { - return mListGroup.get(position); + return mListGroup.get(position); } }