Ciao a tutti, in una schermata ho una label e a fianco viene creato un pulsante...vorrei che il pulsante si trovasse sotto la label...non ho possibilità di usare xml solo codice java che riporto:
codice:
private View createView(final Link link) {
final Context context = getContext();
LinearLayout linearLayout = new LinearLayout(context);
linearLayout.setOrientation(LinearLayout.VERTICAL);
linearLayout.setGravity(Gravity.CENTER_HORIZONTAL | Gravity.TOP);
linearLayout.setLayoutParams(new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT));
button = new Button(context);
button.setText(interactionManager.getString("apri"));
button.setLayoutParams(new ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.WRAP_CONTENT));
button.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
startBrowser();
}
});