当前位置: 首页>>代码示例>>Java>>正文


Java EmojiconEditText类代码示例

本文整理汇总了Java中com.rockerhieu.emojicon.EmojiconEditText的典型用法代码示例。如果您正苦于以下问题:Java EmojiconEditText类的具体用法?Java EmojiconEditText怎么用?Java EmojiconEditText使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


EmojiconEditText类属于com.rockerhieu.emojicon包,在下文中一共展示了EmojiconEditText类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onCreate

import com.rockerhieu.emojicon.EmojiconEditText; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    mEditEmojicon = (EmojiconEditText) findViewById(R.id.editEmojicon);
    mTxtEmojicon = (EmojiconTextView) findViewById(R.id.txtEmojicon);
    mEditEmojicon.addTextChangedListener(new TextWatcherAdapter() {
        @Override
        public void onTextChanged(CharSequence s, int start, int before, int count) {
            mTxtEmojicon.setText(s);
        }
    });
    mCheckBox = (CheckBox) findViewById(R.id.use_system_default);
    mCheckBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
        @Override
        public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
            mEditEmojicon.setUseSystemDefault(b);
            mTxtEmojicon.setUseSystemDefault(b);
            setEmojiconFragment(b);
        }
    });

    setEmojiconFragment(false);
}
 
开发者ID:mobilemaster128,项目名称:emoticon-keyboard,代码行数:25,代码来源:MainActivity.java

示例2: onCreate

import com.rockerhieu.emojicon.EmojiconEditText; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    View contentView = View.inflate(this, R.layout.activity_main, null);
    setContentView(contentView);
    contentView.addOnLayoutChangeListener(this);

    etContent = (EmojiconEditText) findViewById(R.id.et_content);
    vEmojiBar = findViewById(R.id.ll_emoji_bar);
    vEmojiContainer = findViewById(R.id.fl_emoji_container);

    ivEmojiSwitch = (ImageView) findViewById(R.id.iv_emojicon);
    ivEmojiSwitch.setOnClickListener(this);

    //添加Emoji控件
    getSupportFragmentManager().beginTransaction().replace(R.id.fl_emoji_container, new EmojiconsFragment()).commitAllowingStateLoss();
}
 
开发者ID:laomengzhu,项目名称:EmojiLayout,代码行数:18,代码来源:MainActivity.java

示例3: initSearchTagList

import com.rockerhieu.emojicon.EmojiconEditText; //导入依赖的package包/类
private void initSearchTagList() {
	searchListView = (ListView)findViewById(R.id.mark_tab_choose_listView);
	tagTextView = (EmojiconEditText)findViewById(R.id.search_tag_brand);
	
	String[] mStrings = { "Abbaye de Belloc",
			"\ue32dAbbaye du Mont des Cats", "Abertam", "Abondance", "Ackawi",
			"Acorn", "Adelost", "Affidelice au Chablis", "Afuega'l Pitu",
			"Airag", "Airedale", "Aisy Cendre", "Abertam", "Abondance", "Ackawi",
			"Acorn", "Adelost", "Affidelice au Chablis", "Afuega'l Pitu",
			"Airag", "Airedale", "Aisy Cendre" };
	
	initSearchListener();
	AnimationSet animationSet = new AnimationSet(false);
	Animation animation = new AlphaAnimation(0,1);   //AlphaAnimation 控制渐变透明的动画效果
	animation.setDuration(300);     //动画时间毫秒数
	animationSet.addAnimation(animation);    //加入动画集合
	LayoutAnimationController controller = new LayoutAnimationController(animationSet, 1);
	
	// 设置列表内容
	mListItems = new ArrayList<String>();
	mListItems.addAll(Arrays.asList(mStrings));
	mListItems.set(0, getResources().getString(R.string.add_tag_text));
	
	tagSearchAdapter = new TagSearchAdapter(this, R.layout.item_search_tag_list, mListItems);
	searchListView.setLayoutAnimation(controller);
	searchListView.setAdapter(tagSearchAdapter);
}
 
开发者ID:Owater,项目名称:school_shop,代码行数:28,代码来源:MarkActivity.java

示例4: initEmojicon

import com.rockerhieu.emojicon.EmojiconEditText; //导入依赖的package包/类
private void initEmojicon() {
	sendbtn = (Button)findViewById(R.id.comment_send_btn);
	mEditEmojicon = (EmojiconEditText) findViewById(R.id.editEmojicon);
	emojicons = (FrameLayout)findViewById(R.id.emojicons);
	emojbtn = (ImageButton)findViewById(R.id.icon_emoji_btn);
	emojbtn.setOnClickListener(this);
	sendbtn.setOnClickListener(this);
       setEmojiconFragment(false);
}
 
开发者ID:Owater,项目名称:school_shop,代码行数:10,代码来源:GoodsDetailActivity.java


注:本文中的com.rockerhieu.emojicon.EmojiconEditText类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。