Похожие чаты

Hi, what's the best way to control the parent activity's

ui from the fragment class? I need to hide/show a fab (which is inside the activity's layout) by press of a button (which is located at the fragment).
I created a ViewModel for that. What my question is:
Is this a right-way to handle such a thing like this? Any ideas?

2 ответов

9 просмотров

https://stackoverflow.com/questions/14493700/how-to-access-ui-elements-in-parent-activity-from-fragment

almayayım-Cormac (aka ATB) Автор вопроса
Behnam Banaei
https://stackoverflow.com/questions/14493700/how-t...

using ViewBinding? BTW i've already looked there...

Похожие вопросы

Обсуждают сегодня

Anyone here suffers from unexplained aural migraines, who would be up for talking for a bit? Doesn't *have* to be aural, but I am not asking about headaches, I mean actual mi...
Martin Rys
55
Сonst magicTgHTML = (text, entities) => { let processedText = text; let offsetShift = 0; entities.forEach(entity => { const { offset, length, type, url, ...
Андрей
1
A couple thoughts from a random internet stranger: 1. If you want this project to gain traction you cannot keep being negative. If I just came here after finding out about Kd...
Eric Wild
45
Здравствуйте товарищи! решил всё таки поставить линукс. Порядок создание разделов /boot/efi 200МиБ; /boot 1000; подсистему / 80000; swap 8Гб Будет норм?
K2
19
How Will #Monero Be Attacked? First of all I want to tell you that this is not teaching the network attackers, the central regulators. They already know how to attack the net...
Li₿ΞʁLiøη
3
подскажите пожалуйста, как мне освободить результат записанный в переменную result? в чем проблема подскажите если МОЖЕТЕ?
Михаил Helper
28
we need to look at what power and capital monopolies are seeking to prevent or control in order to understand why it is important to keep building right now. the elites are go...
Noah
1
есть тут кто-то , кто только начал изучать си? если проходите курс на степике или как-то сами изучаете, пишите, может, скооперируемся?..
Eule
25
Слушайте, ещё такая интересная задачка. Сделан аудит действий пользователей через триггеры в базе, соответственно каждый пользователь имеет свой логин и пароль в базе. Это пре...
Сергей Бычков
12
Скажите, тут нет проблемы? IMyInterface1 = interface function GetInterface2: IInterface2; ... function TMyInterface.GetInterface2: IInterface2; begin Result := TI...
Ruslan aka DUDE
18
Карта сайта