formatted results

This commit is contained in:
Tim Bentley 2016-01-03 09:20:41 +00:00
parent f10f016f53
commit 9f896175b3
4 changed files with 28 additions and 4 deletions

View File

@ -263,12 +263,12 @@ public class SearchFragment extends Fragment {
}
// Check if an existing view is being reused, otherwise inflate the view
if (convertView == null) {
convertView = LayoutInflater.from(getContext()).inflate(R.layout.search_result, parent, false);
convertView = LayoutInflater.from(getContext()).inflate(R.layout.search_result_row, parent, false);
}
// Lookup view for data population
//TextView tvItem = (TextView) convertView.findViewById(R.id.searchresultsdetails);
TextView tvItem = (TextView) convertView.findViewById(R.id.searchlistRow);
// Populate the data into the template view using the data object
//tvItem.setText(item);
tvItem.setText(item);
// Return the completed view to render on screen
return convertView;
}

View File

@ -83,7 +83,7 @@
android:layout_marginBottom="20dp"
android:textSize="40px"
android:height="70px"
android:layout_weight="1" />
android:layout_weight="1"/>
</LinearLayout>
</LinearLayout>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/serachitem"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Name" />
</LinearLayout>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Header"
android:textSize="40px"
android:height="70px"
android:id="@+id/searchlistRow"/>
</LinearLayout>