问题
I am working to create a TabHost at bottom of the screen using only java code. I am in a condition that I cant use xml layouts .Can someone expert in dynamic layouts could help me?
回答1:
You can do this by providing
alignParentrule for parentRelativeLayout, if you have one.You can do this by providing correct order if your parent is
LinearLayoutDO NOT use bottom tabs. Read design guides first.
来源:https://stackoverflow.com/questions/9141019/how-to-set-a-tabhost-at-bottom-of-the-screen-using-only-java