Hello,

Thank you for your response.
However, based on my intuition/inference, @string/appbar_scrolling_view_
behavior, is a special string resource object that the Android OS would 
automatically recognize. This is because this value is used in many other 
contexts. Here are just a couple examples of where the above value is used:

https://developer.android.com/reference/android/support/design/widget/AppBarLayout.html
http://stackoverflow.com/questions/33707337/setting-applayout-behavior-programatically/33707476

Thus, I believe that I do not need to add a string resource object to 
res/values/string folder. Nevertheless, I did try your suggestion of adding 
a string resource object to that location, but this still resulted in the 
same error. So I believe that the error is somehow caused by the fact that 
the Android OS cannot find the value of appbar_scrolling_view_behavior for 
whatever reason.

I would appreciate any additional help in resolving this error.

Thanks,
Kevin Chen

On Wednesday, June 15, 2016 at 10:44:23 PM UTC-7, sardar khan wrote:
>
> you should add a string resource in the res/values/string folder . check 
> below in the tutorial to show how to add string resource
> https://developer.android.com/training/basics/firstapp/building-ui.html
>
> On Thu, Jun 16, 2016 at 10:31 AM, Kevin Chen <[email protected] 
> <javascript:>> wrote:
>
>> Hello,
>>
>> I am a new android programmer trying to complete this tutorial: 
>> https://developer.android.com/training/basics/firstapp/building-ui.html
>> After following all the instructions on the above page and running the 
>> code, I get the following error:
>>
>> Error:(2) No resource identifier found for attribute 'layout_behavior' in 
>> package 'com.example.kevin.myfirstapp'
>>
>> The error appears to be associated with the "app:layout_behavior" 
>> attribute in the following section of code:
>>
>> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
>>     xmlns:app="http://schemas.android.com/apk/res-auto";
>>     xmlns:tools="http://schemas.android.com/tools";
>>     android:orientation="horizontal"
>>     android:layout_width="match_parent"
>>     android:layout_height="match_parent"
>>     app:layout_behavior="@string/appbar_scrolling_view_behavior"
>>     tools:showIn="@layout/content_my">
>>
>>
>> Could you please help me fix this error?
>>
>>
>> Thanks,
>>
>> Kevin Chen
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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/d2bcd31f-2211-4482-a774-310885a01258%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/android-developers/d2bcd31f-2211-4482-a774-310885a01258%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/bc24afbc-7f39-4f19-bdb0-520a00883fa8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to