티스토리 뷰
class CustomAdapter extends ArrayAdapter{
Context context;
int layoutResourceId;
CharSequence data[] = null;
Typeface tf;
public CustomAdapter(Context context, int layoutResourceId, CharSequence[] data, String FONT ) {
super(context, layoutResourceId, data);
this.layoutResourceId = layoutResourceId;
this.context = context;
this.data = data;
tf = Typeface.createFromAsset(context.getAssets(), FONT);
}
}
// 폰트 적용
listAdapter = new CustomAdapter(this, R.layout.custom_list_text, R.array.abra_hotel, "name_of_font.ttf");
'프로그래밍 > android' 카테고리의 다른 글
[android]해시 키 구하는 메소드 (0) | 2015.01.07 |
---|---|
[android] ViewPager 시작시 원하는 position(item)으로 가기 (0) | 2015.01.06 |
[android] facebook hashkey 생성 (0) | 2014.12.11 |
[android] progressBarStyle (0) | 2014.12.04 |
[android] SharedPreferenes 클래스 생성해서 사용하기 (0) | 2014.06.12 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 가평휴게소
- ios
- 킹스맨
- Android
- 코드 하이라이트
- xcode7
- 엘지
- 막국수
- 휴게소
- Xcode
- 안드로이드 라이브러리
- xcode8
- Re:NK
- keyboard
- android jar
- custom font
- crop
- 아이콘 사이즈
- 리엔케이
- 남자화장품
- cocoapods
- resize
- serialize
- git flow
- 안드로이드
- 봄봄봄
- 참나무숯불닭갈비
- ShardPreferenes
- ListView
- gitgub
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
글 보관함