Browse Source

PDFTools(Android) - 1.隐藏表单hide功能

liuxiaolong 1 year ago
parent
commit
99f2c79520

+ 1 - 1
compdfkit-demo/src/main/java/com/compdfkit/demo/MainActivity.java

@@ -165,7 +165,7 @@ public class MainActivity extends CBasicActivity {
                     binding.pdfView.getCPdfReaderView().setCurrentFocusedFormType(CPDFWidget.WidgetType.Widget_Unknown);
                     binding.pdfView.getCPdfReaderView().setCurrentFocusedType(CPDFAnnotation.Type.UNKNOWN);
                     binding.pdfView.getCPdfReaderView().setTouchMode(CPDFReaderView.TouchMode.BROWSE);
-                    binding.pdfView.setAllowAddAndEditAnnot(true);
+                    binding.pdfView.setAllowAddAndEditAnnot(false);
                     break;
                 case Annotation:
                     binding.pdfView.setAllowAddAndEditAnnot(true);

+ 1 - 0
compdfkit-tools/src/main/java/com/compdfkit/tools/common/views/pdfpageedit/CInsertPdfPageDialogFragment.java

@@ -117,6 +117,7 @@ public class CInsertPdfPageDialogFragment extends BottomSheetDialogFragment impl
             CDialogFragmentUtil.setDimAmount(getDialog(), 0F);
         }
         BottomSheetBehavior<View> behavior = BottomSheetBehavior.from((View) getView().getParent());
+        behavior.setDraggable(false);
         CDialogFragmentUtil.setBottomSheetDialogFragmentFullScreen(getDialog(), behavior);
     }
 

+ 1 - 0
compdfkit-tools/src/main/res/layout/tools_properties_check_box_style_fragment.xml

@@ -124,6 +124,7 @@
             android:layout_height="48dp"
             android:layout_marginBottom="16dp"
             android:title="@string/tools_hide_form"
+            android:visibility="gone"
             app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintEnd_toEndOf="parent"
             app:layout_constraintStart_toStartOf="parent"

+ 1 - 0
compdfkit-tools/src/main/res/layout/tools_properties_list_box_style_fragment.xml

@@ -128,6 +128,7 @@
             android:title="@string/tools_hide_form"
             app:layout_constraintEnd_toEndOf="parent"
             android:layout_marginBottom="8dp"
+            android:visibility="gone"
             app:layout_constraintBottom_toBottomOf="parent"
             app:layout_constraintStart_toStartOf="parent"
             app:layout_constraintTop_toBottomOf="@id/font_size_slider_bar" />

+ 1 - 0
compdfkit-tools/src/main/res/layout/tools_properties_push_button_style_fragment.xml

@@ -158,6 +158,7 @@
             android:layout_width="match_parent"
             android:layout_height="48dp"
             android:layout_marginTop="8dp"
+            android:visibility="gone"
             android:title="@string/tools_hide_form"
             app:layout_constraintEnd_toEndOf="parent"
             app:layout_constraintStart_toStartOf="parent"

+ 1 - 0
compdfkit-tools/src/main/res/layout/tools_properties_text_fields_style_fragment.xml

@@ -208,6 +208,7 @@
             android:layout_height="48dp"
             android:layout_marginTop="8dp"
             android:title="@string/tools_hide_form"
+            android:visibility="gone"
             app:layout_constraintEnd_toEndOf="parent"
             app:layout_constraintStart_toStartOf="parent"
             app:layout_constraintTop_toBottomOf="@id/et_default_value" />