make Save As dialog scrollable

This commit is contained in:
tibbi 2017-11-20 17:16:47 +01:00
parent 06cc0f37e7
commit 0208a424e2
1 changed files with 64 additions and 57 deletions

View File

@ -1,74 +1,81 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout <ScrollView
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/save_image_holder" android:id="@+id/save_image_wrapper"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent">
android:orientation="vertical"
android:paddingLeft="@dimen/activity_margin"
android:paddingRight="@dimen/activity_margin"
android:paddingTop="@dimen/activity_margin">
<com.simplemobiletools.commons.views.MyTextView <LinearLayout
android:id="@+id/save_image_path_label" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:id="@+id/save_image_holder"
android:layout_height="wrap_content"
android:text="@string/path"
android:textSize="@dimen/smaller_text_size"/>
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/save_image_path"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/activity_margin" android:orientation="vertical"
android:layout_marginLeft="@dimen/activity_margin" android:paddingLeft="@dimen/activity_margin"
android:paddingRight="@dimen/small_margin" android:paddingRight="@dimen/activity_margin"
android:paddingTop="@dimen/small_margin"/> android:paddingTop="@dimen/activity_margin">
<com.simplemobiletools.commons.views.MyTextView <com.simplemobiletools.commons.views.MyTextView
android:id="@+id/save_image_label" android:id="@+id/save_image_path_label"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/filename" android:text="@string/path"
android:textSize="@dimen/smaller_text_size"/> android:textSize="@dimen/smaller_text_size"/>
<com.simplemobiletools.commons.views.MyEditText <com.simplemobiletools.commons.views.MyTextView
android:id="@+id/save_image_filename" android:id="@+id/save_image_path"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/activity_margin"
android:singleLine="true"
android:textCursorDrawable="@null"/>
<RadioGroup
android:id="@+id/save_image_radio_group"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:checkedButton="@+id/save_image_radio_png">
<com.simplemobiletools.commons.views.MyCompatRadioButton
android:id="@+id/save_image_radio_png"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingBottom="@dimen/medium_margin" android:layout_marginBottom="@dimen/activity_margin"
android:paddingTop="@dimen/medium_margin" android:layout_marginLeft="@dimen/activity_margin"
android:text=".png"/> android:paddingRight="@dimen/small_margin"
android:paddingTop="@dimen/small_margin"/>
<com.simplemobiletools.commons.views.MyCompatRadioButton <com.simplemobiletools.commons.views.MyTextView
android:id="@+id/save_image_radio_svg" android:id="@+id/save_image_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/filename"
android:textSize="@dimen/smaller_text_size"/>
<com.simplemobiletools.commons.views.MyEditText
android:id="@+id/save_image_filename"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingBottom="@dimen/medium_margin" android:layout_marginBottom="@dimen/activity_margin"
android:paddingTop="@dimen/medium_margin" android:singleLine="true"
android:text=".svg"/> android:textCursorDrawable="@null"/>
<com.simplemobiletools.commons.views.MyCompatRadioButton <RadioGroup
android:id="@+id/save_image_radio_jpg" android:id="@+id/save_image_radio_group"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:paddingBottom="@dimen/medium_margin" android:checkedButton="@+id/save_image_radio_png">
android:paddingTop="@dimen/medium_margin"
android:text=".jpg"/>
</RadioGroup> <com.simplemobiletools.commons.views.MyCompatRadioButton
</LinearLayout> android:id="@+id/save_image_radio_png"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/medium_margin"
android:paddingTop="@dimen/medium_margin"
android:text=".png"/>
<com.simplemobiletools.commons.views.MyCompatRadioButton
android:id="@+id/save_image_radio_svg"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/medium_margin"
android:paddingTop="@dimen/medium_margin"
android:text=".svg"/>
<com.simplemobiletools.commons.views.MyCompatRadioButton
android:id="@+id/save_image_radio_jpg"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/medium_margin"
android:paddingTop="@dimen/medium_margin"
android:text=".jpg"/>
</RadioGroup>
</LinearLayout>
</ScrollView>