"RelativeLayout layout = (RelativeLayout) this.findViewById(R.layout. activity_menu_on_loadup);"
findViewById requires an id resource... not a layout resource. That means what you pass in to findViewById should look like this: R.id.my_view_id On Tue, Mar 1, 2016 at 8:05 PM Elijah Smith <[email protected]> wrote: > I added the imageview to the layout, but accessing the layout has an > underline in Intellij. It says: "Expected resource of the type int". I > don't call this an error because it doesn't seem to actually be causing > one, but I am confused as to what it wants me to do. > > RelativeLayout layout = (RelativeLayout) > this.findViewById(R.layout.activity_menu_on_loadup); > > > -- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/android-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/android-developers/3e9b6bae-f57c-471f-a7aa-14a69274fa3a%40googlegroups.com > <https://groups.google.com/d/msgid/android-developers/3e9b6bae-f57c-471f-a7aa-14a69274fa3a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/CAOq06s9Q7jUiFBZT7UPXAAt8idd4C0TUqYS_F-naApgeDg6DrQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

