Contextual Action Mode – Android Studio Tutorial

In this video we will learn, how to activate the contextual action mode, which is very similar to the floating context menu, but shows the menu options in the action bar instead of a pop up menu. We will activate this contextual action menu on a long click, by setting an onLongClickListener on our View. We will set it’s title and implement an ActionMode.Callback interface, in which we then override the oncreateActionMode, onPrepareActionMode, onActionItemClicked and onDestroyActionMode methods. There we inflate our app bar menu with our own menu xml file and handle click events on the single menu items.
Lastly we will learn, how to change the color of our action mode app bar and how to prevent it from pushing our toolbar away, instead of displaying on top of it, by using the windowActionBarOverlay attribute in our styles.xml file.

Source code:
https://codinginflow.com/code-examples/android/contextual-action-mode

______________________________
Great books to learn Android development:
-The Big Nerd Ranch Guide: http://amzn.to/2jGADD6
-Head First Android Development: http://amzn.to/2jHAmQz

Best equipment for long hours of coding:
-Keyboard: http://amzn.to/2khXPvJ
-Mouse: http://amzn.to/2jFYBi7

Disclaimer: The Amazon links are affiliate links, which means that
I earn a little commission when you buy something there. You don’t
have any additional costs, but you can support my channel this way.

DatePickerDialog – Android Studio Tutorial

In this tutorial we are going to open a DatePickerFragment and use its onDateSet Callback to send the date to our Activity and show it there. We are also going to format that date to our Locale.

______________________________
Great books to learn Android development:
-The Big Nerd Ranch Guide: http://amzn.to/2jGADD6
-Head First Android Development: http://amzn.to/2jHAmQz

Best equipment for long hours of coding:
-Keyboard: http://amzn.to/2khXPvJ
-Mouse: http://amzn.to/2jFYBi7

Disclaimer: The Amazon links are affiliate links, which means that
I earn a little commission when you buy something there. You don’t
have any additional costs, but you can support my channel this way.

Channel: Coding in Flow
Published: 2017-10-20 23:11:50
Duration: 8M35S
Views: 546
Likes: 10
Favorites: 0

Custom Dialog + Sending Information to Activity – Android Studio Tutorial

In this video we will build a custom DialogFragment which is also able to pass information back to the underlying Activity by using an interface and setting the Activity as a listener to the interface methods. We will create a custom layout with 2 EditText fields and we will use setPositiveButton and setNegativeButton to add an Ok and Cancel Button.

______________________________
Great books to learn Android development:
-The Big Nerd Ranch Guide: http://amzn.to/2jGADD6
-Head First Android Development: http://amzn.to/2jHAmQz

Best equipment for long hours of coding:
-Keyboard: http://amzn.to/2khXPvJ
-Mouse: http://amzn.to/2jFYBi7

Disclaimer: The Amazon links are affiliate links, which means that
I earn a little commission when you buy something there. You don’t
have any additional costs, but you can support my channel this way.

Channel: Coding in Flow
Published: 2017-10-05 13:32:40
Duration: 12M50S
Views: 1559
Likes: 40
Favorites: 0

Menu with Sub Items – Android Studio Tutorial

In this video we will create an Options Menu in Android Studio, which contains icons, drop down menus and sub items. The menu will be displayed in the app’s Toolbar.

______________________________
Great books to learn Android development:
-The Big Nerd Ranch Guide: http://amzn.to/2jGADD6
-Head First Android Development: http://amzn.to/2jHAmQz

Best equipment for long hours of coding:
-Keyboard: http://amzn.to/2khXPvJ
-Mouse: http://amzn.to/2jFYBi7

Disclaimer: The Amazon links are affiliate links, which means that
I earn a little commission when you buy something there. You don’t
have any additional costs, but you can support my channel this way.

Channel: Coding in Flow
Published: 2017-10-08 22:49:44
Duration: 6M38S
Views: 71
Likes: 4
Favorites: 0

Simple Countdown Timer – Android Studio Tutorial

In this tutorial we will learn, how to build a simple countdown timer, which shows the remaining time in minutes and seconds. It will have a start and stop button, so you can pause and resume it. For this, we will use the CountDownTimer class and override the onTick method. We will set it’s time in milliseconds and format those milliseconds to minutes and seconds.

______________________________
Great books to learn Android development:
-The Big Nerd Ranch Guide: http://amzn.to/2jGADD6
-Head First Android Development: http://amzn.to/2jHAmQz

Best equipment for long hours of coding:
-Keyboard: http://amzn.to/2khXPvJ
-Mouse: http://amzn.to/2jFYBi7

Disclaimer: The Amazon links are affiliate links, which means that
I earn a little commission when you buy something there. You don’t
have any additional costs, but you can support my channel this way.

Channel: Coding in Flow
Published: 2017-10-01 19:25:09
Duration: 9M58S
Views: 1363
Likes: 17
Favorites: 0

Up Button – Android Studio Tutorial

In this tutorial we are going to implement an up/back button into our app, which navigates us back to our parent Activity. For this we have to make some small changes in our Manifest.xml file.

If you dont know, how to open a new Activity (for example by clicking a Button), watch this video first:
https://www.youtube.com/watch?v=bgIUdb-7Rqo

______________________________
Great books to learn Android development:
-The Big Nerd Ranch Guide: http://amzn.to/2jGADD6
-Head First Android Development: http://amzn.to/2jHAmQz

Best equipment for long hours of coding:
-Keyboard: http://amzn.to/2khXPvJ
-Mouse: http://amzn.to/2jFYBi7

Disclaimer: The Amazon links are affiliate links, which means that
I earn a little commission when you buy something there. You don’t
have any additional costs, but you can support my channel this way.

Channel: Coding in Flow
Published: 2017-10-11 22:42:33
Duration: 2M41S
Views: 314
Likes: 10
Favorites: 0

Leave a Reply

Your email address will not be published. Required fields are marked *