1
0
mirror of https://gitlab.com/openlp/android.git synced 2024-12-22 03:42:48 +00:00

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

@ -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>