Page 138 - 24JAM_Pintar_Pemrograman_Android__1-libre
P. 138

  24 JAM!! Pintar Pemrograman Android
            11:      <string name="g">Senar G</string>
            12:      <string name="b">Senar B</string>
            13:      <string name="e2">Senar E</string>
            14:      <string name="keluarBtn">Keluar</string>
            15:      <string name="Deskripsi_Gambar">Guitar Image</string>
            16:  </resources>

                4.  Sekarang kita bikin layoutnya di Main.xml
            1:  <?xml version="1.0" encoding="utf-8"?>
            2:  <ScrollView
                xmlns:android="http://schemas.android.com/apk/res/android"
            3:      android:id="@+id/scrollView1"
            4:      android:layout_width="fill_parent"
            5:      android:layout_height="fill_parent" >
            6:
            7:      <LinearLayout
            8:          android:layout_width="fill_parent"
            9:          android:layout_height="wrap_content"
            10:          android:background="@color/bg"
            11:          android:orientation="vertical" >
            12:
            13:          <TextView
            14:              android:layout_width="fill_parent"
            15:              android:layout_height="wrap_content"
            16:              android:fitsSystemWindows="true"
            17:              android:focusable="true"
            18:              android:focusableInTouchMode="true"
            19:              android:gravity="top"
            20:              android:text="@string/hello"
            21:              android:textColor="@color/textColor2" />
            22:
            23:          <ImageView
            24:              android:id="@+id/imageView1"
            25:              android:layout_width="wrap_content"
            26:              android:layout_height="wrap_content"
            27:              android:layout_gravity="center_horizontal"
            28:              android:contentDescription="@string/Deskripsi_Gb"
            29:              android:scaleType="center"
            30:              android:src="@drawable/gitar" />
            31:
            32:          <Button
            33:              android:id="@+id/stringE1"
            34:              android:layout_width="fill_parent"
            35:              android:layout_height="wrap_content"
            36:              android:text="@string/e1" >
            37:          </Button>
            38:
            39:          <Button
            40:              android:id="@+id/stringA"
            41:              android:layout_width="fill_parent"
            42:              android:layout_height="wrap_content"
            43:              android:text="@string/a" >
            44:          </Button>
            45:
            46:          <Button
            47:              android:id="@+id/stringD"
            48:              android:layout_width="fill_parent"
            49:              android:layout_height="wrap_content"
            50:              android:text="@string/d" >
            51:          </Button>
            52:
            53:          <Button
            54:              android:id="@+id/stringG"
            55:              android:layout_width="fill_parent"
            56:              android:layout_height="wrap_content"
                              Dapatkan materi terbaru di                  138
                                       www.omayib.com
   133   134   135   136   137   138   139   140   141   142