diff --git a/app/build.gradle b/app/build.gradle
index 075992a..4349f3c 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -22,10 +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'
}
diff --git a/app/src/main/java/com/moxun/tagcloud/MainActivity.java b/app/src/main/java/com/moxun/tagcloud/MainActivity.java
index 2c353d2..c51ff54 100644
--- a/app/src/main/java/com/moxun/tagcloud/MainActivity.java
+++ b/app/src/main/java/com/moxun/tagcloud/MainActivity.java
@@ -3,7 +3,6 @@
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
-import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
diff --git a/app/src/main/java/com/moxun/tagcloud/TextTagsAdapter.java b/app/src/main/java/com/moxun/tagcloud/TextTagsAdapter.java
index 8d4d217..1f5e4e3 100644
--- a/app/src/main/java/com/moxun/tagcloud/TextTagsAdapter.java
+++ b/app/src/main/java/com/moxun/tagcloud/TextTagsAdapter.java
@@ -1,6 +1,7 @@
package com.moxun.tagcloud;
import android.content.Context;
+import android.graphics.Color;
import android.support.annotation.NonNull;
import android.util.Log;
import android.view.Gravity;
@@ -44,6 +45,7 @@ public void onClick(View v) {
Toast.makeText(context, "Tag " + position + " clicked", Toast.LENGTH_SHORT).show();
}
});
+ tv.setTextColor(Color.WHITE);
return tv;
}
@@ -59,6 +61,6 @@ public int getPopularity(int position) {
@Override
public void onThemeColorChanged(View view, int themeColor) {
- ((TextView) view).setTextColor(themeColor);
+ view.setBackgroundColor(themeColor);
}
}
\ 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 0445bf4..d96e5f9 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -1,69 +1,66 @@
-
+ android:layout_height="wrap_content"
+ android:gravity="center"
+ android:orientation="vertical">
-
+ android:layout_height="20dp"
+ android:orientation="horizontal">
-
+
-
-
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 5885930..0eb88fe 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -1,7 +1,7 @@
-