Implementation of a TextView and all its direct/indirect subclasses with native support for the Roboto fonts, includes the brand new Roboto Slab fonts.
Implemented next views:
RobotoTextView
RobotoAutoCompleteTextView
RobotoButton
RobotoCheckBox
RobotoCheckedTextView
RobotoChronometer
RobotoCompoundButton
RobotoDigitalClock
RobotoEditText
RobotoExtractEditText
RobotoMultiAutoCompleteTextView
RobotoRadioButton
RobotoSwitch
RobotoTextClock
RobotoToggleButton
Application is available on Google Play:
This library is compatible from API 3 (Android 1.5).
Sample layout with RobotoTextView:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.devspark.robototextview.widget.RobotoTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:typeface="roboto_thin"
android:textSize="22sp"
android:text="Roboto Thin"/>
</FrameLayout>
Available values for the typeface
attribute:
- roboto_thin
- roboto_thin_italic
- roboto_light
- roboto_light_italic
- roboto_regular
- roboto_italic
- roboto_medium
- roboto_medium_italic
- roboto_bold
- roboto_bold_italic
- roboto_black
- roboto_black_italic
- roboto_condensed
- roboto_condensed_italic
- roboto_condensed_bold
- roboto_condensed_bold_italic
- robotoslab_thin
- robotoslab_light
- robotoslab_regular
- robotoslab_bold
- Evgeny Shishkin - johnkil78@gmail.com
Copyright 2013 Evgeny Shishkin
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.