How to fix error "Resource ID #0x7f0600c3 type #0x4 is not valid"

Viewed 1211

I using gridview with scroll horizontal include 5 1 row, 5 column display data and using code set weight, height for it:

int widthCell = getActivity().getResources().getDimensionPixelSize(R.dimen.widthCell);
int heightCell = getActivity().getResources().getDimensionPixelSize(R.dimen.heightCell);

But for phone samsum or oppo failed: "Resource ID #0x7f0600c3 type #0x4 is not valid". I don't know how to fix this error. Can you help me? Thanks

1 Answers
<resources>  <dimen name="custom_marker_image">50dp</dimen>   <dimen name="custom_marker_padding">2dp</dimen>
<resources/>

So, go to res > values > dimensions.xml and right there include this code.

Related