hi!
I have 7 to 8 buttons in my application.
Like this.
How can I do this? I used:
LinearLayout ll = (LinearLayout)findViewById(R.id.searchdialog_layout);
ll.setOrientation(0);
Button btn = new Button(context);
btn.setBackgroundDrawable(getResources().getDrawable(R.drawable.bubble_layout));
btn.setPadding(4,0, 4, 0);
btn.setTextSize(14);
btn.setTextColor(Color.BLACK);
btn.setText("bubble" + " x");
ll.addView(btn) ;
But it didn't work.
Can anyone help?