/* Ċ Ġ* ĠProject : Ġme te o Ċ Ġ* ĠFile : ĠSt azione Val ang he View . kt Ċ Ġ* Ċ Ġ* ĠCreated Ġby Ġfat ta zz o Ċ Ġ* ĠCopyright ĠÂ© Ġ 2 0 1 9 ĠG ian luc a ĠF att ar si . ĠAll Ġrights Ġreserved . Ċ Ġ* Ċ Ġ* ĠMIT ĠLicense Ċ Ġ* ĠPermission Ġis Ġhereby Ġgranted , Ġfree Ġof Ġcharge , Ġto Ġany Ġperson Ġobtaining Ġa Ġcopy Ċ Ġ* Ġof Ġthis Ġsoftware Ġand Ġassociated Ġdocumentation Ġfiles Ġ( the Ġ" Software "), Ġto Ġdeal Ċ Ġ* Ġin Ġthe ĠSoftware Ġwithout Ġrestriction , Ġincluding Ġwithout Ġlimitation Ġthe Ġrights Ċ Ġ* Ġto Ġuse , Ġcopy , Ġmodify , Ġmerge , Ġpublish , Ġdistribute , Ġsublicense , Ġand / or Ġsell Ċ Ġ* Ġcopies Ġof Ġthe ĠSoftware , Ġand Ġto Ġpermit Ġpersons Ġto Ġwhom Ġthe ĠSoftware Ġis Ċ Ġ* Ġfurnished Ġto Ġdo Ġso , Ġsubject Ġto Ġthe Ġfollowing Ġconditions : Ċ Ġ* Ċ Ġ* ĠThe Ġabove Ġcopyright Ġnotice Ġand Ġthis Ġpermission Ġnotice Ġshall Ġbe Ġincluded Ġin Ġall Ċ Ġ* Ġcopies Ġor Ġsubstantial Ġportions Ġof Ġthe ĠSoftware . Ċ Ġ* Ċ Ġ* ĠTHE ĠSOFTWARE ĠIS ĠPROVIDED Ġ" AS ĠIS ", ĠWITHOUT ĠWARRANTY ĠOF ĠANY ĠKIND , ĠEXPRESS ĠOR Ċ Ġ* ĠIMPLIED , ĠINCLUDING ĠBUT ĠNOT ĠLIMITED ĠTO ĠTHE ĠWARRANTIES ĠOF ĠMERCHANTABILITY , Ċ Ġ* ĠFITNESS ĠFOR ĠA ĠPARTICULAR ĠPURPOSE ĠAND ĠNONINFRINGEMENT . ĠIN ĠNO ĠEVENT ĠSHALL ĠTHE Ċ Ġ* ĠAUTHORS ĠOR ĠCOPYRIGHT ĠHOLDERS ĠBE ĠLIABLE ĠFOR ĠANY ĠCLAIM , ĠDAMAGES ĠOR ĠOTHER Ċ Ġ* ĠLIABILITY , ĠWHETHER ĠIN ĠAN ĠACTION ĠOF ĠCONTRACT , ĠTORT ĠOR ĠOTHERWISE , ĠARISING ĠFROM , Ċ Ġ* ĠOUT ĠOF ĠOR ĠIN ĠCONNECTION ĠWITH ĠTHE ĠSOFTWARE ĠOR ĠTHE ĠUSE ĠOR ĠOTHER ĠDEALINGS ĠIN ĠTHE Ċ Ġ* ĠSOFTWARE . Ċ Ġ*/ Ċ Ċ package Ġcom . gmail . fat ta zz o . me te o . activity . st azioni . val ang he . an agr af ica Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . widget . LinearLayout Ċ import Ġandroid . widget . TextView Ċ import Ġcom . gmail . fat ta zz o . me te o . R Ċ import Ġcom . gmail . fat ta zz o . me te o . data . db . entities . St azione Val ang he Ċ import Ġorg . android annotations . annotations . E ViewGroup Ċ import Ġorg . android annotations . annotations . ViewById Ċ Ċ /** Ċ Ġ* Ġ@ author Ġfat ta zz o Ċ Ġ* ĠĠĠĠĠĠĠĠ Ġ< p /> Ċ Ġ* ĠĠĠĠĠĠĠĠ Ġdate : Ġ 0 7 / 1 1 / 1 7 Ċ Ġ*/ Ċ @ E ViewGroup ( R . layout . item _ st azione _ val ang he ) Ċ open Ġclass ĠSt azione Val ang he View ( context : ĠContext ?) Ġ: ĠLinearLayout ( context ) Ġ{ ĊĊĠĠĠ Ġ@ ViewById ĊĠĠĠ Ġlateinit Ġvar Ġnome TV : ĠTextView ĊĊĠĠĠ Ġ@ ViewById ĊĠĠĠ Ġlateinit Ġvar Ġcodice TV : ĠTextView ĊĊĠĠĠ Ġ@ ViewById ĊĠĠĠ Ġlateinit Ġvar Ġquota TV : ĠTextView ĊĊĠĠĠ Ġfun Ġbind ( st azione Val ang he : ĠSt azione Val ang he ) Ġ{ ĊĠĠĠĠĠĠĠ Ġnome TV . text Ġ= Ġst azione Val ang he . nome ĊĠĠĠĠĠĠĠ Ġcodice TV . text Ġ= Ġst azione Val ang he . cod ice ĊĠĠĠĠĠĠĠ Ġquota TV . text Ġ= Ġif Ġ( st azione Val ang he . quota Ġ!= Ġnull ) Ġst azione Val ang he . quota . toString () Ġelse Ġ" Ġ- Ġ" ĊĠĠĠ Ġ} Ċ }