Start using contentDescription on ImageView elements
This commit is contained in:
		
							parent
							
								
									4f065492ef
								
							
						
					
					
						commit
						a1a8c06565
					
				| @ -36,10 +36,12 @@ | ||||
| 
 | ||||
|                 <ImageView | ||||
|                     android:id="@+id/icon" | ||||
|                     android:contentDescription="@string/app_icon" | ||||
|                     android:layout_width="56dp" | ||||
|                     android:layout_height="56dp" | ||||
|                     android:padding="4dp" | ||||
|                     android:scaleType="fitCenter" /> | ||||
| 					android:scaleType="fitCenter" | ||||
| 					/> | ||||
| 
 | ||||
| 				<RelativeLayout | ||||
| 					android:layout_width="fill_parent" | ||||
|  | ||||
| @ -14,11 +14,13 @@ | ||||
| 
 | ||||
| 		<ImageView | ||||
| 			android:id="@+id/icon" | ||||
| 			android:contentDescription="@string/app_icon" | ||||
| 			android:layout_width="56dp" | ||||
| 			android:layout_height="56dp" | ||||
| 			android:layout_centerVertical="true" | ||||
| 			android:padding="4dp" | ||||
| 			android:scaleType="fitCenter" /> | ||||
| 			android:scaleType="fitCenter" | ||||
| 			/> | ||||
| 
 | ||||
| 		<RelativeLayout | ||||
| 			android:layout_width="fill_parent" | ||||
| @ -28,7 +30,8 @@ | ||||
| 			android:layout_toEndOf="@id/icon" | ||||
| 			android:padding="5dp" | ||||
| 			android:baselineAligned="false" | ||||
| 			android:orientation="vertical" > | ||||
| 			android:orientation="vertical" | ||||
| 			> | ||||
| 
 | ||||
| 			<TextView | ||||
| 				android:id="@+id/license" | ||||
| @ -41,7 +44,8 @@ | ||||
| 				android:ellipsize="end" | ||||
| 				android:layout_marginLeft="6sp" | ||||
| 				android:layout_marginStart="6sp" | ||||
| 				android:textSize="12sp" /> | ||||
| 				android:textSize="12sp" | ||||
| 				/> | ||||
| 
 | ||||
| 			<TextView | ||||
| 				android:id="@+id/title" | ||||
|  | ||||
| @ -8,12 +8,15 @@ | ||||
| 
 | ||||
| 	<!-- Actual icon size is dependent on preferences and set in | ||||
| 		AppListAdapater.java:layoutIcon() --> | ||||
| 	<ImageView android:id="@+id/icon" | ||||
| 	<ImageView | ||||
| 		android:id="@+id/icon" | ||||
| 		android:contentDescription="@string/app_icon" | ||||
| 		android:layout_width="56dp" | ||||
| 		android:layout_height="56dp" | ||||
| 		android:layout_centerVertical="true" | ||||
| 		android:padding="4dp" | ||||
| 		android:scaleType="fitCenter" /> | ||||
| 		android:scaleType="fitCenter" | ||||
| 		/> | ||||
| 
 | ||||
| 	<RelativeLayout | ||||
| 		android:orientation="vertical" | ||||
|  | ||||
| @ -12,11 +12,14 @@ | ||||
|      http://syedasaraahmed.wordpress.com/2012/10/03/android-onitemclicklistener-not-responding-clickable-rowitem-of-custom-listview/ | ||||
|     --> | ||||
| 
 | ||||
|     <ImageView android:id="@+id/img" | ||||
| 	<ImageView | ||||
| 		android:id="@+id/img" | ||||
| 		android:contentDescription="@string/repo_icon" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="wrap_content" | ||||
|         android:layout_alignParentLeft="true" | ||||
|         android:layout_alignParentStart="true" /> | ||||
| 		android:layout_alignParentStart="true" | ||||
| 		/> | ||||
| 
 | ||||
|     <TextView android:id="@+id/repo_name" | ||||
|         android:textSize="21sp" | ||||
|  | ||||
| @ -6,9 +6,12 @@ | ||||
|     android:layout_height="wrap_content" | ||||
|     android:orientation="horizontal">	 | ||||
| 
 | ||||
|     <ImageView android:id="@+id/img" | ||||
| 	<ImageView | ||||
| 		android:id="@+id/img" | ||||
| 		android:contentDescription="@string/repo_icon" | ||||
|         android:layout_width="wrap_content" | ||||
|         android:layout_height="wrap_content" /> | ||||
| 		android:layout_height="wrap_content" | ||||
| 		/> | ||||
| 
 | ||||
|     <LinearLayout | ||||
|         android:layout_width="fill_parent" | ||||
| @ -50,4 +53,4 @@ | ||||
|  * You should have received a copy of the GNU General Public License | ||||
|  * along with this program; if not, write to the Free Software | ||||
|  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. | ||||
| --> | ||||
| --> | ||||
|  | ||||
| @ -213,4 +213,7 @@ | ||||
|     <string name="discovered_repo_name">Discovered Repo Name</string> | ||||
|     <string name="repo_address">Repo Address</string> | ||||
| 
 | ||||
|     <string name="app_icon">App icon</string> | ||||
|     <string name="repo_icon">Repo icon</string> | ||||
| 
 | ||||
| </resources> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Daniel Martí
						Daniel Martí