/** * 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); } } }
public BottomSheetHeaderView(Context context) { super(context); setTag(TAG); mTextViews = new ArrayList<ReactTextView>(); }
public void toggleTextViews(boolean toggle) { for (int i = 0; i < mTextViews.size(); i++) { ReactTextView textView = mTextViews.get(i); textView.setTextColor(toggle ? mTextColorExpanded : textView.getHighlightColor()); } }