Use of id in fragment_photo_page.xml


#1

Hello,

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 PhotoPageFragment.java in the declarations of progressBar and textview

final ProgressBar progressBar = (ProgressBar)v.findViewById(R.id.progressBar);
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"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_alignParentTop="true"/>


#2

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

The solution should be correct.