¿äÁò À¥¾Û Á¾Á¾ ÀÛ¾÷ÇÏ°Ô µÇ´Âµ¥¿ä.
Áï, ¾Û ¾È¿¡ À¥ºä·Î ¸ð¹ÙÀÏ À¥À» ¶ç¿ì´Â ÀÛ¾÷À» ÁøÇà½Ã °£È¤ ½ºÅ©·Ñ ¶§¹®¿¡ À¥Ç¥ÁØ°ú Ãæµ¹³ª¼ Èò¿©¹éÀÌ »ý±â´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù.
Çѵ¿¾È ½ºÅ¸ÀÏ ¹®Á¦·Î ¾Ë°í ÀÚ·á °è¼Ó ã´Ù°¡ ¾Ë°í º¸´Ï À¥ºä¿¡¼ ½ºÅ©·Ñ¸¸ false ó¸®ÇÏ¸é ³¡ÀÌ´õ±º¿ä.
±×·¸´Ù°í ½ºÅ©·ÑÀÌ ±â´ÉÀÌ ¾ÈµÇ´Â°Ç ¾Æ´Ï±¸¿ä ½ºÅ©·Ñ¸¸ ¼û°Ü¼ À¥¿¡¼ ÆøÀÌ ¸ðµÎ ³ª¿À°Ô²û ÇÏ´Â °Ì´Ï´Ù.
Hide the scrollbar in Android
In Eclipse open DroidGap.java. Find the function public void onCreate(Bundle savedInstanceState). Look for the line that created the Android WebView:
appView = (WebView) findViewById(R.id.appView);
Beneath that, add these two lines:
appView.setVerticalScrollBarEnabled(false);
appView.setHorizontalScrollBarEnabled(false);
The scroll bars will no longer appear.
Since Phonegap v0.9.2 there is no need to change core DroidGap.java files.
Just change you main activity class ( the one that extends DroidGap):
public class MyApp extends DroidGap {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.init();
// Disable scrollbars
super.appView.setVerticalScrollBarEnabled(false);
super.appView.setHorizontalScrollBarEnabled(false);
super.loadUrl("file:///android_asset/www/index.html");
}
}
* ±ÛÀ» µî·ÏÇϽǶ§ ²À ÇÊ¿äÇÑ °æ¿ì°¡ ¾Æ´Ï¸é °³ÀÎÁ¤º¸¸¦ ³²±âÁö ¸¶¼¼¿ä ^^ (¿¬¶ôó,À̸ÞÀÏÁÖ¼Ò,Áֹεî·Ï¹øÈ£ µî)