Skip to content

Instantly share code, notes, and snippets.

View ShinichiroFunatsu's full-sized avatar

Shinichiro Funatsu ShinichiroFunatsu

  • Freelance Android Dev
  • Tokyo
View GitHub Profile
@ShinichiroFunatsu
ShinichiroFunatsu / file0.groovy
Last active October 29, 2018 15:29
[Android] How To Change "ActionBar" Title Text Color when applied "Theme.MaterialComponents.Light.DarkActionBar" to AppTheme ref: https://qiita.com/ShinichiroFunatsu/items/938e07d44b032fad7318
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.actionbartextcolor"
@ShinichiroFunatsu
ShinichiroFunatsu / file0.txt
Last active September 14, 2020 06:47
[Android] Using Koin in MVP-Repository Pattern for DI ref: https://qiita.com/ShinichiroFunatsu/items/67ed52b779dfb3c21e9e
// add a class inherited Application for setup koin
class MyApp: Application() {
override fun onCreate() {
super.onCreate()
}
}
// presentation layer
object GreetContract {
@ShinichiroFunatsu
ShinichiroFunatsu / image_text_via_cardview.xml
Created October 3, 2018 01:53
image_text_via_cardview
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<android.support.v7.widget.CardView
android:id="@+id/cardView"
xmlns:android="http://schemas.android.com/apk/res/android"