Question

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>
Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top