我想绘制3个带有白色角落的按钮。我不能发布图像......
normal: button1 | button2 | button3 [sharp] corners around them
in fact: =============================== white corner and all white in it
然而,在Android 4.4中,这些按钮的背景是完全白色的,我看不到按钮的文字,我开始和完成这个活动10次,10次中的2次是正常的
再次抱歉没有图片..
button.xml
<!-- 3 Buttons -->
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_gravity="center"
android:background="@drawable/corners_bg_chartbuttons"
android:gravity="center"
android:orientation="horizontal" >
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:paddingLeft="20dp"
android:paddingRight="20dp"
android:text="@string/buttonDaily"
android:textColor="@android:color/white"
android:textSize="20sp" />
.......................................
</LinearLayout>
corners_bg_chartbuttons.xml
<?xml version="1.0" encoding="utf-8"?>
<solid android:color="@android:color/transparent" />
<stroke android:width="2dip" android:color="@android:color/white" />
<corners android:topLeftRadius="2dp"
android:topRightRadius="2dp"
android:bottomRightRadius="2dp"
android:bottomLeftRadius="2dp"/>