Android/Eclipse programming shortcuts

|

Initially when i was facing trouble to implement some re-usable things like making comments, organizing imports, etc. Here are some shortcuts which we can use while doing programming in Android / Eclipse: Toggle Comment => Shift + Ctrl + C Remove Block comment => Shift + ctrl + Generate Element...

Android – Change Title bar Text and Image

|

In Android, mostly we see the activity with normal title bar i.e. Activity name in Title bar but here i am going to present how do we change the title bar text and title bar image (Background image, icon with text). From my point of view, there are 2 ways...

Unix – Command line Arguments

|

What is command line argument? Those values which we pass at the time of running the shell scripts are known as Command line values(arguments). Command line arguments are treated as special variables within the script. They can be changed with the shift command. The command line arguments are enumerated in...

Android – Difference between gravity and layout_gravity

|

Hi, Do you what’s the exact difference between gravity and layout_gravity attributes? android:gravity sets the gravity of the content of the View its used on. android:layout_gravity sets the gravity of the View or Layout in its parent. Here is the best example that i came across: How to Position Views...