I saw this post which explains the color is set in colorControlHighlight
I try to verify the runtime value of this attribute colorControlHighlight
But not sure what's the code to check this
How can I know which index to use?
TypedValue typedValue = new TypedValue();
int[] textSizeAttr = new int[] { android.R.attr.colorControlHighlight };
int indexOfAttrTextSize = 0;
TypedArray c = view.getContext().obtainStyledAttributes(typedValue.data, textSizeAttr);
int selectableItemBackground = c.getColor(indexOfAttrTextSize, -1);
c.recycle();