Binary file res/drawable/avatar.png has changed
Binary file res/drawable/away.png has changed
Binary file res/drawable/offline.png has changed
Binary file res/drawable/online.png has changed
Binary file res/drawable/signal.png has changed
--- a/res/layout/contactlistcontact.xml Wed Apr 22 19:53:57 2009 +0200
+++ b/res/layout/contactlistcontact.xml Thu Apr 23 12:41:13 2009 +0200
@@ -2,7 +2,10 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
- android:layout_height="wrap_content"
+ android:layout_height="wrap_content"
+ android:paddingLeft="10px"
+ android:paddingRight="10px"
+ android:background="@drawable/beem_sendim_header_1"
android:gravity="center_vertical" >
<ImageView android:id="@+id/contactliststatus"
--- a/res/layout/sendim.xml Wed Apr 22 19:53:57 2009 +0200
+++ b/res/layout/sendim.xml Thu Apr 23 12:41:13 2009 +0200
@@ -3,23 +3,58 @@
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
-
<LinearLayout
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:paddingLeft="10px"
+ android:paddingRight="10px"
+ android:background="@drawable/beem_sendim_header_1"
+ android:gravity="center_vertical" >
+
+ <ImageView android:id="@+id/sendimavatar"
+ android:layout_weight="5"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical" />
+
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_weight="1"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content" >
+ <TextView android:id="@+id/sendimlogin"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:paddingLeft="20sp" />
+ <TextView android:id="@+id/sendimstatus"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:hint="@string/SendIMNoStatusSet"
+ android:paddingLeft="20sp" />
+ </LinearLayout>
+</LinearLayout>
+
+<!-- <LinearLayout
android:paddingLeft="5px"
android:paddingTop="5px"
android:background="@drawable/beem_sendim_header_1"
android:orientation="horizontal"
android:layout_width="fill_parent"
- android:layout_height="wrap_content">
+ android:layout_height="wrap_content"
+ android:layout_weight="4">
<ImageView android:id="@+id/sendimavatar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:src="@drawable/avatar"/>
+ android:maxHeight="80px"
+ android:layout_weight="5"
+ android:src="@drawable/background"/>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
+ android:layout_weight="1"
android:orientation="vertical">
<TextView android:id="@+id/sendimlogin"
@@ -34,7 +69,7 @@
android:layout_height="wrap_content"
android:hint="@string/SendIMNoStatusSet"/>
</LinearLayout>
- </LinearLayout>
+ </LinearLayout>-->
<ScrollView
android:id="@+id/sendimscroll"
--- a/src/com/beem/project/beem/ui/SendIM.java Wed Apr 22 19:53:57 2009 +0200
+++ b/src/com/beem/project/beem/ui/SendIM.java Thu Apr 23 12:41:13 2009 +0200
@@ -15,6 +15,7 @@
import android.view.View.OnClickListener;
import android.view.View.OnKeyListener;
import android.widget.EditText;
+import android.widget.ImageView;
import android.widget.ScrollView;
import android.widget.TextView;
@@ -45,7 +46,6 @@
private IChatManagerListener mChatManagerListener;
private IMessageListener mMessageListener;
private IChat mChat;
- private Drawable mAvatar;
private TextView mText;
private TextView mLogin;
private ScrollView mScrolling;
@@ -83,6 +83,9 @@
}
private void setViewHeader() {
+ Drawable avatar = (Drawable) getResources().getDrawable(R.drawable.avatar);
+ ImageView imgV = (ImageView) findViewById(R.id.sendimavatar);
+ imgV.setImageDrawable(avatar);
mLogin = (TextView) findViewById(R.id.sendimlogin);
mLogin.setText(mContact.getJID());
TextView status = (TextView) findViewById(R.id.sendimstatus);