ÉèΪÊ×Ò³ ¼ÓÈëÊÕ²Ø

TOP

Android¿ª·¢£ºË®Æ½·½ÏòºÍ´¹Ö±·½Ïòͬʱ¹ö¶¯(Èý)
2014-11-24 11:36:40 À´Ô´: ×÷Õß: ¡¾´ó ÖРС¡¿ ä¯ÀÀ:3´Î
Tags£ºAndroid ¿ª·¢ ˮƽ ·½Ïò ´¹Ö± ͬʱ ¹ö¶¯
tmap.createBitmap(bmp, scrollX, scrollY, dm.widthPixels, dm.heightPixels);


// ÖØ»­


invalidate();


}


}


}



3. ÐÞ¸Ä AndroidManifest.xml £¬Ê¹Ö®ÈçÏ£º


< xml version = "1.0" encoding = "utf-8" >


< manifest xmlns:android = "http://schemas.android.com/apk/res/android"


package = "com.pat.gui"


android:versionCode = "1"


android:versionName = "1.0" >


< application android:icon = "@drawable/icon" android:label = "@string/app_name" >


< activity android:name = ".ScrollPicture"


android:label = "@string/app_name"


android:screenOrientation = "sensor"


android:configChanges = "orientation" >


< intent-filter >


< action android:name = "android.intent.action.MAIN" />


< category android:name = "android.intent.category.LAUNCHER" />


intent-filter >


activity >



application >


< uses-sdk android:minSdkVersion = "7" />


< uses-permission android:name = "android.permission.CHANGE_CONFIGURATION" />


manifest >


×¢Òâ AndroidManifest.xml ÎļþÖУ¬ 3 ÐдÖÌå×Ö¡£ÆäÖÐµÄ android:screenOrientation="sensor" ±íʾ£¬ÓÉÊÖ»úµÄÖØÁ¦¸ÐÓ¦Æ÷À´¾ö¶¨ÆÁÄ»ÊÇÒÔ landscape »òÕß portrait ·½Ê½ÏÔʾ¡£


ÔËÐнá¹û£º





½á¹û±íÃ÷¿ÉÒÔͬʱÔÚˮƽºÍ´¹Ö±·½ÏòÒÆ¶¯Í¼Æ¬¡£


Ê×Ò³ ÉÏÒ»Ò³ 1 2 3 ÏÂÒ»Ò³ βҳ 3/3/3
¡¾´ó ÖРС¡¿¡¾´òÓ¡¡¿ ¡¾·±Ìå¡¿¡¾Í¶¸å¡¿¡¾Êղء¿ ¡¾ÍƼö¡¿¡¾¾Ù±¨¡¿¡¾ÆÀÂÛ¡¿ ¡¾¹Ø±Õ¡¿ ¡¾·µ»Ø¶¥²¿¡¿
·ÖÏíµ½: 
ÉÏһƪ£ºAndroid¿ª·¢£º³ÌÐòÖж¯Ì¬É趨×é¼þ.. ÏÂһƪ£ºAndroid¿ª·¢£ºScrollView/Horizon..

ÆÀÂÛ

ÕÊ¡¡¡¡ºÅ: ÃÜÂë: (ÐÂÓû§×¢²á)
Ñé Ö¤ Âë:
±í¡¡¡¡Çé:
ÄÚ¡¡¡¡ÈÝ:

¡¤Spring Boot Java£º (2025-12-26 16:20:19)
¡¤Spring Boot¤ÇHello (2025-12-26 16:20:15)
¡¤Spring ¤Î»ù±¾¤«¤éŒ (2025-12-26 16:20:12)
¡¤C++Ä£°å (template) (2025-12-26 15:49:49)
¡¤C ÓïÑÔÖÐÄ£°åµÄ¼¸ÖÖ (2025-12-26 15:49:47)