You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
2.2 KiB
83 lines
2.2 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:bind="http://schemas.android.com/apk/res-auto"
|
|
>
|
|
<data>
|
|
<variable
|
|
name="fileSize"
|
|
type="String"
|
|
/>
|
|
<variable
|
|
name="speed"
|
|
type="String"
|
|
/>
|
|
<variable
|
|
name="progress"
|
|
type="int"
|
|
/>
|
|
<variable
|
|
name="url"
|
|
type="String"
|
|
/>
|
|
<variable
|
|
name="filePath"
|
|
type="String"
|
|
/>
|
|
<variable
|
|
name="viewModel"
|
|
type="com.arialyy.simple.core.upload.SFtpUploadActivity"
|
|
/>
|
|
<variable
|
|
name="stateStr"
|
|
type="String"
|
|
/>
|
|
</data>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
>
|
|
|
|
<include layout="@layout/layout_bar"/>
|
|
|
|
<com.arialyy.simple.widget.SvgTextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginTop="16dp"
|
|
bind:iconClickListener="@{() -> viewModel.chooseUrl()}"
|
|
bind:svg_text_view_icon="@drawable/ic_modify"
|
|
bind:text="@{@string/url(url)}"
|
|
/>
|
|
|
|
<com.arialyy.simple.widget.SvgTextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginTop="8dp"
|
|
bind:iconClickListener="@{() -> viewModel.chooseFilePath()}"
|
|
bind:svg_text_view_icon="@drawable/ic_choose_file"
|
|
bind:text="@{@string/file_path(filePath)}"
|
|
/>
|
|
|
|
<include
|
|
layout="@layout/layout_content_single"
|
|
bind:fileSize="@{fileSize}"
|
|
bind:progress="@{progress}"
|
|
bind:speed="@{speed}"
|
|
bind:stateStr="@{stateStr}"
|
|
/>
|
|
|
|
|
|
<!-- <com.arialyy.simple.widget.CodeView-->
|
|
<!-- android:id="@+id/code_view"-->
|
|
<!-- android:layout_width="match_parent"-->
|
|
<!-- android:layout_height="match_parent"-->
|
|
<!-- />-->
|
|
|
|
|
|
</LinearLayout>
|
|
</layout>
|
|
|