In my Android project I have two layouts: num_info and num_info_pack. Both have views with id "circle". So I thought referencing those views by layout_name.circle would solve the problem:
val inetView = activity.layoutInflater.inflate(R.layout.num_info_pack, parent, false)
inetView.circle.setBackgroundResource(background)
But circle is underlined with red and it says:
Overload resolution ambiguity. All these functions match.
public val View.circle: View! defined in kotlinx.android.synthetic.main.num_info_pack.view
public val View.circle: RelativeLayout! defined in kotlinx.android.synthetic.main.num_info_inet_plus_pack.view
Why is it confused about which circle I'm talking about if I'm specifically saying inetView.circle?