CN105224310A - ANDROID-based multi-FRAGMENT-based method for improving HYBRID application experience - Google Patents

ANDROID-based multi-FRAGMENT-based method for improving HYBRID application experience Download PDF

Info

Publication number
CN105224310A
CN105224310A CN201510558403.2A CN201510558403A CN105224310A CN 105224310 A CN105224310 A CN 105224310A CN 201510558403 A CN201510558403 A CN 201510558403A CN 105224310 A CN105224310 A CN 105224310A
Authority
CN
China
Prior art keywords
fragment
webview
android
application
html page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510558403.2A
Other languages
Chinese (zh)
Inventor
王振峰
刘桂海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Software Co Ltd
Original Assignee
Inspur Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Software Co Ltd filed Critical Inspur Software Co Ltd
Priority to CN201510558403.2A priority Critical patent/CN105224310A/en
Publication of CN105224310A publication Critical patent/CN105224310A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method for improving HYBRID application experience based on ANDROID multi-FRAGMENT, which is characterized in that WebView is placed in a single FRAGMENT, the WebView in the WebView is managed by the independent FRAGMENT, and a plurality of FRAGMENTs are located in the same Activity, so that ANDROID is facilitated to be realized? Pad layout; an HTML page in WebView is communicated with Java through JavaScript, the Java is informed to create new Fragment, the purpose of opening the new page is achieved, and the Fragment animation mechanism provided by the Android system can be used for improving the animation effect of application; compared with the prior art, the method for improving the HYBRID application experience based on the ANDROID multi-FRAGMENT fully uses the technology originally provided by the system, improves the user experience of the application, ensures the framework flexibility of the application, and has the characteristics of reasonable design, simple structure, convenience in use and the like.

Description

A kind of method promoting HYBRID application experience based on the many FRAGMENT of ANDROID
Technical field
The present invention relates to Mobile solution development field, specifically a kind of method promoting HYBRID application experience based on the many FRAGMENT of ANDROID.
Background technology
Along with the fast development of mobile Internet, enterprise mobile application also presents diversified development trend, and can be divided into native applications, Web application, Hybrid application from the actualizing technology system angle of Mobile solution.Native applications exploitation, upgrade, maintenance period is long, time input and fund cost bring great burden to enterprise mobile information.Although Web application compensate for the inferior position of native applications, its function cannot match in excellence or beauty with native applications, and Consumer's Experience is called its short slab.The advantage of native applications and Web application has been merged in Hybrid application just, has the advantage that development efficiency is high, maintenance cost is low, Consumer's Experience is good.
Generally, the actualizing technology thinking of Hybrid application is divided into two kinds: one is based on single WebView, and another kind is based on many WebView.The second is based on the realization approach of many WebView, and its conventional implementation uses many View and animation to combine, and reaches the object that windows exchange communicates with window.But this thinking often realizes complexity, the existing technology that Android operation system provides cannot be made full use of, as responding system Event Function.And the present invention is intended to illustrate that a kind of Fragment provided based on Android operation system realizes the method for Hybrid key application function.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of method promoting HYBRID application experience based on the many FRAGMENT of ANDROID is provided.
Technical scheme of the present invention realizes in the following manner, its feature is to be placed on by WebView in independent Fragment, manage the WebView of its inside by independently Fragment, and multiple Fragment is arranged in same Activity, contributes to realizing AndroidPad layout like this;
Html page in WebView is communicated by JavaScript and Java, and notice Java creates new Fragment, reaches the object opening new page, and the Fragment animation mechanism that android system now just can be used to provide promotes the animation effect of application;
In order to realize the communication in WebView between html page, also need to preserve the Fragment information opened; Like this when html page in WebView is communicated with other WebView by JavaScript, search by AndroidJava bottom code the Fragment opened in fact, and then find corresponding WebView, call the JavaScript function of its inner html page.
Advantage of the present invention is:
Compared to the prior art, the primary technology provided of abundant use system, had both improved the Consumer's Experience of application to a kind of method experienced based on ANDROID many FRAGMENT liftings HYBRID application of the present invention, ensured again the framework dirigibility of applying; And the present invention also have reasonable in design, structure is simple, the feature such as easy to use, thus, has good use value.
Embodiment
Below a kind of method experienced based on ANDROID many FRAGMENT liftings HYBRID application of the present invention is described in detail below.
A kind of method promoting HYBRID application experience based on the many FRAGMENT of ANDROID of the present invention, WebView is placed in independent Fragment, the WebView of its inside is managed by independently Fragment, and multiple Fragment is arranged in same Activity, contribute to like this realizing AndroidPad layout;
Html page in WebView is communicated by JavaScript and Java, and notice Java creates new Fragment, reaches the object opening new page, and the Fragment animation mechanism that android system now just can be used to provide promotes the animation effect of application;
In order to realize the communication in WebView between html page, also need to preserve the Fragment information opened; Like this when html page in WebView is communicated with other WebView by JavaScript, search by AndroidJava bottom code the Fragment opened in fact, and then find corresponding WebView, call the JavaScript function of its inner html page.
A kind of its processing and fabricating of method based on ANDROID many FRAGMENT lifting HYBRID application experience of the present invention is very simple and convenient, can process to specifications.
Except the technical characteristic described in instructions, be the known technology of those skilled in the art.

Claims (1)

1. one kind promotes the method for HYBRID application experience based on the many FRAGMENT of ANDROID, it is characterized in that WebView being placed in independent Fragment, the WebView of its inside is managed by independently Fragment, and multiple Fragment is arranged in same Activity, contribute to like this realizing AndroidPad layout;
Html page in WebView is communicated by JavaScript and Java, and notice Java creates new Fragment, reaches the object opening new page, and the Fragment animation mechanism that android system now just can be used to provide promotes the animation effect of application;
In order to realize the communication in WebView between html page, also need to preserve the Fragment information opened; Like this when html page in WebView is communicated with other WebView by JavaScript, search by AndroidJava bottom code the Fragment opened in fact, and then find corresponding WebView, call the JavaScript function of its inner html page.
CN201510558403.2A 2015-09-06 2015-09-06 ANDROID-based multi-FRAGMENT-based method for improving HYBRID application experience Pending CN105224310A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510558403.2A CN105224310A (en) 2015-09-06 2015-09-06 ANDROID-based multi-FRAGMENT-based method for improving HYBRID application experience

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510558403.2A CN105224310A (en) 2015-09-06 2015-09-06 ANDROID-based multi-FRAGMENT-based method for improving HYBRID application experience

Publications (1)

Publication Number Publication Date
CN105224310A true CN105224310A (en) 2016-01-06

Family

ID=54993308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510558403.2A Pending CN105224310A (en) 2015-09-06 2015-09-06 ANDROID-based multi-FRAGMENT-based method for improving HYBRID application experience

Country Status (1)

Country Link
CN (1) CN105224310A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228266A (en) * 2016-12-14 2018-06-29 阿里巴巴集团控股有限公司 Start the method and apparatus of Fragment components under a kind of Android card cages between different plug-in units
WO2019010928A1 (en) * 2017-07-10 2019-01-17 武汉斗鱼网络科技有限公司 Communication method and system among multiple fragments
CN114217759A (en) * 2021-12-10 2022-03-22 深圳Tcl新技术有限公司 Screen projection method and device, storage medium and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461491A (en) * 2013-09-24 2015-03-25 阿里巴巴集团控股有限公司 Running method and system of Hybrid components

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461491A (en) * 2013-09-24 2015-03-25 阿里巴巴集团控股有限公司 Running method and system of Hybrid components

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
匿名: "webview的JS交互", 《CSDN博客》 *
匿名: "一个activity中加载多个含WebView的Fragment", 《百度知道》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108228266A (en) * 2016-12-14 2018-06-29 阿里巴巴集团控股有限公司 Start the method and apparatus of Fragment components under a kind of Android card cages between different plug-in units
CN108228266B (en) * 2016-12-14 2021-08-10 阿里巴巴集团控股有限公司 Method and device for starting Fragment component between different plug-ins under Android plug-in framework
WO2019010928A1 (en) * 2017-07-10 2019-01-17 武汉斗鱼网络科技有限公司 Communication method and system among multiple fragments
CN114217759A (en) * 2021-12-10 2022-03-22 深圳Tcl新技术有限公司 Screen projection method and device, storage medium and electronic equipment
WO2023103599A1 (en) * 2021-12-10 2023-06-15 深圳Tcl新技术有限公司 Screen projection method and apparatus, storage medium and electronic device

Similar Documents

Publication Publication Date Title
WO2014047461A3 (en) Systems and methods for workflow automation
CN105224310A (en) ANDROID-based multi-FRAGMENT-based method for improving HYBRID application experience
Coskun et al. Soft matrices on soft multisets in an optimal decision process
CN105183471A (en) Method for improving HYBRID application experience based on IOS multi-UIVIEWController
CN104102485A (en) Html-based module encapsulation loading method
Kwa et al. African, Caribbean and Pacific (ACP) countries' position on Economic Partnership Agreements (EPAs)
Zoboli et al. Resource-efficient green economy and EU policies
Laudisa Albert Einstein e l'immagine scientifica del mondo
Nakano et al. V339 Delphini= Nova Delphini 2013= Pnv J20233073+ 2046041
Ruzicka et al. Northwest Africa 8709: A rare but revealing type 3 ordinary chondrite melt breccia
Forthmann et al. Creative metacognition and its relation to the conceptualization, assessment, and nurture of creativity: Comment on" A systematic framework of creative metacognition" by I. Lebuda & M. Benedek
Gaukroger The discovery and consolidation of a scientific culture in the west in the modern era
Rozema et al. Experimental quantum communication enhancement by superposing trajectories
Sachkov et al. The Core Program Call of the WSO-UV mission
Elliott et al. Operations Modeling of ISRU Lunar Base Architectures
Pilloni Amplitude analysis for exotic states
Asai et al. MAXI/GSC detection of the first X-ray burst from UCXB 4U 1822-000
Sato et al. Observation of groups of galaxies NGC7618 and UGC12491 with Suzaku
Chinery-Hesse et al. Drug Policies and Development: Conflict and Coexistence
Iijima et al. Metal distribution in the center of the Virgo cluster.
Gendre et al. Australian follow-up of gravitational wave couterparts
CN205375663U (en) Intelligence vending machine mainboard circuit structure with WIFI intensifier circuit
Archinal et al. An Update on the IAU Working Group on Cartographic Coordinates and Rotational Elements and Its Upcoming Report
Carvalho de Moura et al. Regeneration characteristics of FBG writen for the visible spectral range
Klinglesmith III Asteriod Photometry Results from Etscorn Observatory

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160106

RJ01 Rejection of invention patent application after publication