2011-05-11から1日間の記事一覧
Android Drawables ic_menu_view
if (mMovement != null) { mMovement.initialize(this, (Spannable) text); /* * Initializing the movement method will have set the * selection, so reset mSelectionMoved to keep that from * interfering with the normal on-focus selection-setting…
if (type == BufferType.EDITABLE || mInput != null || needEditableForNotification) { Editable t = mEditableFactory.newEditable(text); text = t; setFilters(t, mFilters); InputMethodManager imm = InputMethodManager.peekInstance(); if (imm != …
MetaKeyListener.META_SELECTINGが解決できない。 public void afterTextChanged(Editable buffer) { if (DEBUG_EXTRACT) Log.v(TAG, "afterTextChanged: " + buffer); RtTextView.this.sendAfterTextChanged(buffer); if (MetaKeyKeyListener.getMetaState(…
”getCompatibilityInfo()は型Resourcesで未定義です”とエラーになる public TextView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); mTextPaint = new TextPaint(Paint.ANTI_ALIAS_FLAG); mTextPaint.density = g…
TextViewで宣言が見つからない変数がある。 どこで宣言しているんだろ? mTop mBottom mLeft mRightmContext mLayoutParamsmPaddingBottom mPaddingLeft mPaddingRight mPaddingTopmScrollX mScrollY
これは、何の意味があるんだろう? @android.view.RemotableViewMethod @android.view.RemotableViewMethod public void setTextSize(float size) { setTextSize(TypedValue.COMPLEX_UNIT_SP, size); }
TextViewでcom.android.internal.util.fastmathをimportしている。 非公開パッケージのようだ。 public int getLineHeight() { return FastMath.round(mTextPaint.getFontMetricsInt(null) * mSpacingMult + mSpacingAdd); } Math.Round(丸め)高速版FastMa…
TextViewには、ViewTreeObserver.OnPreDrawListenerというのがある。 何する機能だろう? public class TextView extends View implements ViewTreeObserver.OnPreDrawListener { ViewTreeObserver | Android Developers