Skip to content

Commit a5b5bf1

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 26611ce + 1708d26 commit a5b5bf1

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,33 +25,33 @@ Add the dependency:
2525
In your activity java class:
2626
```
2727
//Create Timeline Rows List
28-
private ArrayList<TimelineRow> TimelineRowsList = new ArrayList<>();
28+
ArrayList<TimelineRow> TimelineRowsList = new ArrayList<>();
2929
3030
// Add Row to the List
31-
TimelineRowsList.add(
32-
new TimelineRow(
33-
//Row Id
34-
i
35-
//Row Date
36-
,new Date()
37-
//Row Title or null
38-
,"Title"
39-
//Row Description or null
40-
,"Description"
41-
//Row Image from drawable
42-
,"img_1"
43-
//Row Bellow Line Color
44-
, Color.argb(255, 255, 255, 255)
45-
//Row Bellow Line Size in dp
46-
, 25
47-
//Row Image Size in dp
48-
, 25)
49-
);
31+
TimelineRowsList.add(
32+
new TimelineRow(
33+
//Row Id
34+
1
35+
//Row Date
36+
,new Date()
37+
//Row Title or null
38+
,"Title"
39+
//Row Description or null
40+
,"Description"
41+
//Row Image from drawable
42+
,"img_1"
43+
//Row Bellow Line Color
44+
, Color.argb(255, 255, 255, 255)
45+
//Row Bellow Line Size in dp
46+
, 25
47+
//Row Image Size in dp
48+
, 25)
49+
);
5050
5151
//Create the Timeline Adapter
5252
ArrayAdapter<TimelineRow> myAdapter = new TimelineViewAdapter(this, 0, TimelineRowsList,
5353
//if true, list will be arranged by date
54-
true);
54+
true);
5555
5656
//Get the ListView and Bind it with the Timeline Adapter
5757
ListView myListView = (ListView) findViewById(R.id.timelineListView);

0 commit comments

Comments
 (0)