我有这样的布局:
<LinearLayout>
<TextView/>
<LinearLayout> <-- needs to be a dynamic list
<JohnDoeView/>
<JohnDoeView/>
</LinearLayout>
<TextView/>
<LinearLayout> <-- needs to be a another dynamic list
<JohnDoeView/>
我有一个奇怪的行为,我不能理解-我试图把一个视图放在滚动视图的底部,但没有运气。我已经尝试过clipToPadding和fillViewport,但它们都不起作用。有什么帮助吗?我的xml布局是-
<LinearLayout>
<FrameLayout/>
<ScrollView>
<LinearLayout>
<LinearLayout/>
<RelativeLayout/> <-- This is the problematic v
我正在尝试在另一个滚动视图中添加滚动视图。
它应该是这样的:
scroll view
linear layout
myprogramaticscroll view
myprogramticlinear layout
myprogramticbutton
end button
end layout
end scroll
end linear
end scroll
我正试着在里面添加滚动视图。它在那里,但我需要知道如何正确设置参数,以便我可以看到我的滚动视图内的整个按钮。我只看到了其中的一部分,我需要设置编程性的线性布局和滚动视图的宽度、高
这是我的应用程序的布局,我希望这两个专辑和歌曲(红色和蓝色),以水平移动时,您滚动查看不同的专辑(紫色)。但是,我希望歌曲(蓝色)独立垂直移动,以滚动专辑中的歌曲。
到目前为止,我的代码看起来和你预期的一样……
<LinearLayout
<HorizontalScrollView
<LinearLayout
<LinearLayout (This layout is so the album cover is displayed correctly)
<ImageView