This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Created by Saurabh(aqua) in 2017. | |
| */ | |
| public class ParallaxActivity extends BaseActivity { | |
| /* view binding */ | |
| @BindView(R.id.scrollView)ScrollView scrollView; | |
| @BindView(R.id.parallax_image)ImageView parallaxImage; | |
| @BindView(R.id.tv_perhour)TextView textView; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Created by Saurabh(aqua) in 2017. | |
| */ | |
| public class ScrollActivity extends BaseActivity { | |
| /* view binding */ | |
| @BindView(R.id.scrollView)ScrollView scrollView; | |
| @BindView(R.id.parallax_image)ImageView parallaxImage; | |
| @BindView(R.id.tv_perhour)TextView textView; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Created by Saurabh(aqua) in 2017. | |
| */ | |
| public class RecyclerParallaxActivity extends BaseActivity { | |
| /* view binding */ | |
| @BindView(R.id.recycler_view)RecyclerView recyclerView; | |
| @BindView(R.id.parallax_image)ImageView parallaxImage; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Created by Saurabh(aqua) in 2017. | |
| */ | |
| public class HideShowRecyclerParallaxActivity extends BaseActivity { | |
| /* view binding */ | |
| @BindView(R.id.recycler_view)RecyclerView recyclerView; | |
| @BindView(R.id.parallax_image)ImageView parallaxImage; | |
| @BindView(R.id.tv_heading)AppTextView heading; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package test; | |
| import android.arch.lifecycle.LiveData; | |
| import android.content.BroadcastReceiver; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.content.IntentFilter; | |
| import android.net.ConnectivityManager; | |
| import android.net.NetworkInfo; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Created by Saurabh(aqua) on 21-03-2017. | |
| */ | |
| public abstract class BaseActivity extends AppCompatActivity implements LifecycleRegistryOwner { | |
| private LifecycleRegistry lifecycleRegistry = new LifecycleRegistry(this); | |
| private Unbinder unbinder; | |
| @Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.aqua30.learningproject | |
| import android.content.Context | |
| import android.util.AttributeSet | |
| import android.util.Log | |
| import android.view.View | |
| import android.view.View.MeasureSpec | |
| import androidx.viewpager.widget.ViewPager | |
| class AdjustingViewPager: ViewPager { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val ktor_version: String by project | |
| val kotlin_version: String by project | |
| val logback_version: String by project | |
| plugins { | |
| application | |
| kotlin("jvm") version "1.5.31" | |
| id("org.jetbrains.kotlin.plugin.serialization") version "1.5.31" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fun main(args: Array<String>): Unit = | |
| io.ktor.server.netty.EngineMain.main(args) | |
| @Suppress("unused") // application.conf references the main function. This annotation prevents the IDE from marking it as unused. | |
| fun Application.module() { | |
| configureSerialization() | |
| configureMonitoring() | |
| registerDogsRoute() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ktor { | |
| deployment { | |
| port = 8080 | |
| port = ${?PORT} | |
| } | |
| application { | |
| modules = [ com.aqua30.ApplicationKt.module ] | |
| } | |
| } |
OlderNewer