Simple image view

1
2
3
4
5
<ImageView
    android:src="@drawable/cake"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:scaleType="center"/>
1
2
3
4
5
<ImageView
    android:src="@drawable/cake"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:scaleType="centerCrop"/>

textView android, use google search
https://developer.android.com/reference/android/widget/TextView.html

capitalize

1
2
3
4
5
6
<TextView
    android:text="Oh the possibilites of TextView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textSize="36sp"
    android:textAllCaps="false"/>

LinearLayout

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<LinearLayout
    android:orientation="vertical"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">
 
<TextView
    android:text="I'm a lonely TextView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />
 
<TextView
    android:text="I'm a lonely TextView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />
 
</LinearLayout>

android orientation
https://developer.android.com/reference/android/widget/LinearLayout.html

200dp, wrap_content, match_parent