add content description to activity icon

This commit is contained in:
AndyScherzinger 2017-12-14 16:11:31 +01:00
parent ab575359f6
commit b8260646da
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -16,18 +16,35 @@
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
--> -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/list_item" android:id="@+id/list_item"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="48dp" android:layout_height="48dp"
android:paddingStart="@dimen/standard_padding"
android:paddingEnd="@dimen/standard_padding"
android:paddingRight="@dimen/standard_padding"
android:paddingLeft="@dimen/standard_padding"
android:minWidth="@dimen/activity_row_layout_min_width_independent"
android:background="?android:attr/activatedBackgroundIndicator" android:background="?android:attr/activatedBackgroundIndicator"
android:orientation="horizontal" > android:minWidth="@dimen/activity_row_layout_min_width_independent"
android:orientation="horizontal"
android:paddingEnd="@dimen/standard_padding"
android:paddingLeft="@dimen/standard_padding"
android:paddingRight="@dimen/standard_padding"
android:paddingStart="@dimen/standard_padding">
<ImageView
android:id="@+id/icon"
android:layout_width="@dimen/user_icon_size_independent"
android:layout_height="@dimen/user_icon_size_independent"
android:layout_gravity="center_vertical"
android:layout_marginEnd="@dimen/standard_padding"
android:layout_marginRight="@dimen/standard_padding"
android:contentDescription="@string/activity_icon" />
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:ellipsize="marquee"
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceLargePopupMenu" />
<ImageView <ImageView
android:id="@+id/icon" android:id="@+id/icon"