skip to Main Content

Android Studio – Lottie Animation is not working and Lottie callback Listener not called in Android

I'm working on Lottie animation in android but Lottie animation callback function is not called. XML file: <com.airbnb.lottie.LottieAnimationView android:layout_width="@dimen/margin_15" android:layout_height="@dimen/margin_15" android:id="@+id/lav_LikeAnim" app:lottie_autoPlay="true" app:lottie_fileName="handshake_lottie.json" app:lottie_loop="false" android:visibility="gone" android:scaleX="2" android:scaleY="2" android:layout_gravity="center" /> Code: After response of liked: try { likeLottieAnim.playAnimation(); likeLottieAnim.setVisibility(View.VISIBLE); iv_like.setVisibility(View.GONE); tv_likes_count.setVisibility(View.GONE);…

VIEW QUESTION

How to add "read more" in richtext()? – Flutter

i want to make richtext that has "read more" button like this image richtext() made bold text, and then there is a "baca selengkapnya" means "read more" my code bellow: import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; import 'package:readmore/readmore.dart'; class BoldAsteris extends StatelessWidget…

VIEW QUESTION

how to convert the string to JSON?

private IBeaconListener createIBeaconListener() { return new SimpleIBeaconListener() { @Override public void onIBeaconDiscovered(IBeaconDevice ibeacon, IBeaconRegion region) { Gson gson = new Gson(); String json = gson.toJson(ibeacon); Gson gson2 = new Gson(); String deviceId = "{deviceId : 67814f71b5bdb4d3}"; String json2 = gson2.toJson(obj);…

VIEW QUESTION

Kotlin (MainActivity.kt) – Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type FlutterEngine?

e: C:flutterPOCcontactsandroidappsrcmainkotlincomexamplecontactsMainActivity.kt: (98, 58): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type FlutterEngine? FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:compileDebugKotlin'. A failure occurred while executing…

VIEW QUESTION
Back To Top
Search