Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 45f8dc2

Browse files
committed
ADD layout utils
1 parent bb1506c commit 45f8dc2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.costular.kotlin_utils.layout
2+
3+
import android.content.Context
4+
import android.view.LayoutInflater
5+
import android.view.ViewGroup
6+
7+
/**
8+
* Created by costular on 15/08/17.
9+
*/
10+
11+
fun Context.inflate(layoutResource: Int, parent: ViewGroup? = null, attachToRoot: Boolean = false) {
12+
LayoutInflater.from(this).inflate(layoutResource, parent, attachToRoot)
13+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /