// Rule: IncorrectHeightInScrollView | |
// | |
// Description: Checks whether a scrollview's child has the wrong dimension. | |
// | |
// Conditions: | |
// - The node has a ScrollView parent | |
// - The node has a height set to fill_parent | |
if (node.'..'.is("ScrollView") && node.isHeightFillParent()) { | |
analysis << "This ${node.name()} tag should use android:layout_height=\"wrap_content\"" | |
} |