10 Ocak 2017 Salı

Linear Layout Örneği

Aşağıdaki ekran görüntüsü, daha aşağıdaki XML ile oluşturuldu.




<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:paddingLeft="16dp"    android:paddingRight="16dp"    android:orientation="vertical"    android:paddingTop="16dp">
    <TextView        android:id="@+id/quantity_text_view"        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:textAppearance="?android:textAppearanceLarge"        android:textColor="@android:color/black"        android:textStyle="bold"        android:text="quantity"        android:textAllCaps="true"/>
    <TextView        android:id="@+id/number_text_wiew"        android:layout_width="100dp"        android:layout_height="wrap_content"        android:textAppearance="?android:textAppearanceLarge"        android:textColor="@android:color/darker_gray"        android:textStyle="bold"        android:text="0"/>
    <Button        android:id="@+id/button"        android:layout_width="100dp"        android:layout_height="wrap_content"        android:text="button"        android:textAllCaps="true"/>
</LinearLayout>

Hiç yorum yok:

Yorum Gönder