private void decoreIndicator() {
    float density = getResources().getDisplayMetrics().density;

    indicator.setBackgroundColor(Color.WHITE);
    indicator.setFooterColor(Color.BLACK);
    indicator.setFooterLineHeight(1 * density);
    indicator.setFooterIndicatorHeight(1 * density);
    indicator.setFooterIndicatorStyle(IndicatorStyle.Underline);
    indicator.setTextColor(0xAA000000);
    indicator.setSelectedColor(0xFF000000);
    indicator.setSelectedBold(true);
  }
  /** Sets the color for the ViewPager title indicator to match the account color */
  private void setTitleIndicatorColor() {
    // Basically, if we are in a top level account, use the default title color.
    // but propagate a parent account's title color to children who don't have own color
    String colorCode = mAccountsDbAdapter.getAccountColorCode(mAccountId);
    if (colorCode != null) {
      sLastTitleColor = Color.parseColor(colorCode);
    }

    mTitlePageIndicator.setSelectedColor(sLastTitleColor);
    mTitlePageIndicator.setTextColor(sLastTitleColor);
    mTitlePageIndicator.setFooterColor(sLastTitleColor);
    mSectionHeaderTransactions.setBackgroundColor(sLastTitleColor);
  }
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.modify_user);
   actionBar = getSupportActionBar();
   actionBar.setDisplayHomeAsUpEnabled(true);
   actionBar.setHomeButtonEnabled(true);
   mViewPager = (ViewPager) findViewById(R.id.modify_pager);
   titlePageIndicator = (TitlePageIndicator) findViewById(R.id.modify_indicator);
   titlePageIndicator.setTextColor(Color.BLACK);
   titlePageIndicator.setSelectedColor(Color.BLACK);
   userFunctions = new UserFunctions(getApplicationContext());
   boolean isLogined = userFunctions.isUserLoggedIn(getApplicationContext());
   if (!isLogined) {
     Toast.makeText(
             getApplicationContext(),
             getResources().getString(R.string.modify_userNotLogin),
             Toast.LENGTH_SHORT)
         .show();
     finish();
   }
   uID = String.valueOf(userFunctions.getUserUid(getApplicationContext()));
   setUpViewPager();
 }