title: How to set left and right padding to an entry cell in xamarin.forms
body: <p>I have used custom rendering for entry cell in xamarin forms for IOS and android. How can I set left and right padding for the entry cell.</p>
  
  <p>My custom entry cell in PCl :</p>
  
  <pre><code>&lt;local:MyEntryCell Placeholder="Placeholder" PlaceholderColor="Grey" TextColor="Black"/&gt;
  
  MyEntryCell is the custom name of my entry cell.
  </code></pre>
  
  <p>In my PCL I have:</p>
  
  <pre><code>public class MyEntryCell:Entry
  {
  
  }
  </code></pre>
  
  <p>In IOS:</p>
  
  <pre><code>namespace CustomEntry.IOS
  {
     public class MyEntryCellRenderer:EntryRenderer
      {
           // override onElementChanged
      }
  }
  </code></pre>
  
  <p>In Android :</p>
  
  <pre><code>namespace CustomEntry.Droid
      {
         public class MyEntryCellRenderer:EntryRenderer
          {
               // override onElementChanged
          }
      }
  </code></pre>