Add content description - #623
This commit is contained in:
parent
89ad2ae908
commit
37a8fc9299
|
@ -318,6 +318,13 @@ public abstract class BaseMainActivity extends BaseActivity
|
||||||
ImageView iconArt = tabArt.getCustomView().findViewById(R.id.tab_icon);
|
ImageView iconArt = tabArt.getCustomView().findViewById(R.id.tab_icon);
|
||||||
iconArt.setImageResource(R.drawable.ic_color_lens);
|
iconArt.setImageResource(R.drawable.ic_color_lens);
|
||||||
|
|
||||||
|
iconHome.setContentDescription(getString(R.string.home_menu));
|
||||||
|
iconNotif.setContentDescription(getString(R.string.notifications));
|
||||||
|
iconDirect.setContentDescription(getString(R.string.direct_message));
|
||||||
|
iconLocal.setContentDescription(getString(R.string.local_menu));
|
||||||
|
iconGlobal.setContentDescription(getString(R.string.global_menu));
|
||||||
|
iconArt.setContentDescription(getString(R.string.art_menu));
|
||||||
|
|
||||||
if( theme == THEME_LIGHT){
|
if( theme == THEME_LIGHT){
|
||||||
iconHome.setColorFilter(ContextCompat.getColor(getApplicationContext(), R.color.action_light_header), PorterDuff.Mode.SRC_IN);
|
iconHome.setColorFilter(ContextCompat.getColor(getApplicationContext(), R.color.action_light_header), PorterDuff.Mode.SRC_IN);
|
||||||
iconNotif.setColorFilter(ContextCompat.getColor(getApplicationContext(), R.color.action_light_header), PorterDuff.Mode.SRC_IN);
|
iconNotif.setColorFilter(ContextCompat.getColor(getApplicationContext(), R.color.action_light_header), PorterDuff.Mode.SRC_IN);
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
android:layout_width="100dp"
|
android:layout_width="100dp"
|
||||||
android:scaleType="fitXY"
|
android:scaleType="fitXY"
|
||||||
android:layout_height="100dp"
|
android:layout_height="100dp"
|
||||||
tools:ignore="ContentDescription" />
|
android:contentDescription="@string/profile_picture" />
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_marginStart="10dp"
|
android:layout_marginStart="10dp"
|
||||||
android:layout_marginLeft="10dp"
|
android:layout_marginLeft="10dp"
|
||||||
|
@ -99,7 +99,7 @@
|
||||||
android:minHeight="100dp"
|
android:minHeight="100dp"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
tools:ignore="ContentDescription" />
|
android:contentDescription="@string/profile_banner" />
|
||||||
<TextView
|
<TextView
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:id="@+id/set_header_picture_overlay"
|
android:id="@+id/set_header_picture_overlay"
|
||||||
|
|
|
@ -17,23 +17,21 @@
|
||||||
-->
|
-->
|
||||||
<ScrollView android:layout_width="match_parent"
|
<ScrollView android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
|
||||||
android:id="@+id/drawer_layout"
|
android:id="@+id/drawer_layout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical">
|
||||||
>
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_marginTop="20dp"
|
android:layout_marginTop="20dp"
|
||||||
android:layout_width="150dp"
|
android:layout_width="150dp"
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:src="@drawable/mastodonlogo"
|
android:src="@drawable/mastodonlogo"
|
||||||
android:layout_height="150dp"
|
android:layout_height="150dp"
|
||||||
tools:ignore="ContentDescription" />
|
android:contentDescription="@string/app_logo" />
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_marginLeft="50dp"
|
android:layout_marginLeft="50dp"
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
android:id="@+id/iconbar"
|
android:id="@+id/iconbar"
|
||||||
android:layout_width="30dp"
|
android:layout_width="30dp"
|
||||||
android:layout_height="30dp"
|
android:layout_height="30dp"
|
||||||
tools:ignore="ContentDescription" />
|
android:contentDescription="@string/open_menu" />
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/toolbar_search_container"
|
android:id="@+id/toolbar_search_container"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
@ -79,6 +79,7 @@
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:id="@+id/delete_instance"
|
android:id="@+id/delete_instance"
|
||||||
android:src="@drawable/ic_delete"
|
android:src="@drawable/ic_delete"
|
||||||
|
android:contentDescription="@string/delete_instance"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
<android.support.v7.widget.SearchView
|
<android.support.v7.widget.SearchView
|
||||||
|
|
|
@ -690,6 +690,11 @@
|
||||||
<string name="boost_scheduled">The boost is scheduled!</string>
|
<string name="boost_scheduled">The boost is scheduled!</string>
|
||||||
<string name="no_scheduled_boosts">No scheduled boost to display!</string>
|
<string name="no_scheduled_boosts">No scheduled boost to display!</string>
|
||||||
<string name="no_scheduled_boosts_indications"><![CDATA[Open the menu of a toot and then choose <b>Schedule boost</b>.]]></string>
|
<string name="no_scheduled_boosts_indications"><![CDATA[Open the menu of a toot and then choose <b>Schedule boost</b>.]]></string>
|
||||||
|
<string name="art_menu">Art timeline</string>
|
||||||
|
<string name="open_menu">Open menu</string>
|
||||||
|
<string name="app_logo">Logo of the application</string>
|
||||||
|
<string name="profile_picture">Profile picture</string>
|
||||||
|
<string name="profile_banner">Profile banner</string>
|
||||||
|
|
||||||
<string-array name="filter_expire">
|
<string-array name="filter_expire">
|
||||||
<item>Never</item>
|
<item>Never</item>
|
||||||
|
|
Loading…
Reference in New Issue