Advertisement
crescent72

Untitled

Dec 11th, 2016
506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.89 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:id="@+id/activity_main"
  6.    android:orientation="vertical"
  7.    android:layout_width="match_parent"
  8.    android:layout_height="match_parent"
  9.    tools:context="com.example.hale.ders1.MainActivity"
  10.    >
  11.  
  12.     <TextView
  13.        android:layout_width="wrap_content"
  14.        android:layout_height="wrap_content"
  15.        android:text="Hello World!"
  16.        android:id="@+id/textView"
  17.        android:textSize="35sp"
  18.        android:background="#ccc"
  19.    />
  20.  
  21.     <ImageView
  22.        android:layout_width="wrap_content"
  23.        android:layout_height="wrap_content"
  24.        app:srcCompat="@drawable/adam"
  25.        android:id="@+id/imageView"
  26.        />
  27.  
  28.     <LinearLayout
  29.        android:layout_width="match_parent"
  30.        android:layout_height="wrap_content"
  31.        android:orientation="horizontal"
  32.        android:id="@+id/childlayout">
  33.  
  34.         <Button
  35.            android:layout_width="wrap_content"
  36.            android:layout_height="wrap_content"
  37.            android:text="1"
  38.            android:id="@+id/first"
  39.            />
  40.  
  41.         <Button
  42.            android:layout_width="wrap_content"
  43.            android:layout_height="wrap_content"
  44.            android:text="2"
  45.            android:id="@+id/second"
  46.            />
  47.  
  48.         <Button
  49.            android:layout_width="wrap_content"
  50.            android:layout_height="wrap_content"
  51.            android:text="3"
  52.            android:id="@+id/third"
  53.            />
  54.  
  55.         <Button
  56.            android:layout_width="wrap_content"
  57.            android:layout_height="wrap_content"
  58.            android:text="4"
  59.            android:id="@+id/fourth"
  60.            />
  61.     </LinearLayout>
  62.  
  63. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement