Posts

Showing posts with the label user-interface

Different look/style for specific item on BottomNavigationMenu

Image
Different look/style for specific item on BottomNavigationMenu I am currently building a Xamarin Android application, and I am trying to customize the BottomNavigationView. I would like to be able to change the style of a specific menu item in the BottomNavigationView from the following: To this style: I have had a look at the following question: Different look/style for specific menu item on ActionBar but it seems more targeted towards the action bar rather then the bottom navigation. I'm guessing this would either need a custom control implemented or use of reflection to achieve the desired result? Any third-party libraries that implement this sort of functionality, aren't particularly helpful as majority of them are written for native android and not xamarin. Any help in either Xamarin C# or Native Java (that I could convert) would be great thanks. Currently I tried setting a custom action layout on the menu item programmatically: var nav = FindViewById<BottomNavigationVi...

Issues in order to adapt label_image.py

Issues in order to adapt label_image.py I'd like to modify label_image.py, my main goal is to create a GUI. Some words about my ideas I'm trying to modify some stuffs in the code (https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/label_image/label_image.py), but it doesn't work. I first tried to had a filename = askopenfilename() line, which it seems to work. filename = askopenfilename() Then I don't know how I can adapt the code. For example, in order to load MY graph, which line have I to adapt? Maybe line 26 : def load_graph(model_file) : and putting def load_graph("c:my_path_hereowngraph.pb): ? It doesn't work either. def load_graph(model_file) : def load_graph("c:my_path_hereowngraph.pb): I have the same question for label, and also for the choosen picture: filename = askopenfilename() --> where can I load MY picture (I tried to replace all file_name by filename but it fails). filename = askopenfilename() file_name filen...