blob: 302f86c841988e648ea2a99186f91c1de145916b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
package cgeo.geocaching.ui.logs;
import butterknife.InjectView;
import cgeo.geocaching.R;
import cgeo.geocaching.ui.AbstractViewHolder;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
public class LogViewHolder extends AbstractViewHolder {
@InjectView(R.id.added) protected TextView date ;
@InjectView(R.id.type) protected TextView type;
@InjectView(R.id.author) protected TextView author;
@InjectView(R.id.count_or_location) protected TextView countOrLocation;
@InjectView(R.id.log) protected TextView text;
@InjectView(R.id.log_images) protected TextView images;
@InjectView(R.id.log_mark) protected ImageView marker;
private int position;
public LogViewHolder(final View rowView) {
super(rowView);
}
/**
* Read the position of the cursor pointed to by this holder. <br/>
* This must be called by the UI thread.
*
* @return the cursor position
*/
public int getPosition() {
return position;
}
/**
* Set the position of the cursor pointed to by this holder. <br/>
* This must be called by the UI thread.
*
* @param position
* the cursor position
*/
public void setPosition(final int position) {
this.position = position;
}
}
|