Java 类com.facebook.react.views.text.ReactTextView 实例源码

项目:react-native-bottom-sheet-behavior    文件:BottomSheetHeaderView.java   
/**
 * Register all ReactTextView childs
 * @param view
 */
private void registerChilds(BottomSheetHeaderView view) {
    List<View> result = getAllChildren(view);
    for (int i = 0; i < result.size(); i++) {
        View v = result.get(i);
        if (v instanceof ReactTextView) {
            ReactTextView textView = (ReactTextView) v;
            mTextViews.add(textView);
        }
    }
}
项目:react-native-bottom-sheet-behavior    文件:BottomSheetHeaderView.java   
public BottomSheetHeaderView(Context context) {
    super(context);
    setTag(TAG);
    mTextViews = new ArrayList<ReactTextView>();
}
项目:react-native-bottom-sheet-behavior    文件:BottomSheetHeaderView.java   
public void toggleTextViews(boolean toggle) {
    for (int i = 0; i < mTextViews.size(); i++) {
        ReactTextView textView = mTextViews.get(i);
        textView.setTextColor(toggle ? mTextColorExpanded : textView.getHighlightColor());
    }
}