android.view.ViewDebug.ExportedProperty Java Examples

The following examples show how to use android.view.ViewDebug.ExportedProperty. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbsHListView.java    From letv with Apache License 2.0 5 votes vote down vote up
@ExportedProperty
public View getSelectedView() {
    if (this.mItemCount <= 0 || this.mSelectedPosition < 0) {
        return null;
    }
    return getChildAt(this.mSelectedPosition - this.mFirstPosition);
}
 
Example #2
Source File: UserRowView.java    From google-authenticator-android with Apache License 2.0 5 votes vote down vote up
@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();
}
 
Example #3
Source File: HListView.java    From letv with Apache License 2.0 4 votes vote down vote up
@ExportedProperty(category = "list")
protected boolean recycleOnMeasure() {
    return true;
}
 
Example #4
Source File: AbsHListView.java    From letv with Apache License 2.0 4 votes vote down vote up
@ExportedProperty
public boolean isSmoothScrollbarEnabled() {
    return this.mSmoothScrollbarEnabled;
}
 
Example #5
Source File: AbsHListView.java    From letv with Apache License 2.0 4 votes vote down vote up
@ExportedProperty
public boolean isScrollingCacheEnabled() {
    return this.mScrollingCacheEnabled;
}
 
Example #6
Source File: AbsHListView.java    From letv with Apache License 2.0 4 votes vote down vote up
@ExportedProperty(category = "drawing")
public int getCacheColorHint() {
    return this.mCacheColorHint;
}
 
Example #7
Source File: EWListViewChildET.java    From ExtractWordView with MIT License 4 votes vote down vote up
@Override
@ExportedProperty(category = "focus")
public boolean isFocused() {
    return super.isFocused();// return true一定有焦点
}
 
Example #8
Source File: MyFocusedTextView.java    From AndroidTranslucentUI with Apache License 2.0 4 votes vote down vote up
@Override
@ExportedProperty(category = "focus")
public boolean isFocused() {
	// TODO Auto-generated method stub
	return true;
}