mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-04 19:39:47 +01:00
wrap inside scroll view
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
This commit is contained in:
parent
1881676538
commit
82a46572d9
@ -53,7 +53,6 @@ class FileAttachmentPreviewFragment : DialogFragment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
||||||
|
|
||||||
arguments?.let {
|
arguments?.let {
|
||||||
files = it.getString(FILE_NAMES_ARG, "")
|
files = it.getString(FILE_NAMES_ARG, "")
|
||||||
filesList = it.getStringArrayList(FILES_TO_UPLOAD_ARG)!!
|
filesList = it.getStringArrayList(FILES_TO_UPLOAD_ARG)!!
|
||||||
@ -100,10 +99,7 @@ class FileAttachmentPreviewFragment : DialogFragment() {
|
|||||||
private const val FILES_TO_UPLOAD_ARG = "FILES_TO_UPLOAD_ARG"
|
private const val FILES_TO_UPLOAD_ARG = "FILES_TO_UPLOAD_ARG"
|
||||||
|
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun newInstance(
|
fun newInstance(filenames: String, filesToUpload: MutableList<String>): FileAttachmentPreviewFragment {
|
||||||
filenames: String,
|
|
||||||
filesToUpload: MutableList<String>,
|
|
||||||
): FileAttachmentPreviewFragment {
|
|
||||||
val fileAttachmentFragment = FileAttachmentPreviewFragment()
|
val fileAttachmentFragment = FileAttachmentPreviewFragment()
|
||||||
val args = Bundle()
|
val args = Bundle()
|
||||||
args.putString(FILE_NAMES_ARG, filenames)
|
args.putString(FILE_NAMES_ARG, filenames)
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?><!--
|
||||||
<!--
|
|
||||||
~ Nextcloud Talk application
|
~ Nextcloud Talk application
|
||||||
~
|
~
|
||||||
~ @author Julius Linus
|
~ @author Julius Linus
|
||||||
@ -18,13 +17,18 @@
|
|||||||
~ You should have received a copy of the GNU General Public License
|
~ You should have received a copy of the GNU General Public License
|
||||||
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
-->
|
-->
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
tools:background="@color/white"
|
tools:background="@color/white">
|
||||||
tools:visibility="visible">
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
<com.google.android.material.textview.MaterialTextView
|
<com.google.android.material.textview.MaterialTextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -37,7 +41,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
<ScrollView
|
<androidx.core.widget.NestedScrollView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="100dp">
|
android:layout_height="100dp">
|
||||||
|
|
||||||
@ -47,9 +51,9 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="@dimen/standard_margin"
|
android:layout_margin="@dimen/standard_margin"
|
||||||
android:textSize="@dimen/headline_text_size"
|
android:textSize="@dimen/headline_text_size"
|
||||||
tools:text="a.png\nb.png\nc.png"/>
|
tools:text="a.png\nb.png\nc.png" />
|
||||||
|
|
||||||
</ScrollView>
|
</androidx.core.widget.NestedScrollView>
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
android:id="@+id/dialog_file_attachment_preview_layout"
|
android:id="@+id/dialog_file_attachment_preview_layout"
|
||||||
@ -64,7 +68,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:hint="@string/nc_caption"
|
android:hint="@string/nc_caption"
|
||||||
android:maxLines="3"
|
android:maxLines="3"
|
||||||
tools:text="a.png\nb.png\nc.png"/>
|
tools:text="a.png\nb.png\nc.png" />
|
||||||
|
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
@ -99,4 +103,6 @@
|
|||||||
android:text="@string/nc_yes" />
|
android:text="@string/nc_yes" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
</ScrollView>
|
||||||
|
Loading…
Reference in New Issue
Block a user