a null progressbar is created?

HayderA

New Member
When I run the code below it prints "null" in the log file... What is the problem with it? \[code\]ProgressBar progressBar = (ProgressBar)findViewById(R.id.progressBar1);if (progressBar == null) { Log.d("tag", "null");}\[/code\]and the xml call is:\[code\]<ProgressBar android:id="@+id/progressBar1" style="?android:attr/progressBarStyleHorizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_x="37dp" android:layout_y="343dp" />\[/code\]
 
Back
Top