Skip to content

An example of using KWidget(KEditText and KSpinner) in an android application.

Notifications You must be signed in to change notification settings

kredibel-id/SampleKWidget

Repository files navigation

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'}

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

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

How to Use

KEditText

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

KSpinner

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

Set Hint Color

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>

Border Width

You can customize border width by adding the following key to your dimens resource xml.

<dimen name="common_kwidget_border_width">1.5dp</dimen>

Share Please 😊

Releases

No releases published

Packages

No packages published

Languages