forked from upstream-mirrors/OpenTracks
Addressing review comments for the search functionality.
This commit is contained in:
@@ -15,44 +15,39 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:paddingTop="2dip"
|
||||
android:paddingBottom="2dip"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:minHeight="?android:attr/listPreferredItemHeight"
|
||||
android:orientation="vertical">
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="2dip"
|
||||
android:paddingTop="2dip">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:orientation="horizontal">
|
||||
<ImageView android:id="@+id/track_list_item_icon"
|
||||
android:layout_width="wrap_content"
|
||||
android:contentDescription="@string/track_list_icon_description"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:paddingLeft="4dip"
|
||||
android:paddingRight="2dip"
|
||||
android:paddingTop="5dip"
|
||||
android:src="@drawable/track"
|
||||
android:contentDescription="@string/track_list_icon_description"/>
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:src="@drawable/track" />
|
||||
<TextView android:id="@+id/track_list_item_name"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="6dip"
|
||||
android:layout_marginTop="6dip"
|
||||
android:layout_width="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
<TextView android:id="@+id/track_list_item_category"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="6dip"
|
||||
android:layout_marginTop="6dip"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<TextView android:id="@+id/track_list_item_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="6dip"
|
||||
android:layout_marginTop="6dip"
|
||||
android:singleLine="true"
|
||||
android:textAppearance="?android:attr/textAppearanceLarge"/>
|
||||
<TextView android:id="@+id/track_list_item_category"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="6dip"
|
||||
android:layout_marginTop="6dip"
|
||||
android:singleLine = "true"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
</LinearLayout>
|
||||
android:singleLine = "true"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"/>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView android:id="@+id/track_list_item_time"
|
||||
|
||||
@@ -20,15 +20,15 @@ limitations under the License.
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent">
|
||||
<ListView android:id="@android:id/list"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent" />
|
||||
<TextView android:id="@android:id/empty"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="fill_parent" />
|
||||
<TextView android:id="@android:id/empty"
|
||||
android:gravity="center"
|
||||
android:layout_height="fill_parent"
|
||||
android:layout_width="fill_parent"
|
||||
android:text="@string/search_no_results"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="20dip"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user