List of usage examples for android.widget TextView getPaddingStart
public int getPaddingStart()
From source file:com.agenthun.readingroutine.utils.TextSharedElementCallback.java
@Override public void onSharedElementStart(List<String> sharedElementNames, List<View> sharedElements, List<View> sharedElementSnapshots) { TextView targetView = getTextView(sharedElements); if (targetView == null) { Log.w(TAG, "onSharedElementStart: No shared TextView, skipping."); return;/* w w w. ja v a2s .co m*/ } mTargetViewTextSize = targetView.getTextSize(); mTargetViewPaddingStart = targetView.getPaddingStart(); // Setup the TextView's start values. targetView.setTextSize(TypedValue.COMPLEX_UNIT_PX, mInitialTextSize); ViewUtils.setPaddingStart(targetView, mInitialPaddingStart); }