在Java中,设置一个Container对象布局的方法是________。
A: setLayout(LayoutManagerm)
B: addLayout(LayoutManager m)
C: Layout(LayoutManager m)
D: setLayoutManager(LayoutManager m)
A: setLayout(LayoutManagerm)
B: addLayout(LayoutManager m)
C: Layout(LayoutManager m)
D: setLayoutManager(LayoutManager m)
A
举一反三
- 一个容器可以调用setLayout(LayoutManager mgr)方法更改自己的布局。
- 可以改变容器布局的语句是()。 A: addLayout(myLayout) B: layout(myLayout) C: setLayout(myLayout) D: setLayoutManager(myLayout)
- 下面哪个可以改变容器的布局?( ) A: setLayout(aLayoutManager); B: addLayout(aLayoutManager); C: layout(aLayoutManager); D: setLayoutManager(aLayoutManager);
- 下面哪个可以改变容器的布局为流布局?() A: 容器对象.setLayout(newFlowLayout()); B: 容器对象.addLayout(newFlowLayout()); C: 容器对象.layout(newFlowLayout()); D: 容器对象.setLayoutManager(newFlowLayout());
- LayoutManager(英译汉)
内容
- 0
在使用RecyclerView时候,必须指定一个适配器SimpleAdapter和一个布局管理器LayoutManager。( )
- 1
关于布局管理器(LayoutManager),下列说法正确的是( )。 A: 布局管理器是用来部署Java应用程序的网上发布的 B: (LayoutManager)本身不是接口 C: 布局管理器是用来管理构件放置在容器的位置和大小的 D: 以上说法都不对
- 2
RecyclerView控件LayoutManager布局管理器除了线性布局,还有( )布局。 A: 表格 B: 相对 C: 瀑布流 D: 垂直
- 3
RecyclerView控件LayoutManager布局管理器除了线性布局,还有( )布局。 A: 表格 B: 错误的 C: 瀑布流 D: 垂直
- 4
Write a line of code that declares a variable named layout of type LayoutManager and initializes it with a new object, which when used with a container can lay out components in a rectangular grid of equal-sized rectangles, 3 components wide and 2 components high.()