Skip to content

Commit

Permalink
Prepare release 2.5.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkil committed Jan 22, 2016
1 parent e752bc9 commit 1594d8c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 13 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#IntelliJ IDEA
# IntelliJ IDEA
.idea
*.iml

#Gradle
# Gradle
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ Change Log
==========


## Version 2.5.0

_2016-01-22_

* Support brand new `Roboto Mono` typefaces.
* Rename method for set up typeface for TextView/Paint (`setup(...)` -> `setUp(...)`).
* Updated build tools and dependencies (Gradle Plugin 2.0.0-alpha6, AppCompat v23.1.1).


## Version 2.4.3

_2015-09-11_
Expand Down
26 changes: 17 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ Android-RobotoTextView

[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Android--RobotoTextView-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/471)

Implementation of a [TextView](http://developer.android.com/reference/android/widget/TextView.html) and all its direct/indirect subclasses with native support for the [Roboto](http://www.google.com/design/spec/style/typography.html) fonts, includes the brand new [Roboto Slab](http://www.google.com/fonts/specimen/Roboto+Slab) fonts.
Implementation of a [TextView][6] and all its direct/indirect subclasses with native support for the [Roboto][5] fonts, includes the brand new [Roboto Slab][3] and [Roboto Mono][4] fonts.

Supported fonts:

* [Roboto](http://www.google.com/fonts/specimen/Roboto)
* [Roboto Condensed](http://www.google.com/fonts/specimen/Roboto+Condensed)
* [Roboto Slab](http://www.google.com/fonts/specimen/Roboto+Slab)
* [Roboto][1]
* [Roboto Condensed][2]
* [Roboto Slab][3]
* [Roboto Mono][4]

![image](https://raw.githubusercontent.com/johnkil/Android-RobotoTextView/master/art/RobotoTextView.jpg)

Expand All @@ -31,7 +32,7 @@ Download
Gradle:

```groovy
compile 'com.github.johnkil.android-robototextview:robototextview:2.4.3'
compile 'com.github.johnkil.android-robototextview:robototextview:2.5.0'
```

Maven:
Expand All @@ -40,7 +41,7 @@ Maven:
<dependency>
<groupId>com.github.johnkil.android-robototextview</groupId>
<artifactId>robototextview</artifactId>
<version>2.4.3</version>
<version>2.5.0</version>
<type>aar</type>
</dependency>
```
Expand Down Expand Up @@ -84,7 +85,7 @@ RobotoTextView textView = new RobotoTextView(context);
Typeface typeface = RobotoTypefaceManager.obtainTypeface(
context,
RobotoTypefaceManager.Typeface.ROBOTO_LIGHT_ITALIC);
RobotoTextViewUtils.setTypeface(textView, typeface);
RobotoTextViewUtils.setUp(textView, typeface);
```

Using parameters `fontFamily`, `textWeight` and `textStyle`:
Expand All @@ -95,7 +96,7 @@ Typeface typeface = RobotoTypefaceManager.obtainTypeface(
RobotoTypefaceManager.FontFamily.ROBOTO,
RobotoTypefaceManager.TextWeight.LIGHT,
RobotoTypefaceManager.TextStyle.ITALIC);
RobotoTextViewUtils.setTypeface(textView, typeface);
RobotoTextViewUtils.setUp(textView, typeface);
```

#### With Span
Expand Down Expand Up @@ -128,7 +129,7 @@ If you intend to use is not all fonts, the extra fonts can be removed.
``` xml
android.applicationVariants.all{ variant ->
variant.mergeAssets.doFirst {
File fonts = file("${projectDir}/build/intermediates/exploded-aar/com.github.johnkil.android-robototextview/robototextview/2.4.3/assets/fonts")
File fonts = file("${projectDir}/build/intermediates/exploded-aar/com.github.johnkil.android-robototextview/robototextview/2.5.0/assets/fonts")
if (fonts.exists()) {
for (File file : fonts.listFiles()) {
if (file.getName().contains("RobotoSlab")) {
Expand Down Expand Up @@ -160,4 +161,11 @@ License
limitations under the License.


[1]: https://www.google.com/fonts/specimen/Roboto
[2]: https://www.google.com/fonts/specimen/Roboto+Condensed
[3]: https://www.google.com/fonts/specimen/Roboto+Slab
[4]: https://www.google.com/fonts/specimen/Roboto+Mono
[5]: http://www.google.com/design/spec/style/typography.html
[6]: http://developer.android.com/reference/android/widget/TextView.html

[0]: https://github.com/google/roboto
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# suppress inspection "UnusedProperty" for whole file
GROUP=com.github.johnkil.android-robototextview
VERSION_NAME=2.4.4-SNAPSHOT
VERSION_NAME=2.5.0

POM_DESCRIPTION=Implementation of the fragment with the ability to display indeterminate progress indicator when you are waiting for the initial dataImplementation of a TextView and all its direct/indirect subclasses with native support for the Roboto fonts, includes the brand new Roboto Slab fonts.
POM_DESCRIPTION=Implementation of the fragment with the ability to display indeterminate progress indicator when you are waiting for the initial dataImplementation of a TextView and all its direct/indirect subclasses with native support for the Roboto fonts, includes the brand new Roboto Slab and Roboto Mono fonts.

POM_URL=https://github.com/johnkil/Android-RobotoTextView
POM_SCM_URL=https://github.com/johnkil/Android-RobotoTextView
Expand Down

0 comments on commit 1594d8c

Please sign in to comment.