I don't have that as an option. I want to store that layout in a variable, and the only R.id thing I could use is R.id.class. There is no option for R.id.activity_menu_on_loadup.
What should I do instead? On Wed, Mar 2, 2016 at 10:02 AM, Justin Anderson <[email protected]> wrote: > "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 a topic in the > Google Groups "Android Developers" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/android-developers/Rm8qQI40t0g/unsubscribe > . > To unsubscribe from this group and all its topics, 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 > <https://groups.google.com/d/msgid/android-developers/CAOq06s9Q7jUiFBZT7UPXAAt8idd4C0TUqYS_F-naApgeDg6DrQ%40mail.gmail.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/CAMrVo49gN9uBH7mdWnA2omtbmUHR-5jFvYpdh97-dwKY%3DfXq5A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

