Tag Archives: FILL_PARENT

How to inherit from other styles or how to extend your own styles in android?

Hello all…. I have covered many tutorials on styles on how to implement and use them. Today I will show you how to inherit from other styles or how to extend a style already created by you and use it for applying to other views. Here is one of my previous posts. http://www.coderzheaven.com/2012/02/03/changing-the-style-or-theme-of-default-alertdialog-in-android/ Another one is here.. http://www.coderzheaven.com/2011/06/19/styling-text-in-android-through-xml/… Read More »

How to place layouts one over another in android using addContentView()?

Hello all… In today’s tutorial I will show you how to add different layouts one over another in android through java code. For this we use the function addContentView() which is a variation on setContentView(View, android.view.ViewGroup.LayoutParams) to add an additional content view to the screen. Here I will create an xml with a textView and a Edittext and… Read More »