diff --git a/app/build.gradle b/app/build.gradle index 8d1cb48..64f1a0e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -19,10 +19,19 @@ android { } dependencies { - implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.1.3' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' + implementation project(':library') + + // https://muyangmin.github.io/glide-docs-cn/ + implementation ("com.github.bumptech.glide:glide:4.8.0") { + exclude group: "com.android.support" + } + + implementation 'com.jakewharton:butterknife:8.8.1' + annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1' } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index e2f76b4..efea391 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,6 +1,7 @@ + parent, View view, int position, long id) { + switch (parent.getId()) { + case R.id.spinnerType: + initImg(position); + break; + case R.id.spinnerMode: + circle6.setStyleType(imgMode[position]); + circle6.invalidate(); + break; + default: + } + } + + @Override + public void onNothingSelected(AdapterView parent) { + } -} +} \ No newline at end of file diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 84f1951..e4a157c 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -1,18 +1,115 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + android:layout_marginTop="10dp" + android:text="原图" /> + + + - \ No newline at end of file + \ No newline at end of file diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml new file mode 100644 index 0000000..0ee779c --- /dev/null +++ b/app/src/main/res/values/arrays.xml @@ -0,0 +1,17 @@ + + + + 普通 + 宽度大高度小 + 宽度小高度大 + Gif + 小图 + + + + TOP + CENTER + BOTTOM + FITXY + + \ No newline at end of file