As the title says I want to randomize the gravity of the Text in my layout(i have allready been able to randomize the color and text size of the text) The following code is rigged to an onclicklistener :
if (check.contains("WTF")) {
Random crazy = new Random();
display.setText("WTF!!!1!");
display.setTextSize(crazy.nextInt(30));
display.setTextColor(Color.rgb(crazy.nextInt(256),crazy.nextInt(256),crazy.nextInt(256)));
display.setGravity(Gravity.CENTER);
}
and there are a couple of else if and an else statement but i don't think that including them is relevant to the question.