AI 143816: am: CL 143792 am: CL 143746 Fix search widget assets to not overlap in landscape mode.

Done by using small button framework assets, but with manual padding adjustments to bring back to original button size.
  Original author: jsharkey
  Merged from: //branches/cupcake/...
  Original author: android-build
  Merged from: //branches/donutburger/...

Automated import of CL 143816
This commit is contained in:
Jeffrey Sharkey 2009-03-31 14:43:35 -07:00 committed by The Android Open Source Project
parent 9dc115efc0
commit 5ffd4ae172
2 changed files with 11 additions and 2 deletions

View File

@ -45,17 +45,19 @@
/> />
<ImageButton android:id="@+id/search_go_btn" <ImageButton android:id="@+id/search_go_btn"
android:layout_marginLeft="4dip" android:layout_marginLeft="5dip"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:src="@*android:drawable/ic_btn_search" android:src="@*android:drawable/ic_btn_search"
style="@style/SearchButton"
/> />
<ImageButton android:id="@+id/search_voice_btn" <ImageButton android:id="@+id/search_voice_btn"
android:layout_marginLeft="2dip" android:layout_marginLeft="4dip"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:src="@android:drawable/ic_btn_speak_now" android:src="@android:drawable/ic_btn_speak_now"
style="@style/SearchButton"
/> />
</com.android.launcher.Search> </com.android.launcher.Search>

View File

@ -53,4 +53,11 @@
<item name="android:layout_marginLeft">10dip</item> <item name="android:layout_marginLeft">10dip</item>
<item name="android:layout_marginRight">10dip</item> <item name="android:layout_marginRight">10dip</item>
</style> </style>
<style name="SearchButton" parent="@android:style/Widget.Button.Small">
<item name="android:paddingTop">7dip</item>
<item name="android:paddingBottom">9dip</item>
<item name="android:paddingLeft">10dip</item>
<item name="android:paddingRight">10dip</item>
</style>
</resources> </resources>