All Projects → yangchaojiang → Chatkeyboard Master

yangchaojiang / Chatkeyboard Master

Licence: bsd-3-clause
一个功能强大且易于使用的键盘库包括表情、录音、自定义多媒体键盘

Programming Languages

java
68154 projects - #9 most used programming language

ChatKeyboard

A powerful and easy using keyboard lib includes emoticons, audio recording, multi media keyboard, etc.

###Import

use import dependency in gradle

dependencies {
compile 'ycjiang⌨️1.0.6'
}
Maven
dependency>
  <groupId>ycjiang</groupId>
  <artifactId>videolibrary</artifactId>
  <version>1.0.6</version>
  <type>pom</type>
</dependency>

dependency

 compile 'com.android.support:appcompat-v7:25.3.1'

###How to use

1, Use ChatKeyboardLayout make your layout contains keyboard. 用你 Framgment extends KeyboardFragment

FragmentTransaction sss = getSupportFragmentManager().beginTransaction();
    UserFragment    keyboardFragment = new UserFragment();
        sss.add(R.id.sssssssss, keyboardFragment);
        sss.commit();
        keyboardFragment.setKeyBoardLister(this);

perhaps

<com.yang.keyboard.ChatKeyboardLayout
        android:id="@+id/kv_bar"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:sendBtnBg="@drawable/send_button_bg">
        ...your layout
</com.yang.keyboard.ChatKeyboardLayout>

Notice: ChatKeyboardLayout can only include one child. 2, custom your emoticon and stick keyboard

if ( !ChatKeyboardLayout.isEmoticonInitSuccess(this) ) {
	List<EmoticonEntity> entities = new ArrayList<>();
	entities.add(new EmoticonEntity("emoticons/xhs", EmoticonBase.Scheme.ASSETS));
	entities.add(new EmoticonEntity("emoticons/tusiji", EmoticonBase.Scheme.ASSETS));
	ChatKeyboardLayout.initEmoticonsDB(this, true, entities);
}

Notice: Add the code above before the ChatKeyboardLayout used, better in onCreate of Application

other usage please refer to the demo code

Thanks for xhsEmoticonsKeyboard powered by w446108264. Thanks to Chris for ideas email [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].