How to reduce the tab bar height and display in bottom

前端 未结 8 732
长情又很酷
长情又很酷 2021-02-02 04:42

can anybody tell how to reduce the height of tab bar and display tab bar in bottom

Thanks

8条回答
  •  猫巷女王i
    2021-02-02 05:16

    Working with tabs in the Eclipse "graphical layout" mode is not quite intuitive.

    NOTE - Currently I am not able to attach pictures to this answer as my reputation is below 10. Maybe in the future I will edit it and add them.

    1) To change tab bar height:- Select "tabs (TabWidget)" in the Outline view. A selection/resize box should appear around the tab bar and its height can now be modified. I have made it thinner in picture1.

    2) To move the tab bar to bottom:- Select "tabs (TabWidget)" in the Outline view and drop it into the LinearLayout above it (as marked in the picture 1). This will send the "tabs (TabWidget)" to the bottom of the list (see picture2). Tabs Bar might disappear at this stage. So adjust the weights of "tabcontent" & "tabs (TabWidget)" till it looks ok. I have used 10 & 1 respectively.

    3) To bring tab2 to the top:- After design/layout of tab1 is complete, we want to work on the next tab. But Eclipse does not allow selecting it. To bring tab2 to the top select tab1 and drop it into tabcontent. This will send tab1 to the bottom of the list and tab2 to the top. Later when work on tab2 is complete, tab3 can be brought up.

    This pretty roundabout way of working in graphical layout mode but maybe better than typing xml code.

    Cheers

提交回复
热议问题