/CustomTextView

initial commit

Primary LanguageJava

Just add your font inside assests folder

//for regular with drawable left (svg element)

<com.github.customview.SnapTextView

    android:id="@+id/light"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_margin="20dp"
    android:drawableLeft="@drawable/clap_loss"
    android:text="Hello World! Light"
    app:textFont="GOTHAM_LIGHT" />

//for medium with drawable left (svg element)

<com.github.customview.SnapTextView
    android:id="@+id/medium"
    android:layout_width="wrap_content"
    android:layout_margin="20dp"
    android:drawableLeft="@drawable/ic_add_tag"
    android:layout_height="wrap_content"
    android:text="Hello World! Medium"
    app:textFont="GOTHAM_MEDIUM" />

//for bold with drawable left (svg element)

<com.github.customview.SnapTextView
    android:id="@+id/bold"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Hello World! Bold"
    android:layout_margin="20dp"
    app:textFont="GOTHAM_BOLD" />

happy coding.........................