I want to create button with text = \"SomeText\" on center of this button and \"0\" on right part of button. Where \"0\" is the Counter and when I click this button Counter++ i
private static int counter = 0; button1.setOnClickListener(new OnClickListener(){ @Override onClick(View v){ counter += 1 button.setText("Some text" + counter); } });