のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

2011-05-11から1日間の記事一覧

ic_menu

Android Drawables ic_menu_view

MovementMethod のメソッド initialize(TextView, Spannable) は引数 (CustomTextView, Spannable) に適用できません

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…

InputMethodManager.peekInstance()もハイド?

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が解決できない。

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で未定義です

”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が宣言されてない。

TextViewで宣言が見つからない変数がある。 どこで宣言しているんだろ? mTop mBottom mLeft mRightmContext mLayoutParamsmPaddingBottom mPaddingLeft mPaddingRight mPaddingTopmScrollX mScrollY

android.view.RemotableViewMethod

これは、何の意味があるんだろう? @android.view.RemotableViewMethod @android.view.RemotableViewMethod public void setTextSize(float size) { setTextSize(TypedValue.COMPLEX_UNIT_SP, size); }

TextViewのFastMath

TextViewでcom.android.internal.util.fastmathをimportしている。 非公開パッケージのようだ。 public int getLineHeight() { return FastMath.round(mTextPaint.getFontMetricsInt(null) * mSpacingMult + mSpacingAdd); } Math.Round(丸め)高速版FastMa…

TextViewのViewTreeObserver.OnPreDrawListener

TextViewには、ViewTreeObserver.OnPreDrawListenerというのがある。 何する機能だろう? public class TextView extends View implements ViewTreeObserver.OnPreDrawListener { ViewTreeObserver | Android Developers