How to open Chrome Custom Tab in a Dialog in Android Application - android

In my current Android application I have a requirement to open a DialogFragment to display a list of results.
Each Result has an associated url that explains the item in more detail.
I can open a Chrome Custom Tab with this url, however it closes the DialogFragment and the user has a poor experience.
Is it possible that I could open the Crome Custom Tab within its own Dialog?
That way my Results DialogFragment should not be closed, and the user can return directly to the results list.

Currently, a Custom Tab uses the entire screen, so it's not possible to use it in a similar way to a DialogFragment (which doesn't use the entire width/height of the screen).

Related

Is it possible to show custom dialog on top of Chrome Custom Tabs?

I would like to show a custom dialog for network connectivity issue on top of Chrome Custom Tabs, which is already launched and loaded my login content.

How to make a fragment dialog draggable on an activity

So, I am developing this app that needs a dialog screen over a map that chooses an item and is dragabble, that means that it can go up or down. How can I do that?
A good example is the instagram share button.
The component you want to use is a BottomSheetDialog: https://developer.android.com/reference/android/support/design/widget/BottomSheetDialog
This type of dialog has native support for being dragged.

android: best view class to create popup page

I am developing an android camera app that allow popup of page upon pressing a button (besides the shoot button)in the view of the photo capture activity for accessing twitter services, including login(of coz with button), view tweets(listview or list fragment) of bookmarked users and posting tweets.
I am considering the approach to build the layout for the popup stuff. What come across my mind are dialog fragment, popupwindow and simply another activity.
Considering my case, what view is recommended for the popup component?
Depends on the content of your popup:
If popup contains only a list of items use PopupWindow.
If popup contains only a few buttons like ok/cancel some text etc. Use DialogFragment.
If you have more stuff, you should probably use Activity.

How to manage a back stack within a dialog on android

Can a dialog on an android tablet manage its own back stack? In other words: Can you show multiple levels of navigation within a dialog?
On iPad, this is a very common design pattern: A sheet or popover with a navigation bar on top.
When I try this on android (using Fragments) I only have one FragmentManager: the one from the hosting FragmentActivity. I can push multiple dialog fragments on its back stack. The visual effect of such a push, is that one dialog (A) disappears and another one (B) appears. As the user taps 'back', B will disappear again, and A will re-appear again. That is usable, but I was hoping for a smoother transition that feels more like a single context.
A Dialog is a sub-window within an Activity so no, the framework doesn't manage back stacks for Dialogs automatically for you.
What you can do instead is use an activity and give it a dialog theme. This activity will look like a dialog (i.e. translucent background, etc.) but it will have all of the capabilities of a normal activity. See this link.

show dialog seamlessly after opening an activity

I want to show a dialog (kind of splash screen) when my application is opened. Therefore I put a create and show dialog into onCreate(). The dialog opens indeed but first, the empty activity (white background) is shown.
There must be a possibility to prevent that empty screen to be shown? A lot of apps have a behaviour like that. I would like to have the dialog as the actual first screen to be shown to the user.
it would be better if we have code to see tasks taking time as per general solution
Android SplashScreen
Show spinning wheel dialog while loading data on Android
http://blog.iangclifton.com/2011/01/01/android-splash-screens-done-right/

Categories

Resources