Java源码示例:android.view.ViewDebug.ExportedProperty

示例1
@ExportedProperty
public View getSelectedView() {
    if (this.mItemCount <= 0 || this.mSelectedPosition < 0) {
        return null;
    }
    return getChildAt(this.mSelectedPosition - this.mFirstPosition);
}
 
示例2
@Override
@ExportedProperty(category = "accessibility")
public CharSequence getContentDescription() {
  // IMPLEMENTATION NOTE: On ICS and above, when content description of this View is null,
  // TalkBack traverses all children of this View to compose the text to speak. We want to provide
  // custom text to be spoken when this View is selected by the user. Thus, we return the custom
  // text here instead of returning null (which is the default behavior).
  return getTalkBackText();
}
 
示例3
@ExportedProperty(category = "list")
protected boolean recycleOnMeasure() {
    return true;
}
 
示例4
@ExportedProperty
public boolean isSmoothScrollbarEnabled() {
    return this.mSmoothScrollbarEnabled;
}
 
示例5
@ExportedProperty
public boolean isScrollingCacheEnabled() {
    return this.mScrollingCacheEnabled;
}
 
示例6
@ExportedProperty(category = "drawing")
public int getCacheColorHint() {
    return this.mCacheColorHint;
}
 
示例7
@Override
@ExportedProperty(category = "focus")
public boolean isFocused() {
    return super.isFocused();// return true一定有焦点
}
 
示例8
@Override
@ExportedProperty(category = "focus")
public boolean isFocused() {
	// TODO Auto-generated method stub
	return true;
}