Monday, May 5, 2014

RelativeLayout background selector, it will not in the end is how is it? ? What's wrong? ?


Used in the background I choose RelativeLayout will not do, there is no effect,
Used in the picture there on the line, there is the effect, in the end is how is it? ?
Background Selector:
  

android: state_pressed = "true"
android: drawable = "@ color / bg_clicked" />




Layout:
 
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: background = "@ drawable / navi_bg_selector"
android: layout_weight = "1">
.........

<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Need to give your job RelativeLayout registered onClick event
Reply:
Against this background selector should be space for it in terms of layout plus a choice, it may be in conflict with the gesture.
I also guess, if you find the answer to the possibility of sharing the landlord, but also the way to learn about
Reply:
reference to the second floor u014081087 reply:
this background selector should be space for it in terms of adding a layout selector may play with gestures conflict.
I also guess, if you find the answer to the possibility of sharing the landlord, but also the way to learn about

Resolved, the original is the lack of a configuration:
android: clickable = "true"

android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: background = "@ drawable / navi_bg_selector"
android: clickable = "true"
android: layout_weight = "1">
.........

No comments:

Post a Comment