Advertisement
Jgug

Android_layout_02

Jul 24th, 2014
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.11 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <LinearLayout
  4.    android:orientation="horizontal"
  5.    android:layout_width="fill_parent"
  6.    android:layout_height="fill_parent"
  7.    xmlns:android="http://schemas.android.com/apk/res/android">
  8.  
  9.     <LinearLayout
  10.        android:orientation="vertical"
  11.        android:layout_width="match_parent"
  12.        android:layout_height="match_parent"
  13.        android:layout_weight="1"
  14.        android:weightSum="1">
  15.  
  16.         <TextView
  17.            android:layout_width="match_parent"
  18.            android:layout_height="wrap_content"
  19.            android:textAppearance="?android:attr/textAppearanceMedium"
  20.            android:text="UserName"
  21.            android:id="@+id/textView"
  22.            android:layout_gravity="center_horizontal"
  23.            android:autoText="false"
  24.            android:editable="false"
  25.            android:focusable="false"
  26.            android:singleLine="false"
  27.            android:textSize="24sp"/>
  28.  
  29.         <ImageView
  30.            android:layout_width="match_parent"
  31.            android:layout_height="wrap_content"
  32.            android:id="@+id/imageView"
  33.            android:src="@drawable/ic_launcher"
  34.            android:layout_gravity="center_horizontal"
  35.            android:adjustViewBounds="true"
  36.            android:cropToPadding="false"
  37.            android:scaleType="centerCrop"/>
  38.  
  39.         <Button
  40.            android:layout_width="wrap_content"
  41.            android:layout_height="wrap_content"
  42.            android:text="Сделать"
  43.            android:id="@+id/button2"
  44.            android:layout_gravity="left|center_horizontal"/>
  45.  
  46.         <Button
  47.            android:layout_width="wrap_content"
  48.            android:layout_height="wrap_content"
  49.            android:text="Заебись"
  50.            android:id="@+id/button3"
  51.            android:layout_gravity="left|center_horizontal"/>
  52.  
  53.     </LinearLayout>
  54.  
  55.     <LinearLayout
  56.        android:orientation="vertical"
  57.        android:layout_width="match_parent"
  58.        android:layout_height="match_parent"
  59.        android:layout_weight="1">
  60.     </LinearLayout>
  61.  
  62. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement