Long time did not write Bo, because recently busy to do an app, really do not have a moment. It's almost finished now. Think about this layout problem, I believe a lot of people have met, but usually write a little more complicated layout, encountered more than once.
For an obsessive-compulsive disorder, see this 2 and immediately try to make it disappear. Open lint A look, all is the same problem, as follows:
The meaning is probably missing the description about the image, then manually add a chant to it. android:contentdescription="@string/value"
Other:
- Set android:baselinealigned= "False" on the This element for better performance
- If LinearLayout is used for nested layout space calculations, its Android:baselinealigned property should be set to false to speed up the layout calculation
- Android:baselinealigned= "false"
- This linearlayout layout or its relativelayout the parent is useless;
- Extra LinearLayout or Relativelayout.
- Delete and then
- This tag and its children can replaced by one <TextView/> and a compound drawable
- Sometimes we may use the Image+textview combination, but in fact the image is not necessary, TextView provides a property to set the image
- android:drawable= "@drawable/resource"
- Use a layout_height of 0dip instead of wrap_content for better performance
- When you set the weight property for a control in a linearlayout layout, the component fills the remaining space by default
- Remove the weight attribute or modify the wrap_content to 0DP
- buttons in button bars Should be borderless
- Reason unknown
- style= "? Android:attr/buttonbarbuttonstyle"