2010-12-31 7 views
2

SlidingDrawerを水平方向に使用しようとすると、ハンドラとコンテンツの間にスペースができます。どのように私はそれを取り除くことができる任意のアイデア?縦方向では私はスペースを得ていません。SlidingDrawer内のハンドラとコンテンツの間のスペース

<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> 
+0

SlidingDrawerの幅をmatch_parentに設定しようとしましたか? –

+0

layout_widthをmatch_parentに変更しても、ハンドラとコンテンツの間のギャップは取り除かれません。 – Mokus

+0

役立つかどうかわかりませんが、SlidingDrawerがTabViewのコンテンツに追加されていると付け加えたいと思います。 – Mokus

答えて

2

ImageViewでandroid:scaleType = "center"をお試しください。

+0

完璧、それは私の問題を解決しました(たとえ私が質問をした人でなくても) – DallaRosa

+0

DallaRosaの問題を解決したので答えを受け入れます。私は自分のプロジェクトに移り、SlidingDrawerを使わなかった。 – Mokus

関連する問題