Skip to content

CustomWidgets is a library use Android UI controls such as TextView, Button, EditText, ChechBox, RadioButton, Switch, ToggleButton, CircleImageView, SeekBar, etc with Custom typefaces.

License

Notifications You must be signed in to change notification settings

dvinfosys/CustomWidgets

Repository files navigation

Android Widgets

Add it in your root build.gradle at the end of repositories:

      allprojects {
          repositories {
            ...
            maven { url 'https://jitpack.io' }
          }
        }

Add the dependency

dependencies {
      implementation 'com.github.dvinfosys:CustomWidgets:$Latest_Release'
}

Check out CustomWidgets releases to see more unstable versions.

you could customize following UI controls in your Android application

  • NormalTextView, HeadingTextView, BlackTextView, ExtraBoldTextView, ItalicTextView, LightTextView, SemiBoldTextView, ThinTextView
  • NormalEditText
  • NormalCheckBox
  • NormalButton
  • NormalRadioButton
  • NormalSwitch
  • NormalToggleButton
  • CircleImageView
  • RoundedImageView

Usage

TextView

TextView (NormalTextView)

<com.dvinfosys.widgets.TextView.NormalTextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!"/>

Heading TextView (HeadingTextView)

<com.dvinfosys.widgets.TextView.HeadingTextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!"/>

Button (NormalButton)

<com.dvinfosys.widgets.TextView.NormalButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!"/>

EditText (NormalEditText)

<com.dvinfosys.widgets.TextView.NormalEditText
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!"/>

RadioButton (NormalRadioButton)

<com.dvinfosys.widgets.TextView.NormalRadioButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!"/>

CheckBox (NormalCheckBox)

<com.dvinfosys.widgets.TextView.NormalCheckBox
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!"/>

ToggleButton (NormalToggleButton)

<com.dvinfosys.widgets.TextView.NormalToggleButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!"/>

Switch (NormalSwitch)

<com.dvinfosys.widgets.TextView.NormalSwitch
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!"/>

CircleImageView

<com.dvinfosys.widgets.ImageView.CircleImageView
                android:id="@+id/thumbnail"
                android:layout_width="100dp"
                android:layout_height="100dp"
                android:background="?attr/selectableItemBackgroundBorderless"
                android:clickable="true"
                android:scaleType="centerCrop"
                android:src="@mipmap/ic_launcher"
                app:dv_border_color="#949494"
                app:dv_border_width="2dp" />

RoundedImageView

<com.dvinfosys.widgets.ImageView.RoundedImageView
            android:layout_width="wrap_content"
            android:layout_height="200dp"
            android:layout_margin="8dp"
            android:src="@drawable/demo_image"
            app:borderColor="@color/color_blue"
            app:borderWidth="1dp"
            app:isSquare="true"
            app:radius="6dp" />

NOTE

Widgets also contains some added fonts with the library,

Poppins.ttf
Poppins_Black.ttf
Poppins_Bold.ttf
Poppins_ExtraBold.ttf
Poppins_Italic.ttf
Poppins_Light.ttf
Poppins_SemiBold.ttf
Poppins_Thin.ttf

Author

DV Infosys, dvinfosys0@gmail.com

Checkout my other contributions, https://github.com/dvinfosys?tab=repositories

License

Copyright (C) 2019 DV Infosys

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

CustomWidgets is a library use Android UI controls such as TextView, Button, EditText, ChechBox, RadioButton, Switch, ToggleButton, CircleImageView, SeekBar, etc with Custom typefaces.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages