summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard/android
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/com/wireguard/android')
-rw-r--r--app/src/main/java/com/wireguard/android/BindingAdapters.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/src/main/java/com/wireguard/android/BindingAdapters.java b/app/src/main/java/com/wireguard/android/BindingAdapters.java
index 6cd4a70f..756b38a3 100644
--- a/app/src/main/java/com/wireguard/android/BindingAdapters.java
+++ b/app/src/main/java/com/wireguard/android/BindingAdapters.java
@@ -3,7 +3,10 @@ package com.wireguard.android;
import android.databinding.BindingAdapter;
import android.databinding.ObservableArrayMap;
import android.databinding.ObservableList;
+import android.graphics.Typeface;
+import android.widget.EditText;
import android.widget.ListView;
+import android.widget.TextView;
/**
* Static methods for use by generated code in the Android data binding library.
@@ -64,6 +67,11 @@ public final class BindingAdapters {
}
}
+ @BindingAdapter({"android:textStyle"})
+ public static void textStyleBinding(final TextView view, final Typeface typeface) {
+ view.setTypeface(typeface);
+ }
+
private BindingAdapters() {
// Prevent instantiation.
}