Changing Header Of JFXTabPane - java

I am working on a JavaFX project and I am creating an UI based on Google's Material Design patterns. I use a library that includes a lot of components based on this design, named JFoenix.
Basically I have a JFXTabPane with different tabs, and in one of them I want to make something to Search on a TreeTableView, and I got as idea to replace the TabPane's header (where the tabs display) with the Search bar.
I've been looking this up on Google and haven't found anything. Any ideas?

Related

Google's interactive text fields in java swing

I am struggling with something regarding java swing....I need to know how the linear text fields in most google apps are made....the ones where there is only one line in the bottom and how can I make them interactive. I don't need the app designer in net beans(that's our instructor)..Anyone can help please?
PS: I tried so hard to look up for such a thing but all I find is a drag and drop design. I searched everywhere but I found nothing.
The design of the graphic component in Google app is depending to the mobile operative system. In iOS and Android you will have different design for the same component, as you can see:
If you want to change the design of a graphic component (in an App or, in this case, in Java Swing) you have to write a Custom text field.
You can read Customizing JTextField for a simple example.

A horizontal selector for tips

I'm looking to implement tips into my app, and I really like this style of selector I'm attaching here (it's a screenshot from an iOS app). Is there something equivalent to this sort of horizontal selector on the Android side? Or should I just be squashing buttons or other views together?
Thanks for the help, I have also considered using a spinner instead, but I like this sort of style of all the options shown at one time in one line.
Yes. They are called Chips.
Specifically you probably referring to a ChipGroup.
and there's a guide and some examples on how to use them here
They are rather new (might be the reason you were having trouble finding the name of what you are looking for) but they are included in the google material library so that provides support for older android versions.

Audio/Video Capture in PhoneGap/Cordova using external Java plugin

I am developing an android application using PhoneGap/cordova and Javascript. I want to include audio/video capturing functionality in a particular html Div of my application using external Java plugin.
Or some mechanism where I can have a native Java based widget which will come in the same screen at a particular location (rather than replacing the current view completely and occupying the entire screen)
I have searched across the web but could not find an efficient way to do it. Can anyone suggest me any way to handle this?
Is it an option to use the built-in feature?
http://docs.phonegap.com/en/1.9.0/cordova_media_capture_capture.md.html
Try to read this blog,hope will be helpful
http://www.raymondcamden.com/2013/5/20/Capturing-camerapicture-data-without-PhoneGap
Might not be exactly what you want: Instead of DIV use overlay android fragment.
CordovaWebView is part of an Android activity. That means we can overlay a fragment or say dialog at a location we want. Similar to native android development.
Challenge: If you want to show DIV/Dialog in between HTML you will have to take care of lot of positioning related issue.
Solution: You can target to have your DIV/Dialog positioned at the start or end and can then re-position your HTML placeholders.
Things you would require: Cordova Plugin creation, Dialog/Fragment understanding, JavaScript to reposition the DOM elements (if required), Then all is native.
Here is a SO link which can help you.
Please let us know if it helps and it would be great if you share your end solution.

Why are layout parameters not supported in JavaFX CSS?

I've been coding a GUI in JavaFX and have gotten to styling it with CSS. However, I came to learn that there is no support for setting layout parameters such as min-width, pref-width, etc. (These show up in the docs but are filed under WebView only.) Instead of getting a nicely sized TextField, I have one that's spread across the entire screen.
Now I know the solution is to just go hardcode these layout parameters in Java (the documentation pointed me to JavaFX Script but that's been dead since 2009), but I'm wondering why I have to do this? What's the point? I'm not a CSS pro, but it seems like bad design to only abstract some of your styling. Now it's in two places? Are there any plans to change this?
The feature you request has been implemented in Java 8.
See RT-20906 Support setting min/pref/max sizes via css.
It could be argued that layout and styling a separate things and JavaFX already has FXML as a declarative layout system, so perhaps the need for layout parameters in CSS is slightly less if you are using SceneBuilder and FXML for your layout (at least that is what my experience with the technology has lead me to believe).

Android Menu Layout Front page

I want to make a menu sort of similar to Yelps front page.
The left image in particular. I feel like I've seen this on multiple apps, and I also remember thinking that this was actually something built into the default android layouts, but I can't seem to find anything on it anywhere.
How would I go about making this layout? Is there something already built for you, or do I have to make using image buttons and a relative layout?
Google+ also uses something like this on their first page; a lot of apps do now. It's called a dashboard layout. You can see an overview of that here and an explanation of how to create it here.
Using button images and a relative layout is an easy way to do this. For help on that look at this tut: http://developer.android.com/resources/tutorials/views/hello-relativelayout.html

Categories

Resources