XML : Buttons un-clickable in LinearLayout

I have 2 buttons in a LinearLayout, but they are un-clickable in their current layout. I have tried using breakpoints/Toasts to test and they are definitely not being pressed. I'm sure its something very simple. Here is the XML.

  <LinearLayout      android:id="@+id/Dialog"      android:orientation="vertical"      android:layout_width="match_parent"      android:layout_height="150dp"      android:background="@color/White"      android:paddingLeft="@dimen/fab_margin"      android:paddingRight="@dimen/fab_margin">        <Button          android:id="@+id/take_photo"          android:layout_width="wrap_content"          android:layout_height="0dp"          android:layout_weight="1"          android:text="Take Photo"          android:background="@color/Transparent"          android:textColor="@color/Black"          android:drawableLeft="@drawable/ic_take_photo_black"          android:drawablePadding="@dimen/fab_margin"          android:padding="0dp"          android:enabled="true"            />      <Button          android:id="@+id/library"          android:layout_width="wrap_content"          android:layout_height="0dp"          android:layout_weight="1"          android:text="Library"          android:background="@color/Transparent"          android:textColor="@color/Black"          android:drawableLeft="@drawable/library"          android:drawablePadding="@dimen/fab_margin"          android:padding="0dp"          android:enabled="true"          />  </LinearLayout>    

No comments:

Post a Comment