Android programming with Studio
FIXED- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Android programming with Studio
12-04-2016 5:31 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Anybody used android studio?
I am trying to get to grips with android programming and downloaded the studio.
I am working through the online guide HERE
But when I use the code:
app:layout_behavior="@string/appbar_scrolling_view_behavior"
I get an error thrown by the compiler.
I have searched but not found any clues.
Fixed! Go to the fix.

Re: Android programming with Studio
12-04-2016 9:06 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
@HairyMcbiker - What is the compiler error you're getting? And have you followed all of the instructions?

Re: Android programming with Studio
12-04-2016 9:18 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I forgot to ask if you'd created the appbar_scrolling_view_behavior in your resources? It's not going to work until that is done.

Re: Android programming with Studio
13-04-2016 8:49 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
@HairyMcbiker - I don't know if you've got this fixed but I have had a quick review of the tutorial and I see that the appbar_scrolling_view_behavior resource is within the app namespace meaning that this value is external so you do not need to add it yourself. The app namespace is defined on this line:
xmlns:app="http://schemas.android.com/apk/res-auto"
within the LinearLayout element, make sure that there are no typos and this resource is accessible from your dev machine.
Re: Android programming with Studio
13-04-2016 9:43 AM - edited 13-04-2016 10:06 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I had entered it all by hand, then cut & pasted got same error.
Errors are:
Error:(1) No resource identifier found for attribute 'layout_behavior' in package 'com.example.hairybiker.myfirstapp'
Error:(8, 26) No resource found that matches the given name (at 'layout_behavior' with value '@string/appbar_scrolling_view_behavior').
I will restart and try again. But have done this 3 times so far with same error.
EDIT:
One thing. It says use the Blank Activity but there isn't a Blank one, there is a Basic or an Empty, I have been using Empty will try Basic now.
13-04-2016 10:26 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Android programming with Studio
10-10-2017 12:15 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Android programming with Studio
10-10-2017 12:40 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Android programming with Studio