原创 Android自定義屬性時format選項可以取用的值
1. reference:參考某一資源ID。 (1)屬性定義: <declare-styleable name="名稱"> <attr format="reference" name="backgrou
原创 通過CTS學習Android API系列1——CTS結果分析及用例研究
前言 之前寫過一篇《Android自我修煉之路》,本已打定主意讓大家來拍磚,誰知道大家都很善良,反而弄得我很不知所措。既然自己給自己指了一條路,就應該按照這條路走下去,不然豈不成了滿嘴跑動車的人了? 第一階段是學習JAVA,並通過CTS練
原创 Android 可拖拽的GridView效果實現, 長按可拖拽和item實時交換
轉帖請註明本文出自xiaanming的博客(http://blog.csdn.net/xiaanming/article/details/17718579),請尊重他人的辛勤勞動成果,謝謝! 在Android開發中,我們常常用到List
原创 Android中Bitmap和Drawable
轉自:http://dyh7077063.iteye.com/blog/970672 一、相關概念 1、Drawable就是一個可畫的對象,其可能是一張位圖(BitmapDrawable),也可能是一個圖形(ShapeDrawable),
原创 Java的移位操作(收集+糾正)
轉:http://blog.csdn.net/wangming7306/article/details/1621609 此收集來源於網絡收集,是我整理、糾正以及排版,來爲大家提供全面一點的知識講解,可能有些地方排的不好,望諒解。 ====
原创 <uses-feature>
http://developer.android.com/guide/topics/manifest/uses-feature-element.html AndroidManifest.xml文件詳解(uses-feature)
原创 Android 使用NineOldAndroids實現絢麗的ListView左右滑動刪除Item效果
轉載請註明本文出自xiaanming的博客(http://blog.csdn.net/xiaanming/article/details/18311877),請尊重他人的辛勤勞動成果,謝謝! 今天還是給大家帶來自定義控件的編寫,自定義一個
原创 Android中JNI的使用方法
首先看一下Android平臺的框架圖:(網上盜用) 可以看到Android上層的Application和ApplicationFramework都是使用Java編寫, 底層包括系統和使用衆多的LIiraries都是C/C+
原创 <application>
http://developer.android.com/guide/topics/manifest/application-element.html <application> 語法(SYNTAX): <application an
原创 示例2-EventBus
EventBus是Android下高效的發佈/訂閱事件總線機制。作用是可以代替傳統的Intent,Handler,Broadcast 或接口函數在Fragment,Activity,Service,線程之
原创 <permission-tree> & <permission-group> & <uses-permission> & <permission>
For example, an activity could be protected as follows: <manifest . . . > <permission android:name="com.example.pr
原创 Math tools
函數名 描述 示例 結果 pi 圓周率 math.pi 3.1415926535898 abs 取絕對值 math.abs(-2012) 2012 ceil 向上取整 math.ceil(9.1) 10
原创 <path-permission> && <grant-uri-permission>
<path-permission> SYNTAX: <path-permission android:path="string" android:pathPrefix="string"
原创 示例1-MVP
MVP與MVC MVP(Model View Presenter) MVP模式3要素: (1) View :負責繪製UI元素、與用戶進行交互(在Android中體現爲Activity); Vie
原创 ProgressBar
http://developer.android.com/reference/android/widget/ProgressBar.html#attr_android:indeterminate 一。長形進度條 樣式一,Android源碼