我没有几个活动,其中至少有一个按钮。其中少数几个,当我尝试将按钮的颜色设置为绿色(静态在xml中)时,按钮没有&#39 ; t在播放期间出现(但如果我改变其文字颜色,我可以看到它的文字。我也可以点击它)。当我使用带有android 5的手机时效果很好,但是当我使用android 4.4.2时它并没有。关于它的任何想法? 这是问题xml之一:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_finger_cam"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.gilad.takepicture.FingerCamActivity">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">
<SurfaceView
android:layout_width="match_parent"
android:id="@+id/surfaceView"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_height="373dp" />
<TextView
android:text="נא לא להזיז את האצבע עד לסיום."
android:layout_width="match_parent"
android:layout_height="66dp"
android:id="@+id/textViewAlert"
android:background="@android:color/holo_red_light"
android:textSize="24sp"
android:visibility="gone" />
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="match_parent">
<Button
android:text="CAPTURE"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/button"
android:layout_weight="0.37"
android:onClick="onClick" />
</LinearLayout>
</LinearLayout>