Ver código fonte

Merge remote-tracking branch 'origin/master'

Kongzue 3 semanas atrás
pai
commit
3074a27c79
3 arquivos alterados com 44 adições e 61 exclusões
  1. 14 25
      README.md
  2. 16 19
      README_EN.md
  3. 14 17
      README_TC.md

+ 14 - 25
README.md

@@ -29,31 +29,20 @@
 
 # DialogX优势
 
-对话框是一个软件对用户操作进行响应、反馈的重要组件,而 DialogX 将可以协助开发者快速完成这些事务。
-
-我们力求减少开发者所需要担心的,所需要顾虑的,而打造一款可以在任意时间,任意情况都能轻松使用的对话框组件。
-
-在轻松使用的前提下,DialogX 提供了更多的个性接口方便开发者进行扩展,包括在对话框内插入自定义布局,亮暗色模式的切换,甚至自定义更符合 App UI 的自定义主题。
-
-### ✅ DialogX 的特性
-
-- DialogX 采用全新的实现方式,默认 View 实现方式更为轻便,亦可选 Window、DialogFragment 实现方式,自由灵活。
-
-- DialogX 的启动与线程无关,你可以**在任意线程**启动 DialogX 而它都将自动在 UI 线程运行。
-
-- DialogX 的启动**无需 context 参数**,默认提供静态方法一句代码实现对话框的启动,使用更加方便。
-
-- 更自由,开发者可以轻松定制对话框中任何组件的样式,包括文本样式、按钮文字样式、菜单文本样式、输入文本样式,大到标题,小到提示消息都可以根据需要随意修改。
-
-- DialogX 采用**主题分离设计**,默认自带 Material 主题,可选引入 IOS、Kongzue、MIUI 等其他风格主题,大大减小 App 体积,同时提供了主题接口,如有定制需求完全可以自行实现一套私有主题。
-  
-- 更低的耦合度,更少的问题,DialogX 可以在对话框正在**运行的过程中随意关闭 Activity** ,而无需担心以往 AlertDialog 等组件会引发的 WindowLeaked 错误。
-  
-- 更流畅的体验,DialogX 的动画效果更加丰富,对话框启动动画采用**非线性动画**实现,更自带连贯的等待提示到完成错误动画过渡效果,让你的 APP 更具动感。
-  
-- 所有主题默认支持亮暗色两种模式,只需一键配置即可实现亮暗色的对话框主题切换,更有自由的布局内容满足定制化需求,DialogX 也支持自动适应系统亮暗色模式切换,能够根据系统设置自动判断亮暗色显示效果的切换。
-  
-- 轻松的实现对话框的生命周期管控以及沉浸式适配。
+对话框是软件与用户互动的关键部分,DialogX 让开发者轻松搞定这一切,我们致力于打造一款无论何时何地都能便捷使用的对话框组件,让开发者少操心、多做事,DialogX 不仅易用,还提供了丰富的个性化接口,比如自定义布局、日夜模式切换和专属 App 主题的创建
+
+### ✅ DialogX 亮点
+
+- **多样实现**:DialogX 默认使用更轻便的 View 实现方式,也可选 Window 或 DialogFragment 等其他模式,灵活自由。
+- **线程无忧**:在任何线程启动DialogX,它都会自动在 UI 线程里运行,无需担心线程问题。
+- **一键启动**:无需 context 参数,简单一行代码就能启动对话框,超级方便。
+- **样式自定义**:从标题到内容,文本、按钮、菜单和输入框或是插入自定义布局,所有组件样式都可自定义。
+- **主题多样**:自带Material主题,可选额外添加 Material You、iOS、Kongzue、MIUI 等主题风格,还支持自定义主题,减小 App 体积。
+- **低耦合度**:运行时关闭 Activity 也不怕,DialogX 能更自动销毁避免 WindowLeaked 等内存泄漏错误。
+- **动画丰富**:采用非线性动画,还有流畅的等待到错误动画过渡,让APP更生动。
+- **亮暗模式**:一键切换亮暗主题,自动适应系统亮暗模式,满足定制化需求。
+- **生命周期与沉浸式**:轻松管理对话框生命周期,完美适配沉浸式体验。
+- **穿透能力**:“临时储物柜”数据穿透和“快捷功能键”动作穿透,两大帮手助你轻松实现数据传递和灵活控制,安全又放心。
 
 # DialogX 对话框
 

+ 16 - 19
README_EN.md

@@ -27,25 +27,22 @@ An easy-to-use dialog box component with better experience than native dialog bo
 
 ![DialogX](https://user-images.githubusercontent.com/10115359/229279713-79c43a63-1a0a-4f70-851f-0a0783b94b45.jpg)
 
-# Advantages of DialogX
-
-DialogX is an important component of software that responds and gives feedback to user actions, and DialogX will help developers to do this quickly.
-
-We have tried to reduce the amount of worries and concerns developers have, and create a dialog component that can be used easily at any time and in any situation.
-
-On the premise of ease of use, DialogX provides more personalized interfaces for developers to extend, including inserting custom layouts inside dialogs, switching between light and dark color modes, and even customizing custom themes to better fit the App UI.
-
-### ✅Features of DialogX
-
-- DialogX adopts a new implementation, the default View implementation is lighter, and you can also choose Window or DialogFragment implementation for freedom and flexibility.
-- DialogX is thread-independent, you can **start DialogX in any thread** and it will automatically run in the UI thread.
-- DialogX can be started **without context parameter** and provides a static method to start the dialog by default, which is more convenient to use.
-- More freedom, developers can easily customize the style of any component in the dialog box, including text style, button text style, menu text style, input text style, from large to title, small to prompt message can be modified as needed.
-- DialogX adopts **theme separation design**, which comes with Material theme by default and can optionally introduce other style themes such as IOS, Kongzue, MIUI, etc., greatly reducing the size of the App, while providing a theme interface, so you can fully implement a set of private themes if you have customization needs.
-- Lower coupling, less problems, DialogX allows you to **close the Activity while the dialog is running** without worrying about the WindowLeaked error that components like AlertDialog used to raise.
-- DialogX is richer in animation effects, the dialog start animation is realized by **non-linear animation**, and it comes with a coherent transition effect from waiting prompt to completion error animation, making your APP more dynamic.
-- All themes support both light and dark modes by default, just one click configuration can realize light and dark dialog box theme switching, more free layout content to meet the customization needs, DialogX also supports automatic adaptation to the system light and dark color mode switching, can automatically determine the light and dark color display effect switching according to the system settings.
-- It is easy to realize the lifecycle control and immersive adaptation of dialogs.
+# DialogX Advantages
+
+Dialogs are a crucial part of software-user interaction, and DialogX makes it easy for developers to handle all of this. We are committed to creating a dialog component that is convenient to use anytime, anywhere, allowing developers to worry less and accomplish more. DialogX is not only user-friendly but also provides a wealth of customization interfaces, such as custom layouts, day-night mode switching, and the creation of exclusive app themes.
+
+### ✅ DialogX Highlights
+
+- **Diverse Implementations**: DialogX defaults to a lighter View implementation but also supports other modes like Window or DialogFragment, offering flexibility and freedom.
+- **Thread Safety**: No matter which thread you start DialogX from, it will automatically run on the UI thread, eliminating thread-related concerns.
+- **One-Click Launch**: No need for a context parameter; just one line of code to launch the dialog—super convenient.
+- **Style Customization**: Customize the styles of all components, from titles to hints, including text, buttons, menus, input fields, or even inserting any custom layout.
+- **Multiple Themes**: Comes with a Material theme by default, with additional options like Material You, iOS, Kongzue, MIUI, and more. It also supports custom themes, helping to reduce app size.
+- **Low Coupling**: Even if the Activity is closed during runtime, DialogX can automatically destroy itself to avoid memory leaks like WindowLeaked.
+- **Rich Animations**: Utilizes non-linear animations and smooth transitions from loading to error states, making your app more dynamic.
+- **Light/Dark Mode**: Switch between light and dark themes with one click, automatically adapting to the system's light/dark mode to meet customization needs.
+- **Lifecycle and Immersive Support**: Easily manage dialog lifecycles and perfectly adapt to immersive experiences.
+- **Penetration Capabilities**: Two powerful features—data penetration (temporary storage locker) and action penetration (shortcut keys)—help you effortlessly achieve data transfer and flexible control, ensuring safety and reliability. 
 
 # DialogX
 

+ 14 - 17
README_TC.md

@@ -29,23 +29,20 @@
 
 # DialogX優勢
 
-對話框是一個軟體對用戶操作進行響應、回饋的重要組件,而 DialogX 將可以協助開發者快速完成這些事務。
-
-我們力求減少開發者所需要擔心的,所需要顧慮的,而打造一款可以在任意時間,任意情況都能輕鬆使用的對話框組件。
-
-在輕鬆使用的前提下,DialogX 提供了更多的個性介面方便開發者進行擴展,包括在對話框內插入自訂布局,亮暗色模式的切換,甚至自訂更符合 App UI 的自訂主題。
-
-### ✅DialogX的特性:
-
-- DialogX 採用全新的實現方式,默認 View 實現方式更為輕便,亦可選 Window、DialogFragment 實現方式,自由靈活。
-- DialogX 的啟動與執行緒無關,你可以**在任意執行緒**啟動 DialogX 而它都將自動在 UI 執行緒運行。
-- DialogX 的啟動**無需 context 參數**,默認提供靜態方法一句代碼實現對話框的啟動,使用更加方便。
-- 更自由,開發者可以輕鬆訂製對話框中任何組件的樣式,包括文本樣式、按鈕文字樣式、菜單文本樣式、輸入文本樣式,大到標題,小到提示消息都可以根據需要隨意修改。
-- DialogX 採用**主題分離設計**,默認自帶 Material 主題,可選引入 IOS、Kongzue、MIUI 等其他風格主題,大大減小 App 體積,同時提供了主題介面,如有訂製需求完全可以自行實現一套私有主題。
-- 更低的耦合度,更少的問題,DialogX 可以在對話框正在**運行的過程中隨意關閉 Activity** ,而無需擔心以往 AlertDialog 等組件會引發的 WindowLeaked 錯誤。
-- 更流暢的體驗,DialogX 的動畫效果更加豐富,對話框啟動動畫採用**非線性動畫**實現,更自帶連貫的等待提示到完成錯誤動畫過渡效果,讓你的 APP 更具動感。
-- 所有主題默認支持亮暗色兩種模式,只需一鍵配置即可實現亮暗色的對話框主題切換,更有自由的布局內容滿足訂製化需求,DialogX 也支持自動適應系統亮暗色模式切換,能夠根據系統設置自動判斷亮暗色顯示效果的切換。
-- 輕鬆的實現對話框的生命週期管控以及沉浸式適配。
+對話框是軟件與用戶互動的關鍵部分,DialogX 讓開發者輕鬆搞定這一切,我們致力於打造一款無論何時何地都能便捷使用的對話框組件,讓開發者少操心、多做事,DialogX 不僅易用,還提供了豐富的個性化接口,比如自定義佈局、日夜模式切換和專屬 App 主題的創建
+
+### ✅ DialogX 亮點
+
+- **多樣實現**:DialogX 默認使用更輕便的 View 實現方式,也可選 Window 或 DialogFragment 等其他實現模式,靈活自由。
+- **線程無憂**:在任何線程啟動DialogX,它都會自動在 UI 線程裏運行,無需擔心線程問題。
+- **一鍵啟動**:無需 context 參數,簡單一行代碼就能啟動對話框,超級方便。
+- **樣式自定義**:從標題到提示,所有組件樣式都可自定義,包括文本、按鈕、菜單和輸入框或者插入任何自定義佈局。
+- **主題多樣**:自帶Material主題,可選額外添加 Material You、iOS、Kongzue、MIUI 等主題風格,還支持自定義主題,減小 App 體積。
+- **低耦合度**:運行時關閉 Activity 也不怕,DialogX 能更自動銷毀避免 WindowLeaked 等內存洩漏錯誤。
+- **動畫豐富**:採用非線性動畫,還有流暢的等待到錯誤動畫過渡,讓APP更生動。
+- **亮暗模式**:一鍵切換亮暗主題,自動適應系統亮暗模式,滿足訂製化需求。
+- **生命週期與沉浸式**:輕鬆管理對話框生命週期,完美適配沉浸式體驗。
+- **穿透能力**:“臨時儲物櫃”數據穿透和“快捷功能鍵”動作穿透兩大幫手助你輕鬆實現數據傳遞和靈活控制,安全又放心。
 
 # DialogX對話框