# HG changeset patch # User Philippe Lago # Date 1239633138 -7200 # Node ID ccc48305bdeb047315418b4e497cf2a281325f63 # Parent c25c4f22a43645c1c8d1b2cceb8946de762b413f toujours le probleme du rafraichissement lors de la reception d'un message diff -r c25c4f22a436 -r ccc48305bdeb res/drawable/boot_robot.png Binary file res/drawable/boot_robot.png has changed diff -r c25c4f22a436 -r ccc48305bdeb res/layout/messagelist.xml --- a/res/layout/messagelist.xml Thu Apr 09 20:36:17 2009 +0200 +++ b/res/layout/messagelist.xml Mon Apr 13 16:32:18 2009 +0200 @@ -1,6 +1,7 @@ - \ No newline at end of file + \ No newline at end of file diff -r c25c4f22a436 -r ccc48305bdeb res/layout/sendim.xml --- a/res/layout/sendim.xml Thu Apr 09 20:36:17 2009 +0200 +++ b/res/layout/sendim.xml Mon Apr 13 16:32:18 2009 +0200 @@ -3,17 +3,39 @@ android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> - - + + + + + + + \ No newline at end of file diff -r c25c4f22a436 -r ccc48305bdeb res/values/colors.xml --- a/res/values/colors.xml Thu Apr 09 20:36:17 2009 +0200 +++ b/res/values/colors.xml Mon Apr 13 16:32:18 2009 +0200 @@ -2,4 +2,5 @@ #A0C8FF #000000 +#FFFFFF \ No newline at end of file diff -r c25c4f22a436 -r ccc48305bdeb res/values/strings.xml --- a/res/values/strings.xml Thu Apr 09 20:36:17 2009 +0200 +++ b/res/values/strings.xml Mon Apr 13 16:32:18 2009 +0200 @@ -29,9 +29,10 @@ says :\n - Tip text here + Tip text here Is : and is speaking from : Insert a smiley + login diff -r c25c4f22a436 -r ccc48305bdeb res/values/style.xml --- a/res/values/style.xml Thu Apr 09 20:36:17 2009 +0200 +++ b/res/values/style.xml Mon Apr 13 16:32:18 2009 +0200 @@ -11,4 +11,13 @@ 18sp + + + \ No newline at end of file diff -r c25c4f22a436 -r ccc48305bdeb src/com/beem/project/beem/BeemService.java --- a/src/com/beem/project/beem/BeemService.java Thu Apr 09 20:36:17 2009 +0200 +++ b/src/com/beem/project/beem/BeemService.java Mon Apr 13 16:32:18 2009 +0200 @@ -77,7 +77,7 @@ mLogin = mSettings.getString(getString(R.string.PreferenceLoginKey), ""); mPassword = mSettings.getString(getString(R.string.PreferencePasswordKey), ""); mHost = mSettings.getString(getString(R.string.PreferenceHostKey), ""); - mHost = "10.0.2.5"; + mHost = "10.0.2.2"; initConnectionConfig(); mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE); mConnection = new XmppConnectionAdapter(mConnectionConfiguration, mLogin, mPassword); diff -r c25c4f22a436 -r ccc48305bdeb src/com/beem/project/beem/ui/SendIM.java --- a/src/com/beem/project/beem/ui/SendIM.java Thu Apr 09 20:36:17 2009 +0200 +++ b/src/com/beem/project/beem/ui/SendIM.java Mon Apr 13 16:32:18 2009 +0200 @@ -4,7 +4,7 @@ import android.app.ListActivity; import android.content.SharedPreferences; -import android.content.SharedPreferences.OnSharedPreferenceChangeListener; +import android.graphics.drawable.Drawable; import android.os.Bundle; import android.os.Handler; import android.os.RemoteException; @@ -18,6 +18,7 @@ import android.view.View.OnKeyListener; import android.widget.ArrayAdapter; import android.widget.EditText; +import android.widget.TextView; import com.beem.project.beem.BeemApplication; import com.beem.project.beem.R; @@ -30,7 +31,7 @@ import com.beem.project.beem.service.aidl.IXmppFacade; /** - * @author barbu This activity class provide the view for instant messaging + * @author barbu This activity class provides the view for instant messaging * after selecting a correspondant. */ @@ -50,6 +51,7 @@ private IChatManagerListener mChatManagerListener; private IMessageListener mMessageListener; private IChat mChat; + private Drawable mAvatar; /** * Constructor. @@ -64,6 +66,7 @@ @Override public void onCreate(Bundle saveBundle) { super.onCreate(saveBundle); + setTheme(R.style.customtheme_contactList); mHandler = new Handler(); mChatManagerListener = new OnChatListener(); mMessageListener = new OnMessageListener(); @@ -73,7 +76,6 @@ mSet = getSharedPreferences("lol", MODE_PRIVATE); mSmyDialog = new SendIMDialogSmiley(this, mSet); mGlobalSettings = getSharedPreferences(getString(R.string.PreferenceFileName), MODE_PRIVATE); - mAdapter = new ArrayAdapter(this, R.layout.messagelist, mMessages); setListAdapter(mAdapter); @@ -82,6 +84,9 @@ mToSend.setOnKeyListener(this); mContact = getIntent().getParcelableExtra("contact"); + TextView login = (TextView) findViewById(R.id.sendimlogin); + login.setText(mContact.getJID()); + } @Override