/* Ċ Ġ* ĠCopyright Ġ( C ) Ġ 2 0 1 9 ĠThe ĠAndroid ĠOpen ĠSource ĠProject Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* ĠĠĠĠĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ Ċ package Ġcom . android . tools . idea . wizard . template . impl . fragments . google Ad Mob Ads Fragment . res . layout Ċ Ċ import Ġcom . android . tools . idea . wizard . template . get Material Component Name Ċ import Ġcom . android . tools . idea . wizard . template . impl . fragments . google Ad Mob Ads Fragment . Ad Format Ċ Ċ fun Ġfragment Ad mob Xml ( ĊĠ Ġad Format : ĠAd Format , ĊĠ Ġfragment Class : ĠString , ĊĠ ĠpackageName : ĠString , ĊĠ Ġuse Android X : ĠBoolean Ċ ): ĠString Ġ{ ĊĠ Ġval Ġformat Specific Layout Ġ= Ġwhen Ġ( ad Format ) Ġ{ ĊĠĠĠ ĠAd Format . Inter stitial Ġ-> Ġ{ """ ĊĠĠĠ Ġ<!-- Ġview Ġfor ĠAd Mob ĠInter stitial ĠAd Ġ--> ĊĠĠĠ Ġ< TextView ĊĠĠĠĠĠĠĠ Ġandroid : id ="@ + id / app _ title " ĊĠĠĠĠĠĠĠ Ġandroid : layout _ width =" wrap _ content " ĊĠĠĠĠĠĠĠ Ġandroid : layout _ height =" wrap _ content " ĊĠĠĠĠĠĠĠ Ġandroid : layout _ margin Top =" 5 0 dp " ĊĠĠĠĠĠĠĠ Ġandroid : text ="@ string / inter stitial _ ad _ sample " ĊĠĠĠĠĠĠĠ Ġandroid : text Appearance =" ? android : attr / text Appearance Large " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint Top _ to Top Of =" parent " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint Start _ to Start Of =" parent " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint End _ to EndOf =" parent " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint Bottom _ to Top Of ="@ id / level " Ġ/> ĊĊĠĠĠ Ġ< TextView ĊĠĠĠĠĠĠĠ Ġandroid : id ="@ + id / level " ĊĠĠĠĠĠĠĠ Ġandroid : layout _ width =" wrap _ content " ĊĠĠĠĠĠĠĠ Ġandroid : layout _ height =" wrap _ content " ĊĠĠĠĠĠĠĠ Ġandroid : text ="@ string / start _ level " ĊĠĠĠĠĠĠĠ Ġandroid : text Appearance =" ? android : attr / text Appearance Large " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint Top _ to Bottom Of ="@ id / app _ title " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint Start _ to Start Of =" parent " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint End _ to EndOf =" parent " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint Bottom _ to Top Of ="@ id / next _ level _ button " Ġ/> ĊĊĠĠĠ Ġ< Button ĊĠĠĠĠĠĠĠ Ġandroid : id ="@ + id / next _ level _ button " ĊĠĠĠĠĠĠĠ Ġandroid : layout _ width =" wrap _ content " ĊĠĠĠĠĠĠĠ Ġandroid : layout _ height =" wrap _ content " ĊĠĠĠĠĠĠĠ Ġandroid : text ="@ string / next _ level " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint Top _ to Bottom Of ="@ id / level " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint Start _ to Start Of =" parent " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint End _ to EndOf =" parent " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint Bottom _ to Bottom Of =" parent " Ġ/> ĊĠĠĠ Ġ""" ĊĠĠĠ Ġ} ĊĠĠĠ ĠAd Format . Banner Ġ-> Ġ{ """ ĊĠĠĠ Ġ< TextView ĊĠĠĠĠĠĠĠ Ġandroid : layout _ width =" wrap _ content " ĊĠĠĠĠĠĠĠ Ġandroid : layout _ height =" wrap _ content " ĊĠĠĠĠĠĠĠ Ġandroid : text ="@ string / hello _ world " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint Bottom _ to Top Of ="@ id / ad _ view " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint End _ to EndOf =" parent " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint Start _ to Start Of =" parent " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint Top _ to Top Of =" parent " Ġ/> ĊĊĠĠĠ Ġ<!-- Ġview Ġfor ĠAd Mob ĠBanner ĠAd Ġ--> ĊĠĠĠ Ġ< com . google . android . gms . ads . Ad View ĊĠĠĠĠĠĠĠ Ġandroid : id ="@ + id / ad _ view " ĊĠĠĠĠĠĠĠ Ġandroid : layout _ width =" wrap _ content " ĊĠĠĠĠĠĠĠ Ġandroid : layout _ height =" wrap _ content " ĊĠĠĠĠĠĠĠ Ġandroid : layout _ align Parent Bottom =" true " ĊĠĠĠĠĠĠĠ Ġandroid : layout _ center Horizontal =" true " ĊĠĠĠĠĠĠĠ Ġapp : ad Size =" BAN NER " ĊĠĠĠĠĠĠĠ Ġapp : ad Unit Id ="@ string / banner _ ad _ unit _ id " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint Bottom _ to Bottom Of =" parent " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint End _ to EndOf =" parent " ĊĠĠĠĠĠĠĠ Ġapp : layout _ constraint Start _ to Start Of =" parent " Ġ/> ĊĠĠĠ Ġ""" ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĠ Ġreturn Ġ""" Ċ < ${ get Material Component Name (" android . support . constraint . Constraint Layout ", Ġuse Android X )} ĊĠĠĠ Ġxmlns : android =" http :// schemas . android . com / apk / res / android " ĊĠĠĠ Ġxmlns : app =" http :// schemas . android . com / apk / res - auto " ĊĠĠĠ Ġxmlns : tools =" http :// schemas . android . com / tools " ĊĠĠĠ Ġandroid : layout _ width =" match _ parent " ĊĠĠĠ Ġandroid : layout _ height =" match _ parent " ĊĠĠĠ Ġtools : context ="${ packageName }.${ fragment Class }"> Ċ Ċ $ format Specific Layout Ċ </ ${ get Material Component Name (" android . support . constraint . Constraint Layout ", Ġuse Android X )}> Ċ """ Ċ } Ċ