Chronometer in Android using Kotlin:

Posted on August 5, 2020August 9, 2020Categories Android 11 Comments on Chronometer in Android using Kotlin:

CHRONOMETER IN ANDROID Chronometer in Android is useful to implement a simple Timer. It is a subclass of TextView however holds a countdown or count up timer. Steps to implement chronometer in Android are given below First step is to add some strings in strings xml Write strings given below Next step to design layout Add 4 buttons Set constraints and I’d for buttons First button text start Second stop Third button apply format Fourth button for clear format Add … Continue reading “Chronometer in Android using Kotlin:”

Date Picker in Android using Kotlin:

Posted on August 5, 2020August 9, 2020Categories Android 1 Comment on Date Picker in Android using Kotlin:

Date picker:– it is a widget in Android which is used to set date in application. For example in job sites they will provide option like how much time duration for availability for the job etc. Steps to create a date picker in Android using kotlin:- Step 1:- Add a  Date picker in your Layout(XML file).Step 2:- Set all constraints for Date picker.Step 3:- now go to mainactivity.kt  and apply a listener on datepicker like this :- Jobdate(id of date … Continue reading “Date Picker in Android using Kotlin:”

Time picker in Android using kotlin:

Posted on August 5, 2020August 9, 2020Categories Android 1 Comment on Time picker in Android using kotlin:

Time picker:– It is a widget in Android which is used to set time.For example the start time and end time for your services, with the help of time picker you can do it easily.Time picker comes with two modes one is clock mode and other is spinner mode. Steps to create a time picker in Android using kotlin:– Step 1:- Add a Time picker in your layout (XML File).Step 2:- Set all the constraints for time picker.Step 3:- Now … Continue reading “Time picker in Android using kotlin:”

Toolbar in Android using kotlin:

Posted on August 5, 2020August 9, 2020Categories Android   Leave a comment on Toolbar in Android using kotlin:

Toolbar:– When we create a new application in android,it comes with a default action bar.There is a difference between action bar and toolbar:Toolbar is more flexible than action bar.Action bar is only a lign at the top of the activity, but you can use toolbar anywhere in your screen.With the help of Toolbar you can meet your custom requirements. Steps to create a toolbar in application in android using kotlin:–Step 1:- Add a Toolbar in layout (XML File).Step 2:- You … Continue reading “Toolbar in Android using kotlin:”

Bottom navigation part 2 in Android using Kotlin:

Posted on July 25, 2020August 9, 2020Categories Android 16 Comments on Bottom navigation part 2 in Android using Kotlin:

Bottom navigationStep 1.  Add Framelayout in Layout FileStep 2. Create  fragment in android studio for your appStep 3. How to use fragmentmanager to use fragment in your app Load fragment in app on BottomNavigationView event  Steps1. create new fragment->fragment blank of h fragment.kt and another of create aboutfragment.ktStep2. fragment_home_xml-> attributes-> text-> I am  home fragment Step3. fragment_about_xml-> attributes-> text-> I am about fragment Go to MainActivity.kt (code) supportFragmentManager.begin Transaction ().add(R.id.root_container,HomeFragment()).commit()Bottomview.setOnNavigationItemSelectedListener(  /*Part one logicVal msg= when(it.itemID){R.id.about->”About Selected”else ->”Home selected”}Toast.make text(this @MainActivity,msg,Toast.LENGTH_LONG).show() /* … Continue reading “Bottom navigation part 2 in Android using Kotlin:”

Bottom navigation view in Android using Kotlin:

Posted on July 25, 2020August 9, 2020Categories Android   Leave a comment on Bottom navigation view in Android using Kotlin:

Bottom navigation Part 1:– Step 1. Add  BottomNavigationView in LayoutFileStep 2. Add some icons in AppStep 3. Create menu resource in android studio without iconStep 4. Add icons in menu resource fileStep 5.  Attach menu resource with BottomNavigationViewStep 6. Apply Listener with BottomNavigationView Use toast on BottomNavigationView event Steps start  Step 1. Start a new projectStep 2. drawable-> new->vector asset-> select icon Step 3. menu -> android resources file-> create menu Step 4. name of first item is Home               name 2 second item … Continue reading “Bottom navigation view in Android using Kotlin:”

Add New Activity and Activity Life Cycle in Android using Kotlin:

Posted on July 25, 2020August 9, 2020Categories Android 7 Comments on Add New Activity and Activity Life Cycle in Android using Kotlin:

ADD NEW ACTIVITY AND ACTIVITY LIFE CYCLE:–Part 11 create new activity in Android in different ways2 understand the cycle of an activityPart 23 navigation between activities back and fourth4 passing data between activityPart 35 formatting activitya apply custom toolbarb change the title of activityc create menu item add menu items in activity and work on menu item eventd enable back navigation button on second activitye get data from activity to activityf apply theme on activityPart 46 permission handling in Activity … Continue reading “Add New Activity and Activity Life Cycle in Android using Kotlin:”

Frame Animation in android using Kotlin:

Posted on July 25, 2020August 9, 2020Categories Android   Leave a comment on Frame Animation in android using Kotlin:

FRAME ANIMATION IN ANDROID KOTLINIn Frame Animation, several images are framed one by one to show Animation to a human eye.So, for frame animation, we will need the set of images that needs to be framed one by one to show the animation in android. Steps to use frame animation are given below First of all add images to the drawable Add new resource fileDrawable -> new -> image asset new resource file  Give name it to singal animation Replace selector with … Continue reading “Frame Animation in android using Kotlin:”

Calendar View in Android using Kotlin:

Posted on July 25, 2020August 9, 2020Categories Android 2 Comments on Calendar View in Android using Kotlin:

Calendar view:–With the help of calendar view you can select a date and can use it where you need.In daily life you need to select date for job application form, examination detail etc  In this video you’ll learn How to create a calendar view in android using kotlin.Step 1. Add a Calendar view in your layout (XML file).Step 2. Now set all the constraints for it.Step 3. Then go to KT file and attach a listener on calendar view like … Continue reading “Calendar View in Android using Kotlin:”

Seekbar in Android using Kotlin:

Posted on July 25, 2020August 9, 2020Categories Android   Leave a comment on Seekbar in Android using Kotlin:

Seekbar:– With the help of seekbar you can set the range i.e  price range.For example set the range between 0 to 100 and so on.It has of two types one is Simple and another is Discrete( a seekbar is divided into many small parts).In this video you’ll learn how to create a discrete seekbar in android using kotlin.Step 1. Add a seekbar in your layout (XML file).Step 2. Set all constraints according to your need.Step 3. Set the minimum and … Continue reading “Seekbar in Android using Kotlin:”