fix freeform

This commit is contained in:
Page Asgardius 2022-12-26 11:28:01 -07:00
parent 458b622139
commit d0aa5190f9
5 changed files with 315 additions and 256 deletions

View file

@ -7,38 +7,50 @@
android:orientation="vertical" android:orientation="vertical"
tools:context=".CorsConfig"> tools:context=".CorsConfig">
<TextView <androidx.core.widget.NestedScrollView
android:id="@+id/origins"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:textAlignment="center"
android:textSize="25sp" />
<Button <LinearLayout
android:id="@+id/allow_all" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="70dp" android:orientation="vertical">
android:text="@string/allow_all"
android:textColor="?android:attr/colorBackground"
android:textSize="24sp"
android:visibility="gone" />
<Button <TextView
android:id="@+id/allow_pdf" android:id="@+id/origins"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="70dp" android:layout_height="wrap_content"
android:text="@string/allow_pdf" android:textAlignment="center"
android:textColor="?android:attr/colorBackground" android:textSize="25sp"/>
android:textSize="24sp"
android:visibility="gone" />
<Button <Button
android:id="@+id/delete_cors" android:id="@+id/allow_all"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="70dp" android:layout_height="70dp"
android:text="@string/delete_cors" android:text="@string/allow_all"
android:textColor="?android:attr/colorBackground" android:textColor="?android:attr/colorBackground"
android:textSize="24sp" android:textSize="24sp"
android:visibility="gone" /> android:visibility="gone" />
<Button
android:id="@+id/allow_pdf"
android:layout_width="match_parent"
android:layout_height="70dp"
android:text="@string/allow_pdf"
android:textColor="?android:attr/colorBackground"
android:textSize="24sp"
android:visibility="gone" />
<Button
android:id="@+id/delete_cors"
android:layout_width="match_parent"
android:layout_height="70dp"
android:text="@string/delete_cors"
android:textColor="?android:attr/colorBackground"
android:textSize="24sp"
android:visibility="gone" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout> </LinearLayout>

View file

@ -7,52 +7,64 @@
android:orientation="vertical" android:orientation="vertical"
tools:context=".CreateBucket"> tools:context=".CreateBucket">
<TextView <androidx.core.widget.NestedScrollView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:text="@string/set_bucket_name"
android:textAlignment="center"
android:textSize="30sp" />
<EditText <LinearLayout
android:id="@+id/bname" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="48dp" android:orientation="vertical">
android:focusable="true"
android:hint="@string/bucket_name"
android:importantForAutofill="no"
android:inputType="text"
android:textColorHint="?attr/colorOnSecondary"
tools:ignore="MissingConstraints" />
<LinearLayout <TextView
android:id="@+id/linearLayout" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="80dp" android:text="@string/set_bucket_name"
android:orientation="horizontal" android:textAlignment="center"
android:padding="10dp" android:textSize="30sp" />
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="20dp">
<Button <EditText
android:id="@+id/cbucket" android:id="@+id/bname"
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="48dp"
android:layout_weight="1" android:focusable="true"
android:text="@string/create_bucket" android:hint="@string/bucket_name"
tools:ignore="MissingConstraints" /> android:importantForAutofill="no"
android:inputType="text"
android:textColorHint="?attr/colorOnSecondary"
tools:ignore="MissingConstraints" />
</LinearLayout> <LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="80dp"
android:orientation="horizontal"
android:padding="10dp"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="20dp">
<ProgressBar <Button
android:id="@+id/simpleProgressBar" android:id="@+id/cbucket"
android:layout_width="fill_parent" android:layout_width="0dp"
android:layout_height="fill_parent" android:layout_height="match_parent"
android:indeterminate="true" android:layout_weight="1"
android:max="100" android:text="@string/create_bucket"
android:padding="20dp" tools:ignore="MissingConstraints" />
android:progress="50"
android:visibility="invisible" </LinearLayout>
tools:ignore="MissingConstraints" />
<ProgressBar
android:id="@+id/simpleProgressBar"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:indeterminate="true"
android:max="100"
android:padding="20dp"
android:progress="50"
android:visibility="invisible"
tools:ignore="MissingConstraints" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout> </LinearLayout>

View file

@ -7,48 +7,59 @@
android:orientation="vertical" android:orientation="vertical"
tools:context=".MainActivity"> tools:context=".MainActivity">
<androidx.core.widget.NestedScrollView
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="70dp" android:layout_height="wrap_content">
android:layout_margin="20dp"
android:orientation="horizontal"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="20dp">
<Button <LinearLayout
android:id="@+id/addaccount" android:layout_width="match_parent"
android:layout_width="0dp" android:layout_height="wrap_content"
android:layout_height="match_parent" android:orientation="vertical">
android:layout_weight="1"
android:text="@string/accountadd_button"
tools:ignore="MissingConstraints"
style="?android:attr/buttonStyle" />
<Button <LinearLayout
android:id="@+id/settings_button" android:id="@+id/linearLayout"
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="70dp"
android:layout_weight="1" android:layout_margin="20dp"
android:text="@string/settings" android:orientation="horizontal"
tools:ignore="MissingConstraints" tools:ignore="MissingConstraints"
style="?android:attr/buttonStyle" /> tools:layout_editor_absoluteX="20dp">
</LinearLayout> <Button
android:id="@+id/addaccount"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/accountadd_button"
tools:ignore="MissingConstraints"
style="?android:attr/buttonStyle" />
<TextView <Button
android:layout_width="match_parent" android:id="@+id/settings_button"
android:layout_height="wrap_content" android:layout_width="0dp"
android:text="@string/accountselect" android:layout_height="match_parent"
android:textAlignment="center" android:layout_weight="1"
android:textSize="25sp" /> android:text="@string/settings"
tools:ignore="MissingConstraints"
style="?android:attr/buttonStyle" />
<androidx.recyclerview.widget.RecyclerView </LinearLayout>
android:id="@+id/alist"
android:layout_width="match_parent" <TextView
android:layout_height="match_parent" android:layout_width="match_parent"
android:contentDescription="@string/account_list" android:layout_height="wrap_content"
tools:layout_editor_absoluteX="27dp" /> android:text="@string/accountselect"
android:textAlignment="center"
android:textSize="25sp" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/alist"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@string/account_list"
tools:layout_editor_absoluteX="27dp" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout> </LinearLayout>

View file

@ -7,127 +7,139 @@
android:orientation="vertical" android:orientation="vertical"
tools:context=".Share"> tools:context=".Share">
<TextView <androidx.core.widget.NestedScrollView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:text="@string/expiration_date"
android:textAlignment="center"
android:textSize="25sp" />
<LinearLayout <LinearLayout
android:id="@+id/linearLayoutDate" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="wrap_content" android:orientation="vertical">
android:orientation="horizontal"
android:padding="10dp"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="20dp">
<EditText <TextView
android:id="@+id/Date" android:layout_width="match_parent"
android:layout_width="0dp" android:layout_height="wrap_content"
android:layout_height="48dp" android:text="@string/expiration_date"
android:layout_weight="1" android:textAlignment="center"
android:focusable="true" android:textSize="25sp" />
android:hint="@string/share_date"
android:maxLength="2"
android:inputType="date"
android:textColorHint="?attr/colorOnSecondary"
tools:ignore="MissingConstraints" />
<EditText <LinearLayout
android:id="@+id/Month" android:id="@+id/linearLayoutDate"
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="wrap_content"
android:layout_weight="1" android:orientation="horizontal"
android:focusable="true" android:padding="10dp"
android:hint="@string/share_month" tools:ignore="MissingConstraints"
android:maxLength="2" tools:layout_editor_absoluteX="20dp">
android:inputType="date"
android:textColorHint="?attr/colorOnSecondary"
tools:ignore="MissingConstraints" />
<EditText <EditText
android:id="@+id/Year" android:id="@+id/Date"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="48dp" android:layout_height="48dp"
android:layout_weight="1" android:layout_weight="1"
android:focusable="true" android:focusable="true"
android:hint="@string/share_year" android:hint="@string/share_date"
android:maxLength="4" android:maxLength="2"
android:inputType="date" android:inputType="date"
android:textColorHint="?attr/colorOnSecondary" android:textColorHint="?attr/colorOnSecondary"
tools:ignore="MissingConstraints" /> tools:ignore="MissingConstraints" />
</LinearLayout> <EditText
android:id="@+id/Month"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:focusable="true"
android:hint="@string/share_month"
android:maxLength="2"
android:inputType="date"
android:textColorHint="?attr/colorOnSecondary"
tools:ignore="MissingConstraints" />
<TextView <EditText
android:layout_width="match_parent" android:id="@+id/Year"
android:layout_height="wrap_content" android:layout_width="0dp"
android:text="@string/expiration_time" android:layout_height="48dp"
android:textAlignment="center" android:layout_weight="1"
android:textSize="25sp" /> android:focusable="true"
android:hint="@string/share_year"
android:maxLength="4"
android:inputType="date"
android:textColorHint="?attr/colorOnSecondary"
tools:ignore="MissingConstraints" />
<LinearLayout </LinearLayout>
android:id="@+id/linearLayoutTime"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="10dp"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="20dp">
<EditText <TextView
android:id="@+id/Hour" android:layout_width="match_parent"
android:layout_width="0dp" android:layout_height="wrap_content"
android:layout_height="48dp" android:text="@string/expiration_time"
android:layout_weight="1" android:textAlignment="center"
android:focusable="true" android:textSize="25sp" />
android:hint="@string/share_hour"
android:maxLength="2"
android:inputType="date"
android:textColorHint="?attr/colorOnSecondary"
tools:ignore="MissingConstraints" />
<EditText <LinearLayout
android:id="@+id/Minute" android:id="@+id/linearLayoutTime"
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="wrap_content"
android:layout_weight="1" android:orientation="horizontal"
android:focusable="true" android:padding="10dp"
android:hint="@string/share_minute" tools:ignore="MissingConstraints"
android:maxLength="2" tools:layout_editor_absoluteX="20dp">
android:inputType="date"
android:textColorHint="?attr/colorOnSecondary"
tools:ignore="MissingConstraints" />
</LinearLayout> <EditText
android:id="@+id/Hour"
android:layout_width="0dp"
android:layout_height="48dp"
android:layout_weight="1"
android:focusable="true"
android:hint="@string/share_hour"
android:maxLength="2"
android:inputType="date"
android:textColorHint="?attr/colorOnSecondary"
tools:ignore="MissingConstraints" />
<LinearLayout <EditText
android:id="@+id/linearLayoutSubmit" android:id="@+id/Minute"
android:layout_width="match_parent" android:layout_width="0dp"
android:layout_height="70dp" android:layout_height="48dp"
android:layout_margin="20dp" android:layout_weight="1"
android:orientation="horizontal" android:focusable="true"
tools:ignore="MissingConstraints" android:hint="@string/share_minute"
tools:layout_editor_absoluteX="20dp"> android:maxLength="2"
android:inputType="date"
android:textColorHint="?attr/colorOnSecondary"
tools:ignore="MissingConstraints" />
<Button </LinearLayout>
android:id="@+id/share"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/file_share"
tools:ignore="MissingConstraints" />
<Button <LinearLayout
android:id="@+id/open_in" android:id="@+id/linearLayoutSubmit"
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="70dp"
android:layout_weight="1" android:layout_margin="20dp"
android:text="@string/file_external" android:orientation="horizontal"
tools:ignore="MissingConstraints" /> tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="20dp">
</LinearLayout> <Button
android:id="@+id/share"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/file_share"
tools:ignore="MissingConstraints" />
<Button
android:id="@+id/open_in"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:text="@string/file_external"
tools:ignore="MissingConstraints" />
</LinearLayout>
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout> </LinearLayout>

View file

@ -7,53 +7,65 @@
android:orientation="vertical" android:orientation="vertical"
tools:context=".Uploader"> tools:context=".Uploader">
<TextView <androidx.core.widget.NestedScrollView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:text="@string/upload_key"
android:textAlignment="center"
android:textSize="30sp" />
<EditText <LinearLayout
android:id="@+id/fprefix" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="48dp" android:orientation="vertical">
android:focusable="true"
android:hint="@string/upload_key"
android:importantForAutofill="no"
android:inputType="text"
android:textColorHint="?attr/colorOnSecondary"
tools:ignore="MissingConstraints" />
<LinearLayout <TextView
android:id="@+id/linearLayout" android:layout_width="match_parent"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:layout_height="80dp" android:text="@string/upload_key"
android:orientation="horizontal" android:textAlignment="center"
android:padding="10dp" android:textSize="30sp" />
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="20dp">
<Button <EditText
android:id="@+id/fileupload" android:id="@+id/fprefix"
android:layout_width="0dp" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="48dp"
android:layout_weight="1" android:focusable="true"
android:text="@string/upload_button" android:hint="@string/upload_key"
tools:ignore="MissingConstraints" /> android:importantForAutofill="no"
android:inputType="text"
android:textColorHint="?attr/colorOnSecondary"
tools:ignore="MissingConstraints" />
</LinearLayout> <LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="80dp"
android:orientation="horizontal"
android:padding="10dp"
tools:ignore="MissingConstraints"
tools:layout_editor_absoluteX="20dp">
<ProgressBar <Button
android:id="@+id/simpleProgressBar" android:id="@+id/fileupload"
style="@style/Widget.AppCompat.ProgressBar.Horizontal" android:layout_width="0dp"
android:layout_width="fill_parent" android:layout_height="match_parent"
android:layout_height="fill_parent" android:layout_weight="1"
android:indeterminate="false" android:text="@string/upload_button"
android:max="100" tools:ignore="MissingConstraints" />
android:padding="20dp"
android:progress="0" </LinearLayout>
android:visibility="invisible"
tools:ignore="MissingConstraints" /> <ProgressBar
android:id="@+id/simpleProgressBar"
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:indeterminate="false"
android:max="100"
android:padding="20dp"
android:progress="0"
android:visibility="invisible"
tools:ignore="MissingConstraints" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</LinearLayout> </LinearLayout>