Kotlin is sponsored by Google,Īnnounced as one of the official languages forĮasy to learn – Basic is almost similar to java. Than Java, but still be fully interoperable
Object-oriented language, and a “better language” It was first introduced by JetBrains in 2011Īnd a new language for the JVM. Like IntelliJ IDEA, PhpStorm, Appcode, etc.
General-purpose programming language developedīy JetBrains, that has built world-class IDEs
This example demonstrates the steps involved to create a ScrollView in Android using Kotlin. android:splitMotionEvents Sets whether this ViewGroup should split MotionEvents to separate child views during touch event dispatch. android:layoutMode Defines the layout mode of this ViewGroup. android:layoutAnimation Defines the layout animation to use the first time the ViewGroup is laid out. android:clipToPadding Defines whether the ViewGroup will clip its children and resize any EdgeEffect to its padding, if padding is not zero. android:clipChildren Defines whether a child is limited to draw inside of its bounds or not. android:animateLayoutChanges Defines whether changes in layout should cause a LayoutTransition to run. android:scrollbars Defines which scrollbars should be displayed on scrolling or not.ĭescription android:addStatesFromChildren Sets whether this ViewGroup’s drawable states also include its children’s drawable states. android:padding Sets the padding, in pixels, of all four edges. android:onClick Name of the method in this View’s context to invoke when the view is clicked. android:minWidth Defines the minimum width of the view. android:minHeight Defines the minimum height of the view. android:isScrollContainer Set this if the view will serve as a scrolling container, meaning that it can be resized to shrink its overall window so that there will be space for an input method. android:id Supply an identifier name for this view, to later retrieve it with View.findViewById() or Activity.findViewById(). android:contentDescription Defines text that briefly describes content of the view. android:clickable Defines whether this view reacts to click events. android:background A drawable to use as the background. Defaults to false.ĭescription android:alpha alpha property of the view, as a value between 0 (completely transparent) and 1 (completely opaque).