Advertisement
Guest User

layoutcostume

a guest
Feb 28th, 2020
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.83 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     android:orientation="vertical"
  4.     android:layout_width="match_parent"
  5.     android:padding="8dp"
  6.     xmlns:app="http://schemas.android.com/apk/res-auto"
  7.     android:layout_height="match_parent">
  8.  
  9.     <LinearLayout
  10.         android:layout_width="match_parent"
  11.         android:layout_height="wrap_content"
  12.         android:orientation="horizontal">
  13.         <ImageView
  14.             android:id="@+id/imageView"
  15.             app:srcCompat="@mipmap/ic_launcher"
  16.             android:layout_width="100dp"
  17.             android:layout_height="140dp"
  18.             android:adjustViewBounds="true"
  19.             android:scaleType="fitXY" />
  20.         <LinearLayout
  21.             android:layout_width="match_parent"
  22.             android:layout_height="match_parent"
  23.             android:orientation="vertical">
  24.             <TextView
  25.                 android:id="@+id/text1"
  26.                 android:layout_width="match_parent"
  27.                 android:layout_height="wrap_content"
  28.                 android:layout_marginStart="22dp"
  29.                 android:layout_marginTop="35dp"
  30.                 android:layout_weight="1"
  31.                 android:text="Text1"
  32.                 android:textSize="19sp"
  33.                 android:textStyle="bold" />
  34.             <TextView
  35.                 android:id="@+id/text2"
  36.                 android:layout_width="match_parent"
  37.                 android:layout_height="wrap_content"
  38.                 android:layout_below="@+id/textView"
  39.                 android:layout_marginStart="22dp"
  40.                 android:layout_marginTop="10dp"
  41.                 android:layout_weight="1"
  42.                 android:text="Text2"
  43.                 android:textSize="15sp" />
  44.         </LinearLayout>
  45.     </LinearLayout>
  46. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement