add saving action placeholder
Change-Id: Ibb4595e297a4328f2bb108e1b9e71bb50843e3b9
This commit is contained in:
@@ -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>
|
||||
|
@@ -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>
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user