mardi 26 novembre 2019

Make the checkbox non editable by the user but editable programatically

and I want to restrict the user from changing it. I should be able to change it programatically but not by the user
I have tried, editable, clickable out did not work.

Can you please suggest on how it should be done please

Thanks R

 <LinearLayout
                android:orientation="horizontal"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:baselineAligned="false"
                android:paddingLeft="8dip"
                android:paddingRight="8dip">

                <androidx.appcompat.widget.AppCompatCheckBox
                    android:id="@+id/flight_origin_date"
                    style="@style/InputCheckBox"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:text="@string/new_order_flight_origin_date"
                    android:visibility="visible"
                    android:layout_weight="1"
                    android:layout_marginBottom="0dp"
                    app:buttonTint="@color/i6_teal" />

            </LinearLayout>



Aucun commentaire:

Enregistrer un commentaire