我有一个垂直线性布局,它包装了另一个垂直线性布局。
如何使内部线性布局垂直居中?
据我所知,垂直线性布局迫使它的子级从左上角开始定位。
<LL vertical> //outer
<LL vertical> //inner - is used to group
<textView> //just a view to be vertically centered
</textView>
<LL vertical>
<anotherView/>
</LL vertical>
当
所以我有一个自带旋转木马,有一个标题,我试图垂直居中。
HTML:
<div class="item image1 active">
<div class="carousel-caption">
<h1 class="color-primary-0">Create Memories</h1><br>
<p class="color-primary-2">This is where a bunch of cool lore