Add :
.hgignore pour ignorer que hg ignore les fichiers useless ( ./bin/* et R.java )
logo.jpg cest notre logo affiche sur le screen de connection
Creation de l'interface de connection.
M :
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgignore Sat Mar 14 23:36:04 2009 +0100
@@ -0,0 +1,2 @@
+bin/*
+R.java
Binary file res/drawable/logo.jpg has changed
--- a/res/layout/main.xml Wed Mar 11 17:29:46 2009 +0100
+++ b/res/layout/main.xml Sat Mar 14 23:36:04 2009 +0100
@@ -1,13 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- >
-<TextView
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:text="Hello World, Beem"
- />
+ android:orientation="vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent">
+
+ <ImageView android:id="@+id/logo"
+ android:src="@drawable/logo"
+ android:adjustViewBounds="true"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"/>
+
+ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="horizontal"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content">
+ <TextView android:text=" JID : "
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+ <EditText android:id="@+id/jid"
+ android:minWidth="300dp"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:singleLine="true"
+ android:scrollHorizontally="true" />
+ </LinearLayout>
+
+ <EditText android:id="@+id/server"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:password="true"
+ android:text="_password_" />
+
+ <Button android:id="@+id/Connection"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="Connection" />
+
</LinearLayout>
--- a/res/values/strings.xml Wed Mar 11 17:29:46 2009 +0100
+++ b/res/values/strings.xml Sat Mar 14 23:36:04 2009 +0100
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Beem</string>
+
</resources>
--- a/src/com/beem/project/beem/Beem.java Wed Mar 11 17:29:46 2009 +0100
+++ b/src/com/beem/project/beem/Beem.java Sat Mar 14 23:36:04 2009 +0100
@@ -11,5 +11,6 @@
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
+
}
}