Tag Archives: Android Fragment Example

How to Make Android Apps 13

Android Fragment ExampleIn this tutorial I’ll finish up the Android Fragment example I started in part 12. Watch part 12 first. Here is the entire package available for download.

This time will cover how to switch to either an Activity if we are in portrait mode, or how to change the hero data dynamically on the screen if we are in horizontal mode. This is a very useful technique to learn. All of the code follows the tutorial below. Continue reading How to Make Android Apps 13

How to Make Android Apps 12

Android Fragment ExampleIn this tutorial I will provide another Android Fragment example. I have received a bunch of questions about a Android development Fragment example. So, here I’ll cover every line of code in it and I will also show how to change it so that it fits the requirements that many people want.

We’ll cover how to create horizontal and portrait layouts, ListViews, Array Adapters, onSaveInstanceState, ListView events, opening different layouts based on orientation. Continue reading How to Make Android Apps 12

How to Make Android Apps 10

Android Fragment TutorialIn this few parts of my Android tutorial I’ll focus on a Android Fragment Tutorial. I’ll start off slow here by showing you how to switch fragments based on screen orientation, which is very commonly used.

I’ll specifically cover the basics of fragments, layout fragments, FragmentManager, FragmentTransaction, committing fragment replacements, LayoutInflator, Configuration and more. Continue reading How to Make Android Apps 10