Time of Update: 2018-12-05
/** * Paint類介紹 * * Paint即畫筆,在繪圖過程中起到了極其重要的作用,畫筆主要儲存了顏色, * 樣式等繪製資訊,指定了如何繪製文本和圖形,畫筆對象有很多設定方法, * 大體上可以分為兩類,一類與圖形繪製相關,一類與文本繪製相關。 * * 1.圖形繪製 * setARGB(int a,int r,int g,int b); *
Time of Update: 2018-12-05
文章目錄 1. View Animation(Tween Animation)2. Drawable Animation(Frame Animation)3. Property Animation3.1 Property Animation的工作方式3.2 ValueAnimator3.3 ObjectAnimator3.4 通過AnimationSet應用多個動畫3.5 TypeEvalutors3.6 TimeInterplator3.7
Time of Update: 2018-12-05
前言:目前一般手機的相機都能達到800萬像素,像我的Galaxy
Time of Update: 2018-12-05
去除ListView滑到頂部和底部時邊緣的黑色陰影android:fadingEdge="none"去除拖動時預設的黑色背景android:cacheColorHint="#00000000"去除選中時的黃色底色android:listSelector="#00000000" 去除行與行之間的黑線msgList.setDivider(null); ListView重新整理後自動滾到最底部listview.setSelection(listview.getAdapter().getCount(
Time of Update: 2018-12-05
第一步,把我們的應用程式作為home(即實現按下home鍵,啟動自己的launcher.)要把我們的應用程式作為home,只需要在AndroidManifest.xml中添加: <category android:name="android.intent.category.HOME" /> <category android:name="android.intent.category.DEFAULT" />AndroidManifest.xml<?xml
Time of Update: 2018-12-05
需要許可權:<uses-permission android:name="android.permission.READ_PHONE_STATE" />方式一:通過廣播接收來電定義來電廣播接收類package com.zhouzijing.android.demo;import android.content.BroadcastReceiver;import android.content.Context;import android.content.Intent;import
Time of Update: 2018-12-05
json相關參考 json規範rfc4627:http://www.ietf.org/rfc/rfc4627.txt json介紹:http://www.json.org/json-zh.html json入門參考:http://www.cnblogs.com/Truly/archive/2006/12/31/608896.html android2.3提供的json解析類 android的json解析部分都在包org.json下,主要有以下幾個類: JSONObject:可以看作是一個json
Time of Update: 2018-12-05
最近發現瀑布流這個展現形式很是熱門,於是就研究著看看,結果發現瀑布流其實也很簡單,並不是那麼複雜。先看代碼,然後再解釋先看圖<?xml version="1.0" encoding="utf-8"?><ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"
Time of Update: 2018-12-05
android同時彈出頂部和底部菜單 在android開發中會碰到這樣的需求,要同時彈出頂部和底部的菜單。目前已經上市的APP中有91熊貓讀書和QQ閱讀器帶這樣的功能。點擊Menu和點擊螢幕都會快顯功能表。有很多方法可以實現。我的方法是在RelativaLayout中設定好菜單布局,然後在監聽事件中使其顯示/隱藏。具體做法如下: 一:布局。可根據需求做一些複雜的設計。在這兒用兩個按鈕btn_top和btn_bottom。 <Button android:id="@+id/btn_
Time of Update: 2018-12-05
下面是從網上找的一些資料: 如果要添加一個Notification,可以按照以下幾個步驟1:擷取NotificationManager:NotificationManager m_NotificationManager=(NotificationManager)this.getSystemService(NOTIFICATION_SERVICE);2:定義一個Notification: Notification m_Notification=new
Time of Update: 2018-12-05
XML逸出字元 以下為XML標誌符的數字和字串轉義符 " (" 或 ") ' (' 或 ') & (& 或 &) lt(<) (< 或 <) gt(>) (> 或 >) 如題: 比如:在string.xml中定義如下一個字串, <string
Time of Update: 2018-12-05
偶然在網上看到。於是照著網上的例子寫了一個例子。很簡單,就是實現語音辨識。後來的TTS沒有做。直接貼代碼View Code /** * 語音辨識 * * @author sy * */public class SpeakToActivity extends Activity{ /** Called when the activity is first created. */ private Button mSpeakButton; @Override public
Time of Update: 2018-12-05
文章目錄 Activity是什麼Activity的繼承關係Android 中 Context 內容概要• Activity的繼承關係• Android 中 Context介紹• Acitivy實際是如何執行個體化的• Activity生命週期• Activity的啟動方式,Task&Back Stack,進 程和線程,Intent.FLAG_ACTIVITY*•
Time of Update: 2018-12-05
文章目錄 1.Libraries層2、Dalvik虛擬機器3、Android 的源碼開放4、Android應用的開發 有網友發私信提到這樣的問題,自己做過很多個移動平台,比如symbian ,mtk,android,ios,簡單的把自己的對這些問題一些理解寫出來,希望能回答到這位網友的問題。ni*****網友提問說: 我不是在做軟體的,只是因為興趣才產生這樣的疑問,希望能指教
Time of Update: 2018-12-05
AndroidManifest.xml
Time of Update: 2018-12-05
第一種:日期控制項DatePicker.javapackage com.example.dataPicker;import android.app.Activity;import android.app.DatePickerDialog;import android.app.Dialog;import android.os.Bundle;import android.view.View;import android.view.View.OnClickListener;import
Time of Update: 2018-12-05
1、iOS開發比Android開更容易賺錢1.1 Appstore上的應用和遊戲比Android play store品質高 現在Android Market變更為Android play store,App Store大概已經超過60萬應用了,Android play store大約30萬,App store的應用和遊戲都是通過嚴格審核的,大多是收費的應用遊戲。Android裡面的色情、壁紙和鈴音等垃圾應用數量也是很龐大,如果去除這些,Android
Time of Update: 2018-12-05
接上篇:Android Map Api 使用和開發(2) 定位我的位置、地圖彈出泡泡、通過經緯度擷取地址這篇把 浮動搜尋方塊 ,通過位址名稱擷取經緯度和詳細地址並定位 這些功能加上,算是一個比較完整的地圖了。 前輩們都說不要重複的造相同的輪子, 希望這整個例子對正在研究或做地圖的同學有協助。 先,看看效果搜尋方塊: 用的icon是憤怒的小鳥,尼瑪預設的icon太難看了,換個好看的。哈哈、點擊搜尋後的效果:那就開始吧!一、配置搜尋方塊searchable.xml<?xml version=
Time of Update: 2018-12-05
越來越多的手機具備自動對焦的拍攝功能,這也意味著這些手機可以具備條碼掃描的功能.......手機具備條碼掃描的功能,可以最佳化購物流程,快速儲存電子名片(二維碼)等。 本文使用ZXing 1.6實現條碼/二維碼識別。ZXing是個很經典的條碼/二維碼識別的開源類庫,long long
Time of Update: 2018-12-05
Https與Http類似,只不過Https一般是通過post請求伺服器,但是Https與http不同的是Https與伺服器會話是處於串連狀態。http則發送請求後串連就會斷開。發送post請求代碼:String query = r4 + "&pass=" + r3; //請求參數 byte[] entitydata = query.getBytes();//得到實體資料