Home | History | Annotate | Download | only in shadows
      1 package com.xtremelabs.robolectric.shadows;
      2 
      3 import android.widget.Button;
      4 import android.widget.TextView;
      5 import com.xtremelabs.robolectric.internal.Implements;
      6 
      7 @Implements(Button.class)
      8 public class ShadowButton extends ShadowTextView {
      9 
     10     @Override
     11     public void applyAttributes() {
     12         super.applyAttributes();
     13         if (getBackground() == null) {
     14             setBackgroundColor(android.R.color.transparent);
     15         }
     16     }
     17 }
     18