I am trying to create a RelativeLayout with multiple children programmatically. For rules such as RelativeLayout.RIGHT_OF to work, child views must have matching identifiers.
However, when I try to assign an identifier, Android Studio puts it as an error:
view.setId(123); ERROR: Expected resource of type id
android android-layout android-studio
cheeesus Jul 10 '14 at 16:39 2014-07-10 16:39
source share