I\'m loading navigation from a website, where each item has a title, description, and image. I want to have all of the titles and descriptions centered along the same axis.<
This can't be done in the XML. You would have to specify the size in the code. I would do that in the onCreate()
of the activity:
import android.widget.LinearLayout.LayoutParams;
...
obj.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT,
0.25f));
This means use 100% of the parent's height but 25% of the parent's width.