Fixes lists to use similar sized items.
This commit is contained in:
		| @@ -50,7 +50,7 @@ public class LibraryFragment extends MCFragment { | ||||
|         Context context = requireContext(); | ||||
|         MonsterRepository repository = this.getMonsterRepository(); | ||||
|  | ||||
|         MonsterListRecyclerViewAdapter adapter = new MonsterListRecyclerViewAdapter( | ||||
|         LibraryRecyclerViewAdapter adapter = new LibraryRecyclerViewAdapter( | ||||
|                 context, | ||||
|                 repository.getMonsters(), | ||||
|                 (monster) -> navigateToMonsterDetail(monster.id), | ||||
|   | ||||
| @@ -6,7 +6,7 @@ | ||||
|  | ||||
|     <TextView | ||||
|         android:id="@+id/content" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:layout_margin="@dimen/text_margin" | ||||
|         android:textAppearance="?attr/textAppearanceListItem" /> | ||||
|   | ||||
| @@ -1,7 +1,13 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <TextView xmlns:android="http://schemas.android.com/apk/res/android" | ||||
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="wrap_content" | ||||
|     android:orientation="horizontal"> | ||||
|  | ||||
|     <TextView | ||||
|         android:id="@+id/content" | ||||
|     android:layout_width="wrap_content" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:layout_margin="@dimen/text_margin" | ||||
|         android:textAppearance="?attr/textAppearanceListItem" /> | ||||
| </LinearLayout> | ||||
|   | ||||
| @@ -6,7 +6,7 @@ | ||||
|  | ||||
|     <TextView | ||||
|         android:id="@+id/content" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:layout_margin="@dimen/text_margin" | ||||
|         android:textAppearance="?attr/textAppearanceListItem" /> | ||||
|   | ||||
| @@ -1,7 +1,14 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <TextView xmlns:android="http://schemas.android.com/apk/res/android" | ||||
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:layout_width="match_parent" | ||||
|     android:layout_height="wrap_content" | ||||
|     android:orientation="horizontal"> | ||||
|     <!-- // TODO: combine all of these similar list layouts into a single one --> | ||||
|  | ||||
|     <TextView | ||||
|         android:id="@+id/content" | ||||
|         android:layout_width="match_parent" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:layout_margin="@dimen/text_margin" | ||||
|         android:textAppearance="?attr/textAppearanceListItem" /> | ||||
| </LinearLayout> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Tom Hicks
					Tom Hicks