On Thursday, June 26, 2014 9:08:45 AM UTC-6, TreKing wrote:
>
> I see. Try changing the button heights to match parent and the containing 
> layout to whatever height you want it.
>
>
No, that didn't help either.  The attached two-buttons.png is what happens 
with this XML:

     <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="60sp" >

            <Button
                android:id="@+id/cancelButton"
                android:layout_width="0dp"
                android:layout_height="60sp"
                android:layout_marginLeft="6sp"
                android:layout_marginRight="6sp"
                android:layout_weight="0.5"
                android:background="#ffffaaaa"
                android:onClick="onClickCancel"
                android:text="Cancel the Calibration"
                android:textColor="#ff000000"
                android:textSize="18sp" ></Button>

            <Button
                android:id="@+id/beginButton"
                android:layout_width="0dp"
                android:layout_height="60sp"
                android:layout_marginLeft="6sp"
                android:layout_marginRight="6sp"
                android:layout_weight="0.5"
                android:background="#ffaaffaa"
                android:onClick="onClickBegin"
                android:text="Begin"
                android:textColor="#ff000000"
                android:textSize="18sp" ></Button>
     </LinearLayout>


But if I just change "Begin" to "Begin the Calibration" so that it takes up 
two lines just like the other button, then everything is OK, as shown by 
the attached two-buttons-OK.png.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to