Pleasant Android application development
Anko 0.10 requires Kotlin 1.1. Repository: https://bintray.com/jetbrains/anko/anko/0.10.0-beta-1
theme
parameter are renamed to themed…()
to avoid disambiguation;DslMarker
support (lparams
inside the View lambda are now forbidden);anko-coroutines
artifact with the Kotlin 1.1 coroutines support (async
/ bg
);sdk-25
;AlertBuilder
interface with core and app-compat implementations. AlertDialogBuilder
is deprecated;ClassParser
now accepts all primitive types #320;anko-support-v4-common
and anko-appcompat-v7-common
(with basic helpers, without the DSL functionality) #158;act
or ctx
) are now inline
;TextView.enabled
generated property is removed #245;inline
;isError
and hasValue
to AttemptResult
;NoSuchMethodError
on accessing act
property from the support Fragment #311.AnkoLogger
as an instance #262;FOREIGN_KEY
now returns Pair<String, SqlType>
#258 #219;SparseArray
as sequence returns list which doesn't match its size #243 #240;LayoutParams.baselineOf()
#213;intentFor
#211;async()
to doAsync()
, onUiThread()
to runOnUiThread()
for Fragment
and Context
;AnkoAsyncContext.onComplete()
#181;uiThread()
now returns false
if code was not executed;doAsync()
#182;newTask
parameter to browse()
#186;sendSMS()
#171;makeStyle()
#132;Activity.contentView
property #157;horizontalProgressBar()
#23;doFromSdk()
and doIfSdk()
#118;alignStart()
and alignEnd()
to RelativeLayout.LayoutParams
extensions;AlertDialogBuilder
: make the dialog
property public #140;okButton()
, yesButton()
, cancelButton()
, noButton()
to AlertDialogBuilder
;editText()
with input constraints #25;attempt()
#182;Intent.clearTask()
and similar functions, now add flags, not set (replace old) #173;forEachReversed
to forEachReversedByIndex()
;style()
to applyRecursively()
;NOT_NULL
SQL type modifier #175;startActivityForResult
called on wrong object (for Fragments) #76;include
doesn't set LayoutParams from the XML #149;View.backgroundDrawable
is nullable now #169;classParser
has always not accessible constructor #136 #145.Built for Kotlin 1.0.
android.support.v4.Fragment.addView()
function.Built for Kotlin 1.0 RC.
forEachChild()
, forEachChildWithIndex()
, firstChild()
, firstChildOrNull()
are inlined now #134;Int.withAlpha
#125;ContextWrapper
is now supported by AnkoContext
;Built for Kotlin Beta 3 (1.0.0-beta-3595).
anko-sqlite
artifact;0xffefefef.toInt()
→ 0xef.gray.opaque
;forEachChild()
, firstChild()
, firstChildOrNull()
helpers.Built for Koltin Beta 2 (1.0.0-beta-2423).
Changes:
AnkoComponent
interface for writing reusable components (please see this example);TextView.gravity
#96 and ImageView.imageResource
#102 properties;Cancel
is the default negative button name #112;AnkoLogger.wtf
;__dslAddView
functions.Built for Kotlin Beta Candidate (1.0.0-beta-1103
).
Built for Koltin Beta Candidate.
Built for Koltin M14 (0.14.449).
Changes:
MenuItem
s as a Sequence
#86;findOptional<T>()
;