Skip to content

Commit 084d624

Browse files
committed
Updated readme
1 parent 8f80c11 commit 084d624

File tree

9 files changed

+20
-13
lines changed

9 files changed

+20
-13
lines changed

.DS_Store

0 Bytes
Binary file not shown.

ARE/app/src/main/java/com/chinalwb/are/demo/ARE_DefaultToolbarActivity.java

+15
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,24 @@ private void initToolbar() {
9090
mEditText = this.findViewById(R.id.arEditText);
9191
mEditText.setToolbar(mToolbar);
9292

93+
setHtml();
94+
9395
initToolbarArrow();
9496
}
9597

98+
private void setHtml() {
99+
String html = "<p style=\"text-align: center;\"><strong>New Feature in 0.1.2</strong></p>\n" +
100+
"<p style=\"text-align: center;\">&nbsp;</p>\n" +
101+
"<p style=\"text-align: left;\"><span style=\"color: #3366ff;\">In this release, you have a new usage with ARE.</span></p>\n" +
102+
"<p style=\"text-align: left;\">&nbsp;</p>\n" +
103+
"<p style=\"text-align: left;\"><span style=\"color: #3366ff;\">AREditText + ARE_Toolbar, you are now able to control the position of the input area and where to put the toolbar at and, what ToolItems you'd like to have in the toolbar. </span></p>\n" +
104+
"<p style=\"text-align: left;\">&nbsp;</p>\n" +
105+
"<p style=\"text-align: left;\"><span style=\"color: #3366ff;\">You can not only define the Toolbar (and it's style), you can also add your own ARE_ToolItem with your style into ARE.</span></p>\n" +
106+
"<p style=\"text-align: left;\">&nbsp;</p>\n" +
107+
"<p style=\"text-align: left;\"><span style=\"color: #ff00ff;\"><em><strong>Why not give it a try now?</strong></em></span></p>";
108+
mEditText.fromHtml(html);
109+
}
110+
96111
private void initToolbarArrow() {
97112
final ImageView imageView = this.findViewById(R.id.arrow);
98113
if (this.mToolbar instanceof ARE_ToolbarDefault) {

ARE/demo/FULL_TOP.png

-105 KB
Binary file not shown.

ARE/demo/MIN_BOTTOM.png

-127 KB
Binary file not shown.

ARE/demo/MIN_HideToolbar.png

-116 KB
Binary file not shown.

ARE/demo/MIN_TOP.png

-271 KB
Binary file not shown.

ARE/demo/new_012.png

322 KB
Loading

ARE/demo/new_012_demos.png

264 KB
Loading

README.md

+5-13
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,14 @@ Plan for 0.1.2 (Done, will update readme and release soon):
5151

5252
More features you can open feature request but will need to wait for 0.1.3 if it is not urgent.
5353

54+
![image](https://github.com/chinalwb/are/blob/master/ARE/demo/new_012.png)
55+
5456
## Attributes
5557

5658
| Name | Format | Description |
5759
|:----------------:|:-------:|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|
5860
| expandMode | enum | FULL (default: Full screen editor) / MIN (min height editor, maxLines = 3) |
59-
| hideToolbar | boolean | Whether to hide the toolbar, by default toolbar will be shown. You may want to set it as true when you use `MIN` expand mode, `@`feature will still be available but other features won't work because those styles on toolbar has been hidden with toolbar. |
61+
| hideToolbar | boolean | Whether to hide the toolbar, by default toolbar will be shown. You may want to set it as true when you use `MIN` expand mode, `@`feature will still be available but other features won't work because those styles on toolbar has been hidden with toolbar. |
6062
| toolbarAlignment | enum | BOTTOM (default: at bottom of AREditor) / TOP (at top of AREditor) |
6163

6264
## APIs
@@ -114,21 +116,11 @@ arEditor.setHideToolbar(false);
114116
arEditor.setToolbarAlignment(AREditor.ToolbarAlignment.BOTTOM);
115117
```
116118

117-
Screenshots:
118-
---
119-
FULL_TOP:
120-
121-
![image](https://github.com/chinalwb/are/blob/master/ARE/demo/FULL_TOP.png)
122-
123-
MIN_BOTTOM:
124-
![image](https://github.com/chinalwb/are/blob/master/ARE/demo/MIN_BOTTOM.png)
119+
## Available features demo:
125120

126-
MIN_HideToolbar:
127-
![image](https://github.com/chinalwb/are/blob/master/ARE/demo/MIN_HideToolbar.png)
121+
![image](https://github.com/chinalwb/are/blob/master/ARE/demo/new_012_demos.png)
128122

129-
MIN_TOP:
130123

131-
![image](https://github.com/chinalwb/are/blob/master/ARE/demo/MIN_TOP.png)
132124

133125
In progress items:
134126
---

0 commit comments

Comments
 (0)