[Libreoffice-commits] .: 2 commits - android/experimental configure.in

Tor Lillqvist tml at kemper.freedesktop.org
Tue Apr 17 23:57:20 PDT 2012


 android/experimental/eagles051387/.classpath.in                                                      |   15 +++
 android/experimental/eagles051387/.project                                                           |   33 +++++++
 android/experimental/eagles051387/AndroidManifest.xml                                                |   23 +++++
 android/experimental/eagles051387/lint.xml                                                           |    3 
 android/experimental/eagles051387/proguard-project.txt                                               |   20 ++++
 android/experimental/eagles051387/project.properties                                                 |   14 +++
 android/experimental/eagles051387/res/drawable-hdpi/ic_launcher.png                                  |binary
 android/experimental/eagles051387/res/drawable-ldpi/ic_launcher.png                                  |binary
 android/experimental/eagles051387/res/drawable-mdpi/ic_launcher.png                                  |binary
 android/experimental/eagles051387/res/drawable-xhdpi/ic_launcher.png                                 |binary
 android/experimental/eagles051387/res/layout/main.xml                                                |    8 +
 android/experimental/eagles051387/res/layout/star_center_menu_list.xml                               |    6 +
 android/experimental/eagles051387/res/values/strings.xml                                             |    9 ++
 android/experimental/eagles051387/src/org/libreoffice/experimental/eagles051387/Main_Menu.java       |   17 ++++
 android/experimental/eagles051387/src/org/libreoffice/experimental/eagles051387/StartCenterMenu.java |   42 ++++++++++
 configure.in                                                                                         |    2 
 16 files changed, 192 insertions(+)

New commits:
commit 8f80a0af7e48193d0c035c220537d7f40b915f56
Author: Tor Lillqvist <tlillqvist at suse.com>
Date:   Wed Apr 18 09:53:47 2012 +0300

    Expand android/experimental/eagles051387/.classpath.in (for ANDROID_SDK_HOME)

diff --git a/configure.in b/configure.in
index fc6fdb1..1ecadf5 100644
--- a/configure.in
+++ b/configure.in
@@ -3285,6 +3285,7 @@ if test "$cross_compiling" = "yes"; then
         bin/repo-list.in \
         android/Bootstrap/local.properties.in \
         android/experiments/DocumentLoader/local.properties.in \
+        android/experimental/eagles051387/.classpath.in \
         android/qa/sc/local.properties.in \
         android/qa/desktop/local.properties.in \
         config.guess \
@@ -11367,6 +11368,7 @@ fi
 AC_CONFIG_FILES([config_host.mk ooo.lst bin/repo-list \
 android/Bootstrap/local.properties \
 android/experiments/DocumentLoader/local.properties \
+android/experimental/eagles051387/.classpath \
 android/qa/sc/local.properties \
 android/qa/desktop/local.properties])
 AC_OUTPUT
commit 67fd00163fa223ac5205cde364975fc0fb1da422
Author: Jonathan Aquilina <eagles051387 at gmail.com>
Date:   Sat Apr 7 19:46:52 2012 +0200

    Initial start of an Android UI (experimental)
    
    Started creating the menu list for the start center
    
    Beginning of code for Start Center menu list
    
    finished creating menu, issue getting it to display when program run
    
    refractored package name to org.libreoffice.experimental
    
    added the java files with renamed package
    
    added new experimental dir and updated packages with appropriate name

diff --git a/android/experimental/eagles051387/.classpath.in b/android/experimental/eagles051387/.classpath.in
new file mode 100644
index 0000000..10e58d3
--- /dev/null
+++ b/android/experimental/eagles051387/.classpath.in
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="src" path="gen"/>
+	<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
+	<classpathentry kind="lib" path="@ANDROID_SDK_HOME@/platforms/android-10/android.jar">
+		<attributes>
+			<attribute name="javadoc_location" value="file:@ANDROID_SDK_HOME@/docs/reference"/>
+		</attributes>
+		<accessrules>
+			<accessrule kind="nonaccessible" pattern="com/android/internal/**"/>
+		</accessrules>
+	</classpathentry>
+	<classpathentry kind="output" path="bin/classes"/>
+</classpath>
diff --git a/android/experimental/eagles051387/.project b/android/experimental/eagles051387/.project
new file mode 100644
index 0000000..b3a56bf
--- /dev/null
+++ b/android/experimental/eagles051387/.project
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>Experimental_Android_UI</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>com.android.ide.eclipse.adt.ApkBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>
diff --git a/android/experimental/eagles051387/AndroidManifest.xml b/android/experimental/eagles051387/AndroidManifest.xml
new file mode 100644
index 0000000..fa4abf9
--- /dev/null
+++ b/android/experimental/eagles051387/AndroidManifest.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+    package="org.libreoffice.experimentalUI.eagles051387"
+    android:versionCode="1"
+    android:versionName="1.0" >
+
+    <uses-sdk android:minSdkVersion="10" />
+
+    <application
+        android:icon="@drawable/ic_launcher"
+        android:label="@string/app_name" >
+        <activity
+            android:name="org.libreoffice.experimental.eagles051387.Main_Menu"
+            android:label="@string/app_name" >
+            <intent-filter>
+                <action android:name="android.intent.action.MAIN" />
+
+                <category android:name="android.intent.category.LAUNCHER" />
+            </intent-filter>
+        </activity>
+    </application>
+
+</manifest>
\ No newline at end of file
diff --git a/android/experimental/eagles051387/lint.xml b/android/experimental/eagles051387/lint.xml
new file mode 100644
index 0000000..ee0eead
--- /dev/null
+++ b/android/experimental/eagles051387/lint.xml
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<lint>
+</lint>
\ No newline at end of file
diff --git a/android/experimental/eagles051387/proguard-project.txt b/android/experimental/eagles051387/proguard-project.txt
new file mode 100644
index 0000000..f2fe155
--- /dev/null
+++ b/android/experimental/eagles051387/proguard-project.txt
@@ -0,0 +1,20 @@
+# To enable ProGuard in your project, edit project.properties
+# to define the proguard.config property as described in that file.
+#
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in ${sdk.dir}/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the ProGuard
+# include property in project.properties.
+#
+# For more details, see
+#   http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+#   public *;
+#}
diff --git a/android/experimental/eagles051387/project.properties b/android/experimental/eagles051387/project.properties
new file mode 100644
index 0000000..b7c2081
--- /dev/null
+++ b/android/experimental/eagles051387/project.properties
@@ -0,0 +1,14 @@
+# 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 edit
+# "ant.properties", and override values to adapt the script to your
+# project structure.
+#
+# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
+#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
+
+# Project target.
+target=android-10
diff --git a/android/experimental/eagles051387/res/drawable-hdpi/ic_launcher.png b/android/experimental/eagles051387/res/drawable-hdpi/ic_launcher.png
new file mode 100644
index 0000000..96a442e
Binary files /dev/null and b/android/experimental/eagles051387/res/drawable-hdpi/ic_launcher.png differ
diff --git a/android/experimental/eagles051387/res/drawable-ldpi/ic_launcher.png b/android/experimental/eagles051387/res/drawable-ldpi/ic_launcher.png
new file mode 100644
index 0000000..9923872
Binary files /dev/null and b/android/experimental/eagles051387/res/drawable-ldpi/ic_launcher.png differ
diff --git a/android/experimental/eagles051387/res/drawable-mdpi/ic_launcher.png b/android/experimental/eagles051387/res/drawable-mdpi/ic_launcher.png
new file mode 100644
index 0000000..359047d
Binary files /dev/null and b/android/experimental/eagles051387/res/drawable-mdpi/ic_launcher.png differ
diff --git a/android/experimental/eagles051387/res/drawable-xhdpi/ic_launcher.png b/android/experimental/eagles051387/res/drawable-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..71c6d76
Binary files /dev/null and b/android/experimental/eagles051387/res/drawable-xhdpi/ic_launcher.png differ
diff --git a/android/experimental/eagles051387/res/layout/main.xml b/android/experimental/eagles051387/res/layout/main.xml
new file mode 100644
index 0000000..aaa71f3
--- /dev/null
+++ b/android/experimental/eagles051387/res/layout/main.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/textview"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent"
+    android:text="@string/menuOptions" >
+
+</TextView>
diff --git a/android/experimental/eagles051387/res/layout/star_center_menu_list.xml b/android/experimental/eagles051387/res/layout/star_center_menu_list.xml
new file mode 100644
index 0000000..b5055f7
--- /dev/null
+++ b/android/experimental/eagles051387/res/layout/star_center_menu_list.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent"
+    android:padding="10dp"
+    android:textSize="16sp"/>
\ No newline at end of file
diff --git a/android/experimental/eagles051387/res/values/strings.xml b/android/experimental/eagles051387/res/values/strings.xml
new file mode 100644
index 0000000..2aba582
--- /dev/null
+++ b/android/experimental/eagles051387/res/values/strings.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+    <string name="menuOptions">Hello Welcome To LibreOffice For Android!
+        This is the start center. Please choose an application to begin
+        working on your document.</string>
+    <string name="app_name">LibreOffice For Android</string>
+
+</resources>
\ No newline at end of file
diff --git a/android/experimental/eagles051387/src/org/libreoffice/experimental/eagles051387/Main_Menu.java b/android/experimental/eagles051387/src/org/libreoffice/experimental/eagles051387/Main_Menu.java
new file mode 100644
index 0000000..a254933
--- /dev/null
+++ b/android/experimental/eagles051387/src/org/libreoffice/experimental/eagles051387/Main_Menu.java
@@ -0,0 +1,17 @@
+package org.libreoffice.experimental.eagles051387;
+
+import org.libreoffice.experimentalUI.eagles051387.R;
+import android.app.Activity;
+import android.os.Bundle;
+
+public class Main_Menu extends Activity
+{
+    /** Called when the activity is first created. */
+    @Override
+    public void onCreate(Bundle savedInstanceState)
+    {
+        super.onCreate(savedInstanceState);
+        setContentView(R.layout.main);
+        setContentView(R.layout.star_center_menu_list);
+    }
+}
\ No newline at end of file
diff --git a/android/experimental/eagles051387/src/org/libreoffice/experimental/eagles051387/StartCenterMenu.java b/android/experimental/eagles051387/src/org/libreoffice/experimental/eagles051387/StartCenterMenu.java
new file mode 100644
index 0000000..3bbd03c
--- /dev/null
+++ b/android/experimental/eagles051387/src/org/libreoffice/experimental/eagles051387/StartCenterMenu.java
@@ -0,0 +1,42 @@
+package org.libreoffice.experimental.eagles051387;
+
+import org.libreoffice.experimentalUI.eagles051387.R;
+import android.app.ListActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.AdapterView;
+import android.widget.AdapterView.OnItemClickListener;
+import android.widget.ArrayAdapter;
+import android.widget.ListView;
+import android.widget.TextView;
+import android.widget.Toast;
+
+public class StartCenterMenu extends ListActivity
+{
+	static final String[] LOOPTIONS = new String[]
+	{
+		"Open", "Templates", "Text Document", "Spreadsheet", "Presentation", "Drawing", "database",
+		"Formula"
+	};
+
+	@Override
+	public void onCreate(Bundle savedInstanceState)
+	{
+	  super.onCreate(savedInstanceState);
+
+	  setListAdapter(new ArrayAdapter<String>(this, R.layout.star_center_menu_list, LOOPTIONS));
+
+	  ListView lv = getListView();
+	  lv.setTextFilterEnabled(true);
+
+	  lv.setOnItemClickListener(new OnItemClickListener()
+	  {
+	    public void onItemClick(AdapterView<?> parent, View view, int position, long id)
+	    {
+	      // When clicked, show a toast with the TextView text
+	      Toast.makeText(getApplicationContext(), ((TextView) view).getText(),
+	          Toast.LENGTH_SHORT).show();
+	    }
+	  });
+	}
+}
\ No newline at end of file


More information about the Libreoffice-commits mailing list