Implement Android resource reference folding

#KT-15451 Fixed
This commit is contained in:
Vyacheslav Gerasimov
2017-02-07 20:29:54 +03:00
parent 39010ab847
commit a907ec92b5
12 changed files with 482 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
package com.myapp
import android.content.Context
fun Context.testPlurals(quantity: Int) <fold text='{...}' expand='true'>{
val plural1 = <fold text='"Reference One"' expand='false'>resources.getQuantityString(R.plurals.first, quantity)</fold>
val plural2 = <fold text='Quantity One' expand='false'>this.getResources().getQuantityString(R.plurals.second, quantity)</fold>
}</fold>