items.add(files[i].getName() + "/");}
else//파일일 경우
items.add(files[i].getName().toString() + " " + fileSize);
}
layout_list.xml
리스트 뷰 부분입니다.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</LinearLayout>
layout_smart.xml
커스텀 뷰들을 넣는 레이아웃 입니다.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="60dip"
android:padding="5dip">
<TextView
android:id="@+id/txtName"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="#FFFFFFFF"
android:textSize="26dip"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true" />
</RelativeLayout>



