I've an E4 application where the toolbar needed a custom colored button. I'm using a ToolControl and creating a OButton. The problem is the button gets chopped off, Is there a way I can increase the height of the toolbar?
Related
In Edge, the toolbar buttons on this panel display individually, but in Chrome they are bunched into a ">>" button. Is there anything I can do to make Chrome display them the same as Edge? This code is 4 years old. Anecdotally, it was fine in Chrome until recently (I can't be sure).
Code:
ToolBar toolBar = new ToolBar();
toolBar.add(okButton);
toolBar.add(cancelButton);
toolBar.add(addButton);
toolBar.add(deleteButton);
toolBar.add(copyButton);
FramedPanel panel = new FramedPanel();
panel.setHeading(p_ChartDTO.getChartName() + " - Chart Series");
panel.add(m_ChartQueryGrid);
panel.getButtonBar().add(toolBar);
panel.setSize("800px", "350px");
I haven't used these classes such as Toolbar, but it looks like if the horizontal size of the contents exceeds a certain threshold it renders it in a popup menu instead.
If part of the styling is not specified it will come from the default stylesheet of the browser. Perhaps recent versions of Chrome changed a style size slightly and this has affected Toolbar so that the total size has exceeded some threshold.
If you remove 1 button, or reduce the length of a button's text (e.g. change "Delete" to "D") does it take on the desired behaviour in Chrome?
If this is the case, perhaps specifying the size of the Toolbar or ButtonBar may help, as the default is insufficient.
Currently my custom toolcontrols are outside the toolbars because of the scaling issue in E4. Toolbar does not scale correctly in E4
Now my client want to have different toolbars for all the toolcontrols, so that the user can rearange the order of the toolbar and separate the toolcontrols from each others. How is this possible in E4? I know the toolcontrols inside the toolbar is not scaling the toolbar itself. But is there any workaround to place a toolcontrol inside a toolbar?
I added ahidden icon to the toolbar when adding the custom toolcontrol to it. Eclipse scales the toolbar correct know.
I'm a bit of an Android newbie. I have a toolbar on my MainActivity which has a home button on the left (backarrow). I'm setting it like this
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
activity.setSupportActionBar(toolbar);
activity.getSupportActionBar().setDisplayHomeAsUpEnabled(true);
I noticed that on other Android apps when I hit the home button it will change background color momentarily to show the user that the click has been registered, and this is what I want to achieve. How can I do this? Is it a simple config change or is it something I have to implement myself?
Thanks for any help!
I have a Fragment ,in that Four Progress bars,in that two progress bars have a Maximum limit
I have one Custom Progress in that one Text view in that text view time is Updated for every minute and Total Hours for that progress bars 11 hrs
for example
the time is updated for one minute,in the bottom text view for the progress bar is 11hrs 59 min left like that its is showing
That is working fine for me,so here My doubt is
this 11hrs 59 min left must be 0hrs 0 mins automatically My progress bar color will change into red color and start from red color
how we can do this?
You can adjust the color of the ProgressBar programatically (you can do this whenever you need based on the time, or other code).
Get a reference to the ProgressBar, then use the APIs to set the color, here is an example of setting the color of the Indeterminate progress bar to blue:
ProgressBar mainProgress = (ProgressBar) findViewById(R.id.progress_main);
mainProgress.getIndeterminateDrawable().setColorFilter(this.getResources().getColor(R.color.light_blue_500), android.graphics.PorterDuff.Mode.MULTIPLY);
As #Ish said, progressDrawable is what you are looking for. You just make a simple drawable asset in the color you want to replace the standard progressBar with and set it accordingly
I am developing an application to be used in an Android TV environment. I am having a problem about how to implement this using the D-Pad navigation.
I want to achieve this effect.
But I am having problems like:
how could I resize the ImageView at run-time?
how to have a hovered-state ImageView?
how to move the hovered button according to your d-pad input?
Currently this is my what I have done.
I implemented this using horizontal linear layout and ImageViews.
Thank you