类android.view.ViewDebug.ExportedProperty源码实例Demo

下面列出了怎么用android.view.ViewDebug.ExportedProperty的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: letv   文件: AbsHListView.java
@ExportedProperty
public View getSelectedView() {
    if (this.mItemCount <= 0 || this.mSelectedPosition < 0) {
        return null;
    }
    return getChildAt(this.mSelectedPosition - this.mFirstPosition);
}
 
@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 项目: letv   文件: HListView.java
@ExportedProperty(category = "list")
protected boolean recycleOnMeasure() {
    return true;
}
 
源代码4 项目: letv   文件: AbsHListView.java
@ExportedProperty
public boolean isSmoothScrollbarEnabled() {
    return this.mSmoothScrollbarEnabled;
}
 
源代码5 项目: letv   文件: AbsHListView.java
@ExportedProperty
public boolean isScrollingCacheEnabled() {
    return this.mScrollingCacheEnabled;
}
 
源代码6 项目: letv   文件: AbsHListView.java
@ExportedProperty(category = "drawing")
public int getCacheColorHint() {
    return this.mCacheColorHint;
}
 
源代码7 项目: ExtractWordView   文件: EWListViewChildET.java
@Override
@ExportedProperty(category = "focus")
public boolean isFocused() {
    return super.isFocused();// return true一定有焦点
}
 
源代码8 项目: AndroidTranslucentUI   文件: MyFocusedTextView.java
@Override
@ExportedProperty(category = "focus")
public boolean isFocused() {
	// TODO Auto-generated method stub
	return true;
}
 
 类所在包
 类方法
 同包方法