Questions tagged [activity-transition]

Activity transitions in material design apps provide visual connections between different states through motion and transformations between common elements. You can specify custom animations for enter and exit transitions and for transitions of shared elements between activities.

Filter by
Sorted by
Tagged with
0votes
1answer
46views

How to set motion layout transition to one activity to another

I'm traying to set motion layout transition one activity to another but I don't know how to do.
user avatar
  • 1
0votes
1answer
25views

How to pass location data or activity transition values between Activity and IntentService?

I am new in Android development so forgive me. My problem is that I have implemented ActivityTransitionAPI and it consists of an Activity and an IntentService. In the activity I also get location data ...
user avatar
0votes
1answer
42views

setEnterTransition only shows Fade

I wrote an application with multiple activities in it. I would like to add a transition in between (Slide). I wrote the following code: @Override protected void onCreate(Bundle savedInstanceState) ...
user avatar
  • 1,465
1vote
0answers
50views

How to properly scale TextView using Shared Element Transition like in Google I/O 2016 talk?

I tried to make a transition between the two activities using a shared TextView as shown in Google I/O 2016, but it works strangely since the text doesn't seem to fit into some container and its edges ...
user avatar
0votes
1answer
59views

How can I set a request code under different conditions for my activity to bypass onActivityResult?

I have a program that allows me to store data(pictures and metadata with the taken picture) during the execution of a picture being taking with the android system camera activity... but I have code in ...
user avatar
0votes
1answer
678views

Intent service can't be started in background

In my android app I want to detect activity change from still to walking and start tracking location, regardless of the state of the app (in background or shut down completely). I was able to create ...
user avatar
  • 28.2k
0votes
1answer
435views

Activity Transition API request activity-transition-updates once

I am trying to implement activity transition updates in the background of my application. My goal is to request activity transition updates once and get activity transition updates all the time in ...
user avatar
1vote
0answers
148views

Shared element comes to front of all view when activity transition

Hello everyone i have little problem about shared element. I have using shared element at activity transition. When click to recyclerView item that view comes to front of all view. as you can see ...
user avatar
  • 573
2votes
1answer
365views

I get a memory leak when I start a transition with shared elements from a recycler item

The recyclerview is in a (androidx) fragment attached to the main activity. This is the part of the recycler adapter from which the new activity is called: MainActivity activity; @Override public ...
user avatar
  • 116
2votes
2answers
184views

Between activity transitions, making the background fixed

I am currently working on an android project. I have a background xml file which is set as the windowBackground in styles. My problem is, between activity transitions, background also slides with ...
user avatar
0votes
1answer
69views

Slide in and out only a portion of an Activity without using fragments

Is it possible to create an activity slide in and slide out transition without animating the whole activity? Similar to fragment transition but with activities. I know this could easily be done with ...
user avatar
0votes
0answers
470views

windowIsTranslucent set to true, exitAnim does not work

I'm trying to make custom transition animations when opening a new activity using: overridePendingTransition(R.anim.zoom_in, R.anim.go_out); The new activity has the following theme: <style name=...
user avatar
  • 728
6votes
1answer
1kviews

Modify programmatically overridePendingTransition animations

I want to start a new activity with a custom translate animation, so I use overridePendingTransition with my animation in xml. overridePendingTransition(R.anim.enter_from_right, R.anim.exit_to_left) ...
user avatar
  • 728
0votes
1answer
525views

Adding a shared floating action button to two existing activities

I'm working on an app that is already in production, it has multiple activities. The designers now want to add a Floating Action Button which is anchored to the bottom-right of two of our activities (...
user avatar
  • 92
0votes
1answer
397views

Android Scene Transition Animation when starting multiple activities

I'd like to use ActivityOptionsCompat.makeSceneTransitionAnimation to do a scene transition between 2 UI elements but I also need to start multiple activities. This code causes issues (prevents the ...
user avatar
-1votes
1answer
366views

Android: Activity sliding over another one with swipe gesture

I have two activities one with some data and the second one, semitrasparent with some buttons on it. I want the second activity slide over the first one after the swipe gesture. I've already read ...
user avatar
0votes
0answers
16views

Bottom Toolbar looks like moving when switching from activity to activity

I am trying to have a bottom Toolbar. In 3 activities having the below same code <android.support.v7.widget.Toolbar android:id="@+id/toolbar_bottom" android:layout_width="match_parent" ...
user avatar
  • 7,035
1vote
1answer
1kviews

Android Activity transition from left to right with ease in and out curve

I'm trying to add a transition animation between Activities in Android. As I'm coming from iOS I really like the transition slide from right to left when entering a new UIViewController/Activity (and ...
user avatar
  • 1,304
0votes
0answers
1kviews

Android shared element transition produces image flicker with imageswitcher

Activity A has a small ImageSwitcher that shows a stream with images and information about the current image. When pressing the current image activity B opens with the image in fullscreen. You can ...
user avatar
0votes
1answer
69views

Different functionality to back button and toolbar close button

In my android app I am stacking different instances of the same activity over top of each other (it is a requirement and I cannot change that). I also have a close button on my activity's toolbar ...
user avatar
  • 2,555
3votes
0answers
506views

StatusBar flicker during activity transition android nouget

The Problem I have an Activity called Activity A which has the following transitions defined. @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) public static void slideAnimation(Window window) { ...
user avatar
3votes
1answer
536views

Activity transition when data changes

I got images adapter where each item is user image, when clicked it opens a new activity with selected user image, so I mark the image as shared element and using activity transitions. Part of the ...
user avatar
  • 29.6k
1vote
1answer
501views

Android Material Design Activity Exit Animation Shows White Screen

I am trying to implement a simple activity transition effect in my android application, but whenever I back press on my SecondActivity my device shows white screen, i.e my FirstActivity becomes ...
user avatar
  • 1,907
1vote
0answers
135views

Activity transition does not work properly when device orintation is landscape

My app has two activities, for example ActivityA and ActivityB. I have created Enter/Return transitions for ActivityB in xml files. In these transitions a FloatingActionButton will slides in/out from ...
user avatar
  • 1,858
2votes
0answers
219views

Android View Animation between activity transition

How can i keep an animation alive while the transitions between activities are occurring? Suppose that i have two activities A and B. Activity B has a "slide in" transition over the activity A. I ...
user avatar
0votes
2answers
297views

Views are transitioning individually/separately when using Activity Transitions

I'm trying to create a slide up effect for one of my Android Applications' Activity, similar to the Gmail app's compose Activity enter animation/transition, without the previous Activities' exit ...
user avatar
  • 273
6votes
0answers
947views

Define shared element motion in Activity transition

I would like to define a transition between two Activity. My goal is to share an image and two text between the Activities, but I want to define arc motion for the texts (and keep the changeBounds for ...
user avatar
7votes
1answer
1kviews

Android nougat status bar shows white color when launching an activity

In my android application, I have a MainActivity say M. this activity uses Android's tabLayout widget to initialize four tabs. Each tab corresponds to one Fragment say F1,F2,F3,F4 are four fragments. ...
user avatar
0votes
2answers
190views

Optimize Webview in Android App

when we add an an activity with a webview in it , it will load the website. But when we click some links on the webpage we gets redirected to some other page.Now if we press the back button, instead ...
user avatar
0votes
1answer
64views

Re-Transition when I click on button (e.g./i.e. Like Intent from current Activity to self Activity)

Basically I am working on Google Map in which I have Google Map Activity and user click on any place of Google Map I was adding marker on this click and I have one button on this button click I take ...
user avatar
  • 93
5votes
2answers
2kviews

Shared element when using startActivityForResult

I have an app with two activities, where the second functions as an image "picker" and delivers some information to the first, so that an ImageView can be updated accordingly. For this, I'm calling ...
user avatar
  • 329
2votes
0answers
425views

EditText loses focus after Activity transition

I have an Activity A and Activity B. Both in their layout they have a toolbar but Activity B has an EditText below it's toolbar: Activity B: <android.support.design.widget.CoordinatorLayout ...
user avatar
  • 11.2k
1vote
2answers
6kviews

Android activity not responding to touches event Dropping event due to no window focus

Activity A starts activity B for results: Intent intent = new Intent(ActivityA.this, ActivityB.class); ActivityOptionsCompat transitionActivityOptions = ActivityOptionsCompat....
user avatar
  • 524
1vote
1answer
761views

Animate Starting of Activity Programmatically

Animate Starting of Activity Programmatically At a high level, my project is a library that displays an activity on another activity passed-in from the integrating app. I am trying to add a slide-up ...
user avatar
1vote
0answers
84views

Android - View animation while transition animation is still running

Activity B starts and pushes Activity A to the left. This transition takes 200ms and I implement this calling this method in onCreate() before setContentView() overridePendingTransition(R.anim....
user avatar
  • 3,904
1vote
1answer
350views

Catch the end of Return Activity Transition

From Activity A to B , I set enter and return transitions. I want to put a fadein animation after the return transition ( B to A after a back). Originally , I thought that in Activity's onStart ...
user avatar
0votes
1answer
1kviews

Android shared element transition whole screen flickers on reenter

I am trying to create a "simple" image shared element transition between a recycler view item (Activity A) & a view pager (Activity B). I have managed to smoothen everything but it seems that no ...
user avatar
  • 1,498
2votes
1answer
2kviews

Android exit transition excludeTarget not working inside android.support.v4.widget.DrawerLayout

I have an activity which includes a viewpager with 3 fragments. From the first tab, I am calling another activty and trying to exclude toolbar and tab bar from the exit transition. if (Build.VERSION....
user avatar
  • 3,167
3votes
2answers
2kviews

Shared Element Transition with Floating Action Button studders

I have a RecyclerView with some cards each containing a mini Floating Action Button. When a card is clicked, the image on the card and the fab are used in a shared element transition. When doing the ...
user avatar
  • 2,625
1vote
3answers
530views

Android activity transition does not appear

I have been trying for some months to get an activity transition to work. I have tried a number of approaches, using XML and styles, and code, to no avail. Below is my most recent attempt. Does ...
user avatar
8votes
2answers
855views

Why Transition.captureStartValues and Transition.captureEndValues have the same View with same attributes?

I have a custom Transition used in shared elements between my two Activities. My transition doesn't work because the TransitionValues parameters has the same View with same attributes in both methods,...
user avatar
4votes
1answer
2kviews

How to restore element in Activity Transition Animation to different position?

I have LinearLayout in a vertical ScrollView with multiple ImageViews, when I click on one image view I do a Transition Animation from (Activity 1) to a Full Screen Gallery (Activity 2), the gallery ...
user avatar
  • 6,577
4votes
2answers
2kviews

Transform a Floating action button into an activity in Android

I have a floating action button that, when pressed, starts a new activity. Is there a way to animate it like on Google's Material design guidelines? I'm talking about something like this (from here).
user avatar
  • 346
7votes
1answer
2kviews

How to get out a childview from RecyclerView?

[EDITED AT THE BOTTOM] I'm trying to code manually these types of animations: Google Calendar If you carefully see those views, they belong to a List or RecyclerView, but they are animated (size ...
user avatar
0votes
2answers
2kviews

Android: Is there a way to do Activity Transitions if one of the shared elements is in a Fragment? Activity A Fragment to Activity B

I understand that there are Activity Transitions to make transitions for shared elements between Activity A and Activity B like so: ActivityOptions options = ActivityOptions....
user avatar
0votes
1answer
677views

Override Material Design activity return transition

I'm writing a new version of an old Android app for work, bringing it up to date by using the material design guidelines, icons and effects. I have a login screen as my first activity, in which I've ...
user avatar
  • 5,593
2votes
2answers
2kviews

Using shared element transitions from a non-activity class to an activity class

I have a non-activty class (precisely a RecyclerView Adapter holding cardviews), I am trying to use "authentic motion" transition from the cardview to the final activity using a shared image element. ...
user avatar
34votes
1answer
2kviews

Crash in Activity Transitions with SharedElement

I'm using Activity transitions from a ViewPager (in the calling activity) with a shared element and content transitions as well. I'm getting this crash when re-entering to the calling activity: java....
user avatar
  • 752
0votes
1answer
1kviews

Start an activity with a shared element from custom view

I want to create a animation between two Activities with a image as shared element, see Customize Activity Transitions My problem: In the source activity the image is drawn on a canvas of a custom ...
user avatar
3votes
1answer
212views

Listening to default activity transition

I'm trying to add TransitionListener to default activity transition like this: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (...
user avatar

15 30 50 per page