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"
android:id="@+id/list_item"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="?android:attr/activatedBackgroundIndicator"
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">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <ImageView
android:id="@+id/list_item" 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_width="match_parent"
android:layout_height="48dp" android:layout_height="wrap_content"
android:paddingStart="@dimen/standard_padding" android:layout_gravity="center_vertical"
android:paddingEnd="@dimen/standard_padding" android:ellipsize="marquee"
android:paddingRight="@dimen/standard_padding" android:singleLine="true"
android:paddingLeft="@dimen/standard_padding" android:textAppearance="?android:attr/textAppearanceLargePopupMenu" />
android:minWidth="@dimen/activity_row_layout_min_width_independent"
android:background="?android:attr/activatedBackgroundIndicator"
android:orientation="horizontal" >
<ImageView <ImageView
android:id="@+id/icon" android:id="@+id/icon"