andyshon

Кривая анимация xml

Jan 8th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.33 KB | None | 0 0
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.    xmlns:app="http://schemas.android.com/apk/res-auto"
  3.    xmlns:tools="http://schemas.android.com/tools"
  4.    android:id="@+id/layout"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:orientation="vertical"
  8.    android:paddingBottom="@dimen/activity_vertical_margin"
  9.    android:paddingLeft="@dimen/activity_horizontal_margin"
  10.    android:paddingRight="@dimen/activity_horizontal_margin"
  11.    android:paddingTop="@dimen/activity_vertical_margin">
  12.  
  13.     <TextView
  14.        android:id="@+id/title"
  15.        android:layout_width="wrap_content"
  16.        android:layout_height="wrap_content"
  17.        android:text="android-coding.blogspot.com"
  18.        android:textSize="28dp"
  19.        android:textStyle="bold" />
  20.  
  21.     <Button
  22.        android:id="@+id/button1"
  23.        android:layout_width="match_parent"
  24.        android:layout_height="wrap_content"
  25.        android:layout_alignParentLeft="true"
  26.        android:layout_alignParentStart="true"
  27.        android:layout_centerVertical="true"
  28.        android:text="Button1" />
  29.  
  30.     <Button
  31.        android:id="@+id/button2"
  32.        android:layout_width="match_parent"
  33.        android:layout_height="wrap_content"
  34.        android:layout_alignParentLeft="true"
  35.        android:layout_alignParentStart="true"
  36.        android:layout_below="@+id/button1"
  37.        android:layout_marginTop="14dp"
  38.        android:text="Button2" />
  39.  
  40.     <ImageView
  41.        android:id="@+id/image"
  42.        android:layout_width="wrap_content"
  43.        android:layout_height="wrap_content"
  44.        android:layout_alignParentLeft="true"
  45.        android:layout_alignParentStart="true"
  46.        android:layout_below="@+id/title"
  47.        android:layout_marginTop="25dp"
  48.        app:srcCompat="@mipmap/ic_launcher_round" />
  49.  
  50.     <ImageView
  51.        android:id="@+id/image2"
  52.        android:layout_width="wrap_content"
  53.        android:layout_height="wrap_content"
  54.        android:layout_alignBottom="@+id/image"
  55.        android:layout_alignTop="@+id/image"
  56.        android:layout_marginLeft="70dp"
  57.        android:layout_marginStart="70dp"
  58.        android:layout_toEndOf="@+id/image"
  59.        android:layout_toRightOf="@+id/image"
  60.        app:srcCompat="@drawable/ic_close_white_24dp" />
  61.  
  62. </RelativeLayout>
Add Comment
Please, Sign In to add comment