Story Book Project (8)


===========

အခု ဆက္ၿပီး ဒီဇိုင္းပိုင္း လုပ္ပါမယ္။

၁။ icon တခု ရွာၿပီး ic_main လို႔ အမည္ေပးပါ။ အဲဒါကို res/drawable folder ေဆာက္ၿပီး ထည့္ထားပါ။

၂။ Google image နဲ႔  background ပံု ၂ပံုကို download ခ်ၿပီး bg1.jpg, bg2.jpg အမည္ေျပာင္း၊ drawable folder ထဲ ထည့္ထားပါ။

=========
http://www.google.com.mm/search?num=10&site=webhp&tbm=isch&source=hp&ei=3ERXWZSUCMux0ATeso7AAg&q=android+background+flower&oq=android+&gs_l=mobile-gws-img.1.1.41l3j0l2.515.3130.0.12994.8.5.0.0.0.0.1822.2801.0j1j2j1j8-1.5.0....0...1.1.64.mobile-gws-img..3.5.2799.zVoz4AJ31Ig

========

၃။ AndroidManifest.xml ကို ဒီလို ျပင္ပါ။

=======
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="nnl.aide.lessons" >

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_main"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
<activity
android:name=".ReaderActivity">
</activity>
    </application>

</manifest>
=======

၄။ main.xml ကို ဒီလိုျပင္ပါ။

=======
<?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:gravity="center"
android:background="@drawable/bg1"
android:padding="10dp">

<FrameLayout
android:layout_height="match_parent"
android:layout_width="match_parent">

<LinearLayout
android:layout_height="match_parent"
android:layout_width="match_parent"
android:orientation="vertical"
android:background="#F064F3"
android:alpha="0.5"/>

<ListView
android:layout_height="match_parent"
android:layout_width="match_parent"
android:id="@+id/lv"/>

</FrameLayout>

</LinearLayout>

=======

Run လိုက္ရင္ ပံုထဲကလို ရပါမယ္။

Comments

Popular posts from this blog

Firebase (2)

Story Book Project (7)