Преглед на файлове

PDFTools(Android) - 1.代码优化

liuxiaolong преди 1 година
родител
ревизия
729b0d6d2d

+ 6 - 0
LICENSE

@@ -0,0 +1,6 @@
+Copyright © 2014-2023 PDF Technologies, Inc. All Rights Reserved.
+
+THIS SOURCE CODE AND ANY ACCOMPANYING DOCUMENTATION ARE PROTECTED BY INTERNATIONAL COPYRIGHT LAW
+AND MAY NOT BE RESOLD OR REDISTRIBUTED. USAGE IS BOUND TO THE ComPDFKit LICENSE AGREEMENT.
+UNAUTHORIZED REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES.
+This notice may not be removed from this file.

+ 24 - 0
compdfkit-tools/README.md

@@ -0,0 +1,24 @@
+# ComPDFKit SDK Tools
+
+## Project structure
+```
+- app
+  - src
+    - main
+      - java
+        - com.compdfkit.tools
+          - pdfbota                 
+            - pdfoutline                    - PDF Outline list
+            - pdfthumbnail                  - PDF thumbnail list
+        - pdfdisplaysettings                - CPDFReaderView display settings.
+        - pdfinfo                           - PDF Document info
+        - pdfmore                           
+        - pdfsearch                         - PDF Search
+        - pdfview                           
+        - utils
+            - glide                         - Use Glide SDK to load the thumbnail or cover image of a PDF.
+
+```
+
+## License
+See [License](./../LICENSE)

+ 1 - 1
compdfkit-tools/src/main/java/com/compdfkit/tools/pdfpageinfo/CPDFDocumentInfoDialogFragment.java

@@ -1,4 +1,4 @@
-package com.compdfkit.tools.pdfpageinfo;
+package com.compdfkit.tools.pdfinfo;
 
 import android.os.Bundle;
 import android.os.ParcelFileDescriptor;

+ 1 - 1
compdfkit-tools/src/main/java/com/compdfkit/tools/pdfmore/CPDFMoreSettingsDialogFragment.java

@@ -24,7 +24,7 @@ import com.compdfkit.tools.R;
 import com.compdfkit.tools.pdfdisplaysettings.CPDFDisplaySettingDialogFragment;
 import com.compdfkit.tools.pdfmore.adapter.CPDFMoreMenuListAdapter;
 import com.compdfkit.tools.pdfmore.bean.CMoreMenuBean;
-import com.compdfkit.tools.pdfpageinfo.CPDFDocumentInfoDialogFragment;
+import com.compdfkit.tools.pdfinfo.CPDFDocumentInfoDialogFragment;
 import com.compdfkit.tools.pdfview.CPDFView;
 import com.compdfkit.tools.utils.dialog.DialogFragmentUtil;
 import com.compdfkit.tools.utils.view.CToolBar;

+ 5 - 10
compdfkit-tools/src/main/res/layout/tools_pdf_document_info_dialog_fragment.xml

@@ -34,7 +34,7 @@
 
             <View
                 android:layout_width="match_parent"
-                android:layout_height="@dimen/qb_px_1"
+                android:layout_height="1dp"
                 android:background="@color/tools_item_dividing_line_color" />
 
             <androidx.constraintlayout.widget.ConstraintLayout
@@ -151,12 +151,7 @@
                     style="@style/tools_document_info_subTitle" />
             </androidx.constraintlayout.widget.ConstraintLayout>
 
-            <View
-                android:layout_width="match_parent"
-                android:layout_height="@dimen/qb_px_1"
-                android:layout_marginLeft="@dimen/qb_px_20"
-                android:layout_marginRight="@dimen/qb_px_20"
-                android:background="@color/tools_item_dividing_line_color" />
+            <View style="@style/tools_document_info_dividing_line_style" />
 
             <androidx.constraintlayout.widget.ConstraintLayout
                 style="@style/tools_document_info_item_style"
@@ -187,7 +182,7 @@
 
             <View
                 android:layout_width="match_parent"
-                android:layout_height="@dimen/qb_px_1"
+                android:layout_height="1dp"
                 android:background="@color/tools_item_dividing_line_color" />
 
             <androidx.constraintlayout.widget.ConstraintLayout
@@ -312,7 +307,7 @@
 
             <View
                 android:layout_width="match_parent"
-                android:layout_height="@dimen/qb_px_1"
+                android:layout_height="1dp"
                 android:background="@color/tools_item_dividing_line_color" />
 
 
@@ -457,7 +452,7 @@
 
             <View
                 android:layout_width="match_parent"
-                android:layout_height="@dimen/qb_px_1"
+                android:layout_height="1dp"
                 android:background="@color/tools_item_dividing_line_color" />
         </LinearLayout>
     </ScrollView>

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

@@ -20,7 +20,7 @@
     <androidx.appcompat.widget.AppCompatEditText
         android:id="@+id/search_word"
         android:layout_width="0dp"
-        android:layout_height="@dimen/qb_px_30"
+        android:layout_height="32dp"
         android:layout_centerVertical="true"
         android:layout_marginStart="16dp"
         android:background="@drawable/tools_search_edit_bg"