Back to project page FisgoDroid.
The source code is released under:
The smiley icons bundled with this application belong to Meneame.NET and are licensed under the Creative Commons by-sa 3.0 license. For more information, please visit http://creativecommons.org/licens...
If you think the Android project FisgoDroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.meneame.fisgodroid; /*from w w w . j av a 2 s. c o m*/ import android.content.Context; import android.widget.TextView; public class ChatLineView extends ChatBaseView { private TextView mMessage; public ChatLineView(Context context) { super(context, R.layout.chat_line); if ( !isInEditMode() ) { init(); } } private void init() { mMessage = (TextView) findViewById(R.id.chat_message); } @Override public void setChatMessage(ChatMessage message, boolean highlight) { super.setChatMessage(message, highlight); if ( message.getType() == ChatType.PUBLIC ) mMessage.setTextColor(getResources().getColor(R.color.text_chat_general)); else if ( message.getType() == ChatType.FRIENDS ) mMessage.setTextColor(getResources().getColor(R.color.text_chat_friends)); else if ( message.getType() == ChatType.ADMIN ) mMessage.setTextColor(getResources().getColor(R.color.text_chat_admin)); } }