mirror of
https://gitlab.com/openlp/android.git
synced 2024-12-22 03:42:48 +00:00
formatted results
This commit is contained in:
parent
f10f016f53
commit
9f896175b3
@ -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;
|
||||
}
|
||||
|
11
app/src/main/res/layout/search_result.xml
Normal file
11
app/src/main/res/layout/search_result.xml
Normal 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>
|
13
app/src/main/res/layout/search_result_row.xml
Normal file
13
app/src/main/res/layout/search_result_row.xml
Normal 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>
|
Loading…
Reference in New Issue
Block a user