Added to the project Firebase Invites. Everything works fine, but when you switch to activate, there is no back arrow. I decided to correct by writing the following in AndroidManifest:

<activity android:name=".activities.DeepLinkActivity" android:label="title_map_details" android:parentActivityName=".activities.MainActivity"> <meta-data android:name="android.support.PARENT_ACTIVITY" android:value="com.vm.sai.activities.MainActivity"/> </activity> 

In other activities, such a technique works, but not here, most likely from the elements displayed in the activity itself, namely the user's logo.

enter image description here

Tell me how you can move the content to the right, so that the arrow-back is displayed.

Full code deep_link_activity:

 <?xml version="1.0" encoding="utf-8"?> 

 <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center" android:orientation="vertical" android:padding="20dp"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="10dp" android:text="@string/invite_dialog_title" android:textColor="@android:color/white" android:textSize="@dimen/abc_text_size_headline_material" /> <ImageView android:layout_width="48dp" android:layout_height="48dp" android:src="@mipmap/ic_forum_white" /> </LinearLayout> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/activity_vertical_margin" android:layout_marginLeft="@dimen/activity_horizontal_margin" android:layout_marginRight="@dimen/activity_horizontal_margin" android:layout_marginTop="@dimen/activity_vertical_margin" android:orientation="vertical"> <TextView android:id="@+id/deep_link_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/deep_link_default" android:textAppearance="@style/TextAppearance.AppCompat.Title" /> <TextView android:id="@+id/invitation_id_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:ellipsize="end" android:singleLine="true" android:text="@string/invitation_id_default" android:textAppearance="@style/TextAppearance.AppCompat.Medium" android:textSize="@dimen/subtitle_text_size" /> <Button android:id="@+id/button_ok" style="@style/Widget.AppCompat.Button.Borderless.Colored" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="end" android:text="@android:string/ok" /> </LinearLayout> 

  • Try to override the required activation class and enter the necessary one in it - YuriySPb
  • @Yuriy SPb is not entirely clear what exactly needs to be done. - Morozov
  • Well, you gave little information in question. I have heard about invites, but I have never seen it and are not aware of the implementation. I just assume that you take some kind of lib and use it. I also assume that you can extend the activation class invite, override the onCreate method there and add the necessary one to the toolbar. If he is there. Too little information to tell you something concrete - YuriySPb
  • You bring in a question a fragment of the manifesto for DeepLinkActivity, and the screenshot shows for activit on sending the invitation. Where should the arrow be? - tse
  • @tse where did you see the snippet in the manifest? The arrow should be displayed to the left of the icon (account). - Morozov

0