title: ImageButton Not clickable - AndroidStudio
body: <p>I have these declarations for 4 ImageButtons on my Android app, but so far they aren't clickable, this is my class:</p>
  
  <pre><code>public class WelcomeScreen extends Activity {
  
  ImageButton completeprofile;
  ImageButton gotoportfolio;
  ImageButton findfriends;
  ImageButton readnews;
  
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.welcome_activity);
  
      completeprofile = (ImageButton) findViewById(R.id.completeprofile);
      gotoportfolio = (ImageButton) findViewById(R.id.gotoportfolio);
      findfriends = (ImageButton) findViewById(R.id.findfriends);
      readnews = (ImageButton) findViewById(R.id.readnews);
  
      completeprofile.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View arg0) {
              Intent i = new Intent(WelcomeScreen.this, ProfileMember.class);
              startActivity(i);
          }
      });
  
      gotoportfolio.setOnClickListener(new View.OnClickListener() {
  
           @Override
           public void onClick(View arg0) {
               Intent i = new Intent(WelcomeScreen.this, PortfolioMember.class);
               startActivity(i);
           }
      });
  
      findfriends.setOnClickListener(new View.OnClickListener() {
  
           @Override
           public void onClick(View arg0) {
               Intent i = new Intent(WelcomeScreen.this, MainActivity.class);
               startActivity(i);
           }
      });
  
      readnews.setOnClickListener(new View.OnClickListener() {
  
           @Override
           public void onClick(View arg0) {
               Intent i = new Intent(WelcomeScreen.this, WebActivity.class);
               startActivity(i);
           }
      });
  
  }    }
  </code></pre>
  
  <p>This is my layout:</p>
  
  <pre><code>&lt;LinearLayout
          android:orientation="horizontal"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_marginTop="70dp"
          android:layout_marginLeft="105dp"&gt;
  
          &lt;ImageButton
              android:layout_width="55dp"
              android:layout_height="55dp"
              android:id="@+id/completeprofile"
              android:background="@drawable/completeprofile"
              android:layout_marginLeft="75dp"
              android:clickable="true" /&gt;
  
          &lt;ImageButton
              android:layout_width="55dp"
              android:layout_height="55dp"
              android:id="@+id/gotoportfolio"
              android:background="@drawable/gotoportfolio"
              android:layout_marginLeft="65dp"
              android:clickable="true" /&gt;
  
          &lt;ImageButton
              android:layout_width="55dp"
              android:layout_height="55dp"
              android:id="@+id/findfriends"
              android:background="@drawable/findfriends"
              android:layout_marginLeft="65dp"
              android:clickable="true" /&gt;
  
          &lt;ImageButton
              android:layout_width="55dp"
              android:layout_height="55dp"
              android:id="@+id/readnews"
              android:background="@drawable/readnews"
              android:layout_marginLeft="65dp"
              android:clickable="true" /&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>They show perfectly, but so far I cannot click any of them, no stacktrace error, I'm quite puzzled about it =/</p>
  
  <p>Anybody can shed some light on this?</p>
  
  <p>Thanks in advance!</p>