http://www.aichengxu.com/view/31025
1, if the use of android:layout_marginright in LinearLayout does not work, by testing the original in android2.x, if a control has a android:layout_gravity property, will appear android:layout_marginright did not have the effect, but the left margin to the right margin up, directly remove the Android:layout_gravity this attribute can be resolved
2, if it does not work in relativelayout, please add a android:layout_alignparentright= "true" in front of this code.
3, if the ScrollView in the LinearLayout set the margin class property is invalid, the workaround linearlayout add android:layout_gravity= "Top" property is OK,
4, if it is lineaerlayout put into the ScrollView or relativelayou inside the Layout_margin failure does not work, the solution in the attribute added android:layout_gravity= "Top", Note that 1 is not the same, 1 is linearlayout inside the control, and here refers to linearlayout in other controls, please distinguish between the treatment.
5, ListView inside sub-view Layout_margin Invalid solution, Android:devider+android:deviderheight property
Android Layout_margin Invalid Solution