├── CodeViewer ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ └── org.eclipse.m2e.core.prefs ├── AndroidManifest.xml ├── assets │ ├── scripts │ │ ├── shAutoloader.js │ │ ├── shBrushAS3.js │ │ ├── shBrushAppleScript.js │ │ ├── shBrushBash.js │ │ ├── shBrushCSharp.js │ │ ├── shBrushColdFusion.js │ │ ├── shBrushCpp.js │ │ ├── shBrushCss.js │ │ ├── shBrushDelphi.js │ │ ├── shBrushDiff.js │ │ ├── shBrushErlang.js │ │ ├── shBrushGroovy.js │ │ ├── shBrushJScript.js │ │ ├── shBrushJava.js │ │ ├── shBrushJavaFX.js │ │ ├── shBrushPerl.js │ │ ├── shBrushPhp.js │ │ ├── shBrushPlain.js │ │ ├── shBrushPowerShell.js │ │ ├── shBrushPython.js │ │ ├── shBrushRuby.js │ │ ├── shBrushSass.js │ │ ├── shBrushScala.js │ │ ├── shBrushSql.js │ │ ├── shBrushVb.js │ │ ├── shBrushXml.js │ │ ├── shCore.js │ │ └── shLegacy.js │ ├── styles │ │ ├── shCore.css │ │ ├── shCoreDefault.css │ │ ├── shCoreDjango.css │ │ ├── shCoreEclipse.css │ │ ├── shCoreEmacs.css │ │ ├── shCoreFadeToGrey.css │ │ ├── shCoreMDUltra.css │ │ ├── shCoreMidnight.css │ │ ├── shCoreRDark.css │ │ ├── shThemeDefault.css │ │ ├── shThemeDjango.css │ │ ├── shThemeEclipse.css │ │ ├── shThemeEmacs.css │ │ ├── shThemeFadeToGrey.css │ │ ├── shThemeMDUltra.css │ │ ├── shThemeMidnight.css │ │ └── shThemeRDark.css │ └── template ├── bin │ ├── AndroidManifest.xml │ ├── CodeViewer.apk │ ├── R.txt │ ├── classes.dex │ ├── classes │ │ ├── com │ │ │ ├── actionbarsherlock │ │ │ │ ├── R$attr.class │ │ │ │ ├── R$bool.class │ │ │ │ ├── R$color.class │ │ │ │ ├── R$dimen.class │ │ │ │ ├── R$drawable.class │ │ │ │ ├── R$id.class │ │ │ │ ├── R$integer.class │ │ │ │ ├── R$layout.class │ │ │ │ ├── R$string.class │ │ │ │ ├── R$style.class │ │ │ │ ├── R$styleable.class │ │ │ │ └── R.class │ │ │ ├── ben │ │ │ │ └── data │ │ │ │ │ ├── DatabaseHelper.class │ │ │ │ │ ├── DatabaseUtils.class │ │ │ │ │ ├── DbDao.class │ │ │ │ │ └── GenericDao.class │ │ │ ├── piglet │ │ │ │ ├── codeviewer │ │ │ │ │ ├── BaseActivity.class │ │ │ │ │ ├── BuildConfig.class │ │ │ │ │ ├── MainActivity$1.class │ │ │ │ │ ├── MainActivity.class │ │ │ │ │ ├── R$anim.class │ │ │ │ │ ├── R$attr.class │ │ │ │ │ ├── R$bool.class │ │ │ │ │ ├── R$color.class │ │ │ │ │ ├── R$dimen.class │ │ │ │ │ ├── R$drawable.class │ │ │ │ │ ├── R$id.class │ │ │ │ │ ├── R$integer.class │ │ │ │ │ ├── R$layout.class │ │ │ │ │ ├── R$menu.class │ │ │ │ │ ├── R$string.class │ │ │ │ │ ├── R$style.class │ │ │ │ │ ├── R$styleable.class │ │ │ │ │ ├── R.class │ │ │ │ │ └── UIHandler.class │ │ │ │ ├── config │ │ │ │ │ ├── CodeStyle.class │ │ │ │ │ └── Lang.class │ │ │ │ ├── core │ │ │ │ │ ├── CodeGen.class │ │ │ │ │ ├── DirectoryFilter.class │ │ │ │ │ ├── FileBrowser.class │ │ │ │ │ ├── FileComparator.class │ │ │ │ │ └── SourceFileFilter.class │ │ │ │ ├── data │ │ │ │ │ ├── Constant$FileType.class │ │ │ │ │ ├── Constant$FileTypeKey.class │ │ │ │ │ ├── Constant.class │ │ │ │ │ ├── FileListAdapter$ViewHolder.class │ │ │ │ │ ├── FileListAdapter.class │ │ │ │ │ ├── OpenedListAdapter$1.class │ │ │ │ │ ├── OpenedListAdapter$ViewHolder.class │ │ │ │ │ ├── OpenedListAdapter.class │ │ │ │ │ ├── RecentFileAdapter$ViewHolder.class │ │ │ │ │ └── RecentFileAdapter.class │ │ │ │ ├── pojo │ │ │ │ │ ├── SourceFileInfo.class │ │ │ │ │ └── SourceFileInfoDao.class │ │ │ │ └── ui │ │ │ │ │ ├── CodeFragment$1.class │ │ │ │ │ ├── CodeFragment.class │ │ │ │ │ ├── LeftFragment$1.class │ │ │ │ │ ├── LeftFragment.class │ │ │ │ │ ├── RightFragment$1.class │ │ │ │ │ └── RightFragment.class │ │ │ └── slidingmenu │ │ │ │ └── lib │ │ │ │ ├── R$attr.class │ │ │ │ ├── R$bool.class │ │ │ │ ├── R$color.class │ │ │ │ ├── R$dimen.class │ │ │ │ ├── R$drawable.class │ │ │ │ ├── R$id.class │ │ │ │ ├── R$integer.class │ │ │ │ ├── R$layout.class │ │ │ │ ├── R$string.class │ │ │ │ ├── R$style.class │ │ │ │ ├── R$styleable.class │ │ │ │ └── R.class │ │ └── net │ │ │ └── tsz │ │ │ └── afinal │ │ │ ├── FinalActivity$Method.class │ │ │ ├── FinalActivity.class │ │ │ ├── FinalBitmap$1.class │ │ │ ├── FinalBitmap$AsyncDrawable.class │ │ │ ├── FinalBitmap$BitmapLoadAndDisplayTask.class │ │ │ ├── FinalBitmap$CacheExecutecTask.class │ │ │ ├── FinalBitmap$FinalBitmapConfig.class │ │ │ ├── FinalBitmap.class │ │ │ ├── FinalDb$DaoConfig.class │ │ │ ├── FinalDb$DbUpdateListener.class │ │ │ ├── FinalDb$SqliteDbHelper.class │ │ │ ├── FinalDb.class │ │ │ ├── FinalHttp$1.class │ │ │ ├── FinalHttp$2.class │ │ │ ├── FinalHttp$3.class │ │ │ ├── FinalHttp$InflatingEntity.class │ │ │ ├── FinalHttp.class │ │ │ ├── annotation │ │ │ ├── sqlite │ │ │ │ ├── Id.class │ │ │ │ ├── ManyToOne.class │ │ │ │ ├── OneToMany.class │ │ │ │ ├── Property.class │ │ │ │ ├── Table.class │ │ │ │ └── Transient.class │ │ │ └── view │ │ │ │ ├── EventListener.class │ │ │ │ ├── Select.class │ │ │ │ └── ViewInject.class │ │ │ ├── bitmap │ │ │ ├── core │ │ │ │ ├── BaseMemoryCacheImpl$1.class │ │ │ │ ├── BaseMemoryCacheImpl.class │ │ │ │ ├── BitmapCache$ImageCacheParams.class │ │ │ │ ├── BitmapCache.class │ │ │ │ ├── BitmapDecoder.class │ │ │ │ ├── BitmapDisplayConfig$AnimationType.class │ │ │ │ ├── BitmapDisplayConfig.class │ │ │ │ ├── BitmapProcess.class │ │ │ │ ├── BytesBufferPool$BytesBuffer.class │ │ │ │ ├── BytesBufferPool.class │ │ │ │ ├── DiskCache$LookupRequest.class │ │ │ │ ├── DiskCache.class │ │ │ │ ├── IMemoryCache.class │ │ │ │ ├── LruMemoryCache.class │ │ │ │ └── SoftMemoryCacheImpl.class │ │ │ ├── display │ │ │ │ ├── Displayer.class │ │ │ │ └── SimpleDisplayer.class │ │ │ └── download │ │ │ │ ├── Downloader.class │ │ │ │ ├── SimpleDownloader$FlushedInputStream.class │ │ │ │ └── SimpleDownloader.class │ │ │ ├── core │ │ │ ├── AbstractCollection.class │ │ │ ├── ArrayDeque$DeqIterator.class │ │ │ ├── ArrayDeque$DescendingIterator.class │ │ │ ├── ArrayDeque.class │ │ │ ├── Arrays$ArrayList.class │ │ │ ├── Arrays.class │ │ │ ├── AsyncTask$1.class │ │ │ ├── AsyncTask$2.class │ │ │ ├── AsyncTask$3.class │ │ │ ├── AsyncTask$AsyncTaskResult.class │ │ │ ├── AsyncTask$InternalHandler.class │ │ │ ├── AsyncTask$SerialExecutor$1.class │ │ │ ├── AsyncTask$SerialExecutor.class │ │ │ ├── AsyncTask$Status.class │ │ │ ├── AsyncTask$WorkerRunnable.class │ │ │ ├── AsyncTask.class │ │ │ ├── Deque.class │ │ │ ├── FileNameGenerator.class │ │ │ └── Queue.class │ │ │ ├── db │ │ │ ├── sqlite │ │ │ │ ├── CursorUtils.class │ │ │ │ ├── DbModel.class │ │ │ │ ├── ManyToOneLazyLoader.class │ │ │ │ ├── OneToManyLazyLoader.class │ │ │ │ ├── SqlBuilder.class │ │ │ │ └── SqlInfo.class │ │ │ └── table │ │ │ │ ├── Id.class │ │ │ │ ├── KeyValue.class │ │ │ │ ├── ManyToOne.class │ │ │ │ ├── OneToMany.class │ │ │ │ ├── Property.class │ │ │ │ └── TableInfo.class │ │ │ ├── exception │ │ │ ├── AfinalException.class │ │ │ ├── DbException.class │ │ │ ├── HttpException.class │ │ │ └── ViewException.class │ │ │ ├── http │ │ │ ├── AjaxCallBack.class │ │ │ ├── AjaxParams$FileWrapper.class │ │ │ ├── AjaxParams.class │ │ │ ├── HttpHandler.class │ │ │ ├── MultipartEntity.class │ │ │ ├── PreferencesCookieStore$SerializableCookie.class │ │ │ ├── PreferencesCookieStore.class │ │ │ ├── RetryHandler.class │ │ │ ├── SyncRequestHandler.class │ │ │ └── entityhandler │ │ │ │ ├── EntityCallBack.class │ │ │ │ ├── FileEntityHandler.class │ │ │ │ └── StringEntityHandler.class │ │ │ └── utils │ │ │ ├── ClassUtils.class │ │ │ ├── FieldUtils.class │ │ │ └── Utils.class │ ├── dexedLibs │ │ ├── abslib-89677a80751d416297decb7d8daa2b1e.jar │ │ ├── android-support-v4-r13-9d4948b2cf7cbc6ce2119834d97552b0.jar │ │ └── slidingmenu-2c2db54799f0809d7559f676c1f66de9.jar │ ├── jarlist.cache │ ├── res │ │ └── crunch │ │ │ ├── drawable-hdpi │ │ │ ├── back.png │ │ │ ├── bg.png │ │ │ ├── c.png │ │ │ ├── close.png │ │ │ ├── cpp.png │ │ │ ├── folder.png │ │ │ ├── ic_launcher.png │ │ │ ├── java.png │ │ │ ├── js.png │ │ │ ├── menubg.9.png │ │ │ ├── php.png │ │ │ ├── py.png │ │ │ └── unknown.png │ │ │ ├── drawable-ldpi │ │ │ └── ic_launcher.png │ │ │ ├── drawable-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── drawable-xhdpi │ │ │ └── ic_launcher.png │ │ │ └── drawable-xxhdpi │ │ │ └── ic_launcher.png │ └── resources.ap_ ├── gen │ └── com │ │ ├── actionbarsherlock │ │ └── R.java │ │ ├── piglet │ │ └── codeviewer │ │ │ ├── BuildConfig.java │ │ │ └── R.java │ │ └── slidingmenu │ │ └── lib │ │ └── R.java ├── lint.xml ├── pom.xml ├── project.properties ├── res │ ├── anim │ │ ├── fade_in.xml │ │ ├── fade_out.xml │ │ ├── large_gallery_in.xml │ │ ├── progressbar.xml │ │ ├── push_down_in.xml │ │ ├── push_down_out.xml │ │ ├── push_left_in.xml │ │ ├── push_left_out.xml │ │ ├── push_right_in.xml │ │ ├── push_right_out.xml │ │ ├── push_up_in.xml │ │ ├── push_up_out.xml │ │ ├── slide_in_from_bottom.xml │ │ ├── slide_in_from_left.xml │ │ ├── slide_in_from_right.xml │ │ ├── slide_in_from_top.xml │ │ ├── slide_out_from_bottom.xml │ │ ├── slide_out_from_left.xml │ │ ├── slide_out_from_right.xml │ │ ├── slide_out_from_top.xml │ │ ├── zoom_in.xml │ │ └── zoom_out.xml │ ├── drawable-hdpi │ │ ├── back.png │ │ ├── bg.png │ │ ├── c.png │ │ ├── close.png │ │ ├── cpp.png │ │ ├── folder.png │ │ ├── ic_launcher.png │ │ ├── java.png │ │ ├── js.png │ │ ├── menubg.9.png │ │ ├── php.png │ │ ├── py.png │ │ └── unknown.png │ ├── drawable-ldpi │ │ └── ic_launcher.png │ ├── drawable-mdpi │ │ └── ic_launcher.png │ ├── drawable-xhdpi │ │ └── ic_launcher.png │ ├── drawable-xxhdpi │ │ └── ic_launcher.png │ ├── drawable │ │ ├── headback.xml │ │ ├── shadow.xml │ │ └── shadow_right.xml │ ├── layout │ │ ├── activity_main.xml │ │ ├── filebrowser.xml │ │ ├── fileitem.xml │ │ ├── head.xml │ │ ├── openeditem.xml │ │ └── webmain.xml │ ├── menu │ │ └── main.xml │ ├── values-sw600dp │ │ └── dimens.xml │ ├── values-sw720dp-land │ │ └── dimens.xml │ ├── values-v11 │ │ └── styles.xml │ ├── values-v14 │ │ └── styles.xml │ └── values │ │ ├── color.xml │ │ ├── dimens.xml │ │ ├── strings.xml │ │ └── styles.xml └── src │ └── main │ └── java │ ├── com │ ├── ben │ │ └── data │ │ │ ├── DatabaseHelper.java │ │ │ ├── DatabaseUtils.java │ │ │ ├── DbDao.java │ │ │ └── GenericDao.java │ └── piglet │ │ ├── codeviewer │ │ ├── BaseActivity.java │ │ ├── MainActivity.java │ │ └── UIHandler.java │ │ ├── config │ │ ├── CodeStyle.java │ │ └── Lang.java │ │ ├── core │ │ ├── CodeGen.java │ │ ├── DirectoryFilter.java │ │ ├── FileBrowser.java │ │ ├── FileComparator.java │ │ └── SourceFileFilter.java │ │ ├── data │ │ ├── Constant.java │ │ ├── FileListAdapter.java │ │ ├── OpenedListAdapter.java │ │ └── RecentFileAdapter.java │ │ ├── pojo │ │ ├── SourceFileInfo.java │ │ └── SourceFileInfoDao.java │ │ └── ui │ │ ├── CodeFragment.java │ │ ├── LeftFragment.java │ │ └── RightFragment.java │ └── net │ └── tsz │ └── afinal │ ├── FinalActivity.java │ ├── FinalBitmap.java │ ├── FinalDb.java │ ├── FinalHttp.java │ ├── annotation │ ├── sqlite │ │ ├── Id.java │ │ ├── ManyToOne.java │ │ ├── OneToMany.java │ │ ├── Property.java │ │ ├── Table.java │ │ └── Transient.java │ └── view │ │ ├── EventListener.java │ │ ├── Select.java │ │ └── ViewInject.java │ ├── bitmap │ ├── core │ │ ├── BaseMemoryCacheImpl.java │ │ ├── BitmapCache.java │ │ ├── BitmapDecoder.java │ │ ├── BitmapDisplayConfig.java │ │ ├── BitmapProcess.java │ │ ├── BytesBufferPool.java │ │ ├── DiskCache.java │ │ ├── IMemoryCache.java │ │ ├── LruMemoryCache.java │ │ └── SoftMemoryCacheImpl.java │ ├── display │ │ ├── Displayer.java │ │ └── SimpleDisplayer.java │ └── download │ │ ├── Downloader.java │ │ └── SimpleDownloader.java │ ├── core │ ├── AbstractCollection.java │ ├── ArrayDeque.java │ ├── Arrays.java │ ├── AsyncTask.java │ ├── Deque.java │ ├── FileNameGenerator.java │ └── Queue.java │ ├── db │ ├── sqlite │ │ ├── CursorUtils.java │ │ ├── DbModel.java │ │ ├── ManyToOneLazyLoader.java │ │ ├── OneToManyLazyLoader.java │ │ ├── SqlBuilder.java │ │ └── SqlInfo.java │ └── table │ │ ├── Id.java │ │ ├── KeyValue.java │ │ ├── ManyToOne.java │ │ ├── OneToMany.java │ │ ├── Property.java │ │ └── TableInfo.java │ ├── exception │ ├── AfinalException.java │ ├── DbException.java │ ├── HttpException.java │ └── ViewException.java │ ├── http │ ├── AjaxCallBack.java │ ├── AjaxParams.java │ ├── HttpHandler.java │ ├── MultipartEntity.java │ ├── PreferencesCookieStore.java │ ├── RetryHandler.java │ ├── SyncRequestHandler.java │ └── entityhandler │ │ ├── EntityCallBack.java │ │ ├── FileEntityHandler.java │ │ └── StringEntityHandler.java │ └── utils │ ├── ClassUtils.java │ ├── FieldUtils.java │ └── Utils.java └── README.md /CodeViewer/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /CodeViewer/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | CodeViewer 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | org.eclipse.m2e.core.maven2Builder 30 | 31 | 32 | 33 | 34 | 35 | com.android.ide.eclipse.adt.AndroidNature 36 | org.eclipse.jdt.core.javanature 37 | org.eclipse.m2e.core.maven2Nature 38 | 39 | 40 | -------------------------------------------------------------------------------- /CodeViewer/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding/=UTF-8 4 | -------------------------------------------------------------------------------- /CodeViewer/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.6 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 12 | org.eclipse.jdt.core.compiler.source=1.6 13 | -------------------------------------------------------------------------------- /CodeViewer/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /CodeViewer/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /CodeViewer/assets/scripts/shAutoloader.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(2(){1 h=5;h.I=2(){2 n(c,a){4(1 d=0;d)/g 47 | }); 48 | }; 49 | 50 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 51 | Brush.aliases = ['java']; 52 | 53 | SyntaxHighlighter.brushes.Java = Brush; 54 | 55 | // CommonJS 56 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 57 | })(); 58 | -------------------------------------------------------------------------------- /CodeViewer/assets/scripts/shBrushJavaFX.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | // Contributed by Patrick Webster 25 | // http://patrickwebster.blogspot.com/2009/04/javafx-brush-for-syntaxhighlighter.html 26 | var datatypes = 'Boolean Byte Character Double Duration ' 27 | + 'Float Integer Long Number Short String Void' 28 | ; 29 | 30 | var keywords = 'abstract after and as assert at before bind bound break catch class ' 31 | + 'continue def delete else exclusive extends false finally first for from ' 32 | + 'function if import in indexof init insert instanceof into inverse last ' 33 | + 'lazy mixin mod nativearray new not null on or override package postinit ' 34 | + 'protected public public-init public-read replace return reverse sizeof ' 35 | + 'step super then this throw true try tween typeof var where while with ' 36 | + 'attribute let private readonly static trigger' 37 | ; 38 | 39 | this.regexList = [ 40 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, 41 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, 42 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, 43 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, 44 | { regex: /(-?\.?)(\b(\d*\.?\d+|\d+\.?\d*)(e[+-]?\d+)?|0x[a-f\d]+)\b\.?/gi, css: 'color2' }, // numbers 45 | { regex: new RegExp(this.getKeywords(datatypes), 'gm'), css: 'variable' }, // datatypes 46 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } 47 | ]; 48 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 49 | }; 50 | 51 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 52 | Brush.aliases = ['jfx', 'javafx']; 53 | 54 | SyntaxHighlighter.brushes.JavaFX = Brush; 55 | 56 | // CommonJS 57 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 58 | })(); 59 | -------------------------------------------------------------------------------- /CodeViewer/assets/scripts/shBrushPlain.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | }; 25 | 26 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 27 | Brush.aliases = ['text', 'plain']; 28 | 29 | SyntaxHighlighter.brushes.Plain = Brush; 30 | 31 | // CommonJS 32 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 33 | })(); 34 | -------------------------------------------------------------------------------- /CodeViewer/assets/scripts/shBrushPython.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | // Contributed by Gheorghe Milas and Ahmad Sherif 25 | 26 | var keywords = 'and assert break class continue def del elif else ' + 27 | 'except exec finally for from global if import in is ' + 28 | 'lambda not or pass print raise return try yield while'; 29 | 30 | var funcs = '__import__ abs all any apply basestring bin bool buffer callable ' + 31 | 'chr classmethod cmp coerce compile complex delattr dict dir ' + 32 | 'divmod enumerate eval execfile file filter float format frozenset ' + 33 | 'getattr globals hasattr hash help hex id input int intern ' + 34 | 'isinstance issubclass iter len list locals long map max min next ' + 35 | 'object oct open ord pow print property range raw_input reduce ' + 36 | 'reload repr reversed round set setattr slice sorted staticmethod ' + 37 | 'str sum super tuple type type unichr unicode vars xrange zip'; 38 | 39 | var special = 'None True False self cls class_'; 40 | 41 | this.regexList = [ 42 | { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, 43 | { regex: /^\s*@\w+/gm, css: 'decorator' }, 44 | { regex: /(['\"]{3})([^\1])*?\1/gm, css: 'comments' }, 45 | { regex: /"(?!")(?:\.|\\\"|[^\""\n])*"/gm, css: 'string' }, 46 | { regex: /'(?!')(?:\.|(\\\')|[^\''\n])*'/gm, css: 'string' }, 47 | { regex: /\+|\-|\*|\/|\%|=|==/gm, css: 'keyword' }, 48 | { regex: /\b\d+\.?\w*/g, css: 'value' }, 49 | { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, 50 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, 51 | { regex: new RegExp(this.getKeywords(special), 'gm'), css: 'color1' } 52 | ]; 53 | 54 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 55 | }; 56 | 57 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 58 | Brush.aliases = ['py', 'python']; 59 | 60 | SyntaxHighlighter.brushes.Python = Brush; 61 | 62 | // CommonJS 63 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 64 | })(); 65 | -------------------------------------------------------------------------------- /CodeViewer/assets/scripts/shBrushRuby.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | // Contributed by Erik Peterson. 25 | 26 | var keywords = 'alias and BEGIN begin break case class def define_method defined do each else elsif ' + 27 | 'END end ensure false for if in module new next nil not or raise redo rescue retry return ' + 28 | 'self super then throw true undef unless until when while yield'; 29 | 30 | var builtins = 'Array Bignum Binding Class Continuation Dir Exception FalseClass File::Stat File Fixnum Fload ' + 31 | 'Hash Integer IO MatchData Method Module NilClass Numeric Object Proc Range Regexp String Struct::TMS Symbol ' + 32 | 'ThreadGroup Thread Time TrueClass'; 33 | 34 | this.regexList = [ 35 | { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments 36 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings 37 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings 38 | { regex: /\b[A-Z0-9_]+\b/g, css: 'constants' }, // constants 39 | { regex: /:[a-z][A-Za-z0-9_]*/g, css: 'color2' }, // symbols 40 | { regex: /(\$|@@|@)\w+/g, css: 'variable bold' }, // $global, @instance, and @@class variables 41 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords 42 | { regex: new RegExp(this.getKeywords(builtins), 'gm'), css: 'color1' } // builtins 43 | ]; 44 | 45 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 46 | }; 47 | 48 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 49 | Brush.aliases = ['ruby', 'rails', 'ror', 'rb']; 50 | 51 | SyntaxHighlighter.brushes.Ruby = Brush; 52 | 53 | // CommonJS 54 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 55 | })(); 56 | -------------------------------------------------------------------------------- /CodeViewer/assets/scripts/shBrushScala.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | // Contributed by Yegor Jbanov and David Bernard. 25 | 26 | var keywords = 'val sealed case def true trait implicit forSome import match object null finally super ' + 27 | 'override try lazy for var catch throw type extends class while with new final yield abstract ' + 28 | 'else do if return protected private this package false'; 29 | 30 | var keyops = '[_:=><%#@]+'; 31 | 32 | this.regexList = [ 33 | { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments 34 | { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments 35 | { regex: SyntaxHighlighter.regexLib.multiLineSingleQuotedString, css: 'string' }, // multi-line strings 36 | { regex: SyntaxHighlighter.regexLib.multiLineDoubleQuotedString, css: 'string' }, // double-quoted string 37 | { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // strings 38 | { regex: /0x[a-f0-9]+|\d+(\.\d+)?/gi, css: 'value' }, // numbers 39 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords 40 | { regex: new RegExp(keyops, 'gm'), css: 'keyword' } // scala keyword 41 | ]; 42 | } 43 | 44 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 45 | Brush.aliases = ['scala']; 46 | 47 | SyntaxHighlighter.brushes.Scala = Brush; 48 | 49 | // CommonJS 50 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 51 | })(); 52 | -------------------------------------------------------------------------------- /CodeViewer/assets/scripts/shBrushVb.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' + 25 | 'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' + 26 | 'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' + 27 | 'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' + 28 | 'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' + 29 | 'Function Get GetType GoSub GoTo Handles If Implements Imports In ' + 30 | 'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' + 31 | 'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' + 32 | 'NotInheritable NotOverridable Object On Option Optional Or OrElse ' + 33 | 'Overloads Overridable Overrides ParamArray Preserve Private Property ' + 34 | 'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' + 35 | 'Return Select Set Shadows Shared Short Single Static Step Stop String ' + 36 | 'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' + 37 | 'Variant When While With WithEvents WriteOnly Xor'; 38 | 39 | this.regexList = [ 40 | { regex: /'.*$/gm, css: 'comments' }, // one line comments 41 | { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // strings 42 | { regex: /^\s*#.*$/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion 43 | { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // vb keyword 44 | ]; 45 | 46 | this.forHtmlScript(SyntaxHighlighter.regexLib.aspScriptTags); 47 | }; 48 | 49 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 50 | Brush.aliases = ['vb', 'vbnet']; 51 | 52 | SyntaxHighlighter.brushes.Vb = Brush; 53 | 54 | // CommonJS 55 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 56 | })(); 57 | -------------------------------------------------------------------------------- /CodeViewer/assets/scripts/shBrushXml.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; 21 | 22 | function Brush() 23 | { 24 | function process(match, regexInfo) 25 | { 26 | var constructor = SyntaxHighlighter.Match, 27 | code = match[0], 28 | tag = new XRegExp('(<|<)[\\s\\/\\?]*(?[:\\w-\\.]+)', 'xg').exec(code), 29 | result = [] 30 | ; 31 | 32 | if (match.attributes != null) 33 | { 34 | var attributes, 35 | regex = new XRegExp('(? [\\w:\\-\\.]+)' + 36 | '\\s*=\\s*' + 37 | '(? ".*?"|\'.*?\'|\\w+)', 38 | 'xg'); 39 | 40 | while ((attributes = regex.exec(code)) != null) 41 | { 42 | result.push(new constructor(attributes.name, match.index + attributes.index, 'color1')); 43 | result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string')); 44 | } 45 | } 46 | 47 | if (tag != null) 48 | result.push( 49 | new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword') 50 | ); 51 | 52 | return result; 53 | } 54 | 55 | this.regexList = [ 56 | { regex: new XRegExp('(\\<|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\>|>)', 'gm'), css: 'color2' }, // 57 | { regex: SyntaxHighlighter.regexLib.xmlComments, css: 'comments' }, // 58 | { regex: new XRegExp('(<|<)[\\s\\/\\?]*(\\w+)(?.*?)[\\s\\/\\?]*(>|>)', 'sg'), func: process } 59 | ]; 60 | }; 61 | 62 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 63 | Brush.aliases = ['xml', 'xhtml', 'xslt', 'html']; 64 | 65 | SyntaxHighlighter.brushes.Xml = Brush; 66 | 67 | // CommonJS 68 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 69 | })(); 70 | -------------------------------------------------------------------------------- /CodeViewer/assets/scripts/shLegacy.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('3 u={8:{}};u.8={A:4(c,k,l,m,n,o){4 d(a,b){2 a!=1?a:b}4 f(a){2 a!=1?a.E():1}c=c.I(":");3 g=c[0],e={};t={"r":K};M=1;5=8.5;9(3 j R c)e[c[j]]="r";k=f(d(k,5.C));l=f(d(l,5.D));m=f(d(m,5.s));o=f(d(o,5.Q));n=f(d(n,5["x-y"]));2{P:g,C:d(t[e.O],k),D:d(t[e.N],l),s:d({"r":r}[e.s],m),"x-y":d(4(a,b){9(3 h=T S("^"+b+"\\\\[(?\\\\w+)\\\\]$","U"),i=1,p=0;p 2 | 3 | 4 | 5 | Hello SyntaxHighlighter 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | #{ content }
16 | 
17 | 18 | 19 | -------------------------------------------------------------------------------- /CodeViewer/bin/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | 12 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /CodeViewer/bin/CodeViewer.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/CodeViewer.apk -------------------------------------------------------------------------------- /CodeViewer/bin/classes.dex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes.dex -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/actionbarsherlock/R$attr.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/actionbarsherlock/R$attr.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/actionbarsherlock/R$bool.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/actionbarsherlock/R$bool.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/actionbarsherlock/R$color.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/actionbarsherlock/R$color.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/actionbarsherlock/R$dimen.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/actionbarsherlock/R$dimen.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/actionbarsherlock/R$drawable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/actionbarsherlock/R$drawable.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/actionbarsherlock/R$id.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/actionbarsherlock/R$id.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/actionbarsherlock/R$integer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/actionbarsherlock/R$integer.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/actionbarsherlock/R$layout.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/actionbarsherlock/R$layout.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/actionbarsherlock/R$string.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/actionbarsherlock/R$string.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/actionbarsherlock/R$style.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/actionbarsherlock/R$style.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/actionbarsherlock/R$styleable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/actionbarsherlock/R$styleable.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/actionbarsherlock/R.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/actionbarsherlock/R.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/ben/data/DatabaseHelper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/ben/data/DatabaseHelper.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/ben/data/DatabaseUtils.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/ben/data/DatabaseUtils.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/ben/data/DbDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/ben/data/DbDao.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/ben/data/GenericDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/ben/data/GenericDao.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/BaseActivity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/BaseActivity.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/BuildConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/BuildConfig.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/MainActivity$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/MainActivity$1.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/MainActivity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/MainActivity.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/R$anim.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/R$anim.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/R$attr.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/R$attr.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/R$bool.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/R$bool.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/R$color.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/R$color.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/R$dimen.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/R$dimen.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/R$drawable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/R$drawable.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/R$id.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/R$id.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/R$integer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/R$integer.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/R$layout.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/R$layout.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/R$menu.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/R$menu.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/R$string.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/R$string.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/R$style.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/R$style.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/R$styleable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/R$styleable.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/R.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/R.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/codeviewer/UIHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/codeviewer/UIHandler.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/config/CodeStyle.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/config/CodeStyle.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/config/Lang.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/config/Lang.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/core/CodeGen.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/core/CodeGen.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/core/DirectoryFilter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/core/DirectoryFilter.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/core/FileBrowser.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/core/FileBrowser.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/core/FileComparator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/core/FileComparator.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/core/SourceFileFilter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/core/SourceFileFilter.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/data/Constant$FileType.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/data/Constant$FileType.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/data/Constant$FileTypeKey.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/data/Constant$FileTypeKey.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/data/Constant.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/data/Constant.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/data/FileListAdapter$ViewHolder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/data/FileListAdapter$ViewHolder.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/data/FileListAdapter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/data/FileListAdapter.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/data/OpenedListAdapter$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/data/OpenedListAdapter$1.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/data/OpenedListAdapter$ViewHolder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/data/OpenedListAdapter$ViewHolder.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/data/OpenedListAdapter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/data/OpenedListAdapter.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/data/RecentFileAdapter$ViewHolder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/data/RecentFileAdapter$ViewHolder.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/data/RecentFileAdapter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/data/RecentFileAdapter.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/pojo/SourceFileInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/pojo/SourceFileInfo.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/pojo/SourceFileInfoDao.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/pojo/SourceFileInfoDao.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/ui/CodeFragment$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/ui/CodeFragment$1.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/ui/CodeFragment.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/ui/CodeFragment.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/ui/LeftFragment$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/ui/LeftFragment$1.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/ui/LeftFragment.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/ui/LeftFragment.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/ui/RightFragment$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/ui/RightFragment$1.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/piglet/ui/RightFragment.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/piglet/ui/RightFragment.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/slidingmenu/lib/R$attr.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/slidingmenu/lib/R$attr.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/slidingmenu/lib/R$bool.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/slidingmenu/lib/R$bool.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/slidingmenu/lib/R$color.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/slidingmenu/lib/R$color.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/slidingmenu/lib/R$dimen.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/slidingmenu/lib/R$dimen.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/slidingmenu/lib/R$drawable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/slidingmenu/lib/R$drawable.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/slidingmenu/lib/R$id.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/slidingmenu/lib/R$id.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/slidingmenu/lib/R$integer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/slidingmenu/lib/R$integer.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/slidingmenu/lib/R$layout.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/slidingmenu/lib/R$layout.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/slidingmenu/lib/R$string.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/slidingmenu/lib/R$string.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/slidingmenu/lib/R$style.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/slidingmenu/lib/R$style.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/slidingmenu/lib/R$styleable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/slidingmenu/lib/R$styleable.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/com/slidingmenu/lib/R.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/com/slidingmenu/lib/R.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/FinalActivity$Method.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/FinalActivity$Method.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/FinalActivity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/FinalActivity.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/FinalBitmap$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/FinalBitmap$1.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/FinalBitmap$AsyncDrawable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/FinalBitmap$AsyncDrawable.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/FinalBitmap$BitmapLoadAndDisplayTask.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/FinalBitmap$BitmapLoadAndDisplayTask.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/FinalBitmap$CacheExecutecTask.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/FinalBitmap$CacheExecutecTask.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/FinalBitmap$FinalBitmapConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/FinalBitmap$FinalBitmapConfig.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/FinalBitmap.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/FinalBitmap.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/FinalDb$DaoConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/FinalDb$DaoConfig.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/FinalDb$DbUpdateListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/FinalDb$DbUpdateListener.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/FinalDb$SqliteDbHelper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/FinalDb$SqliteDbHelper.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/FinalDb.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/FinalDb.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/FinalHttp$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/FinalHttp$1.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/FinalHttp$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/FinalHttp$2.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/FinalHttp$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/FinalHttp$3.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/FinalHttp$InflatingEntity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/FinalHttp$InflatingEntity.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/FinalHttp.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/FinalHttp.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/annotation/sqlite/Id.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/annotation/sqlite/Id.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/annotation/sqlite/ManyToOne.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/annotation/sqlite/ManyToOne.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/annotation/sqlite/OneToMany.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/annotation/sqlite/OneToMany.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/annotation/sqlite/Property.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/annotation/sqlite/Property.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/annotation/sqlite/Table.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/annotation/sqlite/Table.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/annotation/sqlite/Transient.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/annotation/sqlite/Transient.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/annotation/view/EventListener.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/annotation/view/EventListener.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/annotation/view/Select.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/annotation/view/Select.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/annotation/view/ViewInject.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/annotation/view/ViewInject.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BaseMemoryCacheImpl$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BaseMemoryCacheImpl$1.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BaseMemoryCacheImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BaseMemoryCacheImpl.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BitmapCache$ImageCacheParams.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BitmapCache$ImageCacheParams.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BitmapCache.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BitmapCache.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BitmapDecoder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BitmapDecoder.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BitmapDisplayConfig$AnimationType.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BitmapDisplayConfig$AnimationType.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BitmapDisplayConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BitmapDisplayConfig.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BitmapProcess.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BitmapProcess.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BytesBufferPool$BytesBuffer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BytesBufferPool$BytesBuffer.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BytesBufferPool.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/BytesBufferPool.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/DiskCache$LookupRequest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/DiskCache$LookupRequest.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/DiskCache.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/DiskCache.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/IMemoryCache.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/IMemoryCache.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/LruMemoryCache.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/LruMemoryCache.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/SoftMemoryCacheImpl.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/core/SoftMemoryCacheImpl.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/display/Displayer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/display/Displayer.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/display/SimpleDisplayer.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/display/SimpleDisplayer.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/download/Downloader.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/download/Downloader.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/download/SimpleDownloader$FlushedInputStream.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/download/SimpleDownloader$FlushedInputStream.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/bitmap/download/SimpleDownloader.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/bitmap/download/SimpleDownloader.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/AbstractCollection.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/AbstractCollection.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/ArrayDeque$DeqIterator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/ArrayDeque$DeqIterator.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/ArrayDeque$DescendingIterator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/ArrayDeque$DescendingIterator.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/ArrayDeque.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/ArrayDeque.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/Arrays$ArrayList.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/Arrays$ArrayList.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/Arrays.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/Arrays.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask$1.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask$2.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask$3.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask$3.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask$AsyncTaskResult.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask$AsyncTaskResult.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask$InternalHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask$InternalHandler.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask$SerialExecutor$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask$SerialExecutor$1.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask$SerialExecutor.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask$SerialExecutor.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask$Status.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask$Status.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask$WorkerRunnable.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask$WorkerRunnable.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/AsyncTask.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/Deque.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/Deque.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/FileNameGenerator.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/FileNameGenerator.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/core/Queue.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/core/Queue.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/db/sqlite/CursorUtils.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/db/sqlite/CursorUtils.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/db/sqlite/DbModel.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/db/sqlite/DbModel.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/db/sqlite/ManyToOneLazyLoader.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/db/sqlite/ManyToOneLazyLoader.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/db/sqlite/OneToManyLazyLoader.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/db/sqlite/OneToManyLazyLoader.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/db/sqlite/SqlBuilder.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/db/sqlite/SqlBuilder.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/db/sqlite/SqlInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/db/sqlite/SqlInfo.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/db/table/Id.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/db/table/Id.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/db/table/KeyValue.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/db/table/KeyValue.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/db/table/ManyToOne.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/db/table/ManyToOne.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/db/table/OneToMany.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/db/table/OneToMany.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/db/table/Property.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/db/table/Property.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/db/table/TableInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/db/table/TableInfo.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/exception/AfinalException.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/exception/AfinalException.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/exception/DbException.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/exception/DbException.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/exception/HttpException.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/exception/HttpException.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/exception/ViewException.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/exception/ViewException.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/http/AjaxCallBack.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/http/AjaxCallBack.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/http/AjaxParams$FileWrapper.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/http/AjaxParams$FileWrapper.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/http/AjaxParams.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/http/AjaxParams.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/http/HttpHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/http/HttpHandler.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/http/MultipartEntity.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/http/MultipartEntity.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/http/PreferencesCookieStore$SerializableCookie.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/http/PreferencesCookieStore$SerializableCookie.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/http/PreferencesCookieStore.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/http/PreferencesCookieStore.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/http/RetryHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/http/RetryHandler.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/http/SyncRequestHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/http/SyncRequestHandler.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/http/entityhandler/EntityCallBack.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/http/entityhandler/EntityCallBack.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/http/entityhandler/FileEntityHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/http/entityhandler/FileEntityHandler.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/http/entityhandler/StringEntityHandler.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/http/entityhandler/StringEntityHandler.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/utils/ClassUtils.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/utils/ClassUtils.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/utils/FieldUtils.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/utils/FieldUtils.class -------------------------------------------------------------------------------- /CodeViewer/bin/classes/net/tsz/afinal/utils/Utils.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/classes/net/tsz/afinal/utils/Utils.class -------------------------------------------------------------------------------- /CodeViewer/bin/dexedLibs/abslib-89677a80751d416297decb7d8daa2b1e.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/dexedLibs/abslib-89677a80751d416297decb7d8daa2b1e.jar -------------------------------------------------------------------------------- /CodeViewer/bin/dexedLibs/android-support-v4-r13-9d4948b2cf7cbc6ce2119834d97552b0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/dexedLibs/android-support-v4-r13-9d4948b2cf7cbc6ce2119834d97552b0.jar -------------------------------------------------------------------------------- /CodeViewer/bin/dexedLibs/slidingmenu-2c2db54799f0809d7559f676c1f66de9.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/dexedLibs/slidingmenu-2c2db54799f0809d7559f676c1f66de9.jar -------------------------------------------------------------------------------- /CodeViewer/bin/jarlist.cache: -------------------------------------------------------------------------------- 1 | # cache for current jar dependency. DO NOT EDIT. 2 | # format is 3 | # Encoding is UTF-8 4 | -------------------------------------------------------------------------------- /CodeViewer/bin/res/crunch/drawable-hdpi/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/res/crunch/drawable-hdpi/back.png -------------------------------------------------------------------------------- /CodeViewer/bin/res/crunch/drawable-hdpi/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/res/crunch/drawable-hdpi/bg.png -------------------------------------------------------------------------------- /CodeViewer/bin/res/crunch/drawable-hdpi/c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/res/crunch/drawable-hdpi/c.png -------------------------------------------------------------------------------- /CodeViewer/bin/res/crunch/drawable-hdpi/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/res/crunch/drawable-hdpi/close.png -------------------------------------------------------------------------------- /CodeViewer/bin/res/crunch/drawable-hdpi/cpp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/res/crunch/drawable-hdpi/cpp.png -------------------------------------------------------------------------------- /CodeViewer/bin/res/crunch/drawable-hdpi/folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/res/crunch/drawable-hdpi/folder.png -------------------------------------------------------------------------------- /CodeViewer/bin/res/crunch/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/res/crunch/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /CodeViewer/bin/res/crunch/drawable-hdpi/java.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/res/crunch/drawable-hdpi/java.png -------------------------------------------------------------------------------- /CodeViewer/bin/res/crunch/drawable-hdpi/js.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/res/crunch/drawable-hdpi/js.png -------------------------------------------------------------------------------- /CodeViewer/bin/res/crunch/drawable-hdpi/menubg.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/res/crunch/drawable-hdpi/menubg.9.png -------------------------------------------------------------------------------- /CodeViewer/bin/res/crunch/drawable-hdpi/php.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/res/crunch/drawable-hdpi/php.png -------------------------------------------------------------------------------- /CodeViewer/bin/res/crunch/drawable-hdpi/py.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/res/crunch/drawable-hdpi/py.png -------------------------------------------------------------------------------- /CodeViewer/bin/res/crunch/drawable-hdpi/unknown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/res/crunch/drawable-hdpi/unknown.png -------------------------------------------------------------------------------- /CodeViewer/bin/res/crunch/drawable-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/res/crunch/drawable-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /CodeViewer/bin/res/crunch/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/res/crunch/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /CodeViewer/bin/res/crunch/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/res/crunch/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /CodeViewer/bin/res/crunch/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/res/crunch/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /CodeViewer/bin/resources.ap_: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/bin/resources.ap_ -------------------------------------------------------------------------------- /CodeViewer/gen/com/piglet/codeviewer/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** Automatically generated file. DO NOT MODIFY */ 2 | package com.piglet.codeviewer; 3 | 4 | public final class BuildConfig { 5 | public final static boolean DEBUG = true; 6 | } -------------------------------------------------------------------------------- /CodeViewer/lint.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /CodeViewer/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | Piglet 6 | CodeViewer 7 | 0.0.1-SNAPSHOT 8 | apk 9 | CodeViewer 10 | 11 | 12 | UTF-8 13 | 4.1.1.4 14 | 15 | 3.8.2 16 | 17 | 18 | 19 | 20 | com.google.android 21 | android 22 | ${platform.version} 23 | provided 24 | 25 | 26 | 27 | ${project.artifactId} 28 | 29 | 30 | 31 | com.jayway.maven.plugins.android.generation2 32 | android-maven-plugin 33 | ${android.plugin.version} 34 | true 35 | 36 | 37 | org.eclipse.m2e 38 | lifecycle-mapping 39 | 1.0.0 40 | 41 | 42 | 43 | 44 | 45 | com.jayway.maven.plugins.android.generation2 46 | android-maven-plugin 47 | [3.8,) 48 | 49 | manifest-update 50 | consume-aar 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | com.jayway.maven.plugins.android.generation2 66 | android-maven-plugin 67 | 68 | 69 | 16 70 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /CodeViewer/project.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system edit 7 | # "ant.properties", and override values to adapt the script to your 8 | # project structure. 9 | # 10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): 11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 12 | 13 | # Project target. 14 | target=android-16 15 | android.library.reference.1=../SlidingMenu 16 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/fade_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/fade_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/large_gallery_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/progressbar.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/push_down_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | 19 | 20 | 24 | 25 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/push_down_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | 19 | 20 | 24 | 25 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/push_left_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/push_left_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/push_right_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/push_right_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/push_up_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/push_up_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/slide_in_from_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/slide_in_from_left.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/slide_in_from_right.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/slide_in_from_top.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/slide_out_from_bottom.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/slide_out_from_left.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/slide_out_from_right.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/slide_out_from_top.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/zoom_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 23 | 25 | 26 | 33 | 34 | -------------------------------------------------------------------------------- /CodeViewer/res/anim/zoom_out.xml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 25 | 28 | 29 | 36 | 37 | 40 | 41 | -------------------------------------------------------------------------------- /CodeViewer/res/drawable-hdpi/back.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/res/drawable-hdpi/back.png -------------------------------------------------------------------------------- /CodeViewer/res/drawable-hdpi/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/res/drawable-hdpi/bg.png -------------------------------------------------------------------------------- /CodeViewer/res/drawable-hdpi/c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/res/drawable-hdpi/c.png -------------------------------------------------------------------------------- /CodeViewer/res/drawable-hdpi/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/res/drawable-hdpi/close.png -------------------------------------------------------------------------------- /CodeViewer/res/drawable-hdpi/cpp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/res/drawable-hdpi/cpp.png -------------------------------------------------------------------------------- /CodeViewer/res/drawable-hdpi/folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/res/drawable-hdpi/folder.png -------------------------------------------------------------------------------- /CodeViewer/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /CodeViewer/res/drawable-hdpi/java.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/res/drawable-hdpi/java.png -------------------------------------------------------------------------------- /CodeViewer/res/drawable-hdpi/js.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/res/drawable-hdpi/js.png -------------------------------------------------------------------------------- /CodeViewer/res/drawable-hdpi/menubg.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/res/drawable-hdpi/menubg.9.png -------------------------------------------------------------------------------- /CodeViewer/res/drawable-hdpi/php.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/res/drawable-hdpi/php.png -------------------------------------------------------------------------------- /CodeViewer/res/drawable-hdpi/py.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/res/drawable-hdpi/py.png -------------------------------------------------------------------------------- /CodeViewer/res/drawable-hdpi/unknown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/res/drawable-hdpi/unknown.png -------------------------------------------------------------------------------- /CodeViewer/res/drawable-ldpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/res/drawable-ldpi/ic_launcher.png -------------------------------------------------------------------------------- /CodeViewer/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /CodeViewer/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /CodeViewer/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bennyhuo/CodeViewer/53ca16a565407ee1f966f0fe725b760e21da0926/CodeViewer/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /CodeViewer/res/drawable/headback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /CodeViewer/res/drawable/shadow.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | -------------------------------------------------------------------------------- /CodeViewer/res/drawable/shadow_right.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | -------------------------------------------------------------------------------- /CodeViewer/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 10 | 11 | 16 | 17 | -------------------------------------------------------------------------------- /CodeViewer/res/layout/filebrowser.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 12 | -------------------------------------------------------------------------------- /CodeViewer/res/layout/fileitem.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 15 | 16 | 22 | 23 | 37 | 38 | 53 | 54 | -------------------------------------------------------------------------------- /CodeViewer/res/layout/head.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 13 | 14 | 21 | 22 | 31 | 32 | 33 | 42 | 43 | -------------------------------------------------------------------------------- /CodeViewer/res/layout/openeditem.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 15 | 16 | 24 | 25 | 39 | 40 | -------------------------------------------------------------------------------- /CodeViewer/res/layout/webmain.xml: -------------------------------------------------------------------------------- 1 | 6 | 7 | 10 | 11 | 16 | 17 | 23 | 24 | -------------------------------------------------------------------------------- /CodeViewer/res/menu/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /CodeViewer/res/values-sw600dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | -------------------------------------------------------------------------------- /CodeViewer/res/values-sw720dp-land/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 128dp 8 | 9 | -------------------------------------------------------------------------------- /CodeViewer/res/values-v11/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /CodeViewer/res/values-v14/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 11 | 12 | -------------------------------------------------------------------------------- /CodeViewer/res/values/color.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #00000000 4 | #007c7c7c 5 | #227c7c7c 6 | #b7eeb2 7 | #fed538 8 | #83dc7b 9 | #f66c85 10 | #00b5b9 11 | #528ccb 12 | 13 | -------------------------------------------------------------------------------- /CodeViewer/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 16dp 5 | 16dp 6 | 20dp 7 | 60sp 8 | 20dp 9 | 15dp 10 | 60dp 11 | 12 | 10dp 13 | -------------------------------------------------------------------------------- /CodeViewer/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | CodeViewer 5 | Hello CodeViewer! 6 | Settings 7 | Hello world! 8 | 9 | CodeViewer 10 | Recent Files 11 | -------------------------------------------------------------------------------- /CodeViewer/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 14 | 15 | 16 | 19 | 20 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/com/ben/data/DatabaseHelper.java: -------------------------------------------------------------------------------- 1 | package com.ben.data; 2 | 3 | import net.tsz.afinal.FinalDb; 4 | import android.content.Context; 5 | 6 | /** 7 | * 绑定到主线程了 8 | * @author Enbandari 9 | * 10 | */ 11 | public class DatabaseHelper{ 12 | private static DatabaseHelper instance; 13 | private Context context; 14 | private FinalDb db; 15 | private ThreadLocal dbHolder; 16 | 17 | private DatabaseHelper() { 18 | 19 | } 20 | 21 | public void init(Context context){ 22 | this.context = context; 23 | dbHolder = new ThreadLocal(); 24 | db = FinalDb.create(context); 25 | dbHolder.set(db); 26 | } 27 | 28 | public static DatabaseHelper getInstance(){ 29 | if(instance == null){ 30 | instance = new DatabaseHelper(); 31 | } 32 | return instance; 33 | } 34 | 35 | public FinalDb getDb(){ 36 | return db; 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/com/ben/data/DatabaseUtils.java: -------------------------------------------------------------------------------- 1 | package com.ben.data; 2 | 3 | import net.tsz.afinal.FinalDb; 4 | 5 | public class DatabaseUtils { 6 | public static FinalDb getDatabase(){ 7 | return DatabaseHelper.getInstance().getDb(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/com/ben/data/DbDao.java: -------------------------------------------------------------------------------- 1 | package com.ben.data; 2 | 3 | import java.lang.reflect.ParameterizedType; 4 | import java.util.List; 5 | 6 | public abstract class DbDao implements GenericDao { 7 | private Class clazz; 8 | 9 | @SuppressWarnings("unchecked") 10 | public DbDao(){ 11 | clazz = (Class) ((ParameterizedType) this.getClass().getGenericSuperclass()).getActualTypeArguments()[0]; 12 | } 13 | 14 | @Override 15 | public void save(T entity) { 16 | DatabaseUtils.getDatabase().save(entity); 17 | } 18 | 19 | @Override 20 | public void update(T entity) { 21 | DatabaseUtils.getDatabase().update(entity); 22 | } 23 | 24 | @Override 25 | public void delete(T entity){ 26 | DatabaseUtils.getDatabase().delete(entity); 27 | } 28 | 29 | @Override 30 | public T findById(Object id) { 31 | return DatabaseUtils.getDatabase().findById(id, clazz); 32 | } 33 | 34 | @Override 35 | public List findAll() { 36 | return DatabaseUtils.getDatabase().findAll(clazz); 37 | } 38 | 39 | public int count(){ 40 | return DatabaseUtils.getDatabase().countAll(clazz); 41 | } 42 | 43 | @Override 44 | public List findAll(int pageMax, int pageStart) { 45 | return DatabaseUtils.getDatabase().findAll(clazz, pageMax,pageStart); 46 | } 47 | 48 | @Override 49 | public List findByKeys(String[] keys, Object[] values) { 50 | return findByKeys(keys, values, 0, 0); 51 | } 52 | 53 | public int count(String[] keys, Object[] values){ 54 | StringBuilder where = new StringBuilder(); 55 | if(keys.length != values.length){ 56 | throw new RuntimeException("keys and values doesn't match."); 57 | } 58 | int len = keys.length; 59 | for(int i = 0; i < len ; ++i){ 60 | if(i!=0){ 61 | where.append(" AND "); 62 | } 63 | where.append(keys[i]+"='"+values[i].toString()+"'"); 64 | } 65 | return DatabaseUtils.getDatabase().countByWhere(clazz, where.toString()); 66 | } 67 | 68 | @Override 69 | public List findByKeys(String[] keys, Object[] values, int pageMax, int pageStart) { 70 | StringBuilder where = new StringBuilder(); 71 | if(keys.length != values.length){ 72 | throw new RuntimeException("keys and values doesn't match."); 73 | } 74 | int len = keys.length; 75 | for(int i = 0; i < len ; ++i){ 76 | if(i!=0){ 77 | where.append(" AND "); 78 | } 79 | where.append(keys[i]+"='"+values[i].toString()+"'"); 80 | } 81 | 82 | return DatabaseUtils.getDatabase().findAllByWhere(clazz, where.toString(), pageMax, pageStart); 83 | } 84 | 85 | } 86 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/com/ben/data/GenericDao.java: -------------------------------------------------------------------------------- 1 | package com.ben.data; 2 | 3 | import java.util.List; 4 | 5 | public interface GenericDao { 6 | 7 | public void save(T entity); 8 | 9 | public void update(T entity); 10 | 11 | public void delete(T entity); 12 | 13 | public T findById(Object id); 14 | 15 | //所有非单记录查询,都应该提供相应的分页接口。 16 | public List findAll(); 17 | 18 | public List findAll(int pageMax, int pageStart); 19 | 20 | public List findByKeys(String[] keys, Object[] values); 21 | 22 | public List findByKeys(String[] keys, Object[] values, int pageMax, int pageStart); 23 | } 24 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/com/piglet/codeviewer/BaseActivity.java: -------------------------------------------------------------------------------- 1 | package com.piglet.codeviewer; 2 | 3 | import android.annotation.SuppressLint; 4 | import android.os.Bundle; 5 | import android.view.MenuItem; 6 | import android.widget.FrameLayout; 7 | 8 | import com.piglet.config.Lang; 9 | import com.piglet.ui.LeftFragment; 10 | import com.piglet.ui.RightFragment; 11 | import com.slidingmenu.lib.SlidingMenu; 12 | import com.slidingmenu.lib.app.SlidingFragmentActivity; 13 | 14 | public class BaseActivity extends SlidingFragmentActivity { 15 | 16 | private int mTitleRes; 17 | protected LeftFragment leftFragment; 18 | protected RightFragment rightFragment; 19 | protected SlidingMenu sm; 20 | 21 | public BaseActivity(int titleRes) { 22 | mTitleRes = titleRes; 23 | } 24 | 25 | @SuppressLint("NewApi") 26 | @Override 27 | public void onCreate(Bundle savedInstanceState) { 28 | super.onCreate(savedInstanceState); 29 | 30 | setTitle(mTitleRes); 31 | 32 | addLeft(); 33 | addRight(); 34 | 35 | // customize the SlidingMenu 36 | SlidingMenu sm = getSlidingMenu(); 37 | sm.setShadowWidthRes(R.dimen.shadow_width); 38 | 39 | // // customize the ActionBar 40 | // if (Build.VERSION.SDK_INT >= 11) { 41 | // getActionBar().setDisplayHomeAsUpEnabled(true); 42 | // } 43 | } 44 | 45 | private void addLeft() { 46 | FrameLayout left = new FrameLayout(this); 47 | left.setId("LEFT".hashCode()); 48 | setBehindLeftContentView(left); 49 | leftFragment = new LeftFragment(); 50 | getSupportFragmentManager().beginTransaction().replace("LEFT".hashCode(),leftFragment).commit(); 51 | 52 | sm = getSlidingMenu(); 53 | sm.setShadowDrawable(R.drawable.shadow, SlidingMenu.LEFT); 54 | sm.setBehindOffsetRes(R.dimen.actionbar_home_width, SlidingMenu.LEFT); 55 | sm.setFadeEnabled(true); 56 | sm.setBehindScrollScale(0.6f, SlidingMenu.LEFT); 57 | sm.setFadeDegree(1.0f); 58 | } 59 | 60 | private void addRight() { 61 | FrameLayout right = new FrameLayout(this); 62 | right.setId("RIGHT".hashCode()); 63 | this.setBehindRightContentView(right); 64 | rightFragment = new RightFragment(); 65 | getSupportFragmentManager().beginTransaction().replace("RIGHT".hashCode(), rightFragment).commit(); 66 | 67 | SlidingMenu sm = getSlidingMenu(); 68 | sm.setShadowDrawable(R.drawable.shadow_right, SlidingMenu.RIGHT); 69 | sm.setBehindOffsetRes(R.dimen.actionbar_home_width, SlidingMenu.RIGHT); 70 | } 71 | 72 | // @Override 73 | // public void onResume() { 74 | // super.onResume(); 75 | // getSlidingMenu().showAbove(); 76 | // } 77 | 78 | public boolean onOptionsItemSelected(MenuItem item) { 79 | switch (item.getItemId()) { 80 | case android.R.id.home: 81 | toggle(SlidingMenu.LEFT); 82 | return true; 83 | } 84 | return super.onOptionsItemSelected(item); 85 | } 86 | 87 | public void openSourceFile(String filename, String path, Lang lang, boolean isNewOpened){ 88 | if(isNewOpened){ 89 | rightFragment.addItem(filename, path, lang); 90 | }else{ 91 | rightFragment.switchItem(path); 92 | } 93 | 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/com/piglet/codeviewer/UIHandler.java: -------------------------------------------------------------------------------- 1 | package com.piglet.codeviewer; 2 | 3 | import com.piglet.config.CodeStyle; 4 | import com.piglet.config.Lang; 5 | 6 | public interface UIHandler { 7 | public void openSourceFile(String path, CodeStyle style, Lang lang); 8 | 9 | public void toggleMenu(); 10 | 11 | public void close(String path, String candidatePath); 12 | } 13 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/com/piglet/config/CodeStyle.java: -------------------------------------------------------------------------------- 1 | package com.piglet.config; 2 | 3 | public enum CodeStyle { 4 | DEFAULT("shCoreDefault.css"), DJANGO("shCoreDjango.css"), ECLIPSE("shCoreEclipse.css"), EMACS("shCoreEmacs.css"), FADETOGREY("shCoreFadeToGrey.css"), MDULTRA( 5 | "shCoreMDUltra.css"), MIDNIGHT("shCoreMidnight.css"), RDARK("shCoreRDark.css"); 6 | 7 | private String filename; 8 | 9 | private CodeStyle(String filename) { 10 | this.filename = filename; 11 | } 12 | 13 | public String getFileName() { 14 | return filename; 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/com/piglet/config/Lang.java: -------------------------------------------------------------------------------- 1 | package com.piglet.config; 2 | 3 | import java.util.Locale; 4 | 5 | public enum Lang { 6 | APPLESCRIPT("shBrushAppleScript.js"), AS3("shBrushAS3.js"), BASH("shBrushBash.js"), COLDFUSION("shBrushColdFusion.js"), CPP("shBrushCpp.js"), CSHARP( 7 | "shBrushCSharp.js"), CSS("shBrushCss.js"), DELPHI("shBrushDelphi.js"), DIFF("shBrushDiff.js"), ERLANG("shBrushErlang.js"), GROOVY( 8 | "shBrushGroovy.js"), JAVA("shBrushJava.js"), JAVAFX("shBrushJavaFX.js"), JSCRIPT("shBrushJScript.js"), PERL("shBrushPerl.js"), PHP("shBrushPhp.js"), PLAIN( 9 | "shBrushPlain.js"), POWERSHELL("shBrushPowerShell.js"), PYTHON("shBrushPython.js"), RUBY("shBrushRuby.js"), SASS("shBrushSass.js"), SCALA( 10 | "shBrushScala.js"), SQL("shBrushSql.js"), VB("shBrushVb.js"), XML("shBrushXml.js"); 11 | 12 | private String filename; 13 | 14 | private Lang(String filename) { 15 | this.filename = filename; 16 | } 17 | 18 | public String getFileName() { 19 | return filename; 20 | } 21 | 22 | public String getBrushName(){ 23 | return name().toLowerCase(Locale.US); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/com/piglet/core/CodeGen.java: -------------------------------------------------------------------------------- 1 | package com.piglet.core; 2 | 3 | import java.io.File; 4 | import java.io.FileInputStream; 5 | import java.io.FileNotFoundException; 6 | import java.io.IOException; 7 | import java.io.InputStream; 8 | import java.io.InputStreamReader; 9 | 10 | import android.content.Context; 11 | 12 | import com.piglet.config.CodeStyle; 13 | import com.piglet.config.Lang; 14 | 15 | public class CodeGen { 16 | public static final String BASE_URL = "file:///android_asset/"; 17 | public static final String MIME_TYPE = "text/html"; 18 | public static final String DEFAULT_ENCODING = "utf-8"; 19 | 20 | private static CodeGen gen; 21 | private String template; 22 | 23 | public static CodeGen getCodeGen(Context context) { 24 | if (gen == null) { 25 | gen = new CodeGen(context); 26 | } 27 | return gen; 28 | } 29 | 30 | private CodeGen(Context context) { 31 | try { 32 | InputStream is = context.getAssets().open("template"); 33 | template = readFile(is); 34 | } catch (IOException e) { 35 | e.printStackTrace(); 36 | } 37 | } 38 | 39 | private String readFile(InputStream is) throws IOException { 40 | InputStreamReader isr = new InputStreamReader(is); 41 | char[] buffer = new char[1024]; 42 | StringBuilder sb = new StringBuilder(); 43 | int len; 44 | while ((len = isr.read(buffer)) != -1) { 45 | sb.append(new String(buffer, 0, len)); 46 | } 47 | return sb.toString(); 48 | } 49 | 50 | public String generate(String filepath, CodeStyle style, Lang lang) throws FileNotFoundException { 51 | File file = new File(filepath); 52 | if (file.exists() && file.canRead()) { 53 | String langType = lang.getFileName(); 54 | String brushName = lang.getBrushName(); 55 | String codeStyle = style.getFileName(); 56 | String content = null; 57 | try { 58 | content = readFile(new FileInputStream(file)); 59 | } catch (IOException e) { 60 | e.printStackTrace(); 61 | content = "Error reading file."; 62 | } 63 | 64 | StringBuffer sb = new StringBuffer(template); 65 | easyReplace(sb, "#{ langtype }", langType); 66 | easyReplace(sb, "#{ codestyle }", codeStyle); 67 | easyReplace(sb, "#{ brushname }", brushName); 68 | easyReplace(sb, "#{ content }", content); 69 | return sb.toString(); 70 | } else { 71 | throw new FileNotFoundException(); 72 | } 73 | } 74 | 75 | private void easyReplace(StringBuffer target, String oldStr, String newStr) { 76 | int start = target.indexOf(oldStr); 77 | int end = start + oldStr.length(); 78 | target.replace(start, end, newStr); 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/com/piglet/core/DirectoryFilter.java: -------------------------------------------------------------------------------- 1 | package com.piglet.core; 2 | 3 | import java.io.File; 4 | import java.io.FileFilter; 5 | 6 | public class DirectoryFilter implements FileFilter { 7 | 8 | public boolean accept(File file) { 9 | return file.isDirectory()&&!file.isHidden(); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/com/piglet/core/FileComparator.java: -------------------------------------------------------------------------------- 1 | package com.piglet.core; 2 | 3 | import java.io.File; 4 | import java.util.Comparator; 5 | 6 | public class FileComparator implements Comparator { 7 | 8 | public int compare(File file1, File file2) { 9 | String name0=file1.getName(); 10 | String name1=file2.getName(); 11 | return name0.compareTo(name1); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/com/piglet/core/SourceFileFilter.java: -------------------------------------------------------------------------------- 1 | package com.piglet.core; 2 | 3 | import java.io.File; 4 | import java.io.FileFilter; 5 | 6 | public class SourceFileFilter implements FileFilter { 7 | public boolean accept(File pathname) { 8 | return pathname.isFile(); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/com/piglet/data/Constant.java: -------------------------------------------------------------------------------- 1 | package com.piglet.data; 2 | 3 | public class Constant { 4 | public static class FileTypeKey{ 5 | public static final String FILENAME = "filename"; 6 | public static final String FILETYPE = "filetype"; 7 | public static final String FILEINFO = "fileinfo"; 8 | public static final String FILECHOSEN = "file_chosen"; 9 | } 10 | 11 | public static class FileType{ 12 | public static final int JAVA = 1; 13 | public static final int CPP = 2; 14 | public static final int JS = 3; 15 | 16 | // .... 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/com/piglet/data/RecentFileAdapter.java: -------------------------------------------------------------------------------- 1 | package com.piglet.data; 2 | 3 | import java.io.File; 4 | import java.util.ArrayList; 5 | import java.util.HashMap; 6 | import java.util.List; 7 | 8 | import android.content.Context; 9 | import android.view.LayoutInflater; 10 | import android.view.View; 11 | import android.view.ViewGroup; 12 | import android.widget.BaseAdapter; 13 | import android.widget.ImageView; 14 | import android.widget.TextView; 15 | 16 | import com.piglet.codeviewer.R; 17 | import com.piglet.pojo.SourceFileInfo; 18 | 19 | public class RecentFileAdapter extends BaseAdapter { 20 | private List items; 21 | private LayoutInflater inflater; 22 | 23 | public RecentFileAdapter(Context context){ 24 | items = new ArrayList(); 25 | inflater = LayoutInflater.from(context); 26 | } 27 | 28 | public SourceFileInfo getItemInfo(int position){ 29 | return items.get(position); 30 | } 31 | 32 | public void addItems(List items){ 33 | this.items.addAll(items); 34 | this.notifyDataSetChanged(); 35 | } 36 | 37 | public void addItem(SourceFileInfo item){ 38 | items.add(item); 39 | this.notifyDataSetChanged(); 40 | } 41 | 42 | public void clear(){ 43 | items.clear(); 44 | this.notifyDataSetChanged(); 45 | } 46 | 47 | public int getCount() { 48 | return items.size(); 49 | } 50 | 51 | public Object getItem(int position) { 52 | return items.get(position); 53 | } 54 | 55 | public long getItemId(int position) { 56 | return 0; 57 | } 58 | 59 | public View getView(int position, View convertView, ViewGroup parent) { 60 | ViewHolder holder; 61 | if (convertView == null) { 62 | convertView = inflater.inflate(R.layout.fileitem, parent, false); 63 | holder = new ViewHolder(); 64 | holder.icon = (ImageView) convertView.findViewById(R.id.itemicon); 65 | holder.name = (TextView) convertView.findViewById(R.id.itemname); 66 | holder.info = (TextView) convertView.findViewById(R.id.iteminfo); 67 | convertView.setTag(holder); 68 | } else { 69 | holder = (ViewHolder) convertView.getTag(); 70 | } 71 | 72 | SourceFileInfo item = items.get(position); 73 | String filename = item.getPath().substring(item.getPath().lastIndexOf(File.separator) + 1); 74 | holder.name.setText(filename); 75 | holder.info.setText(item.getPath()); 76 | 77 | switch (item.lang()) { 78 | case JAVA:// java 79 | holder.icon.setImageResource(R.drawable.java); 80 | break; 81 | case CPP:// cpp 82 | holder.icon.setImageResource(R.drawable.cpp); 83 | break; 84 | case JSCRIPT: 85 | holder.icon.setImageResource(R.drawable.js); 86 | break; 87 | default: 88 | holder.icon.setImageResource(R.drawable.unknown); 89 | break; 90 | } 91 | 92 | return convertView; 93 | } 94 | 95 | static class ViewHolder { 96 | ImageView icon; 97 | TextView name; 98 | TextView info; 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/com/piglet/pojo/SourceFileInfo.java: -------------------------------------------------------------------------------- 1 | package com.piglet.pojo; 2 | 3 | import net.tsz.afinal.annotation.sqlite.Id; 4 | 5 | import com.piglet.config.Lang; 6 | 7 | public class SourceFileInfo { 8 | 9 | // private int id; 10 | 11 | @Id 12 | private String path; 13 | private String lang; 14 | 15 | public String getPath() { 16 | return path; 17 | } 18 | 19 | public void setPath(String path) { 20 | this.path = path; 21 | } 22 | 23 | public String getLang() { 24 | return lang; 25 | } 26 | 27 | public Lang lang() { 28 | return Lang.valueOf(lang); 29 | } 30 | 31 | public void setLang(String lang) { 32 | this.lang = lang; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/com/piglet/pojo/SourceFileInfoDao.java: -------------------------------------------------------------------------------- 1 | package com.piglet.pojo; 2 | 3 | import com.ben.data.DbDao; 4 | 5 | public class SourceFileInfoDao extends DbDao { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/com/piglet/ui/CodeFragment.java: -------------------------------------------------------------------------------- 1 | package com.piglet.ui; 2 | 3 | import android.graphics.Bitmap; 4 | import android.os.Bundle; 5 | import android.support.v4.app.Fragment; 6 | import android.view.LayoutInflater; 7 | import android.view.View; 8 | import android.view.ViewGroup; 9 | import android.webkit.WebSettings; 10 | import android.webkit.WebSettings.LayoutAlgorithm; 11 | import android.webkit.WebView; 12 | import android.webkit.WebViewClient; 13 | import android.widget.ProgressBar; 14 | import android.widget.TextView; 15 | 16 | import com.piglet.codeviewer.R; 17 | import com.piglet.core.CodeGen; 18 | 19 | public class CodeFragment extends Fragment { 20 | private WebView webView; 21 | private ProgressBar progressBar; 22 | private TextView title; 23 | private String titleText; 24 | private String data; 25 | 26 | public void initData(String title, String data) { 27 | this.data = data; 28 | this.titleText = title; 29 | } 30 | 31 | @Override 32 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { 33 | View view = inflater.inflate(R.layout.webmain, container, false); 34 | webView = (WebView) view.findViewById(R.id.webview); 35 | progressBar = (ProgressBar) view.findViewById(R.id.progressbar); 36 | title = (TextView) view.findViewById(R.id.title); 37 | 38 | WebSettings settings = webView.getSettings(); 39 | settings.setJavaScriptEnabled(true); 40 | // settings.setLayoutAlgorithm(LayoutAlgorithm.NARROW_COLUMNS); 41 | settings.setBuiltInZoomControls(true); 42 | settings.setUseWideViewPort(true); 43 | settings.setLoadWithOverviewMode(true); 44 | webView.setWebViewClient(new WebViewClient() { 45 | @Override 46 | public void onPageStarted(WebView view, String url, Bitmap favicon) { 47 | // super.onPageStarted(view, url, favicon); 48 | progressBar.setVisibility(View.VISIBLE); 49 | System.out.println(url); 50 | super.onPageStarted(view, url, favicon); 51 | } 52 | 53 | @Override 54 | public void onPageFinished(WebView view, String url) { 55 | super.onPageFinished(view, url); 56 | progressBar.setVisibility(View.GONE); 57 | } 58 | }); 59 | loadData(); 60 | return view; 61 | } 62 | 63 | public void loadData() { 64 | title.setText(titleText); 65 | webView.loadDataWithBaseURL(CodeGen.BASE_URL, data, CodeGen.MIME_TYPE, CodeGen.DEFAULT_ENCODING, ""); 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/com/piglet/ui/RightFragment.java: -------------------------------------------------------------------------------- 1 | package com.piglet.ui; 2 | 3 | import java.util.HashMap; 4 | 5 | import android.app.Activity; 6 | import android.os.Bundle; 7 | import android.support.v4.app.Fragment; 8 | import android.view.LayoutInflater; 9 | import android.view.View; 10 | import android.view.ViewGroup; 11 | import android.widget.AdapterView; 12 | import android.widget.ListView; 13 | import android.widget.Toast; 14 | import android.widget.AdapterView.OnItemClickListener; 15 | 16 | import com.piglet.codeviewer.R; 17 | import com.piglet.codeviewer.UIHandler; 18 | import com.piglet.config.CodeStyle; 19 | import com.piglet.config.Lang; 20 | import com.piglet.core.FileBrowser; 21 | import com.piglet.data.Constant; 22 | import com.piglet.data.FileListAdapter; 23 | import com.piglet.data.OpenedListAdapter; 24 | 25 | public class RightFragment extends Fragment { 26 | private UIHandler uiHandler; 27 | 28 | private ListView list; 29 | private OpenedListAdapter adapter; 30 | 31 | @Override 32 | public void onCreate(Bundle savedInstanceState) { 33 | super.onCreate(savedInstanceState); 34 | } 35 | 36 | @Override 37 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { 38 | View view = inflater.inflate(R.layout.filebrowser, container, false); 39 | list = (ListView) view.findViewById(R.id.filelist); 40 | adapter = new OpenedListAdapter(getActivity()); 41 | adapter.setUiHandler(uiHandler); 42 | list.setOnItemClickListener(new OnItemClickListener() { 43 | 44 | public void onItemClick(AdapterView parent, View view, int position, long id) { 45 | HashMap item = adapter.getItemMap(position); 46 | Lang type = (Lang) item.get(Constant.FileTypeKey.FILETYPE); 47 | //switch 48 | uiHandler.openSourceFile(item.get(Constant.FileTypeKey.FILEINFO).toString(), null, null); 49 | } 50 | }); 51 | 52 | list.setAdapter(adapter); 53 | 54 | 55 | return view; 56 | } 57 | 58 | @Override 59 | public void onPause() { 60 | super.onPause(); 61 | } 62 | 63 | @Override 64 | public void onResume() { 65 | super.onResume(); 66 | } 67 | 68 | @Override 69 | public void onStart() { 70 | super.onStart(); 71 | } 72 | 73 | @Override 74 | public void onStop() { 75 | super.onStop(); 76 | } 77 | 78 | @Override 79 | public void onAttach(Activity activity) { 80 | super.onAttach(activity); 81 | uiHandler = (UIHandler) activity; 82 | } 83 | 84 | public void addItem(String filename, String path, Lang lang){ 85 | HashMap map = new HashMap(); 86 | map.put(Constant.FileTypeKey.FILEINFO, path); 87 | map.put(Constant.FileTypeKey.FILENAME, filename); 88 | map.put(Constant.FileTypeKey.FILETYPE, lang); 89 | map.put(Constant.FileTypeKey.FILECHOSEN, Integer.valueOf(1)); 90 | adapter.addItem(map); 91 | } 92 | 93 | public void switchItem(String path){ 94 | adapter.switchItem(path); 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/annotation/sqlite/Id.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.annotation.sqlite; 17 | 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | /** 23 | * @title Id主键配置 24 | * @description 不配置的时候默认找类的id或_id字段作为主键,column不配置的是默认为字段名 25 | * @author michael Young (www.YangFuhai.com) 26 | * @version 1.0 27 | * @created 2012-10-31 28 | */ 29 | @Target(ElementType.FIELD) 30 | @Retention(RetentionPolicy.RUNTIME) 31 | public @interface Id { 32 | public String column() default ""; 33 | } 34 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/annotation/sqlite/ManyToOne.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.annotation.sqlite; 17 | 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | 23 | @Target(ElementType.FIELD) 24 | @Retention(RetentionPolicy.RUNTIME) 25 | public @interface ManyToOne { 26 | public String column() default ""; 27 | } 28 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/annotation/sqlite/OneToMany.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.annotation.sqlite; 17 | 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | 23 | @Target(ElementType.FIELD) 24 | @Retention(RetentionPolicy.RUNTIME) 25 | public @interface OneToMany { 26 | 27 | public String manyColumn(); 28 | } 29 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/annotation/sqlite/Property.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.annotation.sqlite; 17 | 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | 23 | @Target(ElementType.FIELD) 24 | @Retention(RetentionPolicy.RUNTIME) 25 | public @interface Property { 26 | public String column() default ""; 27 | public String defaultValue() default ""; 28 | } 29 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/annotation/sqlite/Table.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.annotation.sqlite; 17 | 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | 23 | @Target(ElementType.TYPE) 24 | @Retention(RetentionPolicy.RUNTIME) 25 | public @interface Table { 26 | public String name(); 27 | } -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/annotation/sqlite/Transient.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.annotation.sqlite; 17 | 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | 23 | 24 | @Target(ElementType.FIELD) 25 | @Retention(RetentionPolicy.RUNTIME) 26 | public @interface Transient { 27 | 28 | } 29 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/annotation/view/Select.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.annotation.view; 17 | 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | 23 | @Target(ElementType.FIELD) 24 | @Retention(RetentionPolicy.RUNTIME) 25 | public @interface Select { 26 | 27 | public String selected(); 28 | public String noSelected() default ""; 29 | 30 | } 31 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/annotation/view/ViewInject.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.annotation.view; 17 | 18 | import java.lang.annotation.ElementType; 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | import java.lang.annotation.Target; 22 | 23 | @Target(ElementType.FIELD) 24 | @Retention(RetentionPolicy.RUNTIME) 25 | public @interface ViewInject { 26 | public int id(); 27 | public String click() default ""; 28 | public String longClick() default ""; 29 | public String itemClick() default ""; 30 | public String itemLongClick() default ""; 31 | public Select select() default @Select(selected="") ; 32 | } 33 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/bitmap/core/BaseMemoryCacheImpl.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.bitmap.core; 17 | 18 | import net.tsz.afinal.utils.Utils; 19 | import android.graphics.Bitmap; 20 | 21 | public class BaseMemoryCacheImpl implements IMemoryCache { 22 | 23 | private final LruMemoryCache mMemoryCache; 24 | 25 | public BaseMemoryCacheImpl(int size) { 26 | mMemoryCache = new LruMemoryCache(size) { 27 | @Override 28 | protected int sizeOf(String key, Bitmap bitmap) { 29 | return Utils.getBitmapSize(bitmap); 30 | } 31 | }; 32 | } 33 | 34 | @Override 35 | public void put(String key, Bitmap bitmap) { 36 | mMemoryCache.put(key, bitmap); 37 | } 38 | 39 | @Override 40 | public Bitmap get(String key) { 41 | return mMemoryCache.get(key); 42 | } 43 | 44 | @Override 45 | public void evictAll() { 46 | mMemoryCache.evictAll(); 47 | } 48 | 49 | @Override 50 | public void remove(String key) { 51 | mMemoryCache.remove(key); 52 | } 53 | 54 | 55 | } 56 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/bitmap/core/BitmapDisplayConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.bitmap.core; 17 | 18 | import android.graphics.Bitmap; 19 | import android.view.animation.Animation; 20 | 21 | public class BitmapDisplayConfig { 22 | 23 | 24 | private int bitmapWidth; 25 | private int bitmapHeight; 26 | 27 | private Animation animation; 28 | 29 | private int animationType; 30 | private Bitmap loadingBitmap; 31 | private Bitmap loadfailBitmap; 32 | 33 | 34 | public int getBitmapWidth() { 35 | return bitmapWidth; 36 | } 37 | 38 | public void setBitmapWidth(int bitmapWidth) { 39 | this.bitmapWidth = bitmapWidth; 40 | } 41 | 42 | public int getBitmapHeight() { 43 | return bitmapHeight; 44 | } 45 | 46 | public void setBitmapHeight(int bitmapHeight) { 47 | this.bitmapHeight = bitmapHeight; 48 | } 49 | 50 | public Animation getAnimation() { 51 | return animation; 52 | } 53 | 54 | public void setAnimation(Animation animation) { 55 | this.animation = animation; 56 | } 57 | 58 | public int getAnimationType() { 59 | return animationType; 60 | } 61 | 62 | public void setAnimationType(int animationType) { 63 | this.animationType = animationType; 64 | } 65 | 66 | public Bitmap getLoadingBitmap() { 67 | return loadingBitmap; 68 | } 69 | 70 | public void setLoadingBitmap(Bitmap loadingBitmap) { 71 | this.loadingBitmap = loadingBitmap; 72 | } 73 | 74 | public Bitmap getLoadfailBitmap() { 75 | return loadfailBitmap; 76 | } 77 | 78 | public void setLoadfailBitmap(Bitmap loadfailBitmap) { 79 | this.loadfailBitmap = loadfailBitmap; 80 | } 81 | 82 | 83 | public class AnimationType{ 84 | public static final int userDefined = 0; 85 | public static final int fadeIn = 1; 86 | } 87 | 88 | } 89 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/bitmap/core/BitmapProcess.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.bitmap.core; 17 | 18 | import net.tsz.afinal.bitmap.core.BytesBufferPool.BytesBuffer; 19 | import net.tsz.afinal.bitmap.download.Downloader; 20 | import android.graphics.Bitmap; 21 | import android.graphics.BitmapFactory; 22 | 23 | public class BitmapProcess { 24 | private Downloader mDownloader; 25 | private BitmapCache mCache; 26 | 27 | private static final int BYTESBUFFE_POOL_SIZE = 4; 28 | private static final int BYTESBUFFER_SIZE = 200 * 1024; 29 | private static final BytesBufferPool sMicroThumbBufferPool = new BytesBufferPool(BYTESBUFFE_POOL_SIZE, BYTESBUFFER_SIZE); 30 | 31 | public BitmapProcess(Downloader downloader,BitmapCache cache) { 32 | this.mDownloader = downloader; 33 | this.mCache = cache; 34 | } 35 | 36 | public Bitmap getBitmap(String url, BitmapDisplayConfig config) { 37 | 38 | Bitmap bitmap = getFromDisk(url,config); 39 | 40 | if(bitmap == null){ 41 | byte[] data = mDownloader.download(url); 42 | if(data != null && data.length > 0){ 43 | if(config !=null) 44 | bitmap = BitmapDecoder.decodeSampledBitmapFromByteArray(data,0,data.length,config.getBitmapWidth(),config.getBitmapHeight()); 45 | else 46 | return BitmapFactory.decodeByteArray(data,0,data.length); 47 | 48 | mCache.addToDiskCache(url, data); 49 | } 50 | } 51 | 52 | return bitmap; 53 | } 54 | 55 | 56 | public Bitmap getFromDisk(String key,BitmapDisplayConfig config) { 57 | BytesBuffer buffer = sMicroThumbBufferPool.get(); 58 | Bitmap b = null; 59 | try { 60 | boolean found = mCache.getImageData(key, buffer); 61 | if ( found && buffer.length - buffer.offset > 0) { 62 | if( config != null){ 63 | b = BitmapDecoder.decodeSampledBitmapFromByteArray(buffer.data,buffer.offset, buffer.length ,config.getBitmapWidth(),config.getBitmapHeight()); 64 | }else{ 65 | b = BitmapFactory.decodeByteArray(buffer.data, buffer.offset, buffer.length); 66 | } 67 | } 68 | } finally { 69 | sMicroThumbBufferPool.recycle(buffer); 70 | } 71 | return b; 72 | } 73 | 74 | 75 | } 76 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/bitmap/core/BytesBufferPool.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.bitmap.core; 17 | 18 | import java.util.ArrayList; 19 | 20 | public class BytesBufferPool { 21 | 22 | 23 | public static class BytesBuffer { 24 | public byte[] data; 25 | public int offset; 26 | public int length; 27 | 28 | private BytesBuffer(int capacity) { 29 | this.data = new byte[capacity]; 30 | } 31 | } 32 | 33 | private final int mPoolSize; 34 | private final int mBufferSize; 35 | private final ArrayList mList; 36 | 37 | public BytesBufferPool(int poolSize, int bufferSize) { 38 | mList = new ArrayList(poolSize); 39 | mPoolSize = poolSize; 40 | mBufferSize = bufferSize; 41 | } 42 | 43 | public synchronized BytesBuffer get() { 44 | int n = mList.size(); 45 | return n > 0 ? mList.remove(n - 1) : new BytesBuffer(mBufferSize); 46 | } 47 | 48 | public synchronized void recycle(BytesBuffer buffer) { 49 | if (buffer.data.length != mBufferSize) return; 50 | if (mList.size() < mPoolSize) { 51 | buffer.offset = 0; 52 | buffer.length = 0; 53 | mList.add(buffer); 54 | } 55 | } 56 | 57 | public synchronized void clear() { 58 | mList.clear(); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/bitmap/core/IMemoryCache.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.bitmap.core; 17 | 18 | import android.graphics.Bitmap; 19 | 20 | public interface IMemoryCache { 21 | 22 | public void put(String key,Bitmap bitmap); 23 | public Bitmap get(String key); 24 | public void evictAll(); 25 | public void remove(String key); 26 | 27 | } 28 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/bitmap/core/SoftMemoryCacheImpl.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.bitmap.core; 17 | 18 | import java.lang.ref.SoftReference; 19 | import java.util.HashMap; 20 | 21 | import android.graphics.Bitmap; 22 | 23 | public class SoftMemoryCacheImpl implements IMemoryCache { 24 | 25 | private final HashMap> mMemoryCache; 26 | 27 | public SoftMemoryCacheImpl(int size) { 28 | 29 | mMemoryCache = new HashMap>(); 30 | } 31 | 32 | @Override 33 | public void put(String key, Bitmap bitmap) { 34 | mMemoryCache.put(key, new SoftReference(bitmap)); 35 | } 36 | 37 | @Override 38 | public Bitmap get(String key) { 39 | SoftReference memBitmap = mMemoryCache.get(key); 40 | if(memBitmap!=null){ 41 | return memBitmap.get(); 42 | } 43 | return null; 44 | } 45 | 46 | @Override 47 | public void evictAll() { 48 | mMemoryCache.clear(); 49 | } 50 | 51 | @Override 52 | public void remove(String key) { 53 | mMemoryCache.remove(key); 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/bitmap/display/Displayer.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.bitmap.display; 17 | 18 | import net.tsz.afinal.bitmap.core.BitmapDisplayConfig; 19 | import android.graphics.Bitmap; 20 | import android.view.View; 21 | 22 | public interface Displayer { 23 | 24 | /** 25 | * 图片加载完成 回调的函数 26 | * @param imageView 27 | * @param bitmap 28 | * @param config 29 | */ 30 | public void loadCompletedisplay(View imageView,Bitmap bitmap,BitmapDisplayConfig config); 31 | 32 | /** 33 | * 图片加载失败回调的函数 34 | * @param imageView 35 | * @param bitmap 36 | */ 37 | public void loadFailDisplay(View imageView,Bitmap bitmap); 38 | 39 | } 40 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/bitmap/display/SimpleDisplayer.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.bitmap.display; 17 | 18 | import net.tsz.afinal.bitmap.core.BitmapDisplayConfig; 19 | import android.graphics.Bitmap; 20 | import android.graphics.drawable.BitmapDrawable; 21 | import android.graphics.drawable.ColorDrawable; 22 | import android.graphics.drawable.Drawable; 23 | import android.graphics.drawable.TransitionDrawable; 24 | import android.view.View; 25 | import android.view.animation.Animation; 26 | import android.view.animation.AnimationUtils; 27 | import android.widget.ImageView; 28 | 29 | public class SimpleDisplayer implements Displayer{ 30 | 31 | public void loadCompletedisplay(View imageView,Bitmap bitmap,BitmapDisplayConfig config){ 32 | switch (config.getAnimationType()) { 33 | case BitmapDisplayConfig.AnimationType.fadeIn: 34 | fadeInDisplay(imageView,bitmap); 35 | break; 36 | case BitmapDisplayConfig.AnimationType.userDefined: 37 | animationDisplay(imageView,bitmap,config.getAnimation()); 38 | break; 39 | default: 40 | break; 41 | } 42 | } 43 | 44 | 45 | public void loadFailDisplay(View imageView,Bitmap bitmap){ 46 | if(imageView instanceof ImageView){ 47 | ((ImageView)imageView).setImageBitmap(bitmap); 48 | }else{ 49 | imageView.setBackgroundDrawable(new BitmapDrawable(bitmap)); 50 | } 51 | } 52 | 53 | 54 | 55 | private void fadeInDisplay(View imageView,Bitmap bitmap){ 56 | final TransitionDrawable td = 57 | new TransitionDrawable(new Drawable[] { 58 | new ColorDrawable(android.R.color.transparent), 59 | new BitmapDrawable(imageView.getResources(), bitmap) 60 | }); 61 | if(imageView instanceof ImageView){ 62 | ((ImageView)imageView).setImageDrawable(td); 63 | }else{ 64 | imageView.setBackgroundDrawable(td); 65 | } 66 | td.startTransition(300); 67 | } 68 | 69 | 70 | private void animationDisplay(View imageView,Bitmap bitmap,Animation animation){ 71 | animation.setStartTime(AnimationUtils.currentAnimationTimeMillis()); 72 | if(imageView instanceof ImageView){ 73 | ((ImageView)imageView).setImageBitmap(bitmap); 74 | }else{ 75 | imageView.setBackgroundDrawable(new BitmapDrawable(bitmap)); 76 | } 77 | imageView.startAnimation(animation); 78 | } 79 | 80 | } 81 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/bitmap/download/Downloader.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.bitmap.download; 17 | 18 | 19 | public interface Downloader { 20 | 21 | /** 22 | * 请求网络的inputStream填充outputStream 23 | * @param urlString 24 | * @param outputStream 25 | * @return 26 | */ 27 | public byte[] download(String urlString); 28 | } 29 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/core/FileNameGenerator.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.core; 17 | 18 | import java.security.MessageDigest; 19 | import java.security.NoSuchAlgorithmException; 20 | 21 | public class FileNameGenerator { 22 | 23 | 24 | public static String generator(String key) { 25 | String cacheKey; 26 | try { 27 | final MessageDigest mDigest = MessageDigest.getInstance("MD5"); 28 | mDigest.update(key.getBytes()); 29 | cacheKey = bytesToHexString(mDigest.digest()); 30 | } catch (NoSuchAlgorithmException e) { 31 | cacheKey = String.valueOf(key.hashCode()); 32 | } 33 | return cacheKey; 34 | } 35 | 36 | private static String bytesToHexString(byte[] bytes) { 37 | // http://stackoverflow.com/questions/332079 38 | StringBuilder sb = new StringBuilder(); 39 | for (int i = 0; i < bytes.length; i++) { 40 | String hex = Integer.toHexString(0xFF & bytes[i]); 41 | if (hex.length() == 1) { 42 | sb.append('0'); 43 | } 44 | sb.append(hex); 45 | } 46 | return sb.toString(); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/db/sqlite/DbModel.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.db.sqlite; 17 | 18 | import java.util.HashMap; 19 | 20 | public class DbModel { 21 | 22 | private HashMap dataMap = new HashMap(); 23 | 24 | public Object get(String column){ 25 | return dataMap.get(column); 26 | } 27 | 28 | public String getString(String column){ 29 | return String.valueOf(get(column)); 30 | } 31 | 32 | public int getInt(String column){ 33 | return Integer.valueOf(getString(column)); 34 | } 35 | 36 | public boolean getBoolean(String column){ 37 | return Boolean.valueOf(getString(column)); 38 | } 39 | 40 | public double getDouble(String column){ 41 | return Double.valueOf(getString(column)); 42 | } 43 | 44 | public float getFloat(String column){ 45 | return Float.valueOf(getString(column)); 46 | } 47 | 48 | public long getLong(String column){ 49 | return Long.valueOf(getString(column)); 50 | } 51 | 52 | public void set(String key,Object value){ 53 | dataMap.put(key, value); 54 | } 55 | 56 | public HashMap getDataMap(){ 57 | return dataMap; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/db/sqlite/ManyToOneLazyLoader.java: -------------------------------------------------------------------------------- 1 | package net.tsz.afinal.db.sqlite; 2 | 3 | import net.tsz.afinal.FinalDb; 4 | 5 | import java.util.ArrayList; 6 | import java.util.List; 7 | 8 | /** 9 | * 10 | * 一对多延迟加载类 11 | * Created by pwy on 13-7-25. 12 | * @param 宿主实体的class 13 | * @param 多放实体class 14 | */ 15 | public class ManyToOneLazyLoader { 16 | M manyEntity; 17 | Class manyClazz; 18 | Class oneClazz; 19 | FinalDb db; 20 | /** 21 | * 用于 22 | */ 23 | private Object fieldValue; 24 | public ManyToOneLazyLoader(M manyEntity, Class manyClazz, Class oneClazz, FinalDb db){ 25 | this.manyEntity = manyEntity; 26 | this.manyClazz = manyClazz; 27 | this.oneClazz = oneClazz; 28 | this.db = db; 29 | } 30 | O oneEntity; 31 | boolean hasLoaded = false; 32 | 33 | /** 34 | * 如果数据未加载,则调用loadManyToOne填充数据 35 | * @return 36 | */ 37 | public O get(){ 38 | if(oneEntity==null && !hasLoaded){ 39 | this.db.loadManyToOne(null,this.manyEntity,this.manyClazz,this.oneClazz); 40 | hasLoaded = true; 41 | } 42 | return oneEntity; 43 | } 44 | public void set(O value){ 45 | oneEntity = value; 46 | } 47 | 48 | public Object getFieldValue() { 49 | return fieldValue; 50 | } 51 | 52 | public void setFieldValue(Object fieldValue) { 53 | this.fieldValue = fieldValue; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/db/sqlite/OneToManyLazyLoader.java: -------------------------------------------------------------------------------- 1 | package net.tsz.afinal.db.sqlite; 2 | 3 | import net.tsz.afinal.FinalDb; 4 | 5 | import java.util.ArrayList; 6 | import java.util.List; 7 | 8 | /** 9 | * 10 | * 一对多延迟加载类 11 | * Created by pwy on 13-7-25. 12 | * @param 宿主实体的class 13 | * @param 多放实体class 14 | */ 15 | public class OneToManyLazyLoader { 16 | O ownerEntity; 17 | Class ownerClazz; 18 | Class listItemClazz; 19 | FinalDb db; 20 | public OneToManyLazyLoader(O ownerEntity,Class ownerClazz,Class listItemclazz,FinalDb db){ 21 | this.ownerEntity = ownerEntity; 22 | this.ownerClazz = ownerClazz; 23 | this.listItemClazz = listItemclazz; 24 | this.db = db; 25 | } 26 | List entities; 27 | 28 | /** 29 | * 如果数据未加载,则调用loadOneToMany填充数据 30 | * @return 31 | */ 32 | public List getList(){ 33 | if(entities==null){ 34 | this.db.loadOneToMany((O)this.ownerEntity,this.ownerClazz,this.listItemClazz); 35 | } 36 | if(entities==null){ 37 | entities =new ArrayList(); 38 | } 39 | return entities; 40 | } 41 | public void setList(List value){ 42 | entities = value; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/db/sqlite/SqlInfo.java: -------------------------------------------------------------------------------- 1 | package net.tsz.afinal.db.sqlite; 2 | 3 | import java.util.LinkedList; 4 | 5 | public class SqlInfo { 6 | 7 | private String sql; 8 | private LinkedList bindArgs; 9 | 10 | public String getSql() { 11 | return sql; 12 | } 13 | public void setSql(String sql) { 14 | this.sql = sql; 15 | } 16 | 17 | public LinkedList getBindArgs() { 18 | return bindArgs; 19 | } 20 | public void setBindArgs(LinkedList bindArgs) { 21 | this.bindArgs = bindArgs; 22 | } 23 | 24 | public Object[] getBindArgsAsArray() { 25 | if(bindArgs!=null) 26 | return bindArgs.toArray(); 27 | return null; 28 | } 29 | 30 | public String[] getBindArgsAsStringArray() { 31 | if(bindArgs!=null){ 32 | String[] strings = new String[bindArgs.size()]; 33 | for(int i = 0;i(); 44 | 45 | bindArgs.add(obj); 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/db/table/Id.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.db.table; 17 | 18 | public class Id extends Property{ 19 | 20 | } 21 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/db/table/KeyValue.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.db.table; 17 | 18 | import net.tsz.afinal.utils.FieldUtils; 19 | 20 | public class KeyValue { 21 | private String key; 22 | private Object value; 23 | 24 | public KeyValue(String key, Object value) { 25 | this.key = key; 26 | this.value = value; 27 | } 28 | 29 | 30 | public KeyValue() {} 31 | 32 | 33 | public String getKey() { 34 | return key; 35 | } 36 | public void setKey(String key) { 37 | this.key = key; 38 | } 39 | public Object getValue() { 40 | if(value instanceof java.util.Date || value instanceof java.sql.Date){ 41 | return FieldUtils.SDF.format(value); 42 | } 43 | return value; 44 | } 45 | public void setValue(Object value) { 46 | this.value = value; 47 | } 48 | 49 | 50 | } 51 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/db/table/ManyToOne.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.db.table; 17 | 18 | public class ManyToOne extends Property{ 19 | 20 | private Class manyClass; 21 | 22 | public Class getManyClass() { 23 | return manyClass; 24 | } 25 | 26 | public void setManyClass(Class manyClass) { 27 | this.manyClass = manyClass; 28 | } 29 | 30 | 31 | 32 | 33 | } 34 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/db/table/OneToMany.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.db.table; 17 | 18 | public class OneToMany extends Property{ 19 | 20 | private Class oneClass; 21 | 22 | public Class getOneClass() { 23 | return oneClass; 24 | } 25 | 26 | public void setOneClass(Class oneClass) { 27 | this.oneClass = oneClass; 28 | } 29 | 30 | 31 | 32 | } 33 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/exception/AfinalException.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.exception; 17 | 18 | public class AfinalException extends RuntimeException { 19 | private static final long serialVersionUID = 1L; 20 | 21 | public AfinalException() { 22 | super(); 23 | } 24 | 25 | public AfinalException(String msg) { 26 | super(msg); 27 | } 28 | 29 | public AfinalException(Throwable ex) { 30 | super(ex); 31 | } 32 | 33 | public AfinalException(String msg,Throwable ex) { 34 | super(msg,ex); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/exception/DbException.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.exception; 17 | 18 | public class DbException extends AfinalException { 19 | private static final long serialVersionUID = 1L; 20 | 21 | public DbException() {} 22 | 23 | 24 | public DbException(String msg) { 25 | super(msg); 26 | } 27 | 28 | public DbException(Throwable ex) { 29 | super(ex); 30 | } 31 | 32 | public DbException(String msg,Throwable ex) { 33 | super(msg,ex); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/exception/HttpException.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.exception; 17 | 18 | public class HttpException extends AfinalException { 19 | private static final long serialVersionUID = 1L; 20 | 21 | } 22 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/exception/ViewException.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.exception; 17 | 18 | 19 | public class ViewException extends AfinalException { 20 | private static final long serialVersionUID = 1L; 21 | private String strMsg = null; 22 | public ViewException(String strExce) { 23 | strMsg = strExce; 24 | } 25 | 26 | public void printStackTrace() { 27 | if(strMsg!=null) 28 | System.err.println(strMsg); 29 | 30 | super.printStackTrace(); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/http/AjaxCallBack.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.http; 17 | /** 18 | * 19 | * @author michael 20 | * 21 | * @param 目前泛型支持 String,File, 以后扩展:JSONObject,Bitmap,byte[],XmlDom 22 | */ 23 | public abstract class AjaxCallBack { 24 | 25 | private boolean progress = true; 26 | private int rate = 1000 * 1;//每秒 27 | 28 | // private Class type; 29 | // 30 | // public AjaxCallBack(Class clazz) { 31 | // this.type = clazz; 32 | // } 33 | 34 | 35 | public boolean isProgress() { 36 | return progress; 37 | } 38 | 39 | public int getRate() { 40 | return rate; 41 | } 42 | 43 | /** 44 | * 设置进度,而且只有设置了这个了以后,onLoading才能有效。 45 | * @param progress 是否启用进度显示 46 | * @param rate 进度更新频率 47 | */ 48 | public AjaxCallBack progress(boolean progress , int rate) { 49 | this.progress = progress; 50 | this.rate = rate; 51 | return this; 52 | } 53 | 54 | public void onStart(){}; 55 | /** 56 | * onLoading方法有效progress 57 | * @param count 58 | * @param current 59 | */ 60 | public void onLoading(long count,long current){}; 61 | public void onSuccess(T t){}; 62 | public void onFailure(Throwable t,int errorNo ,String strMsg){}; 63 | } 64 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/http/entityhandler/EntityCallBack.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.http.entityhandler; 17 | 18 | public interface EntityCallBack { 19 | public void callBack(long count,long current,boolean mustNoticeUI); 20 | } 21 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/http/entityhandler/FileEntityHandler.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.http.entityhandler; 17 | 18 | import java.io.File; 19 | import java.io.FileOutputStream; 20 | import java.io.IOException; 21 | import java.io.InputStream; 22 | 23 | import org.apache.http.HttpEntity; 24 | 25 | import android.text.TextUtils; 26 | 27 | public class FileEntityHandler { 28 | 29 | private boolean mStop = false; 30 | 31 | 32 | 33 | public boolean isStop() { 34 | return mStop; 35 | } 36 | 37 | 38 | 39 | public void setStop(boolean stop) { 40 | this.mStop = stop; 41 | } 42 | 43 | 44 | public Object handleEntity(HttpEntity entity, EntityCallBack callback,String target,boolean isResume) throws IOException { 45 | if (TextUtils.isEmpty(target) || target.trim().length() == 0) 46 | return null; 47 | 48 | File targetFile = new File(target); 49 | 50 | if (!targetFile.exists()) { 51 | targetFile.createNewFile(); 52 | } 53 | 54 | if(mStop){ 55 | return targetFile; 56 | } 57 | 58 | 59 | long current = 0; 60 | FileOutputStream os = null; 61 | if(isResume){ 62 | current = targetFile.length(); 63 | os = new FileOutputStream(target, true); 64 | }else{ 65 | os = new FileOutputStream(target); 66 | } 67 | 68 | if(mStop){ 69 | return targetFile; 70 | } 71 | 72 | InputStream input = entity.getContent(); 73 | long count = entity.getContentLength() + current; 74 | 75 | if(current >= count || mStop){ 76 | return targetFile; 77 | } 78 | 79 | int readLen = 0; 80 | byte[] buffer = new byte[1024]; 81 | while (!mStop && !(current >= count) && ((readLen = input.read(buffer,0,1024)) > 0) ) {//未全部读取 82 | os.write(buffer, 0, readLen); 83 | current += readLen; 84 | callback.callBack(count, current,false); 85 | } 86 | callback.callBack(count, current,true); 87 | 88 | if(mStop && current < count){ //用户主动停止 89 | throw new IOException("user stop download thread"); 90 | } 91 | 92 | return targetFile; 93 | } 94 | 95 | } 96 | -------------------------------------------------------------------------------- /CodeViewer/src/main/java/net/tsz/afinal/http/entityhandler/StringEntityHandler.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2012-2013, Michael Yang 杨福海 (www.yangfuhai.com). 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package net.tsz.afinal.http.entityhandler; 17 | 18 | import java.io.ByteArrayOutputStream; 19 | import java.io.IOException; 20 | import java.io.InputStream; 21 | 22 | 23 | import org.apache.http.HttpEntity; 24 | 25 | public class StringEntityHandler { 26 | 27 | public Object handleEntity(HttpEntity entity, EntityCallBack callback,String charset)throws IOException { 28 | if (entity == null) 29 | return null; 30 | 31 | ByteArrayOutputStream outStream = new ByteArrayOutputStream(); 32 | byte[] buffer = new byte[1024]; 33 | 34 | long count = entity.getContentLength(); 35 | long curCount = 0; 36 | int len = -1; 37 | InputStream is = entity.getContent(); 38 | while ((len = is.read(buffer)) != -1) { 39 | outStream.write(buffer, 0, len); 40 | curCount += len; 41 | if(callback!=null) 42 | callback.callBack(count, curCount,false); 43 | } 44 | if(callback!=null) 45 | callback.callBack(count, curCount,true); 46 | byte[] data = outStream.toByteArray(); 47 | outStream.close(); 48 | is.close(); 49 | return new String(data,charset); 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CodeViewer # 2 | 3 | 即将呈现给您的是一款简易的Android代码阅读器。如果你是个程序爱好者,你一定希望能够在任何时候方便的阅读代码。尽管你会经常守在电脑前,但你一定会想如果能像看知乎一样看代码就好了。 4 | 5 | # 代码高亮支持 # 6 | 7 | 应用的代码高亮插件为[syntaxhighlighter_3.0.83](http://alexgorbatchev.com/SyntaxHighlighter/ "syntaxhighlighter_3.0.83") --------------------------------------------------------------------------------