ȸ¿ø°¡ÀԡžÆÀ̵ð/ºñ¹øã±â
ȨÀ¸·Î


Ä¿½ºÅÒ Å佺Ʈ ¶ç¿ì±â(To show Custom Toast)
7³â Àü
Ä¿½ºÅÒ Å佺Ʈ ¶ç¿ì±â


public void showCustomToast(String msg, int duration){
    
    //Retrieve the layout inflator
    LayoutInflater inflater = getLayoutInflater();
    //Assign the custom layout to view
    //Parameter 1 - Custom layout XML
    //Parameter 2 - Custom layout ID present in linearlayout tag of XML
    View layout = inflater.inflate(R.layout.result_toast,
                (ViewGroup) findViewById(R.id.toast_layout_root));
    TextView msgView = (TextView)layout.findViewById(R.id.toastMessage);
    msgView.setText(msg);
    //Return the application context
    Toast toast = new Toast(getApplicationContext());
    //Set toast gravity to bottom
    toast.setGravity(Gravity.BOTTOM, 0, 0);
    //Set toast duration
    toast.setDuration(duration);
    //Set the custom layout to Toast
    toast.setView(layout);
    //Display toast
    toast.show();
}

ÃßõÃßõ : 273 Ãßõ ¸ñ·Ï
¹øÈ£ Á¦¸ñ
127
[Android] Intent È°¿ë ¿¹½Ã
126
Android ¼³Ä¡µÈ ¾îÇà ¸ñ·Ï PackageInfo¸¦ ÅëÇØ °¡Á®¿À±â ¹× ´Ù¸¥ ¾îÇà ½ÇÇà
125
[ANDROID(¾Èµå·ÎÀ̵å) ¾Û °³¹ß ±âÃÊ] MEDIAPLAYER À½¾Ç Àç»ýÇϱâ
124
[¾Èµå·ÎÀ̵å] ¿ÜºÎ ¾Û ½ÇÇà
123
¾Èµå·ÎÀÌµå ¼º´ÉÀ» À§ÇÑ ¼³°è
122
ÆÄÀÏ ¾÷·Îµå ¹× ÆĶó¸ÞÅÍ Àü¼Û (sending file & parameters by MultipartEntity / post)
121
MediaPlayer °¡·ÎÀÏ ¶§ UI ¼û±â°í Ç®½ºÅ©¸° ¸¸µé±â
120
À¥ºä¿¡¼­ html ÅÂ±× ¾ø¾Ö´Â ¹ý(Remove the html tag on loading web page in WebView)
119
´Ù¸¥ ¾Û ½ÇÇàÇϰųª Ç÷¹ÀÌ ½ºÅä¾î·Î À̵¿(Launch another app by code)
118
À¥ ºä¿¡¼­ ÅÂ±× Á¤º¸ ÃàÃâÇϱâ(Get the information of html tag in WebView of android)
117
ÀÚµ¿À¸·Î ¿¡µðÆ®ºä¿¡ Æ÷Ä¿½º µÇ´Â °Í ¸·±â
116
addJavascriptInterface ¿À·ù(Android WebView.addJavascriptInterface not Working)
Ä¿½ºÅÒ Å佺Ʈ ¶ç¿ì±â(To show Custom Toast)
114
À¥¿¡¼­ ÆÄÀÏ »çÀÌÁî¿Í ÄÜÅÙÆ®(ÄÁÅÙÃ÷) ŸÀÔ ¾Ë¾Æº¸´Â »ùÇÃÄÚµå
113
¾Èµå·ÎÀ̵å ÅؽºÆ® ºä¿¡¼­ Áö¿øÇÏ´Â HTML ű׵é
112
ÀÎÅÍ³Ý ÁÖ¼Ò À¯È¿¼º °Ë»ç (regular expression for url)
111
SpannableStringÀ¸·Î ÅؽºÆ® ºä¿¡ ¾ÆÀÌÄÜ ³Ö´Â ¹ý
110
½ÇÇà°¡´ÉÇÑ ¾Û ¸ñ·Ï (Get launchable apps in android)
109
HTMLÀ» ¾Èµå·ÎÀ̵å À¥ºä¿¡ ¸ðµÎ º¸ÀÌ°Ô Çϱâ Using WebView ViewPort in android
108
so ÆÄÀÏ ¾Èµå·ÎÀÌµå ½ºÆ©µð¿À¿¡¼­ »ç¿ëÇÏ´Â ¹ý
107
[¾Èµå·ÎÀ̵å] È­¸é »çÀÌÁî ±¸Çϱâ
106
[¾Èµå·ÎÀ̵å] ¾Èµå·ÎÀÌµå ½ºÆ©µð¿À¿¡¼­ ºôµå ÆÄÀÏ À̸§ ¼öÁ¤Çϱâ.
105
¿ÜºÎ ¾Û ½ÇÇà½ÃÅ°±â (launch external app in android)
104
Service & Notification(¾Ë¸²¹Ù¶ç¿ì±â) ÀÌ¿ëÇϱâ
103
È­¸é ȸÀü(rotation) ó¸®
102
[Android] Àüüȭ¸é, title bar ¾ø¾Ö±â, status bar ¾ø¾Ö±â
101
ANDROID(¾Èµå·ÎÀ̵å) ¾Û °³¹ß ±âÃÊ] MEDIAPLAYER À½¾Ç Àç»ýÇϱâ
100
[Android]MediaPlayer¿¡¼­ »ç¿îµå¸¦ Àç»ýÇÏ´Â µÎ °¡Áö °æ·Î
99
¾Èµå·ÎÀ̵å Intent »ç¿ë¹ý
98
¾Èµå·ÎÀ̵å È­¸é Á¤¸®
¸ñ·Ï
¹ÂÁ÷Æ®·ÎÆ® ºÎ»ê±¤¿ª½Ã ºÎ»êÁø±¸ °¡¾ßµ¿ ¤Ó °³ÀÎÁ¤º¸Ãë±Þ¹æħ
Copyright ¨Ï musictrot All rights reserved.