aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/views/ViewUtils.kt
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/views/ViewUtils.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/views/ViewUtils.kt14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/views/ViewUtils.kt b/app/src/main/kotlin/com/pitchedapps/frost/views/ViewUtils.kt
new file mode 100644
index 00000000..513287ef
--- /dev/null
+++ b/app/src/main/kotlin/com/pitchedapps/frost/views/ViewUtils.kt
@@ -0,0 +1,14 @@
+package com.pitchedapps.frost.views
+
+import android.view.View
+import android.view.ViewGroup
+
+/**
+ * Created by Allan Wang on 2017-05-31.
+ */
+fun View.matchParent() {
+ with (layoutParams) {
+ height = ViewGroup.LayoutParams.MATCH_PARENT
+ width = ViewGroup.LayoutParams.MATCH_PARENT
+ }
+} \ No newline at end of file