Showing posts with label create a text view programmatically. Show all posts
Showing posts with label create a text view programmatically. Show all posts

Wednesday, February 18, 2015

How to create a text view programmatically with required attributes

Here I am providing a way to create a text view programmatically with required attributes. Please check and let me know if you have any query for me.

LinearLayout.LayoutParams lparams = new LinearLayout.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
lparams .gravity = Gravity.CENTER;

Don't lose faith when you see others receive answers to their prayers

An elephant and a dog became pregnant at same time. Three months down the line the dog gave birth to six puppies . Six months later the ...

 

G-Expo Template by Ipietoon Cute Blog Design