├── app ├── .gitignore ├── src │ └── main │ │ ├── res │ │ ├── drawable │ │ │ ├── ic_delete.png │ │ │ ├── bg_round_down_white.xml │ │ │ └── bg_round_up_green_dark.xml │ │ ├── mipmap-hdpi │ │ │ ├── ic_delete.png │ │ │ ├── ic_file.png │ │ │ ├── ic_folder.png │ │ │ ├── ic_file_ds.png │ │ │ ├── ic_file_obj.png │ │ │ ├── ic_file_stl.png │ │ │ ├── ic_launcher.png │ │ │ ├── ic_arrow_left.png │ │ │ ├── ic_file_model.png │ │ │ ├── ic_model_zoom.png │ │ │ ├── ic_model_turn_x.png │ │ │ ├── ic_model_turn_y.png │ │ │ ├── ic_model_turn_left.png │ │ │ ├── ic_model_turn_right.png │ │ │ └── abc_ic_ab_back_mtrl_am_alpha.png │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ ├── values │ │ │ ├── dimens.xml │ │ │ ├── colors.xml │ │ │ ├── styles.xml │ │ │ └── strings.xml │ │ ├── values-v21 │ │ │ └── styles.xml │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ ├── menu │ │ │ ├── menu_main.xml │ │ │ └── menu_show_model.xml │ │ └── layout │ │ │ ├── activity_draw_grid.xml │ │ │ ├── item_frequent_folder.xml │ │ │ ├── item_directory_level.xml │ │ │ ├── activity_main.xml │ │ │ ├── activity_show_model.xml │ │ │ ├── dialog_renderer_setting.xml │ │ │ ├── content_main.xml │ │ │ ├── item_filelist_main.xml │ │ │ ├── dialog_show_setting.xml │ │ │ ├── activity_file_directory.xml │ │ │ ├── activity_about.xml │ │ │ └── activity_open_file.xml │ │ ├── java │ │ └── com │ │ │ └── dyman │ │ │ └── show3dmodel │ │ │ ├── view │ │ │ └── MyDialog.java │ │ │ ├── adapter │ │ │ ├── listener │ │ │ │ └── OnAdapterItemListener.java │ │ │ ├── BaseSwipListAdapter.java │ │ │ ├── FolderListAdapter.java │ │ │ ├── FileListAdapter.java │ │ │ └── FileRvListAdapter.java │ │ │ ├── config │ │ │ ├── IntentKey.java │ │ │ └── MyConfig.java │ │ │ ├── bean │ │ │ ├── FolderBean.java │ │ │ └── FileBean.java │ │ │ ├── ui │ │ │ ├── AboutActivity.java │ │ │ ├── BaseActivity.java │ │ │ ├── ShowModelActivity.java │ │ │ ├── OpenFileActivity.java │ │ │ └── MainActivity.java │ │ │ ├── utils │ │ │ ├── TimeUtils.java │ │ │ ├── ToastUtils.java │ │ │ ├── SnackBarUtils.java │ │ │ ├── DividerItemDecoration.java │ │ │ ├── DialogUtils.java │ │ │ └── FileUtils.java │ │ │ ├── manager │ │ │ └── SharePreferenceManager.java │ │ │ └── db │ │ │ └── DatabaseHelper.java │ │ └── AndroidManifest.xml ├── proguard-rules.pro └── build.gradle ├── easyshow3d ├── .gitignore ├── libs │ └── jpct_ae.jar ├── src │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── dyman │ │ │ │ └── easyshow3d │ │ │ │ ├── EasyShowGlobal.java │ │ │ │ ├── thread │ │ │ │ ├── IAnalysisFinishCallback.java │ │ │ │ ├── VerticesThread.java │ │ │ │ ├── FaceThread.java │ │ │ │ └── AnalysisThreadHelper.java │ │ │ │ ├── imp │ │ │ │ └── ModelLoaderListener.java │ │ │ │ ├── utils │ │ │ │ ├── LoadUtil.java │ │ │ │ ├── Normal.java │ │ │ │ ├── IOUtils.java │ │ │ │ ├── ShaderUtil.java │ │ │ │ ├── MatrixState.java │ │ │ │ └── FileUtils.java │ │ │ │ ├── bean │ │ │ │ ├── ObjProObject.java │ │ │ │ └── ModelObject.java │ │ │ │ ├── view │ │ │ │ ├── ShowModelView.java │ │ │ │ ├── ModelView.java │ │ │ │ └── Show3dsMd2View.java │ │ │ │ └── ModelFactory.java │ │ ├── assets │ │ │ ├── easy_show_frag.sh │ │ │ ├── easy_show_frag_color.sh │ │ │ ├── easy_show_frag_clipplane.sh │ │ │ ├── easy_show_vertex.sh │ │ │ └── easy_show_vertex_clipplane.sh │ │ ├── AndroidManifest.xml │ │ └── res │ │ │ └── values │ │ │ └── strings.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── dyman │ │ │ └── easyshow3d │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── dyman │ │ └── easyshow3d │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── art ├── 00.png ├── 01.png ├── 02.png ├── 03.png ├── 04.png ├── 05.png ├── show3D_demo.gif └── show3D_download_code.png ├── model ├── 茶壶.obj └── 小黄人.stl ├── apk └── Show3D-v1.6.1.170915.apk ├── .idea ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── vcs.xml ├── modules.xml ├── runConfigurations.xml ├── compiler.xml ├── gradle.xml └── misc.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── gradlew.bat ├── README.md └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /easyshow3d/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':easyshow3d' 2 | -------------------------------------------------------------------------------- /art/00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/art/00.png -------------------------------------------------------------------------------- /art/01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/art/01.png -------------------------------------------------------------------------------- /art/02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/art/02.png -------------------------------------------------------------------------------- /art/03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/art/03.png -------------------------------------------------------------------------------- /art/04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/art/04.png -------------------------------------------------------------------------------- /art/05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/art/05.png -------------------------------------------------------------------------------- /model/茶壶.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/model/茶壶.obj -------------------------------------------------------------------------------- /model/小黄人.stl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/model/小黄人.stl -------------------------------------------------------------------------------- /art/show3D_demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/art/show3D_demo.gif -------------------------------------------------------------------------------- /easyshow3d/libs/jpct_ae.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/easyshow3d/libs/jpct_ae.jar -------------------------------------------------------------------------------- /apk/Show3D-v1.6.1.170915.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/apk/Show3D-v1.6.1.170915.apk -------------------------------------------------------------------------------- /art/show3D_download_code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/art/show3D_download_code.png -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/drawable/ic_delete.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-hdpi/ic_delete.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-hdpi/ic_file.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_folder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-hdpi/ic_folder.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_file_ds.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-hdpi/ic_file_ds.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_file_obj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-hdpi/ic_file_obj.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_file_stl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-hdpi/ic_file_stl.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_arrow_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-hdpi/ic_arrow_left.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_file_model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-hdpi/ic_file_model.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_model_zoom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-hdpi/ic_model_zoom.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_model_turn_x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-hdpi/ic_model_turn_x.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_model_turn_y.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-hdpi/ic_model_turn_y.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_model_turn_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-hdpi/ic_model_turn_left.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_model_turn_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-hdpi/ic_model_turn_right.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/abc_ic_ab_back_mtrl_am_alpha.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gytai/EasyShow3D/master/app/src/main/res/mipmap-hdpi/abc_ic_ab_back_mtrl_am_alpha.png -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /easyshow3d/src/main/java/com/dyman/easyshow3d/EasyShowGlobal.java: -------------------------------------------------------------------------------- 1 | package com.dyman.easyshow3d; 2 | 3 | /** 4 | * Created by dyman on 2017/9/13. 5 | */ 6 | 7 | public class EasyShowGlobal { 8 | } 9 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | easyshow3d/src/main/java/com/dyman/easyshow3d/bean/ObjProObject.java 10 | -------------------------------------------------------------------------------- /app/src/main/java/com/dyman/show3dmodel/view/MyDialog.java: -------------------------------------------------------------------------------- 1 | package com.dyman.show3dmodel.view; 2 | 3 | import android.app.ProgressDialog; 4 | import android.content.Context; 5 | 6 | /** 7 | * Created by dyman on 2017/9/14. 8 | */ 9 | 10 | public class MyDialog { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Oct 26 21:35:21 CST 2016 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 15dp 7 | 8 | -------------------------------------------------------------------------------- /easyshow3d/src/main/assets/easy_show_frag.sh: -------------------------------------------------------------------------------- 1 | precision mediump float; 2 | //接收从顶点着色器过来的参数 3 | varying vec4 ambient; 4 | varying vec4 diffuse; 5 | varying vec4 specular; 6 | void main() 7 | { 8 | //将计算出的颜色给此片元 9 | vec4 finalColor=vec4(0.9,0.9,0.9,1.0); 10 | gl_FragColor = finalColor*ambient+finalColor*specular+finalColor*diffuse;//给此片元颜色值 11 | } -------------------------------------------------------------------------------- /easyshow3d/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/java/com/dyman/show3dmodel/adapter/listener/OnAdapterItemListener.java: -------------------------------------------------------------------------------- 1 | package com.dyman.show3dmodel.adapter.listener; 2 | 3 | import android.view.View; 4 | 5 | /** 6 | * Created by dyman on 16/7/24. 7 | */ 8 | public interface OnAdapterItemListener { 9 | /** 10 | * item的layout的点击事件 11 | */ 12 | void onItemClick(View v, int position); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /app/src/main/java/com/dyman/show3dmodel/adapter/BaseSwipListAdapter.java: -------------------------------------------------------------------------------- 1 | package com.dyman.show3dmodel.adapter; 2 | 3 | import android.widget.BaseAdapter; 4 | 5 | /** 6 | * Created by dyman on 16/8/20. 7 | */ 8 | public abstract class BaseSwipListAdapter extends BaseAdapter { 9 | public boolean getSwipEnableByPosition(int position) { 10 | return true; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | -------------------------------------------------------------------------------- /easyshow3d/src/main/java/com/dyman/easyshow3d/thread/IAnalysisFinishCallback.java: -------------------------------------------------------------------------------- 1 | package com.dyman.easyshow3d.thread; 2 | 3 | /** 4 | * Created by dyman on 18/5/17. 5 | */ 6 | 7 | public interface IAnalysisFinishCallback { 8 | void verticeProgressUpdate(int threadID, int nums); 9 | void faceProgressUpdate(int threadID, int nums); 10 | void alvFinish(); 11 | void alvFaceFinish(); 12 | } -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_round_down_white.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/bg_round_up_green_dark.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | 10 | -------------------------------------------------------------------------------- /easyshow3d/src/main/assets/easy_show_frag_color.sh: -------------------------------------------------------------------------------- 1 | precision mediump float; 2 | uniform vec4 aColor; 3 | varying vec4 ambient; //从顶点着色器传递过来的环境光最终强度 4 | varying vec4 diffuse; //从顶点着色器传递过来的散射光最终强度 5 | varying vec4 specular; //从顶点着色器传递过来的镜面光最终强度 6 | void main() { 7 | vec4 finalColor=aColor; //物体本身的颜色 8 | //综合三个通道光的最终强度及片元的颜色计算出最终片元的颜色并传递给管线 9 | gl_FragColor = finalColor*ambient+finalColor*specular+finalColor*diffuse; 10 | } -------------------------------------------------------------------------------- /easyshow3d/src/main/assets/easy_show_frag_clipplane.sh: -------------------------------------------------------------------------------- 1 | precision mediump float; 2 | //接收从顶点着色器过来的参数 3 | varying vec4 ambient; 4 | varying vec4 diffuse; 5 | varying vec4 specular; 6 | varying float u_clipDist; 7 | void main() 8 | { 9 | if(u_clipDist < 0.0) discard; 10 | 11 | //将计算出的颜色给此片元 12 | vec4 finalColor=vec4(0.95,0.95,0.95,1.0); 13 | gl_FragColor = finalColor*ambient+finalColor*specular+finalColor*diffuse;//给此片元颜色值 14 | } -------------------------------------------------------------------------------- /easyshow3d/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | EasyShow3D 3 | 4 | 请等一会. 5 | STL 文件加载中... 6 | STL 文件解析失败. 7 | 文件过大,解析失败! 8 | 关闭对话框 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 11 | 12 | -------------------------------------------------------------------------------- /easyshow3d/src/main/java/com/dyman/easyshow3d/imp/ModelLoaderListener.java: -------------------------------------------------------------------------------- 1 | package com.dyman.easyshow3d.imp; 2 | 3 | import com.dyman.easyshow3d.bean.ModelObject; 4 | 5 | /** 6 | * Created by dyman on 2017/9/13. 7 | */ 8 | 9 | public interface ModelLoaderListener { 10 | 11 | void loadBegin(); 12 | 13 | void loadedUpdate(float progress); 14 | 15 | void loadedFinish(ModelObject modelObject); 16 | 17 | void loaderCancel(); 18 | 19 | void loaderFailure(); 20 | } 21 | -------------------------------------------------------------------------------- /app/src/main/java/com/dyman/show3dmodel/config/IntentKey.java: -------------------------------------------------------------------------------- 1 | package com.dyman.show3dmodel.config; 2 | 3 | /** 4 | * Created by dyman on 16/8/19. 5 | */ 6 | public class IntentKey { 7 | 8 | public static String DIRECTORY_PATH = "directory_path"; 9 | public static String TITLE = "title"; 10 | public static String DIRECTORY_NAME = "directory_name"; 11 | public static String KEY_TYPE = "type"; 12 | public final static String DIRECTORY_KEY = "directory_key"; 13 | 14 | 15 | } 16 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_show_model.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 12 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /easyshow3d/src/test/java/com/dyman/easyshow3d/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.dyman.easyshow3d; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_draw_grid.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #26A69A 4 | #0E6961 5 | #4055D5 6 | 7 | #F5F5F5 8 | #EBEBEB 9 | #D0D0D0 10 | #B53030 11 | #0E6961 12 | #E0E0E0 13 | #404040 14 | 15 | 16 | 17 | #707070 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/java/com/dyman/show3dmodel/bean/FolderBean.java: -------------------------------------------------------------------------------- 1 | package com.dyman.show3dmodel.bean; 2 | 3 | /** 4 | * Created by dyman on 16/8/19. 5 | */ 6 | public class FolderBean { 7 | 8 | 9 | private String folderName; 10 | private String folderPath; 11 | 12 | 13 | public String getFolderName() { 14 | return folderName; 15 | } 16 | 17 | public void setFolderName(String folderName) { 18 | this.folderName = folderName; 19 | } 20 | 21 | public String getFolderPath() { 22 | return folderPath; 23 | } 24 | 25 | public void setFolderPath(String folderPath) { 26 | this.folderPath = folderPath; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/dyman/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /easyshow3d/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/dyman/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 19 | 20 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true -------------------------------------------------------------------------------- /easyshow3d/src/androidTest/java/com/dyman/easyshow3d/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.dyman.easyshow3d; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.dyman.easyshow3d.test", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/res/layout/item_frequent_folder.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | 17 | 21 | -------------------------------------------------------------------------------- /app/src/main/java/com/dyman/show3dmodel/config/MyConfig.java: -------------------------------------------------------------------------------- 1 | package com.dyman.show3dmodel.config; 2 | 3 | import android.os.Environment; 4 | 5 | import java.io.File; 6 | 7 | /** 8 | * Created by dyman on 16/8/21. 9 | */ 10 | public class MyConfig { 11 | 12 | public final static int POST_DELAYED_TIME = 200; 13 | 14 | /** 15 | * 常用文件目录 16 | */ 17 | public static final String rootPath = Environment.getExternalStorageDirectory().getAbsolutePath(); 18 | /** QQ文件目录 */ 19 | public static final String QQFilePath = rootPath+ File.separator+"tencent"+File.separator+"QQfile_recv"; 20 | /** 系统下载目录 */ 21 | public static final String SystemDownloadPath = rootPath+File.separator+"Download"; 22 | /** WPS文件目录 */ 23 | public static final String WPSFilePath = rootPath+File.separator+"documents"; 24 | /** 微信文件目录 */ 25 | public static final String WXFilePath = rootPath+File.separator+"tencent"+File.separator+"MicroMsg"+File.separator+"Download"; 26 | 27 | } 28 | -------------------------------------------------------------------------------- /easyshow3d/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 26 5 | buildToolsVersion "26.0.1" 6 | 7 | defaultConfig { 8 | minSdkVersion 16 9 | targetSdkVersion 19 10 | versionCode 2 11 | versionName "1.2" 12 | 13 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 14 | 15 | } 16 | buildTypes { 17 | release { 18 | minifyEnabled false 19 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 20 | } 21 | } 22 | } 23 | 24 | dependencies { 25 | compile fileTree(dir: 'libs', include: ['*.jar']) 26 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 27 | exclude group: 'com.android.support', module: 'support-annotations' 28 | }) 29 | compile 'com.android.support:appcompat-v7:26.0.0-alpha1' 30 | testCompile 'junit:junit:4.12' 31 | compile files('libs/jpct_ae.jar') 32 | } 33 | -------------------------------------------------------------------------------- /app/src/main/res/layout/item_directory_level.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 18 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 | 20 | 21 |