List of usage examples for android.view View getPaddingBottom
public int getPaddingBottom()
From source file:com.github.shareme.gwsmaterialuikit.library.viewanimator.AnimationBuilder.java
public AnimationBuilder wave() { for (View view : views) { float x = (view.getWidth() - view.getPaddingLeft() - view.getPaddingRight()) / 2 + view.getPaddingLeft(); float y = view.getHeight() - view.getPaddingBottom(); rotation(12, -12, 3, -3, 0);/* w ww .j a va2 s . com*/ pivotX(x, x, x, x, x); pivotY(y, y, y, y, y); } return this; }
From source file:com.github.shareme.gwsmaterialuikit.library.viewanimator.AnimationBuilder.java
/** * @return the animation builder/* ww w. j av a 2 s . c om*/ */ public AnimationBuilder standUp() { for (View view : views) { float x = (view.getWidth() - view.getPaddingLeft() - view.getPaddingRight()) / 2 + view.getPaddingLeft(); float y = view.getHeight() - view.getPaddingBottom(); pivotX(x, x, x, x, x); pivotY(y, y, y, y, y); rotationX(55, -30, 15, -15, 0); } return this; }
From source file:com.ashish.routofy.PagerSlidingTabStrip.java
private void updateTabStyles() { for (int i = 0; i < tabCount; i++) { View v = tabsContainer.getChildAt(i); v.setBackgroundResource(tabBackgroundResId); v.setPadding(tabPadding, v.getPaddingTop(), tabPadding, v.getPaddingBottom()); TextView tab_title = (TextView) v.findViewById(R.id.psts_tab_title); if (tab_title != null) { tab_title.setTextSize(TypedValue.COMPLEX_UNIT_PX, tabTextSize); // setAllCaps() is only available from API 14, so the upper case // is made manually if we are on a // pre-ICS-build if (textAllCaps) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { tab_title.setAllCaps(true); } else { tab_title.setText(tab_title.getText().toString().toUpperCase(locale)); }// ww w. java2 s.c o m } } } }
From source file:com.ghkjgod.lightnovel.component.PagerSlidingTabStrip.java
private void updateTabStyles() { for (int i = 0; i < tabCount; i++) { View v = tabsContainer.getChildAt(i); v.setBackgroundResource(tabBackgroundResId); v.setPadding(tabPadding, v.getPaddingTop(), tabPadding, v.getPaddingBottom()); TextView tab_title = (TextView) v.findViewById(R.id.tab_title); if (tab_title != null) { tab_title.setTextSize(TypedValue.COMPLEX_UNIT_PX, tabTextSize); tab_title.setTypeface(tabTypeface, pager.getCurrentItem() == i ? tabTypefaceSelectedStyle : tabTypefaceStyle); if (tabTextColor != null) { tab_title.setTextColor(tabTextColor); }/* w ww . java2 s .co m*/ // setAllCaps() is only available from API 14, so the upper case is made manually if we are on a // pre-ICS-build if (textAllCaps) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { tab_title.setAllCaps(true); } else { tab_title.setText(tab_title.getText().toString().toUpperCase(locale)); } } } } }
From source file:net.osmand.plus.views.controls.PagerSlidingTabStrip.java
private void updateTabStyles() { tabsContainer.setBackgroundResource(tabBackgroundResId); for (int i = 0; i < tabCount; i++) { View v = tabsContainer.getChildAt(i); v.setBackgroundResource(tabBackgroundResId); v.setPadding(tabPadding, v.getPaddingTop(), tabPadding, v.getPaddingBottom()); TextView tab_title = (TextView) v.findViewById(R.id.tab_title); if (tab_title != null) { tab_title.setTextSize(TypedValue.COMPLEX_UNIT_PX, tabTextSize); tab_title.setTypeface(tabTypeface, pager.getCurrentItem() == i ? tabTypefaceSelectedStyle : tabTypefaceStyle); tab_title.setTextColor(tabTextColor); // setAllCaps() is only available from API 14, so the upper case is made manually if we are on a // pre-ICS-build if (textAllCaps) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { tab_title.setAllCaps(true); } else { tab_title.setText(tab_title.getText().toString().toUpperCase(locale)); }// ww w.j a v a 2 s .c om } } } }
From source file:com.csform.android.uiapptemplate.view.PagerSlidingTabStrip.java
private void updateTabStyles() { for (int i = 0; i < mTabCount; i++) { View v = mTabsContainer.getChildAt(i); v.setBackgroundResource(mTabBackgroundResId); v.setPadding(mTabPadding, v.getPaddingTop(), mTabPadding, v.getPaddingBottom()); TextView tab_title = (TextView) v.findViewById(R.id.psts_tab_title); if (tab_title != null) { tab_title.setTextColor(mTabTextColor); tab_title.setTypeface(mTabTextTypeface, mTabTextTypefaceStyle); tab_title.setTextSize(TypedValue.COMPLEX_UNIT_PX, mTabTextSize); // setAllCaps() is only available from API 14, so the upper case is made manually if we are on a // pre-ICS-build if (isTabTextAllCaps) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { tab_title.setAllCaps(true); } else { tab_title.setText(tab_title.getText().toString() .toUpperCase(getResources().getConfiguration().locale)); }/* w ww. j a v a2 s .c o m*/ } } } }
From source file:com.freud.mrzz.views.PagerSlidingTabStrip.java
private void updateTabStyles() { for (int i = 0; i < tabCount; i++) { View v = tabsContainer.getChildAt(i); v.setBackgroundResource(tabBackgroundResId); v.setPadding(tabPadding, v.getPaddingTop(), tabPadding, v.getPaddingBottom()); TextView tab_title = (TextView) v.findViewById(R.id.tv_tab_title); if (tab_title != null) { tab_title.setTextSize(TypedValue.COMPLEX_UNIT_PX, tabTextSize); tab_title.setTypeface(tabTypeface, pager.getCurrentItem() == i ? tabTypefaceSelectedStyle : tabTypefaceStyle); if (tabTextColor != null) { tab_title.setTextColor(tabTextColor); }//from w w w . j a v a 2 s . c om // setAllCaps() is only available from API 14, so the upper case is made manually if we are on a // pre-ICS-build if (textAllCaps) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { tab_title.setAllCaps(true); } else { tab_title.setText(tab_title.getText().toString().toUpperCase(locale)); } } } } }
From source file:com.bei.test.view.tab.PagerSlidingTabStrip.java
private void updateTabStyles() { for (int i = 0; i < mTabCount; i++) { View v = mTabsContainer.getChildAt(i); v.setBackgroundResource(mTabBackgroundResId); v.setPadding(mTabPadding, v.getPaddingTop(), mTabPadding, v.getPaddingBottom()); TextView tab_title = (TextView) v.findViewById(R.id.psts_tab_title); if (tab_title != null) { tab_title.setTextColor(mTabTextColor); tab_title.setTypeface(mTabTextTypeface, mTabTextTypefaceStyle); // tab_title.setTextSize(TypedValue.COMPLEX_UNIT_PX, mTabNormalTextSize); // setAllCaps() is only available from API 14, so the upper case is made manually if we are on a // pre-ICS-build if (isTabTextAllCaps) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { tab_title.setAllCaps(true); } else { tab_title.setText(tab_title.getText().toString() .toUpperCase(getResources().getConfiguration().locale)); }//w w w.jav a 2 s . c o m } } } }
From source file:com.zaparound.PagerSlidingTabStrip.java
private void updateTabStyles() { for (int i = 0; i < mTabCount; i++) { View v = mTabsContainer.getChildAt(i); v.setBackgroundResource(mTabBackgroundResId); v.setPadding(mTabPadding, v.getPaddingTop(), mTabPadding, v.getPaddingBottom()); TextView tab_title = (TextView) v.findViewById(R.id.psts_tab_title); if (tab_title != null) { tab_title.setTextColor(mTabTextColor); tab_title.setTypeface(mTabTextTypeface); tab_title.setTextSize(TypedValue.COMPLEX_UNIT_PX, mTabTextSize); // setAllCaps() is only available from API 14, so the upper case // is made manually if we are on a // pre-ICS-build if (isTabTextAllCaps) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { tab_title.setAllCaps(true); } else { tab_title.setText(tab_title.getText().toString() .toUpperCase(getResources().getConfiguration().locale)); }/*ww w . j a v a 2s. co m*/ } } } }
From source file:de.interoberlin.lymbo.view.activities.SwipeRefreshBaseActivity.java
protected void onActionBarAutoShowOrHide(boolean shown) { for (View view : hideableHeaderViews) { if (shown) { view.animate().translationY(0).alpha(1).setDuration(HEADER_HIDE_ANIM_DURATION) .setInterpolator(new DecelerateInterpolator()); } else {/*from w w w . ja v a 2 s. c o m*/ view.animate().translationY(-view.getBottom()).alpha(1).setDuration(HEADER_HIDE_ANIM_DURATION) .setInterpolator(new DecelerateInterpolator()); } } for (View view : hideableFooterViews) { if (shown) { view.animate().translationY(0).alpha(1).setDuration(HEADER_HIDE_ANIM_DURATION) .setInterpolator(new DecelerateInterpolator()); } else { view.animate() .translationY(view.getHeight() + view.getPaddingBottom() + getResources().getDimension(R.dimen.hide_cushion)) .alpha(1).setDuration(HEADER_HIDE_ANIM_DURATION) .setInterpolator(new DecelerateInterpolator()); } } }