검색결과 리스트
글
프로그램/Android
2013. 3. 12. 10:31
안드로이드 토스트 연속 출력 및 위치 지정하기
//선언
static Toast mtoast;
// 사용
void toastprint(string string){
if (mtoast == null) {
mtoast = Toast.makeText(mContext, string, length);
} else {
mtoast.setText(string +"set");
}
int offsetX = 10;
int offsetY = 10;
mtoast.setGravity(Gravity.CENTER, offsetX, offsetY);
mtoast.show();
}
'프로그램 > Android' 카테고리의 다른 글
| 안드로이드 다이얼로그 AlertDialog.Builder (0) | 2013.03.12 |
|---|---|
| 안드로이드 에러 android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application (0) | 2013.03.12 |
| 디버깅빠르게 하기 aapt (0) | 2013.03.12 |
| 안드로이드 엑티비티 투명 , android activity Dim (0) | 2013.03.12 |
| 안드로이드 Intent 사용법 (0) | 2013.03.11 |
RECENT COMMENT