刚刚从事android开发,很多东西还是记下来比较好,都是一些很普遍东西。
一:在清单文件中设置横屏和竖屏:
竖屏:android:screenOrientation="portrait"
横屏:android:screenOrientation=“landscape”
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"
三:设置textview是否包含顶部和底部的空白
在xml文件的TextView控件中加入如下属性:android:includeFontPadding="false”
四:设置ListVIew
分割线:
android:divider="#FFCC00"
android:dividerHeight=“4px”
去掉边缘的模糊:
android:fadingEdge="none"
去掉来到边缘的渐变色:
android:overScrollMode="never"
这两个不只是listview使用,其他控件也是使用的