Add option to select Lato Font Family.

Adds the option to select Google's Lato Font family in QKSMS.
Changes RobotoTextViewUtils and RobotoTypefaceManager to be generic.
Changes font family options to reflect actual family. IE:
Regular -> Roboto Regular.

This translation is complete for most languages. Languages vastly
different from english will need some small changes in this area.
This commit is contained in:
Kyle Gospodnetich
2015-08-17 14:45:37 -07:00
committed by Moez Bhatti
parent ef333a6681
commit 64f253a91a
45 changed files with 182 additions and 70 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -121,12 +121,12 @@ public class FontManager {
} }
// Otherwise, get the heavy font weight. // Otherwise, get the heavy font weight.
if (fontWeight == RobotoTypefaceManager.TextWeight.LIGHT) { if (fontWeight == TypefaceManager.TextWeight.LIGHT) {
return RobotoTypefaceManager.TextWeight.NORMAL; return TypefaceManager.TextWeight.NORMAL;
} else if (fontFamily == RobotoTypefaceManager.FontFamily.ROBOTO) { } else if (fontFamily == TypefaceManager.FontFamily.ROBOTO || fontFamily == TypefaceManager.FontFamily.LATO) {
return RobotoTypefaceManager.TextWeight.MEDIUM; return TypefaceManager.TextWeight.MEDIUM;
} else { } else {
return RobotoTypefaceManager.TextWeight.BOLD; return TypefaceManager.TextWeight.BOLD;
} }
} }
} }
@@ -29,13 +29,13 @@ import com.moez.QKSMS.R;
* *
* @author Evgeny Shishkin * @author Evgeny Shishkin
*/ */
public class RobotoTextViewUtils { public class TextViewUtils {
private RobotoTextViewUtils() { private TextViewUtils() {
} }
/** /**
* Typeface initialization using the attributes. Used in RobotoTextView constructor. * Typeface initialization using the attributes. Used in TextView constructor.
* *
* @param textView The roboto text view * @param textView The roboto text view
* @param context The context the widget is running in, through which it can * @param context The context the widget is running in, through which it can
@@ -49,15 +49,15 @@ public class RobotoTextViewUtils {
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.RobotoTextView); TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.RobotoTextView);
if (a.hasValue(R.styleable.RobotoTextView_typeface)) { if (a.hasValue(R.styleable.RobotoTextView_typeface)) {
int typefaceValue = a.getInt(R.styleable.RobotoTextView_typeface, RobotoTypefaceManager.Typeface.ROBOTO_REGULAR); int typefaceValue = a.getInt(R.styleable.RobotoTextView_typeface, TypefaceManager.Typeface.ROBOTO_REGULAR);
typeface = RobotoTypefaceManager.obtainTypeface(context, typefaceValue); typeface = TypefaceManager.obtainTypeface(context, typefaceValue);
} }
a.recycle(); a.recycle();
} }
if (typeface == null) { if (typeface == null) {
typeface = RobotoTypefaceManager.obtainTypeface(context, RobotoTypefaceManager.Typeface.ROBOTO_REGULAR); typeface = TypefaceManager.obtainTypeface(context, TypefaceManager.Typeface.ROBOTO_REGULAR);
} }
setTypeface(textView, typeface); setTypeface(textView, typeface);
@@ -6,7 +6,7 @@ import android.util.SparseArray;
/** /**
* Stripped down version of https://github.com/johnkil/Android-RobotoTextView/blob/master/robototextview/src/main/java/com/devspark/robototextview/util/RobotoTypefaceManager.java * Stripped down version of https://github.com/johnkil/Android-RobotoTextView/blob/master/robototextview/src/main/java/com/devspark/robototextview/util/RobotoTypefaceManager.java
*/ */
public class RobotoTypefaceManager { public class TypefaceManager {
private final static SparseArray<android.graphics.Typeface> mTypefaces = new SparseArray<>(); private final static SparseArray<android.graphics.Typeface> mTypefaces = new SparseArray<>();
@@ -113,6 +113,58 @@ public class RobotoTypefaceManager {
throw new IllegalArgumentException("`textWeight` attribute value " + textWeight + throw new IllegalArgumentException("`textWeight` attribute value " + textWeight +
" is not supported for this font family " + fontFamily); " is not supported for this font family " + fontFamily);
} }
} else if (fontFamily == FontFamily.LATO) {
if (textWeight == TextWeight.NORMAL) {
switch (textStyle) {
case TextStyle.NORMAL:
typeface = Typeface.LATO_REGULAR;
break;
default:
throw new IllegalArgumentException("`textStyle` attribute value " + textStyle +
" is not supported for this fontFamily " + fontFamily +
" and textWeight " + textWeight);
}
} else if (textWeight == TextWeight.THIN) {
switch (textStyle) {
case TextStyle.NORMAL:
typeface = Typeface.LATO_THIN;
break;
default:
throw new IllegalArgumentException("`textStyle` attribute value " + textStyle +
" is not supported for this fontFamily " + fontFamily +
" and textWeight " + textWeight);
}
} else if (textWeight == TextWeight.LIGHT) {
switch (textStyle) {
case TextStyle.NORMAL:
typeface = Typeface.LATO_LIGHT;
break;
default:
throw new IllegalArgumentException("`textStyle` attribute value " + textStyle +
" is not supported for this fontFamily " + fontFamily +
" and textWeight " + textWeight);
}
} else if (textWeight == TextWeight.MEDIUM) {
switch (textStyle) {
case TextStyle.NORMAL:
typeface = Typeface.LATO_MEDIUM;
break;
default:
throw new IllegalArgumentException("`textStyle` attribute value " + textStyle +
" is not supported for this fontFamily " + fontFamily +
" and textWeight " + textWeight);
}
} else if (textWeight == TextWeight.BOLD) {
switch (textStyle) {
default:
throw new IllegalArgumentException("`textStyle` attribute value " + textStyle +
" is not supported for this fontFamily " + fontFamily +
" and textWeight " + textWeight);
}
} else {
throw new IllegalArgumentException("`textWeight` attribute value " + textWeight +
" is not supported for this font family " + fontFamily);
}
} else { } else {
throw new IllegalArgumentException("Unknown `fontFamily` attribute value " + fontFamily); throw new IllegalArgumentException("Unknown `fontFamily` attribute value " + fontFamily);
} }
@@ -143,6 +195,18 @@ public class RobotoTypefaceManager {
case Typeface.ROBOTO_CONDENSED_BOLD: case Typeface.ROBOTO_CONDENSED_BOLD:
typefacePath = "fonts/RobotoCondensed-Bold.ttf"; typefacePath = "fonts/RobotoCondensed-Bold.ttf";
break; break;
case Typeface.LATO_THIN:
typefacePath = "fonts/Lato-Hairline.ttf";
break;
case Typeface.LATO_LIGHT:
typefacePath = "fonts/Lato-Light.ttf";
break;
case Typeface.LATO_REGULAR:
typefacePath = "fonts/Lato-Regular.ttf";
break;
case Typeface.LATO_MEDIUM:
typefacePath = "fonts/Lato-Bold.ttf";
break;
default: default:
throw new IllegalArgumentException("Unknown `typeface` attribute value " + typefaceValue); throw new IllegalArgumentException("Unknown `typeface` attribute value " + typefaceValue);
} }
@@ -158,11 +222,16 @@ public class RobotoTypefaceManager {
public final static int ROBOTO_CONDENSED_LIGHT = 12; public final static int ROBOTO_CONDENSED_LIGHT = 12;
public final static int ROBOTO_CONDENSED_REGULAR = 14; public final static int ROBOTO_CONDENSED_REGULAR = 14;
public final static int ROBOTO_CONDENSED_BOLD = 16; public final static int ROBOTO_CONDENSED_BOLD = 16;
public final static int LATO_THIN = 22;
public final static int LATO_LIGHT = 24;
public final static int LATO_REGULAR = 26;
public final static int LATO_MEDIUM = 28;
} }
public class FontFamily { public class FontFamily {
public static final int ROBOTO = 0; public static final int ROBOTO = 0;
public static final int ROBOTO_CONDENSED = 1; public static final int ROBOTO_CONDENSED = 1;
public static final int LATO = 2;
} }
public class TextWeight { public class TextWeight {
@@ -17,7 +17,7 @@ import android.provider.BaseColumns;
import android.provider.ContactsContract; import android.provider.ContactsContract;
import android.telephony.PhoneNumberUtils; import android.telephony.PhoneNumberUtils;
import android.util.Log; import android.util.Log;
import com.moez.QKSMS.common.RobotoTypefaceManager; import com.moez.QKSMS.common.TypefaceManager;
import com.moez.QKSMS.common.utils.Units; import com.moez.QKSMS.common.utils.Units;
import com.moez.QKSMS.ui.MainActivity; import com.moez.QKSMS.ui.MainActivity;
import com.moez.QKSMS.ui.ThemeManager; import com.moez.QKSMS.ui.ThemeManager;
@@ -205,7 +205,7 @@ public class ContactHelper {
Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG); Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
paint.setColor(Color.WHITE); paint.setColor(Color.WHITE);
paint.setTypeface(RobotoTypefaceManager.obtainTypeface(context, RobotoTypefaceManager.Typeface.ROBOTO_LIGHT)); paint.setTypeface(TypefaceManager.obtainTypeface(context, TypefaceManager.Typeface.ROBOTO_LIGHT));
paint.setTextSize(length / 2); paint.setTextSize(length / 2);
Rect bounds = new Rect(); Rect bounds = new Rect();
@@ -10,7 +10,7 @@ import com.android.ex.chips.RecipientEditTextView;
import com.moez.QKSMS.interfaces.LiveView; import com.moez.QKSMS.interfaces.LiveView;
import com.moez.QKSMS.common.FontManager; import com.moez.QKSMS.common.FontManager;
import com.moez.QKSMS.common.LiveViewManager; import com.moez.QKSMS.common.LiveViewManager;
import com.moez.QKSMS.common.RobotoTypefaceManager; import com.moez.QKSMS.common.TypefaceManager;
import com.moez.QKSMS.ui.MainActivity; import com.moez.QKSMS.ui.MainActivity;
import com.moez.QKSMS.ui.ThemeManager; import com.moez.QKSMS.ui.ThemeManager;
import com.moez.QKSMS.ui.settings.SettingsFragment; import com.moez.QKSMS.ui.settings.SettingsFragment;
@@ -57,8 +57,8 @@ public class AutoCompleteContactView extends RecipientEditTextView implements Li
@Override @Override
public void refresh() { public void refresh() {
setTypeface(RobotoTypefaceManager.obtainTypeface(mContext, FontManager.getFontFamily(mContext), setTypeface(TypefaceManager.obtainTypeface(mContext, FontManager.getFontFamily(mContext),
FontManager.getFontWeight(mContext, false), RobotoTypefaceManager.TextStyle.NORMAL)); FontManager.getFontWeight(mContext, false), TypefaceManager.TextStyle.NORMAL));
setTextSize(TypedValue.COMPLEX_UNIT_SP, FontManager.getTextSize(mContext, FontManager.TEXT_TYPE_PRIMARY)); setTextSize(TypedValue.COMPLEX_UNIT_SP, FontManager.getTextSize(mContext, FontManager.TEXT_TYPE_PRIMARY));
setTextColor(ThemeManager.getTextOnBackgroundPrimary()); setTextColor(ThemeManager.getTextOnBackgroundPrimary());
@@ -24,7 +24,7 @@ import android.widget.ImageView;
import com.moez.QKSMS.R; import com.moez.QKSMS.R;
import com.moez.QKSMS.interfaces.LiveView; import com.moez.QKSMS.interfaces.LiveView;
import com.moez.QKSMS.common.LiveViewManager; import com.moez.QKSMS.common.LiveViewManager;
import com.moez.QKSMS.common.RobotoTypefaceManager; import com.moez.QKSMS.common.TypefaceManager;
import com.moez.QKSMS.common.utils.ImageUtils; import com.moez.QKSMS.common.utils.ImageUtils;
import com.moez.QKSMS.common.utils.PhoneNumberUtils; import com.moez.QKSMS.common.utils.PhoneNumberUtils;
import com.moez.QKSMS.common.utils.Units; import com.moez.QKSMS.common.utils.Units;
@@ -77,7 +77,7 @@ public class AvatarView extends ImageView implements View.OnClickListener, LiveV
mPaint.setTextSize(Units.dpToPx(context, 32)); mPaint.setTextSize(Units.dpToPx(context, 32));
mPaint.setTextAlign(Paint.Align.CENTER); mPaint.setTextAlign(Paint.Align.CENTER);
mPaint.setAntiAlias(true); mPaint.setAntiAlias(true);
mPaint.setTypeface(RobotoTypefaceManager.obtainTypeface(context, RobotoTypefaceManager.Typeface.ROBOTO_LIGHT)); mPaint.setTypeface(TypefaceManager.obtainTypeface(context, TypefaceManager.Typeface.ROBOTO_LIGHT));
final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.AvatarView, defStyle, 0); final TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.AvatarView, defStyle, 0);
for (int i = 0; i < a.getIndexCount(); i++) { for (int i = 0; i < a.getIndexCount(); i++) {
@@ -11,7 +11,7 @@ import android.util.TypedValue;
import com.moez.QKSMS.interfaces.LiveView; import com.moez.QKSMS.interfaces.LiveView;
import com.moez.QKSMS.common.FontManager; import com.moez.QKSMS.common.FontManager;
import com.moez.QKSMS.common.LiveViewManager; import com.moez.QKSMS.common.LiveViewManager;
import com.moez.QKSMS.common.RobotoTypefaceManager; import com.moez.QKSMS.common.TypefaceManager;
import com.moez.QKSMS.ui.ThemeManager; import com.moez.QKSMS.ui.ThemeManager;
import com.moez.QKSMS.ui.settings.SettingsFragment; import com.moez.QKSMS.ui.settings.SettingsFragment;
@@ -97,8 +97,8 @@ public class QKEditText extends android.widget.EditText implements LiveView {
// Typeface and colors // Typeface and colors
int fontFamily = FontManager.getFontFamily(mContext); int fontFamily = FontManager.getFontFamily(mContext);
int fontWeight = FontManager.getFontWeight(mContext, false); int fontWeight = FontManager.getFontWeight(mContext, false);
setTypeface(RobotoTypefaceManager.obtainTypeface(mContext, fontFamily, fontWeight, setTypeface(TypefaceManager.obtainTypeface(mContext, fontFamily, fontWeight,
RobotoTypefaceManager.TextStyle.NORMAL)); TypefaceManager.TextStyle.NORMAL));
setTextColor(ThemeManager.getTextOnBackgroundPrimary()); setTextColor(ThemeManager.getTextOnBackgroundPrimary());
setHintTextColor(ThemeManager.getTextOnBackgroundSecondary()); setHintTextColor(ThemeManager.getTextOnBackgroundSecondary());
@@ -11,7 +11,7 @@ import android.widget.TextView;
import com.moez.QKSMS.interfaces.LiveView; import com.moez.QKSMS.interfaces.LiveView;
import com.moez.QKSMS.common.FontManager; import com.moez.QKSMS.common.FontManager;
import com.moez.QKSMS.common.LiveViewManager; import com.moez.QKSMS.common.LiveViewManager;
import com.moez.QKSMS.common.RobotoTypefaceManager; import com.moez.QKSMS.common.TypefaceManager;
import com.moez.QKSMS.common.utils.MessageUtils; import com.moez.QKSMS.common.utils.MessageUtils;
import com.moez.QKSMS.ui.MainActivity; import com.moez.QKSMS.ui.MainActivity;
import com.moez.QKSMS.ui.ThemeManager; import com.moez.QKSMS.ui.ThemeManager;
@@ -162,8 +162,8 @@ public class QKTextView extends TextView implements LiveView {
// Typeface // Typeface
int fontFamily = FontManager.getFontFamily(mContext); int fontFamily = FontManager.getFontFamily(mContext);
int fontWeight = FontManager.getFontWeight(mContext, FontManager.getIsFontHeavy(mType)); int fontWeight = FontManager.getFontWeight(mContext, FontManager.getIsFontHeavy(mType));
setTypeface(RobotoTypefaceManager.obtainTypeface(mContext, fontFamily, fontWeight, setTypeface(TypefaceManager.obtainTypeface(mContext, fontFamily, fontWeight,
RobotoTypefaceManager.TextStyle.NORMAL)); TypefaceManager.TextStyle.NORMAL));
// Text size and color // Text size and color
setTextSize(TypedValue.COMPLEX_UNIT_SP, FontManager.getTextSize(mContext, mType)); setTextSize(TypedValue.COMPLEX_UNIT_SP, FontManager.getTextSize(mContext, mType));
@@ -3,7 +3,7 @@ package com.moez.QKSMS.ui.view;
import android.content.Context; import android.content.Context;
import android.support.v7.widget.AppCompatTextView; import android.support.v7.widget.AppCompatTextView;
import android.util.AttributeSet; import android.util.AttributeSet;
import com.moez.QKSMS.common.RobotoTextViewUtils; import com.moez.QKSMS.common.TextViewUtils;
public class RobotoTextView extends AppCompatTextView { public class RobotoTextView extends AppCompatTextView {
@@ -15,7 +15,7 @@ public class RobotoTextView extends AppCompatTextView {
super(context, attrs); super(context, attrs);
if (!isInEditMode()) { if (!isInEditMode()) {
RobotoTextViewUtils.initTypeface(this, context, attrs); TextViewUtils.initTypeface(this, context, attrs);
} }
} }
@@ -23,7 +23,7 @@ public class RobotoTextView extends AppCompatTextView {
super(context, attrs, defStyle); super(context, attrs, defStyle);
if (!isInEditMode()) { if (!isInEditMode()) {
RobotoTextViewUtils.initTypeface(this, context, attrs); TextViewUtils.initTypeface(this, context, attrs);
} }
} }
+3 -2
View File
@@ -280,8 +280,9 @@
<item>Largest</item> <item>Largest</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensed</item> <item>Roboto Condensed</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Light</item> <item>Light</item>
+3 -2
View File
@@ -451,8 +451,9 @@
<item>Největší</item> <item>Největší</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensed</item> <item>Roboto Condensed</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Light</item> <item>Light</item>
+1
View File
@@ -452,6 +452,7 @@
<string-array name="font_families"> <string-array name="font_families">
<item>Almindelig</item> <item>Almindelig</item>
<item>Sammentrængt</item> <item>Sammentrængt</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Tynd</item> <item>Tynd</item>
+1
View File
@@ -455,6 +455,7 @@
<string-array name="font_families"> <string-array name="font_families">
<item>Normal</item> <item>Normal</item>
<item>Zusammengefasst</item> <item>Zusammengefasst</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Dünn</item> <item>Dünn</item>
+3 -2
View File
@@ -279,8 +279,9 @@
<item>Largest</item> <item>Largest</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensed</item> <item>Roboto Condensed</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Light</item> <item>Light</item>
+3 -2
View File
@@ -450,8 +450,9 @@
<item>Más grande</item> <item>Más grande</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensada</item> <item>Roboto Condensada</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Ligera</item> <item>Ligera</item>
+1
View File
@@ -452,6 +452,7 @@
<string-array name="font_families"> <string-array name="font_families">
<item>Tavallinen</item> <item>Tavallinen</item>
<item>Tiivistetty</item> <item>Tiivistetty</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Kevyt</item> <item>Kevyt</item>
+3 -2
View File
@@ -450,8 +450,9 @@
<item>Très grande</item> <item>Très grande</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Régulier</item> <item>Roboto Régulier</item>
<item>Condensé</item> <item>Roboto Condensé</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Léger</item> <item>Léger</item>
+1
View File
@@ -452,6 +452,7 @@
<string-array name="font_families"> <string-array name="font_families">
<item>नियमित</item> <item>नियमित</item>
<item>संक्षिप्त</item> <item>संक्षिप्त</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>प्रकाश</item> <item>प्रकाश</item>
+3 -2
View File
@@ -280,8 +280,9 @@
<item>Largest</item> <item>Largest</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensed</item> <item>Roboto Condensed</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Light</item> <item>Light</item>
+3 -2
View File
@@ -449,8 +449,9 @@
<item>Largest</item> <item>Largest</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensed</item> <item>Roboto Condensed</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Light</item> <item>Light</item>
+3 -2
View File
@@ -452,8 +452,9 @@ Moez Bhatti\Shane Creighton-Young
<item>Più grande</item> <item>Più grande</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regolare</item> <item>Roboto Regolare</item>
<item>Condensato</item> <item>Roboto Condensato</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Sottile</item> <item>Sottile</item>
+3 -2
View File
@@ -450,8 +450,9 @@
<item>גדול מאד</item> <item>גדול מאד</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensed</item> <item>Roboto Condensed</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Light</item> <item>Light</item>
+3 -2
View File
@@ -449,8 +449,9 @@
<item>매우크게</item> <item>매우크게</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensed</item> <item>Roboto Condensed</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Light</item> <item>Light</item>
+1
View File
@@ -453,6 +453,7 @@
<string-array name="font_families"> <string-array name="font_families">
<item>Įprastas</item> <item>Įprastas</item>
<item>Suspaustas</item> <item>Suspaustas</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Plonesnis</item> <item>Plonesnis</item>
+3 -2
View File
@@ -450,8 +450,9 @@
<item>Largest</item> <item>Largest</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensed</item> <item>Roboto Condensed</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Light</item> <item>Light</item>
+3 -2
View File
@@ -450,8 +450,9 @@
<item>Grootste</item> <item>Grootste</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensed</item> <item>Roboto Condensed</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Light</item> <item>Light</item>
+3 -2
View File
@@ -450,8 +450,9 @@
<item>Største</item> <item>Største</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensed</item> <item>Roboto Condensed</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Light</item> <item>Light</item>
+3 -2
View File
@@ -451,8 +451,9 @@
<item>Największy</item> <item>Największy</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensed</item> <item>Roboto Condensed</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Cienka</item> <item>Cienka</item>
+3 -2
View File
@@ -452,8 +452,9 @@ Plural form: Conversas serão excluídas.</item>
<item>Maior</item> <item>Maior</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensado</item> <item>Roboto Condensado</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Leve</item> <item>Leve</item>
+3 -2
View File
@@ -450,8 +450,9 @@
<item>Ainda Maior</item> <item>Ainda Maior</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensado</item> <item>Roboto Condensado</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Simples</item> <item>Simples</item>
+1
View File
@@ -453,6 +453,7 @@
<string-array name="font_families"> <string-array name="font_families">
<item>Obișnuit</item> <item>Obișnuit</item>
<item>Condensat</item> <item>Condensat</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Slab</item> <item>Slab</item>
+3 -2
View File
@@ -452,8 +452,9 @@
<item>Самый крупный</item> <item>Самый крупный</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensed</item> <item>Roboto Condensed</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Тонкий</item> <item>Тонкий</item>
+3 -2
View File
@@ -451,8 +451,9 @@
<item>Obrovské</item> <item>Obrovské</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensed</item> <item>Roboto Condensed</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Tenké</item> <item>Tenké</item>
+3 -2
View File
@@ -450,8 +450,9 @@
<item>Störst</item> <item>Störst</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensed</item> <item>Roboto Condensed</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Light</item> <item>Light</item>
+1
View File
@@ -452,6 +452,7 @@
<string-array name="font_families"> <string-array name="font_families">
<item>Karaniwan</item> <item>Karaniwan</item>
<item>Makipot</item> <item>Makipot</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Manipis</item> <item>Manipis</item>
+1
View File
@@ -452,6 +452,7 @@
<string-array name="font_families"> <string-array name="font_families">
<item>Normal</item> <item>Normal</item>
<item>Yakınlaştırılmış</item> <item>Yakınlaştırılmış</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>İnce</item> <item>İnce</item>
@@ -451,6 +451,7 @@
<string-array name="font_families"> <string-array name="font_families">
<item>常规</item> <item>常规</item>
<item>紧缩</item> <item>紧缩</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>纤细</item> <item>纤细</item>
+3 -2
View File
@@ -452,8 +452,9 @@
<item>最大</item> <item>最大</item>
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensed</item> <item>Roboto Condensed</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">
<item>Light</item> <item>Light</item>
+12
View File
@@ -45,6 +45,18 @@
<enum name="roboto_slab_light" value="19" /> <enum name="roboto_slab_light" value="19" />
<enum name="roboto_slab_regular" value="20" /> <enum name="roboto_slab_regular" value="20" />
<enum name="roboto_slab_bold" value="21" /> <enum name="roboto_slab_bold" value="21" />
<enum name="lato_thin" value="22" />
<enum name="lato_thin_italic" value="23" />
<enum name="lato_light" value="24" />
<enum name="lato_light_italic" value="25" />
<enum name="lato_regular" value="26" />
<enum name="lato_italic" value="27" />
<enum name="lato_medium" value="28" />
<enum name="lato_medium_italic" value="29" />
<enum name="lato_bold" value="30" />
<enum name="lato_bold_italic" value="31" />
<enum name="lato_black" value="32" />
<enum name="lato_black_italic" value="33" />
</attr> </attr>
<declare-styleable name="AvatarView"> <declare-styleable name="AvatarView">
+1
View File
@@ -11,6 +11,7 @@
<string-array name="font_family_codes"> <string-array name="font_family_codes">
<item>0</item> <item>0</item>
<item>1</item> <item>1</item>
<item>2</item>
</string-array> </string-array>
<string-array name="font_weight_codes"> <string-array name="font_weight_codes">
+3 -2
View File
@@ -758,8 +758,9 @@
</string-array> </string-array>
<string-array name="font_families"> <string-array name="font_families">
<item>Regular</item> <item>Roboto Regular</item>
<item>Condensed</item> <item>Roboto Condensed</item>
<item>Lato</item>
</string-array> </string-array>
<string-array name="font_weights"> <string-array name="font_weights">