2

When I try to use a SlidingDrawer in the horizontal orientation I get a space between the handler and the content. Any idea how I can get rid of it? In the vertical orientation I do not get a space.

<SlidingDrawer
    android:id="@+id/module_trafic_map_drawer"
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    android:orientation="horizontal"
    android:topOffset="0dp"
    android:bottomOffset="0dp"
    android:handle="@+id/module_trafic_map_handle"
    android:content="@+id/module_trafic_map_content">
    <ImageView
        android:id="@id/module_trafic_map_handle"
        android:layout_width="wrap_content"
        android:layout_height="match_parent" 
        android:src="@drawable/trafic_info_popup_right"
    />
    <WebView
        android:id="@+id/module_trafic_map_content"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"            
    />
</SlidingDrawer>
Mokus
  • 3,341
  • 1
  • 23
  • 30

1 Answers1

2

Try android:scaleType="center" in your ImageView.

Carl Whalley
  • 2,753
  • 8
  • 29
  • 47
  • perfect, it solved my problem (even if I'm not one who asked the question) – DallaRosa Aug 18 '11 at 06:25
  • I accept the answer as it solved the problem for DallaRosa. I moved on with my project and didn't use a SlidingDrawer. – Mokus Sep 04 '12 at 08:14