MyWeChat
layout布局文件
top.xml
LinearLayout设置
长(layout_width)
宽(layout_height)
背景颜色(background)
TextView设置
长(layout_width)
宽(layout_height)
居中效果(gravity)
字体颜色(textColor)
字体大小(textSize)
文案(text)
效果
bottom.xml
最外层LinearLayout(水平)设置
宽(layout_width)
背景颜色(background)
高(layout_height)
四个LinearLayout(垂直)设置
- 垂直放图片imageView和textview
- 最重要的设置是layout_weight=1(也就是这四个内部LinearLayout占外层LinearLayout的比重)
- 设置id后面要用
效果
activity_main.xml
- 外部LinearLa