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

          在manifest的activity節點使用

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

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

          代碼

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

          參考

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

          AppWidget的初始化有兩種方式:

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

          目前遇到的問題是:

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

          posted @ 2010-08-24 11:11 Eros 閱讀(431) | 評論 (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 閱讀(389) | 評論 (0)編輯 收藏
          主站蜘蛛池模板: 三河市| 定日县| 乐平市| 丰台区| 剑阁县| 孟津县| 松桃| 襄城县| 尼木县| 吉木乃县| 洪泽县| 林州市| 河源市| 博爱县| 红安县| 克东县| 如皋市| 阿拉善左旗| 宜春市| 和顺县| 彰化县| 安岳县| 昌图县| 囊谦县| 恩平市| 教育| 耒阳市| 新疆| 临夏市| 永丰县| 威远县| 凌海市| 常宁市| 江油市| 新乐市| 浦东新区| 惠来县| 上林县| 祁阳县| 甘孜县| 炉霍县|