Start using contentDescription on ImageView elements
This commit is contained in:
parent
4f065492ef
commit
a1a8c06565
@ -36,10 +36,12 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/icon"
|
android:id="@+id/icon"
|
||||||
|
android:contentDescription="@string/app_icon"
|
||||||
android:layout_width="56dp"
|
android:layout_width="56dp"
|
||||||
android:layout_height="56dp"
|
android:layout_height="56dp"
|
||||||
android:padding="4dp"
|
android:padding="4dp"
|
||||||
android:scaleType="fitCenter" />
|
android:scaleType="fitCenter"
|
||||||
|
/>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
|
@ -14,11 +14,13 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/icon"
|
android:id="@+id/icon"
|
||||||
|
android:contentDescription="@string/app_icon"
|
||||||
android:layout_width="56dp"
|
android:layout_width="56dp"
|
||||||
android:layout_height="56dp"
|
android:layout_height="56dp"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:padding="4dp"
|
android:padding="4dp"
|
||||||
android:scaleType="fitCenter" />
|
android:scaleType="fitCenter"
|
||||||
|
/>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
@ -28,7 +30,8 @@
|
|||||||
android:layout_toEndOf="@id/icon"
|
android:layout_toEndOf="@id/icon"
|
||||||
android:padding="5dp"
|
android:padding="5dp"
|
||||||
android:baselineAligned="false"
|
android:baselineAligned="false"
|
||||||
android:orientation="vertical" >
|
android:orientation="vertical"
|
||||||
|
>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/license"
|
android:id="@+id/license"
|
||||||
@ -41,7 +44,8 @@
|
|||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:layout_marginLeft="6sp"
|
android:layout_marginLeft="6sp"
|
||||||
android:layout_marginStart="6sp"
|
android:layout_marginStart="6sp"
|
||||||
android:textSize="12sp" />
|
android:textSize="12sp"
|
||||||
|
/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/title"
|
android:id="@+id/title"
|
||||||
|
@ -8,12 +8,15 @@
|
|||||||
|
|
||||||
<!-- Actual icon size is dependent on preferences and set in
|
<!-- Actual icon size is dependent on preferences and set in
|
||||||
AppListAdapater.java:layoutIcon() -->
|
AppListAdapater.java:layoutIcon() -->
|
||||||
<ImageView android:id="@+id/icon"
|
<ImageView
|
||||||
|
android:id="@+id/icon"
|
||||||
|
android:contentDescription="@string/app_icon"
|
||||||
android:layout_width="56dp"
|
android:layout_width="56dp"
|
||||||
android:layout_height="56dp"
|
android:layout_height="56dp"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:padding="4dp"
|
android:padding="4dp"
|
||||||
android:scaleType="fitCenter" />
|
android:scaleType="fitCenter"
|
||||||
|
/>
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
|
@ -12,11 +12,14 @@
|
|||||||
http://syedasaraahmed.wordpress.com/2012/10/03/android-onitemclicklistener-not-responding-clickable-rowitem-of-custom-listview/
|
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_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentLeft="true"
|
android:layout_alignParentLeft="true"
|
||||||
android:layout_alignParentStart="true" />
|
android:layout_alignParentStart="true"
|
||||||
|
/>
|
||||||
|
|
||||||
<TextView android:id="@+id/repo_name"
|
<TextView android:id="@+id/repo_name"
|
||||||
android:textSize="21sp"
|
android:textSize="21sp"
|
||||||
|
@ -6,9 +6,12 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal">
|
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_width="wrap_content"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content"
|
||||||
|
/>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
|
@ -213,4 +213,7 @@
|
|||||||
<string name="discovered_repo_name">Discovered Repo Name</string>
|
<string name="discovered_repo_name">Discovered Repo Name</string>
|
||||||
<string name="repo_address">Repo Address</string>
|
<string name="repo_address">Repo Address</string>
|
||||||
|
|
||||||
|
<string name="app_icon">App icon</string>
|
||||||
|
<string name="repo_icon">Repo icon</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user