Page 27 - 24JAM_Pintar_Pemrograman_Android__1-libre
P. 27

  24 JAM!! Pintar Pemrograman Android
               37:            android:gravity="center_horizontal"
               38:            android:background="#aaaa00"
               39:            android:layout_width="wrap_content"
               40:            android:layout_height="fill_parent"
               41:            android:layout_weight="1"/>
               42:    </LinearLayout>
               43:
               44:    <LinearLayout
               45:      android:orientation="vertical"
               46:      android:layout_width="fill_parent"
               47:      android:layout_height="fill_parent"
               48:      android:id="@+id/LinearLayout2"
               49:      android:layout_weight="1">
               50:      <TextView
               51:          android:text="Baris pertama"
               52:          android:textSize="15pt"
               53:          android:layout_width="fill_parent"
               54:          android:layout_height="wrap_content"
               55:          android:layout_weight="1"/>
               56:      <TextView
               57:          android:text="Baris kedua"
               58:          android:textSize="15pt"
               59:          android:layout_width="fill_parent"
               60:          android:layout_height="wrap_content"
               61:          android:layout_weight="1"/>
               62:      <TextView
               63:          android:text="Baris ketiga"
               64:          android:textSize="15pt"
               65:          android:layout_width="fill_parent"
               66:          android:layout_height="wrap_content"
               67:          android:layout_weight="1"/>
               68:      <TextView
               69:          android:text="Baris ke empat"
               70:          android:textSize="15pt"
               71:          android:layout_width="fill_parent"
               72:          android:layout_height="wrap_content"
               73:          android:layout_weight="1"/>
               74:    </LinearLayout>
               75:  </LinearLayout>

            Layout  main.xml  jika  dilihat  hierarkinya  dari  outline  tampak
            seperti Gambar 3.4

















                         Gambar 3.4. Susunan layout main.xml
                              Dapatkan materi terbaru di                   27
                                       www.omayib.com
   22   23   24   25   26   27   28   29   30   31   32