Show spinner to select the save format

This commit is contained in:
Lonami Exo 2017-01-19 11:37:39 +01:00
parent d819055529
commit 4b7f123a06
2 changed files with 6 additions and 2 deletions

View File

@ -20,7 +20,7 @@
android:layout_toLeftOf="@+id/file_extension"
android:singleLine="true"/>
<TextView
<Spinner
android:id="@+id/file_extension"
android:layout_width="wrap_content"
android:layout_height="match_parent"
@ -29,6 +29,6 @@
android:layout_alignTop="@+id/file_name"
android:layout_below="@+id/file_name_label"
android:gravity="center_vertical"
android:text=".png"/>
android:entries="@array/save_formats"/>
</RelativeLayout>

View File

@ -12,6 +12,10 @@
<string name="no_permissions">Could not save the file without accessing the external storage</string>
<string name="ok">OK</string>
<string name="cancel">Cancel</string>
<string-array name="save_formats" translatable="false">
<item>.png</item>
<item>.svg</item>
</string-array>
<!-- Settings -->
<string name="settings">Settings</string>