ImageView is always in background

Put your problem here if it does not fit any of the other categories.

ImageView is always in background

Postby nk » Thu Mar 27, 2008 3:14 pm

Hi,

i want to place a logo over some buttons and textviews on a screen.

I put the logo into an imageview - but the ImageView always gets in the
Background and the buttons are above the Logo.


Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2. <?xml version="1.0" encoding="utf-8"?>
  3.  
  4. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  5.  
  6.  
  7.  
  8.    android:orientation="vertical"
  9.  
  10.  
  11.  
  12.    android:layout_width="wrap_content"
  13.  
  14.    android:layout_height="wrap_content"
  15.  
  16.    >
  17.  
  18.    
  19.  
  20.    
  21.  
  22. <ImageView   id="@+id/logoView"
  23.  
  24.           android:layout_width="wrap_content"
  25.  
  26.      android:layout_height="wrap_content"
  27.  
  28.      android:src="@drawable/logo"
  29.  
  30.      android:padding="30px"
  31.  
  32.    />
  33.  
  34.    
  35.  
  36. <Button android:id="@+id/scanButton"
  37.  
  38.        
  39.  
  40.         android:layout_width="fill_parent"
  41.  
  42.         android:layout_height="wrap_content"
  43.  
  44.         android:text="@string/button_scan"
  45.  
  46.         android:layout_below="@id/logoView"
  47.  
  48.    />  
  49.  
  50.  
  51.  
  52. ... more textiviews and buttons...
  53.  
  54.  
  55.  
  56.  
Parsed in 0.002 seconds, using GeSHi 1.0.8.4



Why??
nk
Junior Developer
Junior Developer
 
Posts: 21
Joined: Tue Jan 29, 2008 3:23 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 18 guests