title: How to style the EditText widget in a TextInputLayout
body: <p>Have just begun styling and theming an app. </p>
  
  <p>I have many <code>EditText</code>s in <code>TextInputLayout</code>s in an <code>AppCompatActivity</code>. </p>
  
  <p><a href="https://i.stack.imgur.com/hFmqB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hFmqB.png" alt="enter image description here"></a></p>
  
  <p>My questions are: </p>
  
  <ul>
  <li>Not sure what the line (the blue line above) in the <code>EditText</code> widget is called, just referring it as 'ruler'. How can the rulers (invisible above), be made visible, and in any custom color. Presently, the ruler shows only on tapping the <code>EditText</code>. </li>
  <li>The <code>EditText</code> cursor does not show, how can it be made visible?</li>
  <li>How can the button 'Add' above be customized regarding its background color and text color?</li>
  <li>How can the focus be set to the first <code>EditText</code> initially?</li>
  <li>How can the <code>TextInputLayout</code>'s hint color be changed after it shrinks and flies to the top? (Presently, blue.)</li>
  <li>Is the default Android font <code>Roboto</code>? How can I change the font to anything that's available out there, 'real quick'? </li>
  </ul>
  
  <p>Greatly appreciate any help or pointers.</p>
  
  <p>Corresponding code fragments:</p>
  
  <p><strong><code>Layout</code></strong> file</p>
  
  <pre><code>            &lt;TextView
              android:id="@+id/pocLabel"
              style="@style/DialogLabelColor"
              android:text="Business Owner"/&gt;
  
          &lt;android.support.design.widget.TextInputLayout
              android:id="@+id/tilPOCFName"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_below="@+id/pocLabel"&gt;
  
              &lt;android.support.v7.widget.AppCompatEditText
                  android:id="@+id/POCFName"
                  style="@style/InputDialogText"
                  android:hint="First name (REQUIRED)"
                  android:inputType="textCapWords"/&gt;
          &lt;/android.support.design.widget.TextInputLayout&gt;
  
          &lt;android.support.design.widget.TextInputLayout
              android:id="@+id/tilPOCLName"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_below="@+id/tilPOCFName"
              android:textColor="#000000"&gt;
  
              &lt;EditText
                  android:id="@+id/POCLName"
                  style="@style/InputDialogText"
                  android:hint="Last name"
                  android:inputType="textCapWords"/&gt;
          &lt;/android.support.design.widget.TextInputLayout&gt;
  </code></pre>
  
  <p><strong><code>styles.xml</code></strong></p>
  
  <p></p>
  
  <pre><code>&lt;!--
      Base application theme, dependent on API level. This theme is replaced
      by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
  --&gt;
  &lt;style name="AppBaseTheme" parent="android:Theme.Light"&gt;
      &lt;!--
          Theme customizations available in newer API levels can go in
          res/values-vXX/styles.xml, while customizations related to
          backward-compatibility can go here
      --&gt;
  
  &lt;/style&gt;
  
  &lt;style name="activated" parent="AppBaseTheme"&gt;&lt;/style&gt;
  &lt;!-- Application theme --&gt;
  &lt;style name="MyThemeNavy" parent="Theme.AppCompat.NoActionBar"&gt;
      &lt;!-- All customizations that are NOT specific to a particular API-level can go here. --&gt;
      &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
      &lt;item name="android:windowActionBar"&gt;false&lt;/item&gt;
      &lt;item name="android:colorPrimary"&gt;@color/primaryColor&lt;/item&gt;
      &lt;item name="android:colorPrimaryDark"&gt;@color/primaryColorDark&lt;/item&gt;
      &lt;item name="android:colorAccent"&gt;@color/accentColor&lt;/item&gt;
      &lt;item name="android:textColor"&gt;@color/main_list_text_color&lt;/item&gt;
      &lt;item name="android:textColorHint"&gt;@color/main_list_text_color&lt;/item&gt;
      &lt;item name="drawerArrowStyle"&gt;@style/Widget.AppCompat.DrawerArrowToggle&lt;/item&gt;
  
  &lt;/style&gt;
  
  &lt;style name="Base.Widget.AppCompat.DrawerArrowToggle." parent="Base.Widget.AppCompat.DrawerArrowToggle"&gt;
      &lt;item name="spinBars"&gt;true&lt;/item&gt;
      &lt;item name="color"&gt;#FFF&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="InfoDlgTextLHS" parent="AppBaseTheme"&gt;
      &lt;item name="android:layout_width"&gt;match_parent&lt;/item&gt;
      &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt;
      &lt;item name="android:textAppearance"&gt;?android:attr/textAppearanceSmall&lt;/item&gt;
      &lt;item name="android:textStyle"&gt;normal&lt;/item&gt;
      &lt;item name="android:textColor"&gt;@color/main_list_text_color&lt;/item&gt;
  &lt;/style&gt;
  &lt;style name="InputDialogText" parent="MyThemeNavy"&gt;
      &lt;item name="android:layout_width"&gt;match_parent&lt;/item&gt;
      &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt;
      &lt;item name="android:textAppearance"&gt;?android:attr/textAppearanceMedium&lt;/item&gt;
      &lt;item name="android:textStyle"&gt;normal&lt;/item&gt;
      &lt;item name="android:textColor"&gt;@color/main_list_text_color&lt;/item&gt;
  &lt;/style&gt;
  &lt;style name="InfoDlgTextRHS" parent="AppBaseTheme"&gt;
      &lt;item name="android:layout_width"&gt;match_parent&lt;/item&gt;
      &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt;
      &lt;item name="android:textAppearance"&gt;?android:attr/textAppearanceSmall&lt;/item&gt;
      &lt;item name="android:textStyle"&gt;bold&lt;/item&gt;
      &lt;item name="android:textColor"&gt;@color/main_list_text_color&lt;/item&gt;
  &lt;/style&gt;
  &lt;style name="DialogLabelColor" parent="MyThemeNavy"&gt;
      &lt;item name="android:layout_width"&gt;wrap_content&lt;/item&gt;
      &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt;
      &lt;item name="android:layout_margin"&gt;4dp&lt;/item&gt;
      &lt;item name="android:padding"&gt;10dp&lt;/item&gt;
      &lt;item name="android:background"&gt;@drawable/dialog_label_background&lt;/item&gt;
      &lt;item name="android:textColor"&gt;@color/main_list_text_color_inverse&lt;/item&gt;
      &lt;item name="android:textStyle"&gt;bold&lt;/item&gt;
  &lt;/style&gt;
  &lt;style name="MyThemeNavy.Dialogs" parent="MyThemeNavy"&gt;
      &lt;item name="android:textColor"&gt;@color/main_list_text_color&lt;/item&gt;
      &lt;item name="android:textColorHint"&gt;@color/main_list_text_color&lt;/item&gt;
  &lt;/style&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p><strong><code>colors.xml</code></strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
  &lt;color name="primaryColor"&gt;#006989&lt;/color&gt;
  &lt;color name="primaryColorDark"&gt;#FFFFFF&lt;/color&gt;
  &lt;color name="accentColor"&gt;#FFFFFF&lt;/color&gt;
  &lt;color name="colorBackground"&gt;#B1C1C0&lt;/color&gt;
  &lt;!-- Drawer --&gt;
  &lt;color name="mainDrawerBackground"&gt;#564639&lt;/color&gt;
  
  &lt;!-- Main (non-drawer) lists --&gt;
  &lt;color name="commonMainListsBackground"&gt;#FFFFFF&lt;/color&gt;
  &lt;color name="main_list_text_color"&gt;#000000&lt;/color&gt;
  &lt;color name="list_item_pressed_color"&gt;#CADAFF&lt;/color&gt;
  &lt;color name="list_item_color"&gt;#FFFFFF&lt;/color&gt;
  &lt;color name="drawer_list_item_pressed_color"&gt;#E4FDE1&lt;/color&gt;
  &lt;color name="drawer_list_item_color"&gt;@color/mainDrawerBackground&lt;/color&gt;
  &lt;color name="divider_color"&gt;#DFF8EB&lt;/color&gt;
  
  &lt;!-- Counters --&gt;
  &lt;color name="distance_counter_color"&gt;#FE5F55&lt;/color&gt;
  &lt;color name="deals_counter_color"&gt;#388659&lt;/color&gt;
  
  &lt;!-- Information dialog --&gt;
  &lt;color name="info_content_color"&gt;#FFFFFF&lt;/color&gt;
  &lt;color name="primary_material_dark"&gt;#9e9e9e&lt;/color&gt;
  &lt;color name="primary_dark_material_dark"&gt;#cad7ff&lt;/color&gt;
  &lt;color name="accent_material_dark"&gt;#3469ff&lt;/color&gt;
  &lt;color name="background_material_dark"&gt;#344055&lt;/color&gt;
  &lt;color name="foreground_material_dark"&gt;#ffffff&lt;/color&gt;
  &lt;color name="colorPrimaryDark"&gt;#044389&lt;/color&gt;
  
  &lt;!-- Input dialogs --&gt;
  &lt;color name="input_dialog_backgroud"&gt;#6DAEDB&lt;/color&gt;
  &lt;color name="main_list_text_color_inverse"&gt;#FFFFFF&lt;/color&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong><code>AndroidManifest.xml</code></strong></p>
  
  <pre><code>        &lt;activity
          android:name=".xxx.xxxCRUActivity"
          android:label="@string/title_activity_add"
          android:theme="@style/MyThemeNavy.Dialogs"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.VIEW"/&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT"/&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>Thank you!</p>