Dab tsi yog app splash?
Dab tsi yog app splash?

Video: Dab tsi yog app splash?

Video: Dab tsi yog app splash?
Video: 3 yam uas ua rau peb swb dab yog dab tsi tiag 2024, Kaum ib hlis
Anonim

A txaws screen yog ib tug graphical tswj lub ntsiab uas muaj ib lub qhov rais uas muaj ib tug duab, lub logo, thiab lub tam sim no version ntawm lub software. A txaws qhov screen feem ntau tshwm thaum qhov kev ua si lossis qhov kev pab cuam tab tom pib. A txaws nplooj ntawv yog nplooj ntawv qhia txog ntawm lub vev xaib.

Raws li kev sib raug zoo, yuav tsum tau ntev npaum li cas lub vijtsam txaws yuav kav ntev?

Ua sai li sai tau, tab sis tsis txhob ntau tshaj 2 lossis 3 vib nas this. Txhua tus neeg siv uas siv koj lub app tsis tu ncua yuav ntxhov siab sai yog tias lawv yuav tsum zaum ib puag ncig thiab tos kom lub app qhib ntau dua li ob peb feeb.

Ib tug kuj yuav nug, vim li cas nws thiaj li hu ua splash screen? ua a txaws Nws yog literally thiab figuratively ua ib txaws ntawm koj npo . A txaws npo tag nrho cov uas tau qhia ua ntej: nws splashes cov ntsiab lus thoob plaws tag nrho npo . Lo lus tau siv txij li tsawg kawg 1984, thiab pib los ntawm Apple Mac daim ntawv thov.

Ib yam li ntawd, kuv yuav ua li cas thiaj li ua tau ib lub npov npo app?

  1. Tsim ib qho kev cai style hauv styles. xml hauv qab res/values folder.
  2. Hauv AndroidManifest.
  3. Ntxiv rau daim nplaub tshev kos duab uas koj xav tau, peb yuav siv nws hauv SplashScreen.
  4. Hloov ua haujlwm_splash.
  5. Ntxiv ib qho haujlwm tshiab.
  6. Tam sim no, siv cov cai no hauv SplashActivity.

Dab tsi yog kev siv splash screen?

Cov Splash npo yog siv los tso saib qee cov ntaub ntawv qhia yooj yim xws li lub tuam txhab logo, cov ntsiab lus, thiab lwm yam ua ntej lub app loads tag.

Pom zoo: