티스토리 뷰
반응형
// layout 폴더에 memolist_type.xml로 파일 생성하여 아래 내용 추가
<?xml version="1.0" encoding="utf-8"?>
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/TxtMemoListType"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:textColor="#000000"
android:textSize="20dp"
>
</TextView>
// 소스에서 어댑터로 리스트뷰 연결시에 타입을 아까 만든것으로 지정
ArrayAdapter<String> Adapter;
Adapter = new ArrayAdapter<String>(this, R.layout.memolist_type, arMemoList);
mListMemo.setAdapter(Adapter);
반응형
'Android > 실전 TIP' 카테고리의 다른 글
뒤로 버튼 두번 눌러서 종료하기 (0) | 2019.03.25 |
---|---|
셀프 카메라 제어 (0) | 2019.03.25 |
액티비티 이동간 괜찮은 애니메이션 (0) | 2019.03.22 |
맵 다시 그리기 (0) | 2019.03.21 |
화면 터치 이벤트 (0) | 2019.03.21 |
댓글
반응형
최근에 올라온 글
- Total
- Today
- Yesterday