Eros Live
          Find the Way
          posts - 15,comments - 0,trackbacks - 0

          在manifest的activity節(jié)點使用

          <activity android:windowSoftInputMode="adjustResize" . . . >

          當點擊EditText控件彈出軟鍵盤的時候,系統(tǒng)會自動調整控件的位置。

          代碼

          http://github.com/shaobin0604/miscandroidapps/tree/master/WindowSoftInputMode/

          參考

          posted @ 2010-08-25 18:42 Eros 閱讀(272) | 評論 (0)編輯 收藏

          AppWidget的初始化有兩種方式:

          1. 沒有提供Configure Activity, 則在 AppWidgetProvider#onUpdate 里初始化。
          2. 提供Configure Activity, 則在 Configure Activity 里初始化。

          目前遇到的問題是:

          在Launcher里可以預先配置桌面顯示的AppWidget,如果AppWidget有Configure Activity,則系統(tǒng)在AppWidget的初始化過程不會發(fā)送android.appwidget.action.APPWIDGET_CONFIGURE Intent,而只是加載appwidget-provider里配置的initialLayout。這樣第二種就不可用,只能用第一種方法。

          posted @ 2010-08-24 11:11 Eros 閱讀(432) | 評論 (0)編輯 收藏

          1.字體大小

          synchronized void
          setTextSize(WebSettings.TextSize t)

          Set the text size of the page.

          2.縮放比例

          void
          setSupportZoom(boolean support)

          Set whether the WebView supports zoom

          void
          setInitialScale(int scaleInPercent)

          Set the initial scale for the WebView.

          boolean
          zoomIn()

          Perform zoom in in the webview

          boolean
          zoomOut()

          Perform zoom out in the webview

          3.縮放控件

          void
          setBuiltInZoomControls(boolean enabled)

          Sets whether the zoom mechanism built into WebView is used.

          4.JavaScript支持

          synchronized void
          setJavaScriptEnabled(boolean flag)

          Tell the WebView to enable javascript execution.

          posted @ 2010-07-28 12:49 Eros 閱讀(390) | 評論 (0)編輯 收藏
          主站蜘蛛池模板: 甘孜县| 改则县| 获嘉县| 东乌| 武穴市| 阳谷县| 屯门区| 巧家县| 咸丰县| 新疆| 若羌县| 双城市| 上栗县| 应城市| 凌源市| 新竹市| 凤冈县| 辽源市| 河南省| 江孜县| 临夏县| 藁城市| 泰州市| 镇平县| 田东县| 长武县| 澄城县| 什邡市| 巴中市| 府谷县| 南岸区| 遂溪县| 水富县| 广丰县| 建瓯市| 商南县| 舟山市| 鲁甸县| 开原市| 黄石市| 类乌齐县|