I produce the following snackbar with the following code:
Snackbar: Snackbar
Code:
View parentLayout = findViewById(android.R.id.content);
Snackbar snackbar = Snackbar.make(parentLayout, "Wähle mindestens eine Kategorie aus, um fortzufahren", Snackbar.LENGTH_LONG)
.setAction("CLOSE", new View.OnClickListener() {
@Override
public void onClick(View view) {
}
})
.setActionTextColor(getResources().getColor(android.R.color.holo_purple ));
snackbar.show();
As you see, the snackbar is pretty big and I actually only want it to be displayed in the area of the red box. Do you know how to adjust that?