android Programming Glossary: heightmssize
Android, change underline Color from an EditText dynamically http://stackoverflow.com/questions/13238298/android-change-underline-color-from-an-edittext-dynamically Rect mRect private Paint mPaint int widthMsSize int heightMsSize we need this constructor for LayoutInflater public CustomEditText.. widthMsSize MeasureSpec.getSize widthMeasureSpec heightMsSize MeasureSpec.getSize heightMeasureSpec System.out.println on.. setMeasuredDimension setMeasuredDimension widthMsSize heightMsSize protected void onDraw Canvas canvas canvas.drawLine 5 heightMsSize..
Android, change underline Color from an EditText dynamically http://stackoverflow.com/questions/13238298/android-change-underline-color-from-an-edittext-dynamically another color public class CustomEditText extends EditText private Rect mRect private Paint mPaint int widthMsSize int heightMsSize we need this constructor for LayoutInflater public CustomEditText Context context AttributeSet attrs super context attrs.. final int heightMeasureSpec Extract the Ms MesaureSpec parameters widthMsSize MeasureSpec.getSize widthMeasureSpec heightMsSize MeasureSpec.getSize heightMeasureSpec System.out.println on measure Satisfy contract by calling setMeasuredDimension setMeasuredDimension.. System.out.println on measure Satisfy contract by calling setMeasuredDimension setMeasuredDimension widthMsSize heightMsSize protected void onDraw Canvas canvas canvas.drawLine 5 heightMsSize 10 widthMsSize 5 heightMsSize 10 mPaint draw underline..
|