Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Commit

Permalink
update: run on android 12
Browse files Browse the repository at this point in the history
  • Loading branch information
amirisback committed Mar 15, 2022
1 parent 5828ea5 commit 8f79ff2
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 12 deletions.
29 changes: 25 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,35 @@
*.iml
/.gradle
.gradle
.idea
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
build
/build
/captures
.externalNativeBuild
.cxx

built application files
*.apk
*.aab

files for the dex VM
*.dex

Java class files
*.class

generated files
bin/
gen/
.externalNativeBuild/

Local configuration file (sdk path, etc)
local.properties
app/version.properties

# SonarQube
.sonar/
10 changes: 6 additions & 4 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="kotlin.render.demo" >
package="kotlin.render.demo">

<application
android:allowBackup="true"
android:fullBackupContent="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning"
android:fullBackupContent="true">
<activity android:name="android.render.demo.MainActivity" >
tools:ignore="GoogleAppIndexingWarning">
<activity
android:name="android.render.demo.MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/android/render/demo/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class MainActivity : AppCompatActivity() {
val textView: TextView = findViewById(R.id.TextView)

val render = Render(this)
render.setAnimation(Bounce().InDown(textView))
render.setDuration(2000)
render.setAnimation(Bounce().In(textView))
render.setDuration(50000)
render.start()
}
}
1 change: 0 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
<resources>
<string name="app_name">Kotlin Render Animations</string>
</resources>
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ dependencyResolutionManagement {
}
}

rootProject.name = "Kotlin Render Animations"
rootProject.name = "FrogoAnimation"
include(":app", ":library")

0 comments on commit 8f79ff2

Please sign in to comment.