Skip to contentSkip to conversation

Introduce Navigation component to Wireguard-Android

DISCUSSION Lao Deng 2 participants 2 messages Mar 21, 2022 – Mar 24, 2022

lore
Share & tools
lore

Lao Deng

author
#0 lore raw

I am going to add some un-related functions to Wireguard-Android . The final app. should look like the demo of com.google.android.material.bottomnavigation.BottomNavigationView , which  consists of a  bottom navigation component and several  independent fragments( or activities ) .

I am wondering how to introduce this navigation component to the wireguard-android  project with the least modification :) Could you please shed some light on it ? Thankyou for your attention :)

#1 lore raw

Hi,

Quoted 7 lines · Lao Deng

I am going to add some un-related functions to Wireguard-Android . The final app. should look like the demo of com.google.android.material.bottomnavigation.BottomNavigationView , which  consists of a  bottom navigation component and several independent fragments( or activities ) .

Quoted 5 lines

I am wondering how to introduce this navigation component to the wireguard-android  project with the least modification :) Could you please shed some light on it ?
Thankyou for your attention :)

I'm a bit confused, is this change something you are proposing for the upstream project or are you looking for assistance to implement this in a fork?

I don't think we want a Bottom Navigation component in the app itself since it adds no value to the app, the only new destination we could add with it would be a quicker entry into settings which is not a high-priority destination requiring such a prominent navigation action.

If you want to add it to a fork, the only real help I can provide is that MainActivity inflates the main_activity.xml layout which in turn handles inflating TunnelListFragment, so you'd want to make changes to MainActivity and its layout for adding the component.

--
Harsh Shandilya