diff --git a/LemonKit4Android-old/.gitignore b/LemonKit4Android-old/.gitignore deleted file mode 100644 index c6cbe56..0000000 --- a/LemonKit4Android-old/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -*.iml -.gradle -/local.properties -/.idea/workspace.xml -/.idea/libraries -.DS_Store -/build -/captures diff --git a/LemonKit4Android-old/.idea/compiler.xml b/LemonKit4Android-old/.idea/compiler.xml deleted file mode 100644 index 96cc43e..0000000 --- a/LemonKit4Android-old/.idea/compiler.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/LemonKit4Android-old/.idea/copyright/profiles_settings.xml b/LemonKit4Android-old/.idea/copyright/profiles_settings.xml deleted file mode 100644 index e7bedf3..0000000 --- a/LemonKit4Android-old/.idea/copyright/profiles_settings.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/LemonKit4Android-old/.idea/gradle.xml b/LemonKit4Android-old/.idea/gradle.xml deleted file mode 100644 index 3d2fe0a..0000000 --- a/LemonKit4Android-old/.idea/gradle.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/LemonKit4Android-old/.idea/modules.xml b/LemonKit4Android-old/.idea/modules.xml deleted file mode 100644 index 1c37742..0000000 --- a/LemonKit4Android-old/.idea/modules.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/LemonKit4Android-old/.idea/runConfigurations.xml b/LemonKit4Android-old/.idea/runConfigurations.xml deleted file mode 100644 index 7f68460..0000000 --- a/LemonKit4Android-old/.idea/runConfigurations.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/LemonKit4Android-old/.idea/vcs.xml b/LemonKit4Android-old/.idea/vcs.xml deleted file mode 100644 index 6c0b863..0000000 --- a/LemonKit4Android-old/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/LemonKit4Android-old/app/.gitignore b/LemonKit4Android-old/app/.gitignore deleted file mode 100644 index 796b96d..0000000 --- a/LemonKit4Android-old/app/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build diff --git a/LemonKit4Android-old/app/build.gradle b/LemonKit4Android-old/app/build.gradle deleted file mode 100644 index 42299c8..0000000 --- a/LemonKit4Android-old/app/build.gradle +++ /dev/null @@ -1,31 +0,0 @@ -apply plugin: 'com.android.application' - -android { - compileSdkVersion 24 - buildToolsVersion '24.0.2' - - defaultConfig { - applicationId "net.lemonsoft.lemonkit4android" - minSdkVersion 15 - targetSdkVersion 24 - versionCode 1 - versionName "1.0" - } - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - } - } - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_7 - targetCompatibility JavaVersion.VERSION_1_7 - } -} - -dependencies { - compile fileTree(include: ['*.jar'], dir: 'libs') - testCompile 'junit:junit:4.12' - compile 'com.android.support:appcompat-v7:24.1.1' - compile project(':lemonkit') -} diff --git a/LemonKit4Android-old/app/proguard-rules.pro b/LemonKit4Android-old/app/proguard-rules.pro deleted file mode 100644 index 165d1df..0000000 --- a/LemonKit4Android-old/app/proguard-rules.pro +++ /dev/null @@ -1,17 +0,0 @@ -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in /Users/LiuRi/Library/Android/sdk/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the proguardFiles -# directive in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# Add any project specific keep options here: - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} diff --git a/LemonKit4Android-old/app/src/androidTest/java/net/lemonsoft/lemonkit4android/ApplicationTest.java b/LemonKit4Android-old/app/src/androidTest/java/net/lemonsoft/lemonkit4android/ApplicationTest.java deleted file mode 100644 index 547beb1..0000000 --- a/LemonKit4Android-old/app/src/androidTest/java/net/lemonsoft/lemonkit4android/ApplicationTest.java +++ /dev/null @@ -1,13 +0,0 @@ -package net.lemonsoft.lemonkit4android; - -import android.app.Application; -import android.test.ApplicationTestCase; - -/** - * Testing Fundamentals - */ -public class ApplicationTest extends ApplicationTestCase { - public ApplicationTest() { - super(Application.class); - } -} \ No newline at end of file diff --git a/LemonKit4Android-old/app/src/main/AndroidManifest.xml b/LemonKit4Android-old/app/src/main/AndroidManifest.xml deleted file mode 100644 index 820e4fe..0000000 --- a/LemonKit4Android-old/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/LemonKit4Android-old/app/src/main/java/net/lemonsoft/lemonkit4android/example/LKNet/LKNet.java b/LemonKit4Android-old/app/src/main/java/net/lemonsoft/lemonkit4android/example/LKNet/LKNet.java deleted file mode 100644 index 105dcab..0000000 --- a/LemonKit4Android-old/app/src/main/java/net/lemonsoft/lemonkit4android/example/LKNet/LKNet.java +++ /dev/null @@ -1,46 +0,0 @@ -package net.lemonsoft.lemonkit4android.example.LKNet; - -import android.graphics.Bitmap; - -import net.lemonsoft.lemonkit.delegate.NetUtilResultDelegate; -import net.lemonsoft.lemonkit.util.ByteUtil; -import net.lemonsoft.lemonkit.util.NetUtil; - -import java.util.ArrayList; -import java.util.HashMap; - -/** - * Created by 1em0nsOft on 2016/9/18. - */ -public class LKNet { - -// /** -// * 上传文件 -// * -// * @param url 要上传文件的url -// * @param params 携带的键值对参数 -// * @param type 上传文件的统一类型 -// * @param token 上传时候的accessToken -// * @param bitmaps 上传人的图片list -// * @param delegate 请求处理代理 -// */ -// public static void aUploadFiles(String url, HashMap params, String type, String token, -// ArrayList bitmaps, NetUtilResultDelegate delegate) { -// try { -// HashMap data = new HashMap<>(); -// for (int i = 0; i < bitmaps.size(); i++) { -// String key = String.format("dlfc_%s_%d", token, i); -// byte[] bitmapByteArr = ByteUtil.bitmapToByteArray(bitmaps.get(i)); -// data.put(String.format("%s_%d", -// EncodeUtil.byteArrayToHexString( -// EncodeUtil.encodeHmacMD5(bitmapByteArr, key) -// ).toUpperCase() -// , i), bitmapByteArr); -// } -// NetUtil.aPost(url, params, type, data, delegate); -// } catch (Exception e) { -// e.printStackTrace(); -// } -// } - -} diff --git a/LemonKit4Android-old/app/src/main/java/net/lemonsoft/lemonkit4android/example/MainActivity.java b/LemonKit4Android-old/app/src/main/java/net/lemonsoft/lemonkit4android/example/MainActivity.java deleted file mode 100644 index 1c87f56..0000000 --- a/LemonKit4Android-old/app/src/main/java/net/lemonsoft/lemonkit4android/example/MainActivity.java +++ /dev/null @@ -1,56 +0,0 @@ -package net.lemonsoft.lemonkit4android.example; - -import android.app.Activity; -import android.graphics.BitmapFactory; -import android.graphics.Color; -import android.os.Bundle; -import android.view.View; -import android.widget.Button; -import android.widget.ImageView; - -import net.lemonsoft.lemonkit.ui.core.LKUIWindow; -import net.lemonsoft.lemonkit.ui.tip.LKActionSheet.LKActionItem; -import net.lemonsoft.lemonkit.ui.tip.LKActionSheet.LKActionSheetView; -import net.lemonsoft.lemonkit.util.SizeUtil; -import net.lemonsoft.lemonkit4android.R; - -public class MainActivity extends Activity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - final Button button = (Button) findViewById(R.id.showLKNotification); - final ImageView imageView = (ImageView) findViewById(R.id.tempImageView); - imageView.setImageBitmap(BitmapFactory.decodeResource(getResources(), R.mipmap.icon)); - button.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View view) { -// LKNotification.setDefault_icon(getApplicationContext(), R.mipmap.icon); -// LKNotification.create(MainActivity.this, "这是一个LKNotification", "这是一个LKNotification的通知。正在进行测试显示。这个控件还有对应的iOS版本哦!") -// .show(new LKNotificationStateChangeAdapter() { -// @Override -// public void onHideComplete() { -// super.onHideComplete(); -// System.out.println("HIDE@@@@@@@@@@@@@@@@@@@@@ "); -// } -// }); - final LKActionSheetView as = new LKActionSheetView(MainActivity.this); - as.setHeadViewHeight(SizeUtil.dipToPx(getApplicationContext(), 40)); - as.clear(); - as.setTitle("这是一个LKActionSheet视图,还有iOS版本呢!"); - as.addActionGroup(); - as.addAction(new LKActionItem(getApplicationContext(), "取消", Color.RED, new LKActionItem.OnItemTouchDelegate() { - @Override - public void onItemTouchAction() { - as.hide(); - } - }), 0); - as.addAction(new LKActionItem(getApplicationContext(), "哈哈"), 1); - as.addAction(new LKActionItem(getApplicationContext(), "哈哈哈"), 1); - as.show(); - } - }); - } - -} diff --git a/LemonKit4Android-old/app/src/main/java/net/lemonsoft/lemonkit4android/example/TableViewTestActivity.java b/LemonKit4Android-old/app/src/main/java/net/lemonsoft/lemonkit4android/example/TableViewTestActivity.java deleted file mode 100644 index 6e9bc3c..0000000 --- a/LemonKit4Android-old/app/src/main/java/net/lemonsoft/lemonkit4android/example/TableViewTestActivity.java +++ /dev/null @@ -1,70 +0,0 @@ -package net.lemonsoft.lemonkit4android.example; - -import android.app.Activity; -import android.graphics.Canvas; -import android.graphics.Color; -import android.os.Bundle; -import android.widget.RelativeLayout; - -import net.lemonsoft.lemonkit.adapter.LKUITableView.LKUITableViewDataSourceAdapter; -import net.lemonsoft.lemonkit.adapter.LKUITableView.LKUITableViewDelegateAdapter; -import net.lemonsoft.lemonkit.model.LKIndexPath; -import net.lemonsoft.lemonkit.ui.core.LKUIRoot; -import net.lemonsoft.lemonkit.ui.view.baseView.LKUITableView; -import net.lemonsoft.lemonkit.ui.view.baseView.LKUITableViewCell; -import net.lemonsoft.lemonkit.ui.view.baseView.LKUIView; - -/** - * Created by lemonsoft on 16-9-27. - */ - -public class TableViewTestActivity extends LKUIRoot { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - RelativeLayout relativeLayout = new RelativeLayout(this); - relativeLayout.setX(0); - relativeLayout.setY(0); - RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT); - setContentView(relativeLayout, layoutParams); - - LKUITableView tableView = new LKUITableView(this); - tableView.setLayoutParams(layoutParams); - tableView.setLayoutParams(layoutParams); - relativeLayout.addView(tableView); - tableView.setBackgroundColor(Color.argb(255, 238, 238, 238)); - - tableView.delegate = new LKUITableViewDelegateAdapter() { - @Override - public void didSelectRowAtIndexPath(LKUITableView tableView, LKIndexPath indexPath) { - System.out.println("卧槽,被点急了:" + indexPath.section + " r : " + indexPath.row); - } - }; - - tableView.dataSource = new LKUITableViewDataSourceAdapter() { - @Override - public Integer numberOfRowsInSection(LKUITableView tableView, Integer section) { - return 30; - } - - @Override - public LKUITableViewCell cellForRowAtIndexPath(LKUITableView tableView, LKIndexPath indexPath) { - String identifier = String.format("%d_%d", indexPath.section, indexPath.row); - LKUITableViewCell cell = tableView.dequeueReusableCellWithIdentifier(identifier); - if (cell == null) {// 复用机制里面没有,新创建 - cell = new LKUITableViewCell(TableViewTestActivity.this , identifier); - cell.setBackgroundColor(Color.argb(255, (int) (Math.random() * 255.0), (int) (Math.random() * 255.0), (int) (Math.random() * 255.0))); - } - if (indexPath.row == 0) { - cell.removeAllViews(); -// cell.addView(view); - } - return cell; - } - }; - - - } -} diff --git a/LemonKit4Android-old/app/src/main/res/layout/activity_main.xml b/LemonKit4Android-old/app/src/main/res/layout/activity_main.xml deleted file mode 100644 index 0fc6acb..0000000 --- a/LemonKit4Android-old/app/src/main/res/layout/activity_main.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - -