Fix issue for accessibility

This commit is contained in:
tom79 2020-01-18 14:54:34 +01:00
parent c3ebbdabed
commit 5981b50e8f
6 changed files with 247 additions and 256 deletions

View File

@ -249,7 +249,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
private ImageView pp_actionBar;
private ProgressBar pp_progress;
private Toast mToast;
private RelativeLayout drawer_layout;
private LinearLayout drawer_layout;
private HorizontalScrollView picture_scrollview;
private TextView toot_space_left;
private String initialContent;

View File

@ -14,22 +14,16 @@
You should have received a copy of the GNU General Public License along with Fedilab; if not,
see <http://www.gnu.org/licenses>.
-->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/tools"
<LinearLayout android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
app:ignore="NamespaceTypo">
<RelativeLayout
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingLeft="@dimen/toot_padding"
android:paddingTop="@dimen/toot_padding"
android:paddingRight="@dimen/toot_padding"
android:paddingBottom="@dimen/toot_padding">
android:paddingBottom="@dimen/toot_padding"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<TextView
android:id="@+id/warning_message"
@ -47,7 +41,6 @@
android:id="@+id/toot_cw_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/warning_message"
android:layout_marginTop="20dp"
android:animateLayoutChanges="true"
android:hint="@string/toot_cw_placeholder"
@ -56,10 +49,8 @@
<ScrollView
android:id="@+id/composer_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/bottom_bar_tooting"
android:layout_below="@+id/toot_cw_content"
android:layout_alignParentEnd="true"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_marginLeft="0dp"
android:layout_marginEnd="0dp"
android:layout_marginRight="0dp"
@ -91,10 +82,8 @@
<ScrollView
android:id="@+id/wysiwyg_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/bottom_bar_tooting"
android:layout_below="@+id/toolbar_scrollview"
android:layout_alignParentEnd="true"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_marginLeft="0dp"
android:layout_marginEnd="0dp"
android:layout_marginRight="0dp"
@ -296,5 +285,4 @@
android:text="@string/toot_sensitive"
android:visibility="gone" />
</LinearLayout>
</RelativeLayout>
</ScrollView>
</LinearLayout>

View File

@ -98,7 +98,7 @@
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:contentDescription="@string/delete_notification"
android:contentDescription="@string/remove_notification"
android:src="@drawable/ic_delete"
android:tint="?attr/iconColor" />
</RelativeLayout>

View File

@ -1010,6 +1010,7 @@
android:layout_height="25dp"
android:layout_marginEnd="15dp"
android:contentDescription="@string/toot_visibility_tilte"
android:tint="?attr/iconColor"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/status_more"
app:layout_constraintTop_toTopOf="parent" />

View File

@ -72,7 +72,7 @@
android:id="@+id/header_option_menu"
android:layout_width="30dp"
android:layout_height="30dp"
android:contentDescription="@string/truncate_long_toots"
android:contentDescription="@string/display_more_options"
android:gravity="center_vertical|end"
android:src="@drawable/ic_more_vert"
android:tint="?attr/iconColorMenu" />

View File

@ -1211,4 +1211,6 @@
<string name="identity_proofs">Identity proofs</string>
<string name="verified_user">Verified identity</string>
<string name="verified_by">Verified by %1$s (%2$s)</string>
<string name="remove_notification">Delete the notification</string>
<string name="display_more_options">Display more options</string>
</resources>