Skip to content

Instantly share code, notes, and snippets.


CodingDoug/AndroidKotlin_tiresome.kt Secret

Last active Feb 22, 2016
What would you like to do?
val view = v<TextView>(context) {
// ugly!
maxWidth = TypedValue.applyDimension(
TypedValue.COMPLEX_UNIT_DIP, 120, context.resources.displayMetrics).toInt()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.