I need to create dynamic UI. How can I add margin to the left side of
the button.
newPost =new Button(BlogsList.this);
newPost.setText("Add Entry To Blog");
newPost.setPadding(10, 10, 10, 10);
newPost.setLayoutParams(new LayoutParams
(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));
newPost.setOnClickListener(new NewPost(b.getName
(),b.getBlogId()));
l22.addView(newPost);
Thanks!
CIndy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---