use of com.xhsemoticonskeyboard.common.widget.SimpleAppsGridView in project XhsEmoticonsKeyboard by w446108264.
the class SimpleChatActivity method initEmoticonsKeyBoardBar.
private void initEmoticonsKeyBoardBar() {
SimpleCommonUtils.initEmoticonsEditText(ekBar.getEtChat());
ekBar.setAdapter(SimpleCommonUtils.getCommonAdapter(this, emoticonClickListener));
ekBar.addOnFuncKeyBoardListener(this);
ekBar.addFuncView(new SimpleAppsGridView(this));
ekBar.getEtChat().setOnSizeChangedListener(new EmoticonsEditText.OnSizeChangedListener() {
@Override
public void onSizeChanged(int w, int h, int oldw, int oldh) {
scrollToBottom();
}
});
ekBar.getBtnSend().setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
OnSendBtnClick(ekBar.getEtChat().getText().toString());
ekBar.getEtChat().setText("");
}
});
ekBar.getEmoticonsToolBarView().addFixedToolItemView(false, R.mipmap.icon_add, null, new View.OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(SimpleChatActivity.this, "ADD", Toast.LENGTH_SHORT).show();
}
});
ekBar.getEmoticonsToolBarView().addToolItemView(R.mipmap.icon_setting, new View.OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(SimpleChatActivity.this, "SETTING", Toast.LENGTH_SHORT).show();
}
});
}
use of com.xhsemoticonskeyboard.common.widget.SimpleAppsGridView in project XhsEmoticonsKeyboard by w446108264.
the class SimpleCommonUtils method addTestPageSetEntity.
/**
* 测试页集
*
* @param pageSetAdapter
* @param context
*/
public static void addTestPageSetEntity(PageSetAdapter pageSetAdapter, Context context) {
PageSetEntity pageSetEntity = new PageSetEntity.Builder().addPageEntity(new PageEntity(new SimpleAppsGridView(context))).setIconUri(ImageBase.Scheme.DRAWABLE.toUri("icon_kaomoji")).setShowIndicator(false).build();
pageSetAdapter.add(pageSetEntity);
}
use of com.xhsemoticonskeyboard.common.widget.SimpleAppsGridView in project XhsEmoticonsKeyboard by w446108264.
the class SimpleChatOnCoordinatorLayoutActivity method initEmoticonsKeyBoardBar.
private void initEmoticonsKeyBoardBar() {
SimpleCommonUtils.initEmoticonsEditText(ekBar.getEtChat());
ekBar.setAdapter(SimpleCommonUtils.getCommonAdapter(this, null));
ekBar.addOnFuncKeyBoardListener(this);
ekBar.addFuncView(new SimpleAppsGridView(this));
ekBar.setOnMaxParentHeightChangeListener(this);
ekBar.getBtnSend().setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
OnSendBtnClick(ekBar.getEtChat().getText().toString());
ekBar.getEtChat().setText("");
}
});
// TEST
ekBar.getEmoticonsToolBarView().addToolItemView(com.keyboard.view.R.drawable.icon_face_nomal, new View.OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(SimpleChatOnCoordinatorLayoutActivity.this, "TEST", Toast.LENGTH_SHORT).show();
}
});
ekBar.getEmoticonsToolBarView().addToolItemView(com.keyboard.view.R.drawable.icon_face_nomal, null);
ekBar.getEmoticonsToolBarView().addToolItemView(com.keyboard.view.R.drawable.icon_face_nomal, null);
ekBar.getEmoticonsToolBarView().addToolItemView(com.keyboard.view.R.drawable.icon_face_nomal, null);
ekBar.getEmoticonsToolBarView().addToolItemView(com.keyboard.view.R.drawable.icon_face_nomal, null);
ekBar.getEmoticonsToolBarView().addToolItemView(com.keyboard.view.R.drawable.icon_face_nomal, null);
ekBar.getEmoticonsToolBarView().addToolItemView(com.keyboard.view.R.drawable.icon_face_nomal, null);
ekBar.getEmoticonsToolBarView().addToolItemView(com.keyboard.view.R.drawable.icon_face_nomal, null);
}
use of com.xhsemoticonskeyboard.common.widget.SimpleAppsGridView in project XhsEmoticonsKeyboard by w446108264.
the class SimpleTranslucentChatActivity method initEmoticonsKeyBoardBar.
private void initEmoticonsKeyBoardBar() {
SimpleCommonUtils.initEmoticonsEditText(ekBar.getEtChat());
ekBar.setAdapter(SimpleCommonUtils.getCommonAdapter(this, emoticonClickListener));
ekBar.addOnFuncKeyBoardListener(this);
ekBar.addFuncView(new SimpleAppsGridView(this));
ekBar.getEtChat().setOnSizeChangedListener(new EmoticonsEditText.OnSizeChangedListener() {
@Override
public void onSizeChanged(int w, int h, int oldw, int oldh) {
scrollToBottom();
}
});
ekBar.getBtnSend().setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
OnSendBtnClick(ekBar.getEtChat().getText().toString());
ekBar.getEtChat().setText("");
}
});
ekBar.getEmoticonsToolBarView().addFixedToolItemView(false, R.mipmap.icon_add, null, new View.OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(SimpleTranslucentChatActivity.this, "ADD", Toast.LENGTH_SHORT).show();
}
});
ekBar.getEmoticonsToolBarView().addToolItemView(R.mipmap.icon_setting, new View.OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(SimpleTranslucentChatActivity.this, "SETTING", Toast.LENGTH_SHORT).show();
}
});
}
Aggregations