Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot resolve symbol @dimen/activity_horizontal_margin [closed]

Im following this tutorial on parsing JSON within Android

https://www.tutorialspoint.com/android/android_json_parser.htm

when I copy and paste the data from list_item.xml I get "cannot resolve symbol" and google searches are yielding nothing

like image 922
lmathurin Avatar asked Dec 28 '17 05:12

lmathurin


1 Answers

Please add this line into your dimens.xml

<dimen name="activity_horizontal_margin">16dp</dimen>

you can give whatever value you want instead of 16dp

if you have not created dimens.xml, you can create it in values.xml folder.

like image 133
chandani c patel Avatar answered Nov 08 '22 09:11

chandani c patel