You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are using gradle below version 0.8.0 make sure you have added maven repository in your `project build.gradle` file
24
+
```java
25
+
buildscript {
26
+
repositories {
27
+
maven {
28
+
url 'repo1.maven.org/maven2';
29
+
}
30
+
}
31
+
...............
32
+
........................
33
+
}
34
+
35
+
repositories {
36
+
mavenCentral()
37
+
}
38
+
39
+
```
40
+
>As of version 0.8.9, AndroidStudio supports the MavenCentralRepository by default. So to add an external maven dependency all you need to do is edit the module's build.gradle file and insert a line into the dependencies section [Source](https://stackoverflow.com/a/26630422/7098524)
41
+
42
+
- #### **2. Data type's**
43
+
---
44
+
Worksheet version 0.0.1 support two data types
45
+
46
+
1. ##### **List of Objects**
47
+
E.g `List<Book>` for creating an ExcelBook with single Sheet.
The instance accept to variables application context and extenalFilePath as the name of the file.
91
+
92
+
Withthis few steps the excel file with name provided as externalFilePath String will be save in the external directory `worksheets` created by worksheet dependency in your device.
93
+
94
+
<br>
95
+
96
+
- #### **IMPORTANTNOTE**
97
+
---
98
+
The `WorkSheet.Builder(getApplicationContext(), path)` have two chirld methods for accepting either ``List<Object>`` or `List<Map<String, List<Object>>>`.
99
+
100
+
-To create Excel book with multiple SingleSheet use:
Bydefault cell style create an Excel sheet with black texts and borders. But you can change either title, Header and Data cell styles by using the mentioned CellEnum types.
|TEAL_HEADER|CellEnum|Teal text, bold, white text |
124
+
|TEAL_TITLE|CellEnum|Teal text, medium, white text |
125
+
|TEAL_CELL|CellEnum|Teal text, normal, white text |
126
+
|FORMULA_1|CellEnum|Give it a try|
127
+
|FORMULA_2|CellEnum|Give it a try|
128
+
|FORMULA_3|CellEnum|Give it a try|
129
+
|LINE_2|CellEnum|Give it a try|
130
+
|LINE_1|CellEnum|Give it a try|
131
+
132
+
<br>
133
+
134
+
-- ##### **UsingStyles**
135
+
In your Builder method add `.title(CellEnum_ENUM_TYPE)` to change title cell style or `.header(CellEnum.ENUM_TYPE)` for header cells or `.cell(CellEnum.ENUM_TYPE)` for data cells
136
+
137
+
138
+
Example1.
139
+
140
+
```java
141
+
newESheet.Builder(multipleFilePath)
142
+
.header(EType.TEAL_HEADER)
143
+
.cell(EType.LINE_2)
144
+
.title(EType.TEAL_TITLE)
145
+
.setSheet(getListBook("New Sample Book"))
146
+
.writeSheet();
17
147
```
18
-
<spanstyle="color:blue">some *This is Blue italic.* text</span>
0 commit comments