add saving action placeholder

Change-Id: Ibb4595e297a4328f2bb108e1b9e71bb50843e3b9
This commit is contained in:
Siqi Liu
2015-04-06 12:10:09 +02:00
committed by Miklos Vajna
parent 26afe0a339
commit 950d33871d
3 changed files with 11 additions and 2 deletions

View File

@@ -28,11 +28,15 @@
android:orderInCategory="100"
app:showAsAction="always"/>
<item android:id="@+id/action_about"
android:title="@string/action_about"
<item android:id="@+id/action_save"
android:title="@string/action_save"
android:orderInCategory="100" />
<item android:id="@+id/action_parts"
android:title="@string/action_parts"
android:orderInCategory="100" />
<item android:id="@+id/action_about"
android:title="@string/action_about"
android:orderInCategory="100" />
</menu>

View File

@@ -38,5 +38,6 @@
<string name="action_underline">Underline</string>
<string name="action_italic">Italic</string>
<string name="action_keyboard">Show keyboard</string>
<string name="action_save">Save</string>
</resources>

View File

@@ -16,6 +16,7 @@ import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.Toast;
import org.libreoffice.overlay.TextCursorLayer;
import org.mozilla.gecko.ZoomConstraints;
@@ -90,6 +91,9 @@ public class LibreOfficeMainActivity extends ActionBarActivity {
case R.id.action_about:
mAbout.showAbout();
return true;
case R.id.action_save:
Toast.makeText(this, "saving the document...", Toast.LENGTH_SHORT).show();
return true;
case R.id.action_parts:
mDrawerLayout.openDrawer(mDrawerList);
return true;