編輯:關於Android編程
這個項目所包含的功能,全部是從實際項目中提取,開發這個類庫的初衷也只是為了方便自己開發Android項目。由於時間所限,目前大量的內容還沒整理到這個開源項目中,doc和demo也有所欠缺,我將盡快完善。而其中大量不合理的內容,也將逐步改進。
歡迎大家提各種意見,當然更歡迎fork和pull request。
CommonLibsForAndroid
Using CommonLibs is a fast way to help you develop Android apps
快速開發Android應用的框架
Introduction
簡介
The lib contains many feature like View Injection,ORM,Asynchronous Http and Image,User scenario testing,many UI Modules etc.And there are also many useful feature like TripleDes Utils,WebViewUtils,Md5Utils etc.The lib will be added by more feature in the future.
If I add a new feature,I will write a demo for it at a same time.Some old features do not have demo but I will try to complete them.If you want to try the demo,you can download the Apk directly.
Up to now,I have only write the demo of most parts of UI modules and View Injection.The demo is something boring,but you can also see many kinds of UI modules.
I will try to make the demo more interesting and containing other parts such as ORM,Asynchronous Http and Image in next days.
框架目前主要包含的功能有View Injection,ORM,異步網絡請求和圖片加載,自動化腳本測試,磁盤LRU等功能,同時提供了類似於TripleDes、Webview快速設置、Md5處理、String處理等常用工具類,還有多種UI控件效果。並且這些功能正在逐步增加中。
部分老的功能還沒有Demo,但我會不斷的完善。目前每加入一個新功能都會增加Demo.Demo的Apk文件可以直接下載使用.
框架的Demo目前主要只包含了UI Module部分和View Injection,看上去有些無聊,不過你仍可以查看這些有趣的UI效果.
我將盡力在接下啦的日子中將Demo做的更有趣,同時也包括了類似ORM,異步圖片和網路加載等模塊。
Demo Manual
Demo 使用方法
Demo is rely on appcompat and the CommonLibs, you can change CONFIGURATION in your IDES etc. Some IDEs require additional configuration in order to enable annotation processing for Butter Knife, or you can see IntelliJ IDEA Configuration for Butter Knife or Eclipse Configuration for butter Knife.
Demo依賴於appcompat 和 CommonLibs,你可以在IDE或者配置文件裡面添加一下依賴。 部分IDE需要開啟annotation的編譯(因為Butter Knife)的緣故,如果不清楚如何開啟可以看一下IntelliJ IDEA Configuration for Butter Knife or Eclipse Configuration for butter Knife.
UI Modules
Demo Manual
Demo 使用方法
Demo is rely on appcompat and the CommonLibs, you can change CONFIGURATION in your IDES etc. Some IDEs require additional configuration in order to enable annotation processing for Butter Knife, or you can see IntelliJ IDEA Configuration for Butter Knife or Eclipse Configuration for butter Knife.
Demo依賴於appcompat 和 CommonLibs,你可以在IDE或者配置文件裡面添加一下依賴。 部分IDE需要開啟annotation的編譯(因為Butter Knife)的緣故,如果不清楚如何開啟可以看一下IntelliJ IDEA Configuration for Butter Knife or Eclipse Configuration for butter Knife.
目前Demo非常簡陋,不斷完善中。
Update:
2014.6.12:Add descriptions of most of the classes.
增加了類說明,還有一些方法名相對明確。
2014.6.14:Add NineOldAndroids to support Android 2.1~2.3
增加了支持2.3的android動畫,畢竟在某些地方2.3的占有率並不低。該類庫如果不需要可移除。
2014.6.16 Add enhanceListView for swipe to dismiss; Move NineOldAndroids to Main Lib project.
增加了滑動刪除的Listview;
將NineOldAndroids從依賴項目改為放入主Lib工程,方便大家配置使用。
2014.6.18 Add Shimmer-Android
增加了Shimmer類庫
2014.6.19 Add Sample Demo!! It is very sample demo but I will add more in the next week.
增加了Demo!現在還很簡單,但是我再慢慢補充中。
2014.6.20 Add TileView and Add demo of TileView
2014.6.22 Add colors resource
2014.6.24 Add SmoothProgressBar
增加了Android風格的進度條的Demo。
2014.6.25 Add StickyGridHeaders
增加了頭部浮現控件和根據Letter過濾控件
2014.6.26 Add Flip View like FlipBoard
Add PhotoViewwhich can help you zoom image by various touch gestures.
增加了類似FlipBoard的效果。
增加了手勢放縮圖片的控件。
2014.6.27 Add Square Progress
Add FolderableLayout
AddFoldingNavigationDrawer
增加了幾種進度條的加載方式
增加了折疊的圖片處理或者側邊菜單的樣式。
2014.6.28 Add Calendar widget
Add Demo.apk
增加了日歷選擇控件
增加了DemoApk
2014.6.30
Add FaceCrop
Add KenBurns
Add PanningView
Add ProgressWheel
Add ViewpagerSlidingTabs
The CommonLibs use many opensource program and I am very grateful to the author of them. The opensource program which I use:
1.JakeWharton's Butter Knife for View Injection.
2.loopj's Asynchronous Http Client for Android.
3.nostra13's Universal Image Loader for Android
4.greenrobot's greenDAO
5.pardom's ActiveAndroid
6.JakeWharton's DiskLruCache
7.Issacw0ng's SwipeBackLayout
8.google-gson
9.RobotiumTech's robotium
10.JakeWharton's NineOldAndroids
11.JakeWharton's Android-ViewPagerIndicator
If there's anything I forgot to mention,I would be very appreciated for helping me notice it.
And there are also many useful feature like TripleDes Utils,WebViewUtils,Md5Utils etc.
TripleDes Utils,WebViewUtils,Md5Utils
目前主要包含的功能有View Injection,ORM,異步網絡請求和圖片加載,自動化腳本測試,磁盤LRU等功能,同時提供了類似於TripleDes、Webview快速設置、Md5 處理、String處理等常用工具類,還有類似於滑動返回、帶動畫的expandable listview等UI效果,以及類似於圓角圖片,圖像模糊等多種 控件效果。並且這些功能正在逐步增加中。
歡迎各種fork與提意見。
如果大家有需要的功能,歡迎隨時提意見。
License
Copyright 2014 Marshal Chen
Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an AS IS BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Android基礎入門教程——8.3.18 Canvas API詳解(Part 3)Matrix和drawBitmapMash標簽(空格分隔):
本文實例講述了Android控件之ImageView用法。分享給大家供大家參考。具體如下:ImageView控件是一個圖片控件,負責顯示圖片。以下模擬手機圖片查看器目錄結
目前有越來越多的手機具備自動對焦的拍攝功能,這也意味著這些手機可以具備條碼掃描的功能。手機具備條碼掃描的功能,可以優化購物流程,快速存儲電子名片(二維碼)等。本文所述實例
其實ViewFlipper工作機制很簡單,如上圖,就是將添加到ViewFlipper中的子View按照順序定時的顯示是其中一個子View,其他的子View設置為Gone狀