I have a button
<Button
android:layout_above="@id/choice2"
android:layout_centerHorizontal="true"
android:textColor="#FFFF00"
android:textSize="25sp"
android:gravity="center"
android:background="@drawable/loginbutton"
android:layout_height="30dp"
android:layout_width="fill_parent"
android:layout_marginBottom="15dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:text="@string/q1a1"
android:id="@+id/choice1">
</Button>
and when you press this button, it adds 10 to a counter/score keeper. How do I make this button able to be pressed once, but then not pressable again after that? Users are able to cheat and press the button multiple times to add more to there score.
in your
onCreatemethod, do it like this: