. f December 2018 ~ Android Developers Blog

Friday, 14 December 2018

React Native- Invariant Violation: The navigation prop is missing for this navigator | react-navigation 3- navigation prop is missing for this navigator.

Hello Friend,        Recently I faced few issue while implementing the react-navigation in my app. I spent lots of time in it and then finally I found the actual cause of it. 1. undefined is not an object (evaluating 'RNGestureHandlerModule.State') Then I follow following steps to resolve...

Wednesday, 5 December 2018

Kotlin-Create TextView Programatically

Hello Friends,       In this tutorial I am going create a textview dynamically in kotlin and add it to Linearlayout layout. 1. activity_main.xml: Following is the activity_main.xml containing the TextView with the text . <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="https://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".TextViewSample"> <LinearLayout android:id="@+id/ll_main_layout"...

Kotlin-bind OnClickListener on view

Hello Friends,  In this tutorial I am showing you how to bind the click listener on View in Kotlin. 1. Code snippet to set OnClickListener on Textview in Kotlin Android val tvStatic = findViewById(R.id.tv_static) as TextView tvStatic.setOnClickListener { // your code to perform when the user clicks on the...

 

Copyright @ 2013 Android Developers Blog.