> I have this little excerpt nestled within another Linear Layout. > I simply want to have a progress wheel with text to its right, > situated near each other and centered within a dark band spanning the > length of the display. > > However, when this is set visible, the little wheel is shown but the > text is not. > > What is wrong? > > <LinearLayout > android:id="@+id/main_status_layout" > android:padding="15dip" > android:orientation="vertical" > android:layout_width="fill_parent" > android:layout_height="wrap_content" > android:layout_gravity="center_horizontal" > android:background="@android:drawable/alert_dark_frame"> > > <ProgressBar > android:id="@+id/main_progress" > android:textSize="6pt" > style="?android:attr/progressBarStyleSmall" > android:textColor="#000000" > android:layout_width="wrap_content" > android:layout_height="wrap_content"/> > > <TextView > android:id="@+id/main_status_text" > android:layout_gravity="center_vertical" > android:textSize="8pt" > android:textColor="#ffffff" > android:layout_width="wrap_content" > android:layout_height="wrap_content" > /> > </LinearLayout> > > tone
You say you want a "progress wheel with text to its right", but you are using a vertical LinearLayout. You are attempting to set properties on ProgressBar that are not applicable (android:textSize, android:textColor). Beyond that, I recommend you use hierarchyviewer to determine what is going wrong: http://developer.android.com/intl/fr/guide/developing/tools/hierarchy-viewer.html -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html
-- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

