Time of Update: 2018-12-06
Android平台下SeeJoPlayer視頻播放器(功能介紹及源碼解析,附源碼)http://www.blogjava.net/zh-weir/archive/2011/03/23/310617.html 使用Vitamio打造自己的Android萬能播放器(10)—— 本地播放
Time of Update: 2018-12-06
橫豎屏切換後Activity會重新執行onCreat函數,但是在Android工程的Mainfest.xml中加入android:screenOrientation="user"
Time of Update: 2018-12-06
android:gravity是用來設定控制項裡面的子控制項等的對齊的;android:layout_gravity是用來設定控制項本身在它的父控制項中的對齊詳見:http://byandby.iteye.com/blog/1020374gravity是重力的意思,也就是控制項沿著水平或者垂直方向的位置;而weight為權重、比重的意思,也就是當前控制項在畫布中所佔的空間比重了。當然是weight的值越大,控制項所佔的空間就越大,主要用來設定頁面控制項的顯示比例 主要的參數有以下三個:andro
Time of Update: 2018-12-06
Service是android 系統中的一種組件,它跟Activity的層級差不多,但是他不能自己運行,只能後台運行,並且可以和其他組件進行互動。Service的啟動有兩種方式:context.startService() 和 context.bindService()。 使用context.startService()啟動Service是會會經曆:context.startService() ->onCreate()->onStart()->Servicerunningcon
Time of Update: 2018-12-06
在學習 WindowManager 介面的時候,瞭解到這個介面很重要,因為它可以直接與Window Manager(視窗管理器)進行互動,那這個 Window Manager 究竟是怎麼一回事呢? 通過尋找資料,我知道了 Window Manager 其實是一個 service(服務)。它是全域的,系統中唯一的,是獨立於android應用程式的,所有android應用程式公用的
Time of Update: 2018-12-06
原文地址:http://www.cnblogs.com/jqyp/archive/2010/10/23/1859182.htmlRelativeLayout用到的一些重要的屬性: 第一類:屬性值為true或false android:layout_centerHrizontal 水平置中 android:layout_centerVertical 垂直置中 android:layout_centerInparent 相對於父元素完全置中
Time of Update: 2018-12-06
注意:android只支援270度旋轉。 <activity android:name=".MyActivity" android:label="@string/app_name" android:screenOrientation="portrait">android:screenOrientation設定該活動的方向, 該值可以是任何一個下面的字串:"unspecified"- 預設值. 由系統選擇顯示方向.
Time of Update: 2018-12-06
android:theme="@android:style/Theme.Dialog" : Activity顯示為對話方塊模式android:theme="@android:style/Theme.NoTitleBar" : 不顯示應用程式標題欄android:theme="@android:style/Theme.NoTitleBar.Fullscreen" : 不顯示應用程式標題欄,並全屏android:theme="Theme.Light ":
Time of Update: 2018-12-06
Android應用程式的預設安裝位置以及是否可移動取決於開發人員在其AndroidManifest.xml中的設定: <manifestxmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:installLocation="auto"
Time of Update: 2018-12-06
webview中右下角的縮放按鈕能不能去掉settings.setDisplayZoomControls(false); //隱藏webview縮放按鈕 讓Webview載入的頁面置中顯示有我知道的幾種方法第一種方法:WebSettings settings =
Time of Update: 2018-12-06
Android開發新浪微部落格戶端 完整攻略
Time of Update: 2018-12-06
http://www.cnblogs.com/fanchangfa/archive/2012/08/24/2654834.html 在Android模擬器中測試的時候,經常需要向譬如EditText中輸入資料,Android模擬器鍵盤輸入方式有三種: 1. Android系統內建的虛擬鍵盤,點擊文字框時出現: 2.
Time of Update: 2018-12-06
px: pixels(像素). 不同裝置顯示效果相同,一般我們HVGA代表320x480像素,這個用的比較多。pt: point,是一個標準的長度單位,1pt=1/72英寸,用於印刷業,非常簡單易用;sp: scaled pixels(放大像素). 主要用於字型顯示best for textsize。dip: device independent pixels(裝置獨立像素,相對像素). 不同裝置有不同的顯示效果,這個和裝置硬體有關,一般我們為了支援WVGA、HVGA和QVGA
Time of Update: 2018-12-06
Android學習系列(20)--App資料格式之解析Json
Time of Update: 2018-12-06
-----------------------------------------------------ANDROID_SDK_HOME:/home/cmm/avdsPATH:/home/cmm/android-sdk-linux/tools;/home/cmm/android-sdk-linux/platform-toolsCLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib------------------------------------------
Time of Update: 2018-12-06
1、webview支援頁面縮放,一般通過以下設定就可滿足80%的要求//縮放開關webView.getSettings().setSupportZoom(true);設定此屬性,僅支援雙擊縮放,不支援觸摸縮放(在android4.0是這樣,其他平台沒試過)//
Time of Update: 2018-12-06
Android平台定義的主題樣式:android:theme="@android:style/Theme.Dialog" 將一個Activity顯示為對話方塊模式•android:theme="@android:style/Theme.NoTitleBar" 不顯示應用程式標題欄•android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 不顯示應用程式標題欄,並全屏•android:theme="@android:style/T
Time of Update: 2018-12-06
原文地址:http://www.linuxidc.com/Linux/2012-01/52649.htm 是協助文檔中的關於Android介面開發的推薦色值,大家可以參考一下: 補充一些常用的顏色值:<?xml version="1.0" encoding="utf-8" ?> <resources> <color name="white">#ffffff</color><!--白色 --> <color
Time of Update: 2018-12-06
android-apt-compiler: Cannot run program "D:\android-sdk\platform-tools\aapt裝上IntelliJ IDEA 12.1.3後,編譯Android工程,發現老是報如上錯誤,有人說是ant設定檔SDK什麼路徑不對,但我這裡是對的,後來發現API17把原來plateform-tools下的aapt.exe和lib檔案夾都放到了/build-tools/17.0.0/下去了,於是將aapt.exe,
Time of Update: 2018-12-06
FAQ: 問下的 我的ANDROID SDK MANAGER裡原來下載了一些SDK,但是我現在想重新下載新的SDK,咋Packages列表沒顯示呢?該怎麼辦? Answer: 據說dl-ssl.google.com在大陸被強了,偉大的天朝真是不讓人活了,解決方案就是修改C:\Windows\System32\drivers\etc\hosts檔案。添加一行: 74.125.237.1 dl-ssl.google.com