Use of id in fragment_photo_page.xml



It’s unclear for me the declarations of the IDs in fragment_photo_page.xml (and the subsequential final in the inflater).
Also in eclipse I’m getting an error in in the declarations of progressBar and textview

final ProgressBar progressBar = (ProgressBar)v.findViewById(;
generates error “progressBar cannot be resolved or is not a field”

Can you please exlain why the id of the progressbar and textview is not as new id but using the “@id/”??
And then in textView there is android:layout_above="@+id/progressBar" that confuses me. Now here it’s called as new id.

Please throw some light on this. Where is declared first progressBar and titleTextView?

Thanks a lot

<?xml version="1.0" encoding="utf-8"?>

<WebView android:id="@+id/webView"


This is an error in the text: viewtopic.php?f=395&t=6220&start=10#p17115

The solution should be correct.