TextView on top of ProgressBar

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

TextView on top of ProgressBar

Postby Skarbl » Sun Apr 19, 2009 11:23 am

Hey,
how do i get a TextView on top of a ProgressBar?

Instead of: http://bayimg.com/OapocAABB
I want: http://bayimg.com/oApOeAabb

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. <!-- Timer display -->
  2.  
  3. <TextView android:id="@+id/timerDisplay"
  4.  
  5.         android:layout_width="wrap_content" android:layout_height="wrap_content"
  6.  
  7.         android:text="Timer" android:layout_gravity="center" />
  8.  
  9.  
  10.  
  11. <!-- Progress bar -->
  12.  
  13. <ProgressBar android:id="@+id/progress_horizontal"
  14.  
  15.         style="?android:attr/progressBarStyleHorizontal"
  16.  
  17.         android:layout_width="200dip" android:max="100" android:progress="50"
  18.  
  19.         android:layout_height="wrap_content" />
Parsed in 0.039 seconds, using GeSHi 1.0.8.4


Sorry if this is a repost.
Thank you!
Skarbl
Once Poster
Once Poster
 
Posts: 1
Joined: Sun Apr 19, 2009 11:14 am

Top

Postby wiederke » Wed Apr 22, 2009 1:03 pm

Hi,

put both views in a frame layout.


Cheers,

Torsten
wiederke
Experienced Developer
Experienced Developer
 
Posts: 72
Joined: Mon Mar 02, 2009 6:46 pm
Location: Germany

Postby laji1110 » Wed Apr 29, 2009 8:21 am

great I've saw FrameLayout

Thanks alot!
laji1110
Freshman
Freshman
 
Posts: 5
Joined: Wed Mar 18, 2009 10:10 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests