summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
Diffstat (limited to 'android')
-rw-r--r--android/experimental/eagles051387/.classpath.in15
-rw-r--r--android/experimental/eagles051387/.project33
-rw-r--r--android/experimental/eagles051387/AndroidManifest.xml23
-rw-r--r--android/experimental/eagles051387/lint.xml3
-rw-r--r--android/experimental/eagles051387/proguard-project.txt20
-rw-r--r--android/experimental/eagles051387/project.properties14
-rw-r--r--android/experimental/eagles051387/res/drawable-hdpi/ic_launcher.pngbin0 -> 9397 bytes
-rw-r--r--android/experimental/eagles051387/res/drawable-ldpi/ic_launcher.pngbin0 -> 2729 bytes
-rw-r--r--android/experimental/eagles051387/res/drawable-mdpi/ic_launcher.pngbin0 -> 5237 bytes
-rw-r--r--android/experimental/eagles051387/res/drawable-xhdpi/ic_launcher.pngbin0 -> 14383 bytes
-rw-r--r--android/experimental/eagles051387/res/layout/main.xml8
-rw-r--r--android/experimental/eagles051387/res/layout/star_center_menu_list.xml6
-rw-r--r--android/experimental/eagles051387/res/values/strings.xml9
-rw-r--r--android/experimental/eagles051387/src/org/libreoffice/experimental/eagles051387/Main_Menu.java17
-rw-r--r--android/experimental/eagles051387/src/org/libreoffice/experimental/eagles051387/StartCenterMenu.java42
15 files changed, 190 insertions, 0 deletions
diff --git a/android/experimental/eagles051387/.classpath.in b/android/experimental/eagles051387/.classpath.in
new file mode 100644
index 000000000000..10e58d3cf732
--- /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 000000000000..b3a56bf64ff9
--- /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 000000000000..fa4abf91b1c5
--- /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 000000000000..ee0eead5bb7d
--- /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 000000000000..f2fe1559a217
--- /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 000000000000..b7c2081d560f
--- /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 000000000000..96a442e5b8e9
--- /dev/null
+++ b/android/experimental/eagles051387/res/drawable-hdpi/ic_launcher.png
Binary files 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 000000000000..99238729d875
--- /dev/null
+++ b/android/experimental/eagles051387/res/drawable-ldpi/ic_launcher.png
Binary files 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 000000000000..359047dfa4ed
--- /dev/null
+++ b/android/experimental/eagles051387/res/drawable-mdpi/ic_launcher.png
Binary files 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 000000000000..71c6d760f051
--- /dev/null
+++ b/android/experimental/eagles051387/res/drawable-xhdpi/ic_launcher.png
Binary files differ
diff --git a/android/experimental/eagles051387/res/layout/main.xml b/android/experimental/eagles051387/res/layout/main.xml
new file mode 100644
index 000000000000..aaa71f354ab7
--- /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 000000000000..b5055f76f12e
--- /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 000000000000..2aba58258bb3
--- /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 000000000000..a254933ecc2b
--- /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 000000000000..3bbd03cfba9a
--- /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