Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀

faskN furkanaskin

🚀
View GitHub Profile
View build.gradle(app)
dependencies {
//
implementation 'com.google.android.material:material:1.0.0'
//
}
View build.gradle(proje)
dependencies {
//
classpath 'com.android.tools.build:gradle:3.2.1'
//
}
View Styles.xml
<resources>
<style name="Theme.Myapp" parent="Theme.MaterialComponents.Light">
<!-- ... -->
</style>
</resources>
View activity_main.xml
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
android:background="@android:color/white">
<com.google.android.material.textfield.TextInputLayout
View activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<com.google.android.material.bottomappbar.BottomAppBar
View activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<com.google.android.material.bottomappbar.BottomAppBar
View build.gradle(app)
dependencies {
//
implementation 'com.airbnb.android:lottie:2.8.0'
//
}
View fragment_splash.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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="match_parent"
tools:context=".fragments.SplashFragment">
<com.airbnb.lottie.LottieAnimationView
android:id="@+id/av_splash_animation"
View SplashFragment.kt
//..
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
av_splash_animation.setAnimation("preloader.json")
av_splash_animation.playAnimation()
}
//..
View build.gradle(app)
dependencies {
//
implementation 'androidx.slice:slice-builders:1.0.0'
implementation 'androidx.annotation:annotation:1.0.0'
//
}