Month: February 2016

use FragmentManager class

The most appropriate way to handle Fragments in Android is to use FragmentManager class. Using fragments in Android programming is very useful advanced concept and benefits from it are: Dynamic and flexible user interface. Reusable views. Manage different screen resolutions.

Posted in android Tagged with: ,

Activity as Container for Fragments

Good practice in Android programming is to use Activity merely as a container and use Fragments for ALL UI elements, including the button you are clicking to change between them. For this purpose read as introduction.  Now, start new blank

Posted in android Tagged with: ,

Introduce fragment from activity in android

Concept of the fragment is new ‘quantum leap’ in Android programming. But before you start to run, you must learn how to walk first. So, we will start to introduce fragment from activity. We will remake our greatest common divisor

Posted in android Tagged with: ,

Volley git clone installation

You suppose to have started your Android studio project, and then, you need to do volley git clone installation. To do so, make an empty folder, go there and in cmd mode type following command: git clone Then you

Posted in android Tagged with:

git push origin master

In order to push your source code, go into root folder of your project and start with the following command: git add . Then we must do commit with git commit -m “your comment” Result of commit is given in

Posted in tutorials Tagged with: , , ,

ListView with Images and Text

In this tutorial it is explained how to insert ListView with Images and Text in Android app. ListView with Images and Text is very handy user interface for Android app. First, let’s add ListView container in content_main.xml. So we have

Posted in android Tagged with: ,

FrameLayout in Android studio

FrameLayout in Android studio is an interesting layout option in Android studio. Mayor difference between frame layout on one side and Relative and Linear Layout on the other side is that FrameLayout allows widgets to flow one over another. With

Posted in android Tagged with: , ,

Usage of Android Studio Debugger

Before starting with new advanced topics in Android Studio, let’s learn usage of Android Studio debugger first. For example, if we want to add onClick method for some button, we can do it by open corresponding xml file (content_main.xml for

Posted in android Tagged with: , ,