Make categories read out correctly by screenreader.
This commit is contained in:
		
							parent
							
								
									93e39d895c
								
							
						
					
					
						commit
						2fbfcb66b0
					
				| @ -81,6 +81,7 @@ public class CategoryController extends RecyclerView.ViewHolder implements Loade | |||||||
|         int categoryNameId = getCategoryResource(activity, categoryName, "string", false); |         int categoryNameId = getCategoryResource(activity, categoryName, "string", false); | ||||||
|         String translatedName = categoryNameId == 0 ? categoryName : activity.getString(categoryNameId); |         String translatedName = categoryNameId == 0 ? categoryName : activity.getString(categoryNameId); | ||||||
|         heading.setText(translatedName); |         heading.setText(translatedName); | ||||||
|  |         heading.setContentDescription(activity.getString(R.string.tts_category_name, translatedName)); | ||||||
| 
 | 
 | ||||||
|         viewAll.setVisibility(View.INVISIBLE); |         viewAll.setVisibility(View.INVISIBLE); | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -19,7 +19,9 @@ | |||||||
|         android:paddingStart="18dp" |         android:paddingStart="18dp" | ||||||
|         android:paddingRight="18dp" |         android:paddingRight="18dp" | ||||||
|         android:paddingEnd="18dp" |         android:paddingEnd="18dp" | ||||||
|         tools:layout_editor_absoluteX="0dp" /> |         tools:layout_editor_absoluteX="0dp" | ||||||
|  |         android:focusable="true" | ||||||
|  |         android:focusableInTouchMode="true" /> | ||||||
| 
 | 
 | ||||||
|     <Button |     <Button | ||||||
|         android:id="@+id/button" |         android:id="@+id/button" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Peter Serwylo
						Peter Serwylo