16
16
* <p>
17
17
* A holder extended to support having a selectable mode with a different
18
18
* background and state list animator.</p>
19
- * <p/>
20
19
* <p>When {@link #setSelectable(boolean)} is set to true, itemView's
21
20
* background is set to the value of selectionModeBackgroundDrawable,
22
21
* and its StateListAnimator is set to selectionModeStateListAnimator.
23
22
* When it is set to false, the defaultModeBackgroundDrawable and
24
23
* defaultModeStateListAnimator are used.</p>
25
- * <p/>
26
24
* <p>defaultModeBackgroundDrawable and defaultModeStateListAnimator
27
25
* default to the values on itemView at the time the holder was constructed.</p>
28
- * <p/>
29
26
* <p>selectionModeBackgroundDrawable defaults to a StateListDrawable that displays
30
27
* your colorAccent theme color when state_activated=true, and nothing otherwise.
31
28
* selectionModeStateListAnimator defaults to a raise animation that animates selection
32
29
* items to a 12dp translationZ.</p>
33
- * <p/>
34
30
* <p>(Thanks to <a href="https://github.com/kurtisnelson/">Kurt Nelson</a> for examples and discussion on approaches here.)</p>
35
31
*/
36
32
public class SwappingHolder extends MultiSelectorBindingHolder implements SelectableHolder {
@@ -43,10 +39,8 @@ public class SwappingHolder extends MultiSelectorBindingHolder implements Selec
43
39
44
40
/**
45
41
* <p>Construct a new SelectableHolder hooked up to be controlled by a MultiSelector.</p>
46
- * <p/>
47
42
* <p>If the MultiSelector is not null, the SelectableHolder can be selected by
48
43
* calling {@link com.bignerdranch.android.multiselector.MultiSelector#setSelected(com.bignerdranch.android.multiselector.SelectableHolder, boolean)}.</p>
49
- * <p/>
50
44
* <p>If the MultiSelector is null, the SelectableHolder acts as a standalone
51
45
* ViewHolder that you can control manually by setting {@link #setSelectable(boolean)}
52
46
* and {@link #setActivated(boolean)}</p>
@@ -72,7 +66,6 @@ public SwappingHolder(View itemView, MultiSelector multiSelector) {
72
66
73
67
/**
74
68
* <p>Construct a new standalone SelectableHolder.</p>
75
- * <p/>
76
69
* <p>Selectable state can be controlled manually by setting {@link #setSelectable(boolean)}.</p>
77
70
*
78
71
* @param itemView Item view for this ViewHolder
@@ -222,7 +215,6 @@ public void setDefaultModeStateListAnimator(StateListAnimator defaultModeStateLi
222
215
223
216
/**
224
217
* Whether this holder is currently activated/selected.
225
- * <p/>
226
218
* Calls through to {@link View#setActivated(boolean)} on {@link #itemView}.
227
219
*
228
220
* @return True if the view is activated.
@@ -233,7 +225,6 @@ public boolean isActivated() {
233
225
234
226
/**
235
227
* Activate/select this holder.
236
- * <p/>
237
228
* Calls through to {@link android.view.View#isActivated()} on {@link #itemView}.
238
229
*
239
230
* @param isActivated True to activate the view.
0 commit comments