Custom views for Android that support borders.
Java
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
BorderedViews
.gitignore
LICENSE.txt
README.md

README.md

android-bordered-views

Custom views for Android that support borders (optionally rounded).

Screenshots

BorderedTextView

BorderedTextView rounded

Usage

See attrs.xml for the complete list of attributes.

<com.brentpanther.borderedviews.BorderedTextView
    xmlns:b="http://schemas.android.com/apk/res-auto"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:padding="5dp"
    android:text="This is sample text"
    b:borderWidth="2dp"
    b:borders="top|left|right"/>

<com.brentpanther.borderedviews.BorderedTextView
    xmlns:b="http://schemas.android.com/apk/res-auto"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:padding="5dp"
    android:text="This is sample text"
    android:background="#00ff00"
    b:radiusTopLeft="15px"
    b:radiusTopRight="15px"
    b:borderWidth="2dp"
    b:borderColor="#ff0000"
    b:borders="all"/>