kevin-mob / floatingeditor

A quick reply floating editor for the android library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

floatingeditor

A quick reply floating editor for the android library

License

android 浮动编辑器

预览

1.用法

下载工程后使用

compile project(':floatingeditor')

2.功能

  • 浮动编辑器,使编辑界面始终浮于软键盘的上方

3.代码演示 也可参考demo中的代码

1.根据实际需求自定义浮动布局文件

2.调用

    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.
                                

License

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.

About

A quick reply floating editor for the android library


Languages

Language:Java 100.0%