Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 5th, 2012  |  syntax: None  |  size: 1.45 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Picture going outside the phones screen
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent" >
  6.  
  7.  
  8.  
  9. <Button
  10.     android:id="@+id/btakePic"
  11.     android:layout_width="wrap_content"
  12.     android:layout_height="wrap_content"
  13.     android:layout_alignParentBottom="true"
  14.     android:layout_alignParentLeft="true"
  15.     android:text="Take Picture" />
  16.  
  17. <ImageView
  18.     android:id="@+id/imageView1"
  19.     android:layout_width="fill_parent"
  20.     android:layout_height="400dp"
  21.     android:gravity="center"
  22.     android:src="@drawable/android_syh" />
  23.  
  24. </RelativeLayout>
  25.        
  26. <?xml version="1.0" encoding="utf-8"?>
  27. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  28.     xmlns:tools="http://schemas.android.com/tools"
  29.     android:id="@+id/RelativeLayout"
  30.     android:layout_width="fill_parent"
  31.     android:layout_height="fill_parent"    
  32.     >
  33.  
  34.     <Button
  35.         android:id="@+id/btakePic"
  36.         android:layout_width="wrap_content"
  37.         android:layout_height="wrap_content"
  38.         android:layout_alignParentBottom="true"
  39.         android:layout_alignParentLeft="true"
  40.         android:text="Take Picture" />
  41.  
  42.     <ImageView
  43.         android:id="@+id/imageView1"
  44.         android:layout_width="fill_parent"
  45.         android:layout_height="fill_parent"
  46.         android:layout_above="@+id/btakePic"        
  47.          />
  48.  
  49. </RelativeLayout>