forked from organicmaps/organicmaps
[android] Holo for SearchAct.
This commit is contained in:
parent
6b5ec875e7
commit
1967aacb72
7 changed files with 23 additions and 13 deletions
|
@ -1 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><TextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" style="?spinnerItemStyle" android:ellipsize="marquee" android:singleLine="true" android:layout_height="wrap_content" android:id="@android:id/text1"></TextView>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@android:id/text1"
|
||||
style="?spinnerItemStyle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="marquee"
|
||||
android:singleLine="true" >
|
||||
|
||||
</TextView>
|
|
@ -22,7 +22,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/cell_arrow_white"/>
|
||||
android:src="@drawable/cell_arrow_black"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/name"
|
||||
|
@ -31,6 +31,6 @@
|
|||
android:layout_toLeftOf="@id/disclosure_image"
|
||||
android:layout_toRightOf="@+id/country_flag"
|
||||
android:layout_centerVertical="true"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
android:textAppearance="@style/Holo.TextAppearance.Large.Light"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
android:textAppearance="@style/Holo.TextAppearance.Small.Light"/>
|
||||
|
||||
<!-- Amenity -->
|
||||
<TextView
|
||||
|
@ -39,7 +39,7 @@
|
|||
android:layout_gravity="right"
|
||||
android:gravity="right"
|
||||
android:ellipsize="end"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
android:textAppearance="@style/Holo.TextAppearance.Small.Light"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
@ -57,14 +57,14 @@
|
|||
android:id="@+id/name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
android:textAppearance="@style/Holo.TextAppearance.Large.Light"/>
|
||||
|
||||
<!-- Long Country Name -->
|
||||
<TextView
|
||||
android:id="@+id/country"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
android:textAppearance="@style/Holo.TextAppearance.Small.Light"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
android:layout_centerVertical="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="8dp"
|
||||
style="@android:style/Widget.ProgressBar.Small"
|
||||
style="@style/Holo.ProgressBar.Small"
|
||||
android:visibility="gone"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
|
|
@ -12,12 +12,12 @@
|
|||
android:id="@+id/name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
android:textAppearance="@style/Holo.TextAppearance.Large.Light"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/country"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
android:textAppearance="@style/Holo.TextAppearance.Small.Light"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
@ -27,7 +27,8 @@ public class ArrowImage extends ImageView
|
|||
m_paint = new Paint();
|
||||
m_paint.setFlags(m_paint.getFlags() | Paint.ANTI_ALIAS_FLAG);
|
||||
m_paint.setStyle(Style.FILL);
|
||||
m_paint.setColor(Color.WHITE);
|
||||
//TODO set from resources
|
||||
m_paint.setColor(Color.BLACK);
|
||||
|
||||
m_path = new Path();
|
||||
}
|
||||
|
|
|
@ -431,8 +431,8 @@ public class SearchActivity extends ListActivity implements LocationService.List
|
|||
m_modesSpinner = (Spinner) findViewById(R.id.search_modes_spinner);
|
||||
|
||||
ArrayAdapter<CharSequence> adapter =
|
||||
ArrayAdapter.createFromResource(this, R.array.search_modes, android.R.layout.simple_spinner_item);
|
||||
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
|
||||
ArrayAdapter.createFromResource(this, R.array.search_modes, R.layout.simple_spinner_item);
|
||||
adapter.setDropDownViewResource(R.layout.simple_spinner_dropdown_item);
|
||||
m_modesSpinner.setAdapter(adapter);
|
||||
|
||||
// Default mode is AROUND_POSITION
|
||||
|
|
Loading…
Add table
Reference in a new issue