mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-23 07:27:22 +01:00
use different background color for local player's chat lines
This commit is contained in:
parent
cd93bdb03e
commit
5dc7b66e89
1 changed files with 3 additions and 0 deletions
|
@ -85,6 +85,9 @@ public class ChatDelegate extends DelegateBase {
|
||||||
|
|
||||||
for ( DBUtils.HistoryPair pair : pairs ) {
|
for ( DBUtils.HistoryPair pair : pairs ) {
|
||||||
TableRow row = (TableRow)inflate( R.layout.chat_row );
|
TableRow row = (TableRow)inflate( R.layout.chat_row );
|
||||||
|
if ( m_curPlayer == pair.playerIndx ) {
|
||||||
|
row.setBackgroundColor(0xFF202020);
|
||||||
|
}
|
||||||
TextView view = (TextView)row.findViewById( R.id.chat_row_text );
|
TextView view = (TextView)row.findViewById( R.id.chat_row_text );
|
||||||
view.setText( pair.msg );
|
view.setText( pair.msg );
|
||||||
view = (TextView)row.findViewById( R.id.chat_row_name );
|
view = (TextView)row.findViewById( R.id.chat_row_name );
|
||||||
|
|
Loading…
Add table
Reference in a new issue