android: layout_width = "fill_parent"
android: layout_height = "fill_parent"
android: layout_weight = "1.0"
android: background = "@ drawable / task_delete_selector_background"
android: orientation = "vertical"
android: paddingRight = "6.0dip"
android: state_focused = "false"
android: state_pressed = "false">
LinearLayout where I set android: background, but has no effect when clicked and appear, but in the LinearLayout orders Imgview in settings, there are effects, neighborhoods expert
------ Solution - ------------------------------------------
check whether the response of the accounting strikes
------ Solution ------------------------------------- -------
inside the drawable write XML
android: state_pressed = "false"
/>
android: state_pressed = "true"
/>
Then this XML name into android: background = "@ drawable / Here"
------ Solution ----------------- ---------------------------
If this method has no effect on the Layout, only in this way if their under the control has the effect ..... need to manually set
------ For reference only ------------------------- --------------
replace the background image is too small
------ For reference only --------------- ------------------------
android: addStatesFromChildren = "true", you can, but linearlayout more than one, then! Only the first one linearlayout with click effect! How to solve it!
------ For reference only -------------------------------------- -
you go to the code of this linearlayout add a click event to see, and see not have any response.
没有评论:
发表评论