A quick reply floating editor for the android library
android 浮动编辑器
下载工程后使用
compile project(':floatingeditor')
- 浮动编辑器,使编辑界面始终浮于软键盘的上方
EditorCallback editorCallback = new EditorCallback(){
@Override
public void onCancel() {
//onCancel callback
}
@Override
public void onSubmit(String content) {
//onSubmit callback
}
@Override
public void onAttached(ViewGroup rootView) {
//on layout Attached callback
}
}
FloatEditorActivity.openEditor(context, editorCallback,
new EditorHolder(R.layout.fast_reply_floating_layout,//Custom layout
R.id.tv_cancel, R.id.tv_submit, R.id.et_content));//The cancel view id,submit view id and The submit view id of The Custom layout.
Copyright 2017 kevin.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.