KWidget Sample

This is an example project of using KWidget on an android application.

What is KWidget?

Easy use form widget components with material design which contains from KEditText and KSpinner

Getting started

Support API Level

minsdk targetsdk

Setup

1. Add kredibel repository.

maven{url 'https://repo.repsy.io/mvn/kredibel/sdk'}

You can do this in two alternative ways.

  • Latest way(Gradle 7+) : Add repository in dependencyResolutionManagement in setting.gradle.

dependencyResolutionManagement {
    repositories {
        ...
        ...
        maven{url 'https://repo.repsy.io/mvn/kredibel/sdk'} // <—-- add this
    }
}
  • Old way : Add repository in build.gradle file at Project level.

allprojects {
    repositories {
       ...
       ...
       maven{url 'https://repo.repsy.io/mvn/kredibel/sdk'} // <—-- add this 
    }
}

2. Add this dependency to gradle script on app module.

dependencies {
    implementation 'io.kredibel:widget:0.0.2' // Please check latest version
}

How to Use

<io.kredibel.widget.KEditText
      android:hint="Ketik Nama disinih.."
      android:layout_width="200dp"
      android:layout_height="wrap_content"/>

<io.kredibel.widget.KSpinner
      android:layout_width="200dp"
      android:layout_height="wrap_content"
      android:entries="@array/platform"/>

Custom Color Hint

You can customize color by adding the following key to your color resource xml.

<?xml version="1.0" encoding="utf-8"?>
<resources>
  ...
  ...
  <color name="common_color_focused">#0169FF</color>
  <color name="common_color_bg">#F3F5F8</color>
</resources>

GitHub

View Github