Fixes lists to use similar sized items.
This commit is contained in:
		| @@ -50,7 +50,7 @@ public class LibraryFragment extends MCFragment { | |||||||
|         Context context = requireContext(); |         Context context = requireContext(); | ||||||
|         MonsterRepository repository = this.getMonsterRepository(); |         MonsterRepository repository = this.getMonsterRepository(); | ||||||
|  |  | ||||||
|         MonsterListRecyclerViewAdapter adapter = new MonsterListRecyclerViewAdapter( |         LibraryRecyclerViewAdapter adapter = new LibraryRecyclerViewAdapter( | ||||||
|                 context, |                 context, | ||||||
|                 repository.getMonsters(), |                 repository.getMonsters(), | ||||||
|                 (monster) -> navigateToMonsterDetail(monster.id), |                 (monster) -> navigateToMonsterDetail(monster.id), | ||||||
|   | |||||||
| @@ -6,8 +6,8 @@ | |||||||
|  |  | ||||||
|     <TextView |     <TextView | ||||||
|         android:id="@+id/content" |         android:id="@+id/content" | ||||||
|         android:layout_width="wrap_content" |         android:layout_width="match_parent" | ||||||
|         android:layout_height="wrap_content" |         android:layout_height="wrap_content" | ||||||
|         android:layout_margin="@dimen/text_margin" |         android:layout_margin="@dimen/text_margin" | ||||||
|         android:textAppearance="?attr/textAppearanceListItem" /> |         android:textAppearance="?attr/textAppearanceListItem" /> | ||||||
| </LinearLayout> | </LinearLayout> | ||||||
|   | |||||||
| @@ -1,7 +1,13 @@ | |||||||
| <?xml version="1.0" encoding="utf-8"?> | <?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:id="@+id/content" |     android:layout_width="match_parent" | ||||||
|     android:layout_width="wrap_content" |  | ||||||
|     android:layout_height="wrap_content" |     android:layout_height="wrap_content" | ||||||
|     android:layout_margin="@dimen/text_margin" |     android:orientation="horizontal"> | ||||||
|     android:textAppearance="?attr/textAppearanceListItem" /> |  | ||||||
|  |     <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> | ||||||
|   | |||||||
| @@ -6,7 +6,7 @@ | |||||||
|  |  | ||||||
|     <TextView |     <TextView | ||||||
|         android:id="@+id/content" |         android:id="@+id/content" | ||||||
|         android:layout_width="wrap_content" |         android:layout_width="match_parent" | ||||||
|         android:layout_height="wrap_content" |         android:layout_height="wrap_content" | ||||||
|         android:layout_margin="@dimen/text_margin" |         android:layout_margin="@dimen/text_margin" | ||||||
|         android:textAppearance="?attr/textAppearanceListItem" /> |         android:textAppearance="?attr/textAppearanceListItem" /> | ||||||
|   | |||||||
| @@ -1,7 +1,14 @@ | |||||||
| <?xml version="1.0" encoding="utf-8"?> | <?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:id="@+id/content" |  | ||||||
|     android:layout_width="match_parent" |     android:layout_width="match_parent" | ||||||
|     android:layout_height="wrap_content" |     android:layout_height="wrap_content" | ||||||
|     android:layout_margin="@dimen/text_margin" |     android:orientation="horizontal"> | ||||||
|     android:textAppearance="?attr/textAppearanceListItem" /> |     <!-- // 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