Skip to content

This repository contains different types of CustomViews we can create in Android Application Development.

Notifications You must be signed in to change notification settings

activesince93/CustomViews

Repository files navigation

CustomViews

This repository contains different types of CustomViews we can create in Android Application Development. I have also implemented Google Analytics.

  • Check out the APK here

Home Page:

Main

TextView:

<active.since93.librery.textview.CustomTextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_margin="@dimen/text_padding"
        android:gravity="center"
        android:text="@string/text"
        android:textSize="@dimen/text_size"
        customtextview:typeface="Roboto-Light.ttf" />

Custom Scrolling TextView

<active.since93.librery.textview.ScrollingTextView
        android:id="@+id/scrollTextView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="@dimen/text_padding"
        android:singleLine="true"
        android:text="@string/text_text"
        android:textSize="@dimen/text_size"
        customtextview:scrollType="ifLengthExceeds"
        customtextview:typeface="Almost_Japanese_Smooth.ttf" />

TextView

Button:

Custom Button

<active.since93.librery.button.CustomButton
        android:id="@+id/customButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        custombutton:text="Custom Button"
        custombutton:text_color="@color/colorPrimary"
        custombutton:text_size="10dp" />

Ripple Button

<active.since93.librery.button.ButtonRectangle
        android:id="@+id/customRippleButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
        android:background="#1E88E5"
        android:text="Button" />

Button

ImageView:

<active.since93.librery.imageview.CircleImageView
        android:layout_width="100dp"
        android:layout_height="100dp"
        android:src="@drawable/lauren" />

ImageView

EditText:

<active.since93.librery.edittext.CustomEditText
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="5dp"
        android:text="This is custom EditText."
        customedittext:typeface="androidnation.ttf" />

EditText

ChipView:

<active.since93.librery.chipview.ChipView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_margin="5dp"
        chipview:background_color="@color/colorAccent"
        chipview:show_image="false"
        chipview:chip_text="text" />

ChipView

Add the following line to your build.gradle dependencies:

compile project(':library')

About

This repository contains different types of CustomViews we can create in Android Application Development.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages