Permalink
Browse files

fix #13

  • Loading branch information...
misakuo committed Oct 18, 2016
1 parent fa74213 commit 2a862c3eb0feda7b1565288d46a72c8224e44f6f
View

This file was deleted.

Oops, something went wrong.
View
@@ -12,13 +12,7 @@
<option value="$PROJECT_DIR$/tagcloudlib" />
</set>
</option>
<option name="myModules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
<option value="$PROJECT_DIR$/tagcloudlib" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
</GradleProjectSettings>
</option>
</component>
View
@@ -22,11 +22,11 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
//compile project(path: ':tagcloudlib')
compile project(path: ':tagcloudlib')
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.android.support:design:23.2.1'
compile 'com.android.support:support-vector-drawable:23.2.0'
compile 'com.android.support:animated-vector-drawable:23.2.0'
compile 'com.android.support:support-v4:23.2.1'
compile 'com.moxun:tagcloudlib:1.2.0'
//compile 'com.moxun:tagcloudlib:1.2.0'
}
@@ -3,7 +3,6 @@
import android.content.Context;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.drawable.VectorDrawable;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
@@ -42,6 +41,9 @@ public void onThemeColorChanged(View view, int themeColor) {
ImageView imageView = (ImageView) view.findViewById(R.id.vector_img);
PorterDuffColorFilter porterDuffColorFilter = new PorterDuffColorFilter(themeColor,
PorterDuff.Mode.SRC_ATOP);
if (imageView == null) {
return;
}
imageView.getDrawable().setColorFilter(porterDuffColorFilter);
}
}
@@ -2,17 +2,17 @@
/**
* Copyright © 2016 moxun
*
* <p>
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the “Software”),
* to deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* <p>
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* <p>
* THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.

0 comments on commit 2a862c3

Please sign in to comment.