Posts

Temperature Converter App : Android Kotlin App

Image
What is Temperature Converter App?  This free calculator is able to convert the temperature from Fahrenheit to Celsius, and from Celsius to Fahrenheit. The best app for school, college and work! If you are a student, it will helps you to learn temperature calculations. 1. Start Android Studio and Create new Project First, open Android Studio. You should see this window. Go ahead and click "Start a new Android Studio Project". An Android Studio Project typically means the code and files for one Android Application. 2. Choose your Project On the next page you will be presented with several device platform tabs, each with different templates for adding an Activity. From the "Phone and Tablet" tab choose "Empty Activity," and click "Next" again. 3. Configure Android Project Configure your project  For this app use this configuration: Name:  Temperature Converter Package : com.example.android.temperatureconverter Project location : < Your choice of...

Recycler View Android Kotlin

Image
Recycler View Tutorial Create a Android Studio Project : MainActivity.kt import androidx . appcompat . app . AppCompatActivity import android . os . Bundle import android . widget . Button import android . widget . EditText import androidx . recyclerview . widget . LinearLayoutManager import androidx . recyclerview . widget . RecyclerView class MainActivity : AppCompatActivity () { private lateinit var editItem : EditText private lateinit var btnAdd : Button private lateinit var recyclerView : RecyclerView override fun onCreate ( savedInstanceState : Bundle ?) { super . onCreate ( savedInstanceState ) setContentView ( R . layout . activity_main ) } private fun fetchData (): ArrayList < String >{ val list = ArrayList < String >() for ( i in 0 until 100 ){ list . add ( "Item No : $ i " ) } return list } } activity_main.xml <? xml version ="1.0" encoding ="u...