rubygarage / emotion-rating-view Goto Github PK
View Code? Open in Web Editor NEWA library for animated rating view in Android apps.
Home Page: https://rubygarage.org/
License: Apache License 2.0
A library for animated rating view in Android apps.
Home Page: https://rubygarage.org/
License: Apache License 2.0
I'm getting the following error when adding dependency to my android project -
Android resource linking failed
Output: C:\Users\visnu\.gradle\caches\transforms-1\files-1.1\emotion-rating-view-v1.0.0.aar\e4624de86bb1fa7782728d45f1710255\res\drawable\background_rating_view.xml:6: error: resource color/colorTranslucentBlack (aka com.techbuddy.restoredeletemessage:color/colorTranslucentBlack) not found.
error: failed linking file resources.
Command: C:\Users\visnu\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\420016b2727a882e97ba673985b11576\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
D:\sdk\platforms\android-27\android.jar\
--manifest\
D:\AndroidProjects\RestoreDeletedMessage\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
D:\AndroidProjects\RestoreDeletedMessage\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
@D:\AndroidProjects\RestoreDeletedMessage\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
D:\AndroidProjects\RestoreDeletedMessage\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r\
--custom-package\
com.techbuddy.restoredeletemessage\
-0\
apk\
--output-text-symbols\
D:\AndroidProjects\RestoreDeletedMessage\app\build\intermediates\symbols\debug\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0
Here is my built.gradle for Project -
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
maven {
url 'https://maven.fabric.io/public'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.1.0'
classpath 'io.fabric.tools:gradle:1.26.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
maven { url 'https://maven.google.com/' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
here is my built.gradle for module -
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
apply plugin: 'io.fabric'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.techbuddy.restoredeletemessage"
minSdkVersion 19
targetSdkVersion 27
versionCode 9
versionName "9.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.mikhaellopez:circularimageview:3.0.2'
implementation 'com.jsibbold:zoomage:1.1.0'
implementation 'com.github.rubygarage:emotion-rating-view:v1.0.0'
implementation 'com.github.bumptech.glide:glide:4.8.0'
implementation 'com.google.firebase:firebase-ads:15.0.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
implementation 'com.android.support:support-vector-drawable:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
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 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.7'
}
Please Help me to resolve this issue asap.
I try to implement library in my project with Java and I faced a problem:
What to write in parentheses mRatingView.setRatingChangeListener();
? I can't text just a parameters previousRating
and newRating
like in Kotlin:
ratingView.setRatingChangeListener { previousRating, newRating ->
emotionView.setRating(previousRating, newRating)
gradientBackgroundView.changeBackground(previousRating, newRating)
}
Hi,
It looks great. I want to use GradientBackgroundView in CardView. Can you show how to achieve that? I have tried following:
But it does not work.
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="160dp">
<com.dm.emotionrating.library.GradientBackgroundView
android:id="@+id/gradientBackgroundView"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingBottom="@dimen/activity_vertical_margin">
<TextView
android:id="@+id/group_name_tv"
style="@style/TextAppearance.AppCompat.Headline"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
tools:text="Group A" />
</LinearLayout>
</android.support.v7.widget.CardView>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.