Facebook
From domateo, 9 Years ago, written in XML.
This paste is a reply to trojkat from domateo - view diff
Embed
Download Paste or View Raw
Hits: 967
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.    xmlns:tools="http://schemas.android.com/tools"
  3.    android:layout_width="match_parent"
  4.    android:layout_height="match_parent"
  5.    android:paddingBottom="@dimen/activity_vertical_margin"
  6.    android:paddingLeft="@dimen/activity_horizontal_margin"
  7.    android:paddingRight="@dimen/activity_horizontal_margin"
  8.    android:paddingTop="@dimen/activity_vertical_margin"
  9.    tools:context="com.example.trojkat2d.MainActivity" >
  10.  
  11.     <TextView
  12.        android:id="@+id/textView1"
  13.        android:layout_width="wrap_content"
  14.        android:layout_height="wrap_content"
  15.        android:text="@string/hello_world" />
  16.  
  17.     <ImageView
  18.        android:id="@+id/imageView1"
  19.                 android:layout_width="wrap_content"
  20.        android:layout_height="wrap_content"
  21.        android:layout_alignParentBottom="true"
  22.        android:layout_centerHorizontal="true"
  23.        android:layout_margin="115px"
  24.        android:layout_marginBottom="62dp"
  25.        android:minHeight="120px"
  26.        android:minWidth="120px" />
  27.  
  28.     <Button
  29.        android:id="@+id/button1"
  30.        android:layout_width="wrap_content"
  31.        android:layout_height="wrap_content"
  32.        android:layout_alignLeft="@+id/textView1"
  33.        android:layout_below="@+id/textView1"
  34.        android:layout_marginTop="22dp"
  35.        android:text="Trójkąt" />
  36.  
  37.     <CheckBox
  38.        android:id="@+id/checkBox1"
  39.        android:layout_width="wrap_content"
  40.        android:layout_height="wrap_content"
  41.        android:layout_alignLeft="@+id/button1"
  42.        android:layout_below="@+id/button1"
  43.        android:layout_marginTop="22dp"
  44.        android:text="Czerwony" />
  45.  
  46. </RelativeLayout>