Alps Rana Alps Rana - 6 days ago 4
Android Question

Disable Segmentedcontrol in Android

Can any one please tell me, how to disable segmentedcontrol in android.
I have been using Foursquared library.

The link for library is given below.
http://ttlnews.blogspot.in/2011/09/segmented-button-control-in-android.html

Answer

You can do one thing for that.

<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent">

<SegmentedButton
    android:id="@+id/login_fragment"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:clickable="false"
    />

<Layout
    android:id="@+id/transperent_fragment"
    android:name="com.test.transperentFragment"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/body_texture"
    android:alpha="0.2"
    android:clickable="true"/>

</RelativeLayout>

Hope this helps you..:)