Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pfleidi committed Aug 23, 2009
0 parents commit 68fe33a
Show file tree
Hide file tree
Showing 60 changed files with 4,555 additions and 0 deletions.
37 changes: 37 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.hdmstuttgart.yaxim" android:versionCode="1"
android:versionName="1.0.0">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission." />
<application android:icon="@drawable/icon"
android:debuggable="true" android:label="@string/app_name">

<activity android:name=".MainWindow" android:label="@string/app_name"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity android:name=".chat.ChatWindow" android:label="@string/app_name"
android:alwaysRetainTaskState="true">
</activity>

<activity android:name=".preferences.MainPrefs"
android:label="@string/app_name">
</activity>

<activity android:name=".preferences.AccountPrefs"
android:label="@string/app_name">
</activity>

<service android:name=".service.XMPPService">
<intent-filter>
<action android:name="de.hdmstuttgart.yaxim.XMPPSERVICE" />
</intent-filter>
</service>
</application>
</manifest>
22 changes: 22 additions & 0 deletions default.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "build.properties", and override values to adapt the script to your
# project structure.

# Project target.
target=android-3
# apk configurations. This property allows creation of APK files with limited
# resources. For example, if your application contains many locales and
# you wish to release multiple smaller apks instead of a large one, you can
# define configuration to create apks with limited language sets.
# Format is a comma separated list of configuration names. For each
# configuration, a property will declare the resource configurations to
# include. Example:
# apk-configurations=european,northamerica
# apk-config-european=en,fr,it,de,es
# apk-config-northamerica=en,es
apk-configurations=
Binary file added libs/smack.jar
Binary file not shown.
Binary file added res/drawable/ic_menu_block.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/ic_menu_view_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/yaxim_menu_connect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable/yaxim_menu_disconnect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 69 additions & 0 deletions res/layout/accountprefs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="@string/account_settings_title">
<EditTextPreference
android:id="@+id/account_jabberID"
android:key="account_jabberID"
android:title="@string/account_jabberID_title"
android:summary="@string/account_jabberID_sum"
android:dialogTitle="@string/account_jabberID_sum"
android:textAppearance="?android:attr/textAppearanceLarge"
android:singleLine="true"
/>
<EditTextPreference
android:id="@+id/account_jabberPW"
android:key="account_jabberPW"
android:title="@string/account_jabberPW_title"
android:summary="@string/account_jabberPW_sum"
android:dialogTitle="@string/account_jabberPW_sum"
android:singleLine="true"
android:password="true"
/>
</PreferenceCategory>
<PreferenceCategory android:title="@string/account_settings_title">
<EditTextPreference
android:id="@+id/account_port"
android:key="account_port"
android:title="@string/account_port_title"
android:summary="@string/account_port_summ"
android:dialogTitle="@string/account_port_title"
android:textAppearance="?android:attr/textAppearanceLarge"
android:singleLine="true"
android:numeric="integer"
/>
<EditTextPreference
android:id="@+id/account_resource"
android:key="account_resource"
android:title="@string/account_resource_title"
android:summary="@string/account_resource_summ"
android:textAppearance="?android:attr/textAppearanceLarge"
android:dialogTitle="@string/account_resource_dialog_title"
android:singleLine="true"
/>
<EditTextPreference
android:id="@+id/account_prio"
android:key="account_prio"
android:title="@string/account_prio_title"
android:summary="@string/account_prio_summ"
android:dialogTitle="@string/account_prio_title"
android:textAppearance="?android:attr/textAppearanceLarge"
android:singleLine="true"
android:numeric="integer"
/>
</PreferenceCategory>
<PreferenceCategory android:title="@string/account_options_title">
<CheckBoxPreference
android:id="@+id/connstartup"
android:key="connstartup"
android:title="@string/connstartup_title"
android:summary="@string/connstartup_summary"
/>
<CheckBoxPreference
android:id="@+id/reconnect"
android:key="reconnect"
android:title="@string/reconnect_title"
android:summary="@string/reconnect_summary"
/>
</PreferenceCategory>
</PreferenceScreen>
95 changes: 95 additions & 0 deletions res/layout/addrosteritemdialog.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/statusLayout"
android:orientation="vertical"
android:layout_width="fill_parent"
android:minWidth="200px"
android:layout_height="fill_parent">

<ScrollView android:layout_marginBottom="50dip"
android:id="@+id/StatusDialog_ScrollView"
android:layout_height="wrap_content"
android:layout_width="fill_parent" >
<LinearLayout
android:id="@+id/AddContact_ScrollLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<TextView
android:id="@+id/Addcontact_Title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/addFriend_Summ"
android:padding="10sp"
/>
<EditText
android:id="@+id/AddContact_EditTextField"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="10sp"
android:gravity="left"
android:singleLine="true"
android:textSize="18sp"
android:maxWidth="200sp"
android:hint="foo@jabber.bar.com"/>

<EditText
android:id="@+id/AddContactAlias_EditTextField"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="10sp"
android:gravity="left"
android:singleLine="true"
android:textSize="18sp"
android:maxWidth="200sp"
android:hint="@string/addFriend_aliasHint"
/>


<Spinner android:id="@+id/AddContact_GroupSpinner"
android:prompt="@string/AddContact_SpinnerPrompt"
android:layout_width="fill_parent"
android:layout_height="wrap_content">

</Spinner>

<EditText
android:id="@+id/AddRosterItem_NewGroup_EditTextField"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:visible="false"
android:enabled="false"
android:padding="10sp"
android:gravity="left"
android:singleLine="true"
android:textSize="18sp"
android:maxWidth="200sp"
android:hint="@string/NewGroup_EditTextField_Hint"
/>
</LinearLayout>
</ScrollView>
<LinearLayout
android:layout_marginTop="-50dip"
android:id="@+id/AddContact_ButtonLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal">
<Button
android:id="@+id/AddContact_OkButton"
android:layout_width="120sp"
android:layout_height="wrap_content"
android:text="@string/Global_OK"
android:clickable="false"
/>

<Button
android:id="@+id/AddContact_CancelButton"
android:layout_width="120sp"
android:layout_height="wrap_content"
android:text="@string/Global_Cancel"
/>

</LinearLayout>
</LinearLayout>
34 changes: 34 additions & 0 deletions res/layout/chatrow.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="4px"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<TextView android:id="@+id/chat_info"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="0"
android:textSize="14sp"
android:gravity="center_vertical"
android:textStyle="italic"

android:singleLine="true"
android:ellipsize="end"
/>
<TextView android:id="@+id/chat_message"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="20sp"
android:layout_weight="1"
android:gravity="center_vertical"
android:autoLink="all"
/>
</LinearLayout>
</LinearLayout>

108 changes: 108 additions & 0 deletions res/layout/firststartdialog.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<?xml version="1.0" encoding="utf-8"?>

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/statusLayout"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">


<TextView
android:id="@+id/StartupDialog_Summary"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/icon"
android:text="@string/StartupDialog_Summary"
android:padding="10sp"
/>
<ScrollView android:layout_marginBottom="50dip"
android:id="@+id/StartupDialog_ScrollView"
android:layout_height="wrap_content"
android:layout_width="fill_parent" >
<LinearLayout
android:id="@+id/AddContact_ScrollLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<TextView
android:id="@+id/StartupDialog_Username_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/StartupDialog_Username_title"
android:padding="2sp"
/>
<EditText
android:id="@+id/StartupDialog_JID_EditTextField"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="10sp"
android:gravity="left"
android:singleLine="true"
android:textSize="18sp"
android:maxWidth="200sp"
android:hint="@string/Global_JID_hint"/>
<TextView
android:id="@+id/StartupDialog_passwd_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/StartupDialog_passwd_title"
android:padding="2sp"
/>
<EditText
android:id="@+id/StartupDialog_PASSWD_EditTextField"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:password="true"
android:padding="10sp"
android:gravity="left"
android:singleLine="true"
android:textSize="18sp"
android:maxWidth="200sp"
android:hint="@string/StartupDialog_pwHint"
/>
<TextView
android:id="@+id/StartupDialog_port_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/StartupDialog_port_title"
android:padding="2sp"
/>
<EditText
android:id="@+id/StartupDialog_PORT_EditTextField"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="10sp"
android:gravity="left"
android:numeric="integer"
android:singleLine="true"
android:textSize="18sp"
android:maxWidth="200sp"
android:text="@string/StartupDialog_portHint"
/>
</LinearLayout>
</ScrollView>

<LinearLayout
android:layout_marginTop="-50dip"
android:id="@+id/StartupDialog_ButtonLayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal">
<Button
android:id="@+id/StartupDialog_OkButton"
android:layout_width="120sp"
android:layout_height="wrap_content"
android:text="@string/Global_OK"
android:clickable="false"
/>

<Button
android:id="@+id/StartupDialog_CancelButton"
android:layout_width="120sp"
android:layout_height="wrap_content"
android:text="@string/Global_Cancel"
/>

</LinearLayout>
</LinearLayout>
17 changes: 17 additions & 0 deletions res/layout/main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?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">

<ExpandableListView android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scrollingCache="true"/>

<TextView android:id="@+id/android:empty"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:text="Yaxim is offline. No Contacts to show!"/>
</LinearLayout>
Loading

0 comments on commit 68fe33a

Please sign in to comment.