Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Base textview"
- android:layout_marginStart="16dp"
- app:layout_constraintLeft_toLeftOf="parent"
- android:layout_marginLeft="16dp"
- android:layout_marginTop="16dp"
- app:layout_constraintTop_toTopOf="parent"
- android:background="@color/module_color_blue"
- android:id="@+id/textView"/>
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:text="Smaller"
- app:layout_constraintTop_toBottomOf="@+id/textView"
- android:background="@color/red"
- app:layout_constraintLeft_toLeftOf="@+id/textView"
- app:layout_constraintHorizontal_bias="0.0"
- app:layout_constraintRight_toRightOf="@+id/textView"/>
- </android.support.constraint.ConstraintLayout>
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Base textview"
- android:layout_marginStart="16dp"
- app:layout_constraintLeft_toLeftOf="parent"
- android:layout_marginLeft="16dp"
- android:layout_marginTop="16dp"
- app:layout_constraintTop_toTopOf="parent"
- android:background="@color/module_color_blue"
- android:id="@+id/textView"/>
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:text="Much longer that top textview"
- app:layout_constraintTop_toBottomOf="@+id/textView"
- android:background="@color/red"
- app:layout_constraintLeft_toLeftOf="@+id/textView"
- />
- </android.support.constraint.ConstraintLayout>
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="text1"/>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="text2text2"/>
- </LinearLayout>
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/blue"
- android:text="Base TextView" />
- <TextView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/red"
- android:text="Much Longer than top textView" />
- </LinearLayout>
- <TableLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- >
- <TextView
- android:text="TextView20938487494590786907809568659"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/textView3"
- android:background="#80123456"
- />
- <TextView
- android:text="TextView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/textView2"
- android:background="#80723456"
- />
- </TableLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement