Java Lesson16( String ListView )


============================

ဒီသင္ခန္းစာမွာ implements ေတြ ဘယ္လိုလုပ္ယူရသလဲဆိုတာ အေသးစိပ္ျပန္ရွင္းျပထားတယ္ ... ဖတ္ထားပါ ... ေနာက္ျပန္မေျပာပါဘူး ... ျပီးေတာ့ ... listview တနည္းလုပ္ျပထားပါတယ္ ...

လိုအပ္တဲ့ ဖိုင္တခ်ိဳ႕ခ်ေပးပါမယ္ ... စာရိုက္ရနည္းနည္းသက္သာေစဖို႔ပါ ...

ဒါေလးေရးတာ တေနကုန္သြားတယ္ ... 😩😩😩

values/strings.xml
================
<?xml version="1.0" encoding="utf-8"?>
<resources>

    <string name="app_name">ListViewLesson2</string>
    <string name="hello_world">Hello world!</string>

<string-array name="names">
<item>Mg Mg</item>
<item>Aung Aung</item>
<item>Thida</item>
<item>Phoy cho</item>
<item>Kit Kit</item>
<item>Chit Swe</item>
<item>Mr Bean</item>
<item>Ni Ni</item>
<item>Mu Mu</item>
<item>Akary</item>
<item>Mani Sanda</item>
<item>Tun Tun</item>
<item>Kyaw Kyaw</item>
<item>Win Win</item>
<item>Naung Min</item>
<item>Ni Maung</item>
<item>Tar Tee</item>
</string-array>

</resources>

drawable/btgold1.xml
===================
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_pressed="true">
        <shape>
            <gradient
                android:angle="90"
                android:endColor="#e5e5e5"
                android:startColor="#c0c0c0" />
            <stroke
                android:width="3dp"
                android:color="#c0c0c0" />
            <corners
                android:radius="10dp" />
            <padding
                android:bottom="10dp"
                android:left="10dp"
                android:right="10dp"
                android:top="10dp" />
        </shape>
    </item>

    <item android:state_focused="true">
        <shape>
            <gradient
                android:angle="270"
                android:endColor="#500000"
                android:startColor="#E00000" />
            <stroke
                android:width="3dp"
                android:color="#303030" />
            <corners
                android:radius="10dp" />
            <padding
                android:bottom="10dp"
                android:left="10dp"
                android:right="10dp"
                android:top="10dp" />
        </shape>
    </item>

    <item>
        <shape>
            <gradient
                android:angle="270"
                android:endColor="#ffff00"
                android:startColor="#e6b121" />
            <stroke
                android:width="3dp"
                android:color="#e6b121" />
            <corners
                android:radius="10dp" />
            <padding
                android:bottom="10dp"
                android:left="10dp"
                android:right="10dp"
                android:top="10dp" />
        </shape>
    </item>
</selector>

Comments

Popular posts from this blog

Firebase (2)

Story Book Project (8)

Story Book Project (7)