Skip to content

Commit

Permalink
Merge branch 'release/1.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkil committed Aug 11, 2013
2 parents 9ab0549 + 80a871e commit c4d5f34
Show file tree
Hide file tree
Showing 22 changed files with 46 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,9 @@ local.properties
proguard.cfg
proguard-project.txt

#Gradle
.gradle
build

#Other
.DS_Store
4 changes: 2 additions & 2 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.devspark.robototextview"
android:versionCode="4"
android:versionName="1.3">
android:versionCode="5"
android:versionName="1.4">

<uses-sdk
android:minSdkVersion="3"
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ Change Log
==========


Version 1.4 *(2013-08-11)*
--------------------------

* Support brand new `Roboto` typefaces from Android 4.3 ([info](http://www.androidpolice.com/2013/06/29/typeface-teardown-roboto-gets-a-facelift-in-android-4-3/)).
* Add Gradle build.
* Fix: #14 RobotoMultiAutoCompleteTextView inheritance.


Version 1.3 *(2013-05-20)*
--------------------------

Expand Down
Binary file modified assets/fonts/Roboto-Bold.ttf
Binary file not shown.
Binary file removed assets/fonts/Roboto-BoldCondensed.ttf
Binary file not shown.
Binary file removed assets/fonts/Roboto-BoldCondensedItalic.ttf
Binary file not shown.
Binary file modified assets/fonts/Roboto-BoldItalic.ttf
Binary file not shown.
Binary file removed assets/fonts/Roboto-Condensed.ttf
Binary file not shown.
Binary file removed assets/fonts/Roboto-CondensedItalic.ttf
Binary file not shown.
Binary file modified assets/fonts/Roboto-Italic.ttf
Binary file not shown.
Binary file modified assets/fonts/Roboto-Light.ttf
Binary file not shown.
Binary file modified assets/fonts/Roboto-LightItalic.ttf
Binary file not shown.
Binary file modified assets/fonts/Roboto-Regular.ttf
Binary file not shown.
Binary file modified assets/fonts/Roboto-Thin.ttf
Binary file not shown.
Binary file modified assets/fonts/Roboto-ThinItalic.ttf
Binary file not shown.
Binary file added assets/fonts/RobotoCondensed-Bold.ttf
Binary file not shown.
Binary file added assets/fonts/RobotoCondensed-BoldItalic.ttf
Binary file not shown.
Binary file added assets/fonts/RobotoCondensed-Italic.ttf
Binary file not shown.
Binary file added assets/fonts/RobotoCondensed-Regular.ttf
Binary file not shown.
24 changes: 24 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}

apply plugin: 'android'

android {
compileSdkVersion 17
buildToolsVersion '17.0.0'

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
}
8 changes: 4 additions & 4 deletions src/com/devspark/robototextview/RobotoTypefaceManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,16 @@ private static Typeface createTypeface(Context context, int typefaceValue) throw
typeface = Typeface.createFromAsset(context.getAssets(), "fonts/Roboto-BlackItalic.ttf");
break;
case ROBOTO_CONDENSED:
typeface = Typeface.createFromAsset(context.getAssets(), "fonts/Roboto-Condensed.ttf");
typeface = Typeface.createFromAsset(context.getAssets(), "fonts/RobotoCondensed-Regular.ttf");
break;
case ROBOTO_CONDENSED_ITALIC:
typeface = Typeface.createFromAsset(context.getAssets(), "fonts/Roboto-CondensedItalic.ttf");
typeface = Typeface.createFromAsset(context.getAssets(), "fonts/RobotoCondensed-Italic.ttf");
break;
case ROBOTO_CONDENSED_BOLD:
typeface = Typeface.createFromAsset(context.getAssets(), "fonts/Roboto-BoldCondensed.ttf");
typeface = Typeface.createFromAsset(context.getAssets(), "fonts/RobotoCondensed-Bold.ttf");
break;
case ROBOTO_CONDENSED_BOLD_ITALIC:
typeface = Typeface.createFromAsset(context.getAssets(), "fonts/Roboto-BoldCondensedItalic.ttf");
typeface = Typeface.createFromAsset(context.getAssets(), "fonts/RobotoCondensed-BoldItalic.ttf");
break;
case ROBOTOSLAB_THIN:
typeface = Typeface.createFromAsset(context.getAssets(), "fonts/RobotoSlab-Thin.ttf");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@
import android.content.res.TypedArray;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.MultiAutoCompleteTextView;

import com.devspark.robototextview.R;
import com.devspark.robototextview.RobotoTypefaceManager;

/**
* Implementation of a {@link RobotoAutoCompleteTextView} with native support for all the Roboto fonts.
* Implementation of a {@link MultiAutoCompleteTextView} with native support for all the Roboto fonts.
*
* @author e.shishkin
*/
public class RobotoMultiAutoCompleteTextView extends RobotoAutoCompleteTextView {
public class RobotoMultiAutoCompleteTextView extends MultiAutoCompleteTextView {

/**
* Simple constructor to use when creating a widget from code.
Expand Down

0 comments on commit c4d5f34

Please sign in to comment.