in Android Studio running debug with my mobile connected with usb set a breakpoint at button click event handler in the MainActivity.java file.
Here are the results:[code]
this = {MainActivity@4121}
savedInstanceState = null
button = {AppCompatButton@4122} "android.support.v7.widget.AppCompatButton{9a56624 VFED..C.. ......ID 0,0-0,0 #7f0c006e app:id/MyButton}"
mBackgroundTintHelper = {AppCompatBackgroundHelper@4161}
mBoring = null
mBreakStrategy = 0
mBufferType = {TextView$BufferType@4164} "NORMAL"
mDeferScroll = -1
mDesiredHeightAtMeasure = -1
mDispatchTemporaryDetach = false
mDrawables = null
mEditableFactory = {Editable$Factory@4165}
mEditor = null
mEllipsize = null
mLinksClickable = true
mListeners = null
mMaxMode = 1
mMaxWidth = 2147483647
mMaxWidthMode = 2
mMaximum = 2147483647
mMinMode = 2
mMinWidth = 132
mMinWidthMode = 2
mMinimum = 72
mMovement = null
mOldMaxMode = 1
mOldMaximum = 2147483647
mPreDrawListenerDetached = false
mPreDrawRegistered = false
mPreventDefaultMovement = false
mRestartMarquee = false
mSavedHintLayout = null
mSavedLayout = null
mSavedMarqueeModeLayout = null
mScroller = null
mTextColor = {ColorStateList@4172} "ColorStateList{mThemeAttrs=nullmChangingConfigurations=0mStateSpecs=[[-16842910], []]mColors=[973078528, -570425344]mDefaultColor=-570425344}"
mTextDir = null
mTextSelectHandleRightRes = 17303283
mTransformation = {AllCapsTransformationMethod@4174}
mTransformed = "SEE MORE"
mUserSetTextScaleX = false
mAccessibilityCursorPosition = -1
mAccessibilityDelegate = null
mAccessibilityTraversalAfterId = -1
mAccessibilityTraversalBeforeId = -1
mAccessibilityViewId = -1
mDrawableState = {int[2]@4178}
mDrawingCache = null
mDrawingCacheBackgroundColor = 0
mFloatingTreeObserver = null
mForegroundInfo = null
mGhostView = null
mHasPerformedLongPress = false
mID = 2131492974
mIgnoreNextUpEvent = false
mInContextButtonPress = false
mInputEventConsistencyVerifier = null
mKeyedTags = null
mLabelForId = -1
mLastIsOpaque = true
mLayerPaint = null
mLayerType = 0
mNextFocusUpId = -1
mOldHeightMeasureSpec = -2147483648
mOldWidthMeasureSpec = -2147483648
mOutlineProvider = {ViewOutlineProvider$1@4180}
mOverScrollMode = 1
mOverlay = null
mParent = {CoordinatorLayout@4181} "android.support.design.widget.CoordinatorLayout{63dbf9b V.E...... ......I. 0,0-0,0}"
mSendViewScrolledAccessibilityEvent = null
mSendViewStateChangedAccessibilityEvent = null
mSendingHoverAccessibilityEvents = false
mStartActivityRequestWho = null
mStateListAnimator = {StateListAnimator@4184}
mSystemUiVisibility = 0
mTag = null
mUnsetPressedState = null
mUserPaddingBottom = 0
mUserPaddingEnd = -2147483648
mUserPaddingLeft = 0
mUserPaddingLeftInitial = 0
mUserPaddingRight = 0
mUserPaddingRightInitial = 0
mUserPaddingStart = -2147483648
mVerticalScrollFactor = 0.0
mVerticalScrollbarPosition = 0
mViewFlags = 402669569
mWindowAttachCount = 0
shadow$_klass_ = {Class@4119} "class android.support.v7.widget.AppCompatButton"
shadow$_monitor_ = -1985649116
[/code]obvious unnecessary lines removed
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.