blob: d29ebd5f0b94b00953e4fb00bf35569572e7c1f2 [file] [log] [blame]
// 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\""
}