mirror of
https://github.com/nextcloud/android.git
synced 2024-11-25 14:45:47 +03:00
add content description to activity icon
This commit is contained in:
parent
ab575359f6
commit
b8260646da
1 changed files with 27 additions and 10 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue