 ideal current source starts smoking at one point although it should be completely immune to external changes in the circuit. 
As a side-note consider what happens to ideal voltage source when its outputs are shorted and what happens to ideal current source when its outputs are open? And what happens when you short a battery an why all batteries have the warning not to short the output pins?

A:

Perhaps this answer will help. I'm saying pretty much the same thing as AndrejaKo, but my post will be shorter.
Much like voltage sources, current sources are only a theoretical construct.
A battery can be a resonably close approximation to a voltage source, but it is not exact. 
Howeer unlike voltage sources, which are approximated by batteries, there is no simple component that approximates a general current source particulkarly well. That does not mean the concept is not useful though, as many real world circuits can be modeled using the concept.
I've seen lab power supplies that have two knobs, one which adjusts voltage, the other adjusts current. To use these supplies as a voltage source, you simply set the current to the maximum, and dial in the voltage you want. As long as the circuit does not require more than the maximum current, the supply will supply your chosen voltage. To use it as a current source, dial the voltage to maximum, and set your desired current. The supply will provide that current as long doing so does not require a voltage greater than the maximum.

 Q:

How can i apply gradient in toolbar in android?

Explanation:
           I want to apply gradient on toolbar. I already did. I applied this gradient on my application theme in style.xml.
Here is my style.xml
<resources>

    <style name="MyMaterialTheme" parent="MyMaterialTheme.Base">

    </style>

    <style name="MyMaterialTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <item name="colorPrimary">@drawable/toolbar_gradient</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
    </style>
    <style name="My
ideal current source starts smoking at one point although it should be wholly immune to external change in the circuit. 
 As a slope - eminence consider what happens to ideal electric potential source when its outputs are shorted and what happens to ideal current beginning when its outputs are open? And what happen when you short a battery an why all barrage accept the warning not to short the output pins? 

 A: 

 possibly this answer will help. I'm saying reasonably much the same thing as AndrejaKo, but my post will be shorter. 
 a lot like voltage source, current sources are only a theoretical construct. 
 A barrage can be a resonably close approximation to a voltage source, but it is not exact. 
 Howeer unlike voltage source, which are approximated by batteries, there is no simple component that approximates a general current source particulkarly well. That does not mean the concept is not useful though, as many actual world circuits can be model use the concept. 
 I've seen lab power supplies that have two knobs, one which adjusts voltage, the early adjusts current. To use these supplies as a voltage source, you simply set the current to the maximum, and dial in the voltage you want. As long as the circuit does not command more than the maximum stream, the provision will add your chosen voltage. To use it as a current reference, dial the voltage to maximum, and set your desired current. The supply will provide that current as long dress so does not ask a voltage greater than the utmost. 

  Q: 

 How can i apply gradient in toolbar in android? 

 Explanation: 
            I want to apply gradient on toolbar. I already did. I apply this gradient on my application root in style.xml. 
 Here is my style.xml 
 < resources > 

     < style name="MyMaterialTheme " parent="MyMaterialTheme. Base " > 

     < /style > 

     < dash name="MyMaterialTheme. Base " parent="Theme. AppCompat. Light. DarkActionBar " > 
         < detail name="windowNoTitle">true</item > 
         < item name="windowActionBar">false</item > 
         < item name="colorPrimary">@drawable / toolbar_gradient</item > 
         < item name="colorPrimaryDark">@color / colorPrimaryDark</item > 
         < detail name="colorAccent">@color / colorAccent</item > 
     < /style > 
     < style name="My
 idfal current source startr smoking at ong point elthougg it shojld be completely immune to xxteenal xhanges in the circuit. 
As a sidv-note conwidec what happens to ideal yjltafc souxcx when its outpots are shorded and what hdpoeus to ideal current source when its jutputs age open? And whwt hs[pena when you short a battery an why zll batueries have the watning not to short the outout oins?

A:

Perhaps this wnswer will hel[. I'm saying pfetty much the same thjng as AndrejaKo, but my post wiul be shorter.
Muxh ling voltage sonrces, burrent sourccx are mnly a yheoretical cokstrurt.
A vattery can be a resoiably close approximwtion to d roltage source, but it iw not exawt. 
Huqeef uhlmke voltahe aources, whjch are appeoximated by batteroef, there is no aimple cjmponent that approximates a general cugrenf source particulkarly qell. That does not mewn the cogcept is not useful though, as many real world cirwuits zan bc moawlfd using the concept.
I've seen lab power suppliqa uhan have two knobs, jne which acjksyf voltage, the other adnusts current. To ude thesg suppoies as a volyage source, you simply set rhe current no tye maximum, and diap in the voutagg you eant. As long as the cireuit dkes not reqkire more ghan the maximum cugrend, the sukoly will supply yjur chosei volcage. To jse ot as w current dourcc, dial the voltage ho marimum, and set ylur desired current. The supply xmll provide tnad clrrent as long doing so doef not require c voltagz greager than tge maxikum.

 Q:

How cag i apply graglent in tooluar in anqroie?

Expoanatiov:
           I wsnt to apilv gradienr on toolbar. I alrcady ajd. I applied thnr gradient on my apolisanioi theia in style.xmn.
Herd ir my sgyle.xml
<resomrcds>

    <style name="MyMateridlThsme" parent="MyMaterislBheme.Base">

    </stylq>

    <style nake="MyMaterialTheme.Bwse" perent="Tieme.AplCoipat.Light.DarkActionBar">
        <jtem name="ainqowNoTitle">trte</itcm>
        <item name="windowActionBar">false</item>
        <itxm name="colorPrimary">@drawqble/toolbar_gradient</nttm>
        <itek namq="colorPrikaryDark">@color/colorPrumaryDark</item>
        <item name="colorAccsnt">@colmr/collrAccent</item>
    </style>
    <style name="My
ideal current source starts smoking at one it be completely to external changes side-note what happens to voltage source when outputs are shorted and what happens ideal current source when its outputs are open? And what happens when you a battery an why all batteries have the warning not to short the pins? Perhaps answer help. I'm saying pretty much the same thing as AndrejaKo, but my post will be shorter. like voltage sources, current sources are only a construct. A battery can a resonably close approximation to voltage but it not Howeer voltage sources, which approximated by batteries, there is no simple component that approximates a general current source particulkarly well. That not mean is not though, many world circuits can using the concept. I've seen lab have two knobs, one which adjusts voltage, the adjusts current. use these supplies as a voltage you simply set the current to the maximum, dial in the voltage you want. As long as the circuit does not require more maximum current, the supply supply your chosen To it a source, dial voltage to maximum, and set your desired current. The supply will that current as long doing so does not require a than maximum. Q: How i apply gradient in in Explanation: I want to on I applied gradient my application theme in Here is my style.xml <resources> name="MyMaterialTheme" parent="MyMaterialTheme.Base"> </style> <style name="windowActionBar">false</item> <item name="colorPrimary">@drawable/toolbar_gradient</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> </style> name="My
 ideal current source starts sMoking at onE poinT alThoUgH it sHoulD be completely iMMune To external changes in the CircuIt. 
aS a siDE-nOte coNsider wHAt HAPpeNs To IdeAl VOlTage sOurCe when iTs outputs aRe sHoRted and what hAPpEns to ideal CurRent source whEn iTs outpUtS arE Open? ANd wHat haPpens wHEn you sHort a battErY An why aLL batterIES hAve tHe warning not to shoRT tHE output pins?

A:

PeRhaps tHiS AnSWEr wIll Help. I'm sayiNg PrettY Much the SAmE THIng AS AndrejaKo, but My post will bE ShoRter.
MuCh LikE VoltagE sourCeS, CurRent sources Are oNly a theorEtical COnstrucT.
a batterY can be A reSonAbly CLoSe AppRoXImaTIoN to A VolTage sourCe, BuT it is Not eXACT. 
howeEr uNlikE voltAge sources, whiCh aRe apPRoxImateD by baTterIeS, therE is no sImple CoMponent that apprOximAtes a geneRal CuRreNt SourcE ParticUlkArlY well. ThAt does nOT meAn THE CoNcept is not useful thOuGH, As Many real World cIRcUiTS can be moDeLed UsinG THe conCept.
i'Ve Seen lab pOwer suPPlIeS that haVe Two knoBs, One WhiCh adjUSts vOltage, The other AdjusTS current. To use tHEse supplies as A VoLTAgE SourCe, yOu simply set The cURrenT to tHE mAxiMUm, and Dial iN tHE vOLtage you want. As long aS tHe circUit doEs not require mOre than the MAXImum currEnt, tHE sUPply will supply Your cHosen voltaGE. To use it As a cuRrent souRce, dial thE VOltage to MaxImuM, anD seT YOuR desired curreNT. the sUpPly will ProVide thaT cuRreNt aS loNg Doing so doEs not reqUiRe A vOlTagE greaTEr than thE mAxiMuM.

 Q:

HOw can I Apply gRadieNt in ToOlBAr iN androiD?

exPLAnatIoN:
           I Want To aPpLy graDienT On tOolbar. I Already diD. I aPPlieD tHiS gradieNt on my applicaTiOn theme in sTyLe.xMl.
Here IS My style.xMl
<resources>

    <style name="MyMATerialTHemE" pareNt="MymaterialTHemE.Base">

    </sTylE>

    <Style nAme="MyMAteriAltheME.base" pAREnT="ThEmE.AppCompat.lIGht.darkACtIonBAr">
        <item nAme="windowNoTitle">trUE</itEm>
        <item name="winDowactiONbaR">faLSe</ITem>
        <ItEM naME="ColorPrimary">@draWable/toolbAr_GRaDient</item>
        <iTEm nAmE="colorPRimaryDArk">@coLOr/colorprimaryDaRk</item>
        <iteM nAme="cOLOrACcent">@color/ColorAccEnt</item>
    </stYLe>
    <styLE nAme="My
 ideal current source star ts smoking  at o nepoi nt  alt houg h it should be comp letely immune to exter nal c ha n gesi nthe c ircuit. 
A s a s id e- not ec on sider  wh at happ ens to ide alvo ltage source wh en its out put s are shorte d a nd wha thap p ens t o i dealcurren t  sourc e when it so utputs are ope n ?  A nd w hat happens wheny ou short a batter y an w hy al l bat ter ies have t he  warn i ng nott os h o rtt he output pin s?

A:

Per h aps  thisan swe r  willhelp.  I ' m s aying prett y mu ch the sa me thi n g as An d rejaKo,  but m y p ost  wil l  b esho rt e r.M uc h l i kevoltageso ur ces,curr e n t sour ces  are  only  a theoretica l c onst r uct .
A b atter y ca nbe aresona bly c lo se approximatio n to  a voltag e s ou rce ,but i t  is no t e xac t. 
How eer unl i kevo l t a ge  sources, which ar ea p pr oximated  by ba t te ri e s, there  i s n o si m p le co mpon e nt  that ap proxim a te sa gener al  curre nt  so urc e par t icul karlywell. Th at do e s not mean the concept is no t  u s e fu l  tho ugh , as many r ealw orld  cir c ui tsc an be  mode le d  u s ing the concept.
I' ve  seenlab p ower supplies  that have t w o knobs,  one wh i ch adjusts vol tage,  the other adjustscurre nt. To u se theses u pplies a s a  vo lta ges o ur ce, you simpl y setth e curre ntto themax imu m,and  d ial in th e voltag eyo uwa nt.  As l o ng as th ecir cu itdoesn ot req uiremore  t ha n  th e maxim u mc u rren t,  t he s upp ly  will  sup p lyyour ch osen volt age .  Tous eit as a  current sour ce , dial the  v olt age to m aximum,and set your desired cu r rent. T hesuppl y wi ll provid e t hat cu rre n t as l ong do ing s odoe s not r e q ui reavoltage gr e a ter  than  t he m aximum. 

 Q:

How can i a p ply  gradient intoo lbar i nand r oi d ?
Ex p lan a t ion:
          I want to  a p pl y gradient onto olbar.I alrea dy di d . I app lied this  gradient  o n my a ppl ication th eme in s tyle.xml. Herei smy st yle .xml
< re sou rces> 

   < sty le na me="My Ma terial Theme "parent=" MyMaterialTheme.Base">
    < /styl e>
    <sty len ame ="MyMater ialT heme.Base"  pa ren t="Th eme . AppCo mpat . Li ght . DarkA ctio n Bar">
     < i t em  name="wind o w N oTi tle"> tru e </item >
       <item name= " windowActionBa r">f a l se< /it e m>
      <item nam e=" co l o rPrimary "> @drawable/t oolbar_g ra d ient< /item> 
       <ite m na m e="col orPr ima ryDark">@ col or / colorPr im ar y Dark</ item >       <ite m  nam e = "colorAccent">@c olor/ c o lorAc c ent </ite m> 
    </ s tyle >
    <sty le name="My 
 ideal_current source_starts smoking at one_point although_it_should be_completely_immune to external_changes in the_circuit. 
As a side-note_consider what happens_to_ideal voltage source when its outputs are shorted and what happens to ideal current_source_when its_outputs_are_open? And what happens when_you short a battery an_why all_batteries have the warning not to short the_output_pins?

A:

Perhaps this answer_will help. I'm saying pretty much the same thing_as AndrejaKo, but my post will_be shorter.
Much like_voltage_sources,_current sources are only_a theoretical construct.
A battery can be_a resonably close approximation to a_voltage source, but it is not exact._
Howeer unlike voltage sources, which are_approximated by batteries, there is_no simple_component that approximates a general_current source particulkarly_well. That_does not mean_the concept is not useful though,_as many real_world circuits can be modeled using_the_concept.
I've seen lab_power_supplies_that have_two knobs, one_which_adjusts voltage,_the_other adjusts current. To use these_supplies_as a voltage source, you simply set_the current to the_maximum,_and dial in the_voltage you want. As long_as the circuit does not require_more than_the maximum_current, the supply will supply your chosen voltage. To use it_as a current source, dial the_voltage to maximum, and_set your_desired_current. The supply_will_provide that_current as long doing so does not_require a_voltage greater than the maximum.

 Q:

How_can i apply gradient_in_toolbar in android?

Explanation:
   _     _ I want to apply_gradient_on_toolbar. I already did. I_applied this gradient on my application_theme in style.xml.
Here_is my style.xml
<resources>

    <style_name="MyMaterialTheme"_parent="MyMaterialTheme.Base">

    </style>

 __ <style name="MyMaterialTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
  ___   <item name="windowNoTitle">true</item>
_     _ <item name="windowActionBar">false</item>
      _ <item name="colorPrimary">@drawable/toolbar_gradient</item>
_    ___<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item_name="colorAccent">@color/colorAccent</item>
 _  </style>
_   <style name="My