Skip to content

Instantly share code, notes, and snippets.

package br.com.luizgadao.mysamplesincompose.test
import android.util.Log
import androidx.compose.animation.core.FastOutSlowInEasing
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.StartOffset
import androidx.compose.animation.core.VectorConverter
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.animateValue
import androidx.compose.animation.core.infiniteRepeatable
@LuizGadao
LuizGadao / movies.json
Created March 13, 2024 19:14
movies list
{
"movies": [
{
"id": 1,
"title": "Avatar",
"image": "https://github.com/alura-cursos/movie-api/blob/main/images/avatar.jpg?raw=true",
"synopsis": "Um militar paraplégico despachado para a lua Pandora em uma missão única fica dividido entre seguir suas ordens e proteger o mundo que ele sente ser sua casa.",
"rate": 7.9,
"releaseDate": "18/12/2009"
},
{
"contacts": [
{
"id": 1,
"email": "michael.lawson@reqres.in",
"first_name": "Luiz",
"last_name": "Anjos",
"avatar": "https://reqres.in/img/faces/7-image.jpg"
},
{
@LuizGadao
LuizGadao / MainActivity.java
Created October 25, 2016 13:19
webview Vivo - Vivi
package br.com.luizgadao.webviewvivi;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
public class MainActivity extends AppCompatActivity {
@Override
@LuizGadao
LuizGadao / MainActivity.java
Created October 25, 2016 13:16
webview for Vivo Vivi
package br.com.luizgadao.webviewvivi;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
public class MainActivity extends AppCompatActivity {
@Override
@LuizGadao
LuizGadao / MainActivity.java
Created July 20, 2016 17:53
Android get telephone IMSI code. Add permission "android.permission.READ_PHONE_STATE"
package br.com.luizgadao.pocimsi;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.telephony.TelephonyManager;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
@Override
@LuizGadao
LuizGadao / MainActivityFragment.java
Last active December 19, 2015 22:32
Android framgemt with imageview animate with resource animation.
package br.com.luizgadao.animation;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;
@LuizGadao
LuizGadao / translate.xml
Created December 19, 2015 22:04
android translate animation
<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:toXDelta="50"
android:fromXDelta="0"
android:toYDelta="0"
android:fromYDelta="0"
android:duration="2000"/>
@LuizGadao
LuizGadao / scale.xml
Created December 19, 2015 21:56
android scale animation
<?xml version="1.0" encoding="utf-8"?>
<scale xmlns:android="http://schemas.android.com/apk/res/android"
android:toXScale="1.5"
android:fromXScale="1.0"
android:toYScale="1.5"
android:fromYScale="1.0"
android:pivotY="50%"
android:pivotX="50%"
android:duration="2000"
/>
@LuizGadao
LuizGadao / rotate.xml
Created December 19, 2015 21:47
android animation rotate
<?xml version="1.0" encoding="utf-8"?>
<rotate
xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="0"
android:toDegrees="360"
android:pivotX="50%"
android:pivotY="50%"
android:duration="2000"
android:repeatMode="reverse"
android:repeatCount="2"/>