TypefaceView Library

Text and edit text views for android which allow the user to set special typefaces

License

License

GroupId

GroupId

com.github.omadahealth.typefaceview
ArtifactId

ArtifactId

typefaceview
Last Version

Last Version

2.0.1
Release Date

Release Date

Type

Type

aar
Description

Description

TypefaceView Library
Text and edit text views for android which allow the user to set special typefaces
Project URL

Project URL

https://github.com/omadahealth/TypefaceView
Source Code Management

Source Code Management

https://github.com/omadahealth/TypefaceView.git

Download typefaceview

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.omadahealth.typefaceview/typefaceview/ -->
<dependency>
    <groupId>com.github.omadahealth.typefaceview</groupId>
    <artifactId>typefaceview</artifactId>
    <version>2.0.1</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.omadahealth.typefaceview/typefaceview/
implementation 'com.github.omadahealth.typefaceview:typefaceview:2.0.1'
// https://jarcasting.com/artifacts/com.github.omadahealth.typefaceview/typefaceview/
implementation ("com.github.omadahealth.typefaceview:typefaceview:2.0.1")
'com.github.omadahealth.typefaceview:typefaceview:aar:2.0.1'
<dependency org="com.github.omadahealth.typefaceview" name="typefaceview" rev="2.0.1">
  <artifact name="typefaceview" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.omadahealth.typefaceview', module='typefaceview', version='2.0.1')
)
libraryDependencies += "com.github.omadahealth.typefaceview" % "typefaceview" % "2.0.1"
[com.github.omadahealth.typefaceview/typefaceview "2.0.1"]

Dependencies

compile (4)

Group / Artifact Type Version
com.android.databinding » library jar 1.3.1
com.android.databinding : baseLibrary jar 3.0.1
com.android.databinding » adapters jar 1.3.1
com.android.support » appcompat-v7 jar 26.1.0

Project Modules

There are no modules declared in this project.

TypefaceView

TextView and EditText views for android which allow the user to set special typefaces; such as the Roboto typefaces (API 10+).

Pull requests are welcome if you would like to add other typefaces to this library.

To include in your project, add this to your build.gradle file:

   //TypefaceView
   compile 'com.github.omadahealth.typefaceview:typefaceview:1.6.0@aar'

Image

========

By

Developers: Olivier Goutay and Stoyan Dimitrov

Usage

Look at the example app for a live example on how to use the library. Note; New Android data-binding supported for custom attributes

In XML:

    <com.github.omadahealth.typefaceview.TypefaceTextView
        android:id="@+id/typefaceThin"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:layout_margin="20dp"
        android:layout_gravity="center"
        android:textColor="@android:color/white"
        android:textSize="@dimen/text_size"
        android:text="Roboto Thin"
        app:tv_typeface="roboto_thin"
        app:tv_html="false"/>

Available typefaces, html... in attr.xml that you can set in your app:typeface="..."

        <attr name="tv_typeface" format="enum">
            <enum name="roboto_regular" value="0"/>
            <enum name="roboto_medium" value="1"/>
            <enum name="roboto_light" value="2"/>
            <enum name="roboto_bold" value="3"/>
            <enum name="roboto_thin" value="4"/>
        </attr>
        <attr name="tv_html" format="boolean"/>

========

License

The MIT License (MIT)

Copyright (c) 2015 OrangeGangsters

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
com.github.omadahealth.typefaceview

Omada Health

We help employers and health plans tackle diabetes and heart disease in the most engaging, effective, and scalable way possible.

Versions

Version
2.0.1
1.5.0
1.4.0
1.3.0
1.2.5
1.2.1
1.2.0
1.1.0
1.0.0