-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a simple navigation drawer (WIP) #492
base: develop
Are you sure you want to change the base?
Conversation
doesn't yet perisist across the whole app. This is because we should: (1) decide what goes in the navigation drawer vs. menus (2) stop loading activities and start loading in fragments (3) think about how to use fragments in a cool way.
Okay new changes make menu items work across both main fragment and settings fragment... next is the wifi selection I guess. We really need to figure out why we want the drawer :P OH IDEA! Maybe the wifi items can go there instead of in their own activity? There's space for it right now... What does everyone think? |
Hi @fat-tire sorry for manage this PR so late. I'm actively working in the MSF branch. I can freeze my work to help you with the drawer, do you agree ? I think that the drawer should contain:
any other suggestion is appreciated 😊 I'm looking forward for your reply 😁 |
@fat-tire I want away from home in these days, so I didn't had access to IRC logs. I'll work on #480 today, but I need that you test out the changes I'll make on the good news for f-droid, really appreciated 😊 about the drawer, I think that you got another great idea, using the interfaces names instead of I'm gonna merge @gainan PRs ( with ❤️ ) in the next few hours, than I'll work on #480 . |
will now use a drawer that will overlap the action bar, hiding the menu. It's just a PoC, there is much more work to do.
First, sorry for not being here for months, but I was preparing a big
|
@tux-mind I didn't submit to fdroid-- no idea who did (or maybe they just found it themselves.) I use fdroid and I noticed it came up on its own.. I'll take a look at what you did above... I just did a merge so we should be even with the develop branch now @developpsoft what contest? |
… object get deleted )
@Fattire, the prologin contest.
|
created a progress dialog that will show up only if a certain amount of time has been elapsed and disappear if has been shown for at least another certain time. show such progress dialog when changing interface ( stopping and starting network radar may require some second ). another way is to asynchronous stopping the network-radar but we should deregister receivers and we lost the STARTED/STOPPED intents. in a far future we will support more running instances of network-radar, so you can be notified ( say, with a small icon over the interface name ) that new hosts appearead on interfaces that you are not watching.
Hey, just tried it.. Looking even better--- though there are some issues I found:
Unfortunately I can't look in more detail now but I can try to track these down possibly tonight. Just wanted to let you know about 'em. |
Yeah, thanks for the report fattire, working on ;) I made a new target detailed view, with a pager and other stuff. It's Feel free to change all the stuff as you wish, you are the designer ;) Back to keyboard in a few minutes :)
|
Hey @tux-mind -- Sorry-- I'm confused by what you've been doing. The commits are pretty huge. But as mentioned above the build I have now crashes all over the place when I try to do anything:
Additionally there are some UI issues:
Also, I'm confused by the various abstractions of fragments/activities:
I'm really afraid to make any changes now because I don't have the "big picture" with all these 50+ changed files and new additions. If you could get everything in a "working state", without the obvious crashes, I could try to help. But i'm afraid any changes I make right now are possibly going to clash with the plans you've made. Let me quickly outline my understanding of how things are supposed to work:
Does this make sense? I don't want to touch anything until everything is in a semi-working order tho. The MITM is just a second-order list that pops over the "Action list", just as an individual action item fragment would. |
Hi @fat-tire , sorry for the late reply, I was very busy at work in the past days. anything is crashing, I need more help to get the whole app running properly. let me answer some of your questions. navigation draweryes the navigation drawer that get over the action bar is desired, is the new style according to many blogs. AbstractSidebarActivitygood point, this is one of my doubts about the app design. initially I started working with that concept in mind: one Activity for the whole App. than I thought a solution:
in this way NetworkActivity do not have to manage wireless/msf stuff and it's more maintainable. this is just my solution and I would really appreciate your ( and any other ) opinion. I just read your suggestions about the layout. UI bugsyep, there is a lot. I need your help to kill them 😜 BaseFragmentit's scope is to provide some common stuff to all our fragments. Heartless and InitThose fragments are used to show a simple information to the user. do you remember the old way to do that ? we used to change the layout of the main activity, inflating a different layout. when cSploit initialize itself it will show a when cSploit run without an installed core (usually the first time ) it will show the The main purpose of this two fragments is to reduce the it follow the Unix philosophy:
persistent state of network
yep, but we need to change a lot of things, actually we have only one global target list. MITMMITM it's very messy. your helpI'll work to bring cSploit into a semi-working state, leaving MITM as it is. I'll focus on applying your suggestions thus to make you able to help me. after that I can start working on porting the MITM stuff into the core ( that was the main goal of moving to a native core ). the road to cSploit 2.0 it's very long... but I believe that with collaborators like you it's only a long road, not an hard one 😉 thank you for your precious time ❤️ |
it may require some data not available in the contructor.
should work now, at least you can reach the target details. have to go now, let me known everything else you need 😊 |
Very basic and doesn't yet persist across the whole app. This is because we should:
(1) decide what goes in the navigation drawer (vs. menus in action bar)
(2) stop starting activities and start loading in fragments instead (to preserve drawer)
(3) think about how to use fragments in a cool way (tablet layouts, etc.)
This was added pretty quick but it's a start