Fix main dashboard screen toolbar direction
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
- android:layout_height="wrap_content">
+ android:layout_height="wrap_content"
+ app:contentInsetStart="0dp">
+
+ <!--
+ SupportRtl is not effecting the toolbar directly so just put all the child views into
+ another Layout (e.g LinearLayout in our case) that supports rtl.
+ -->
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical"
+ android:orientation="horizontal">
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/toolbar_profile_image"
android:layout_width="@dimen/courses_profile_icon_size"
android:layout_height="@dimen/courses_profile_icon_size"
android:layout_marginStart="@dimen/courses_profile_icon_left_margin"
+ android:layout_marginEnd="@dimen/courses_title_text_left_margin"
android:contentDescription="@string/open_profile_button"
android:visibility="gone"
app:civ_border_width="@dimen/drawer_profile_image_border_width"
style="@style/AppTheme.ToolBar.Title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/courses_title_text_left_margin"
- android:layout_marginEnd="@dimen/courses_profile_icon_left_margin"
tools:text="Screen title" />
<LinearLayout
android:layout_height="wrap_content"
android:imeOptions="flagNoFullscreen"
android:maxWidth="@dimen/highest_max_width"
- android:visibility="gone" />
+ android:visibility="gone"
+ tools:visibility="visible" />
+ </LinearLayout>
</LinearLayout>
-
</android.support.v7.widget.Toolbar>
<android.support.design.widget.TabLayout
