Hi All,

A part of my main.xml is as below:

        <FrameLayout android:id="@+id/panelLayout"
                android:layout_width="fill_parent"
android:layout_height="fill_parent">

>>              <RelativeLayout android:id="@+id/instrumentClusterLayout"
                        android:layout_width="wrap_content"
android:layout_height="wrap_content">
                        <ImageView android:id="@+id/instrument"
                                android:layout_width="wrap_content"
android:layout_height="wrap_content"
                                android:src="@drawable/instrument" 
android:scaleType="center"
                                
android:layout_alignParentBottom="true"></ImageView>
                        <ImageView android:id="@+id/pointer"
android:layout_width="wrap_content"
                                android:layout_height="wrap_content" 
android:src="@drawable/
pointer"
                                android:layout_centerVertical="true"
                                
android:layout_alignParentBottom="true"></ImageView>
>>              </RelativeLayout>

                <SlidingDrawer android:id="@+id/menuSlider"
                        android:layout_width="250dip" 
android:layout_height="fill_parent"
                        android:handle="@+id/handleButton" 
android:content="@+id/
contentLayout"
                        android:orientation="horizontal" 
android:layout_gravity="right">
                        <Button android:id="@+id/handleButton"
android:layout_width="wrap_content"
                                android:layout_height="wrap_content" 
android:background="@drawable/
open"
                                android:clickable="true" 
android:focusable="true"></Button>
                        <LinearLayout android:id="@+id/contentLayout"
                                android:layout_width="wrap_content"
android:layout_height="wrap_content">
                                <ListView android:id="@+id/menu"
android:layout_width="fill_parent"
                                        android:layout_height="fill_parent" 
android:background="#000000"
                                        android:divider="#696969" 
android:dividerHeight="1px"
                                        android:clickable="true"></ListView>
                        </LinearLayout>
                </SlidingDrawer>

        </FrameLayout>

I would like to dim the "Relative Layout" and its contents when the
sliding drawer opens. and regain the brightness once the sliding
drawer closes. I have written animation xml for the same. I'm able to
dim using alpha animation. But can't retain the dimness till I close
the drawer.

The other possible way of doing this is creating two different set of
images for the image view in the relative layout and altering them
when slider opens and closes.

Kindly let me know if its possible to handle dimming by any means
other than using multiple images.

Thanks a lot.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to