S
S
Semyon Semyonov2016-02-09 09:26:05
Android
Semyon Semyonov, 2016-02-09 09:26:05

How to return from with a fragment in another activity that called it?

There are two activities containing lists. From these two lists, you can open the element itself, i.e. a separate activity with a fragment . It turns out that an activity with a fragment can have two entry points, either one list or another.
How to find out from which list we came from, so that we can return to it?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
B
belozerow, 2016-02-09
@belozerow

In theory, you just close the current activity and it returns to the previous activity.
Those. all you need is
getActivity().finish();

P
Philipp, 2014-10-09
@zoonman

https://github.com/yiiext/smarty-renderer

N
Nikita Gusakov, 2014-10-09
@hell0w0rd

Please, no Twig

why?

A
Artur Bordenyuk, 2014-10-09
@HighQuality

Twig is a great templating engine that even has a js implementation . The only thing I don't like is the _how_ it was implemented in yii2.
use in templates looks somehow off topic. :)

P
Push Pull, 2014-10-09
@deadbyelpy

Blade, RainTPL, Handlebars

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question