problems aligning ImageView and label
Hello
I have a container with LayoutOrientation.LeftToRight guidance.
Inside I just an ImageView and etiquette. When I try to organize their
that the icon and the text display on the same line, I have problems.
Here's how it looks by default (without any filler etc.):
(the container - green - perhaps a bit more space below)
the 'text' is not visible on this image more).
I think that all see you my problem. The picture starts to the right of the
edge of the container (it is aligned with its upper part), so that there is a
space between the label and the top edge of the container.
I want the image and name appear seemingly on the same horizontal
line. How can I achieve this?
PS if I put the container topPadding to something, then the two components
go down simultaneously and yet they will not appear on the same line.
Thank you.
I think I found the solution by setting verticalAlignment: VerticalAlignment.Center
to the ImageView for example.
Tags: BlackBerry Developers
Similar Questions
-
ItemRenderer problem with DataGrid and label
<mx:DataGrid width="100%" height="100%" rowCount="5" dataProvider="{publish_status}"> <mx:columns> <mx:DataGridColumn dataField="status" headerText="Status"> <mx:itemRenderer> <fx:Component> <mx:Label text="{data.status}" fontSize="12"> <fx:Script> <![CDATA[ override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); if(this.text == "A"){ setStyle("color", "blue"); } else if(this.text == "B"){ setStyle("color", "green"); } else if(this.text == "C"){ setStyle("color", "red"); } else{ setStyle("color","white"); } } ]]> </fx:Script> </mx:Label> </fx:Component> </mx:itemRenderer> </mx:DataGridColumn> </mx:columns> </mx:DataGrid>
I created an ItemRenderer online as described above. I understand that it is recycled and have included the last "else" statement to return the color by default if all tests fail. The problem is that the text still appears in bad colors. I did a lot of reading on the forums but I can't understand what Miss me.
Thank you.
BTW, I am using Flash Builder 4.Try changing the color in a dataChange event place in a
override updateDisplayList.
-
Snapping when you align objects and spaces
Not sure if this is the right place to discuss this kind of thing, but it is a curious problem I wasn't able to track down a solution.
I've got InDesign on my work PC and laptop. One of the features that I like is the ability to align objects and snap the based on the spacing or where they are on the page, etc. - that is when you move a picture, it will snap to align the objects around it with ease. For some reason, it is now disabled in EACH document in inDesign on my PC but its still going strong on my laptop. My conclusion is that I inadvertently touched a keyboard shortcut to disable this feature.
Noobish completely in question - but how I turn it back on?
Thank you 1 million,
Pete
This ended up being the right direction. The feature I need to reactivate was "Guides" (ctrl - you and I presume, cmd - u).
Thanks for the help.
-
Aligned margins and paragraph space
Hi guys,.
Is it possible to have bottom aligned margins and a better separation/paragraph of title? Here are the samples
(1) nice bottom aligned but too close position of paragraph margins
(2) section nice / point of separation but very ratings looking for substantive margins
I think it is a very common thing when text is right on a grid of text... but I saw the annual report and other samples that solves the problem. How?
See you soon,.
We will study your second example that you have linked above. In the left column the text above the position and the position itself, all seem to be on the 12pt baseline grid, but the following text looks like he has some 'space after' added in the paragraph style, maybe 6 pt or half a line. You have made the position of space by adding a blank line (empty paragraph).
If you want to maintain the grid reference for the body of the text, you have two options. Set snap to grid in the style for at least the first paragraph of the body after a cap or maintain the attack throughout all the paragraphs as a multiple of the spacing of the grid. Another way of looking at this, is that your headers should float in a space that is equal to a multiple of the spacing of the grid, two, three or maybe four lines. If you want half a line after the title, you have to find a way to add the other half a line so the total is an even multiple. one way to do that is to increase spacing applied to the section push it down and leave more space above. Another is to add space, and a third is to add a space after the paragraph before the title.
The big problem is what happens when the title is at the top of a column. If you use one of the paragraph spacing options, the extra space is ignored by ID and disappears in the upper part of the column. If you add to the leading value, you must set your text field for the first options 'leader' base line or the extra space is also lost on the top, and in any scenario where the title falls in high and space is lost at the top of the column to your body text does not have to align with the grid in this column. If you set the first base to attack line, you get the desired spacing, but now there's a blank space at the top of the column that you probably don't want.
What all this boils down to is you can't have your cake and eat it, too. To keep the body of the text on the grid, set the attribute align to grid property and accept that the gap is more important between the titles and body text when the title is a top of a column or when the title is run more of a line, OR set the first base property for your blocks of text to attack and make sure that the principal assigned to your headers is equal to a multiple of the main complete assigned in body text AND configure the time space equal to the leading value for the body of the text (and any space before is also set to a multiple full body of text leading).
First base line set to attack and put body to snap to grid:
First put in charge, all the text base line using this multiple head (that is to say, the principal amount is twice the attack of the body of text):
First base line the leading value (can also be assigned to the rise), all text uses the same type of size and fine:
In all the examples above, I added to the heading style space equal to the attack of the body of text and equal to two times the space.
-
Alignment of the label fast?
Hi all
I want to align the prompt label and the guest in the coast to coast path, as explained in the link below.
http://obiee101.blogspot.com/2009/04/OBIEE-prompts-putting-label-in-front_18.html
I was able to achieve. But is it possible to increase the space between the label and the prompt?
Thank you for your help in advance.
Thank you
KnaniChange what you have this:
Replace the 15px at some distance you want.
Hope that's what you're after,
J
-
Basically what I'm doing, is use the "previous page" button to navigate to the different labels on the timeline. The problem is that the labels are in different scenes (for example, label_5 is in scene 3). So, whenever I go to a label outside the scene, I get an error message.
var myLabels:Array is ["label_1", "label_2", "label_3", 'label_4', 'label_5'];.
var nextLabel:String;
stage.addEventListener (KeyboardEvent.KEY_DOWN, keyPressed);
function keyPressed(evt:KeyboardEvent):void
{
Switch (evt.keycode)
{
Case Keyboard.PAGE_UP:
var inc:int = myLabels.indexOf (currentLabel);
Inc. = Inc. < myLabels.length - 1? Inc. + 1:0;
= String (myLabels [Inc.]) nextLabel;
gotoAndStop (nextLabel);
break;
}
}
Is there an easy way to solve this problem?
Thank you very much in advance.
Scenes were never a good idea - but if you use them you will need to make this different. Either use two tables - one with the images that you have now and a second with stage names. Or change the table, it takes now consist of an array of arrays - with berries of sub containing frame, values of the scene. I'd probably use two tables, but as there is less change... something like this should do.
var myLabels:Array is ["label_1", "label_2", "label_3", 'label_4', 'label_5'];.
var myScenes:Array is ['scene1', 'scene1', 'scene2', 'scene3', 'scene3'];.
var nextLabel:String;
stage.addEventListener (KeyboardEvent.KEY_DOWN, keyPressed);
function keyPressed(evt:KeyboardEvent):void
{
Switch (evt.keycode)
{
case Keyboard.PAGE_UP:
var inc:int = myLabels.indexOf (currentLabel);
Inc = Inc.< mylabels.length-1="" inc+1="" :="">
nextLabel = String (myLabels [Inc.]);
Stop (nextLabel, myScenes [Inc.]);
break;
}
}
PS - no need to cast nextLabel one string as you have - is already a string in the table.
-
Problem with IMovie and Quick time
Hey everybody,
I am faced with an unexpected problem with Quicktime and I Movie, and I was wondering if someone had already known that:
I want to create a film based on shots from my personal camera. I started to work with IMovie to create a sequence of opening and added his musical band. I exported the scenes in Quick Time format without any problem. However, when I merge the exported sequence of I film with shots of my video camera, the soundtrack is completely eliminated.
I checked on the Internet and saw that there might be a problem of "Codecs". To avoid this, I exported the sequence IMovie with Codecs of same as one of my video camera files.
Now, if I compare the files exported from I Movie and those of my video camera, they have identical characteristics. However, the soundtrack will always disappear when I merge them.
Could someone please help me solve this problem?
Thank you very much in advance.
Concerning
Could someone please help me solve this problem?
Not only based on what you already said.
I want to create a film based on shots from my personal camera. I started to work with IMovie to create a sequence of opening and added his musical band. I exported the scenes in Quick Time format without any problem. However, when I merge the exported sequence of I film with shots of my video camera, the soundtrack is completely eliminated.
How would you"merge" files? (I.e. a "QuickTime" format is any form of data compatible with the platform of supply and the specific structure of QT incorporated into real employment that is stored in a container of MOV file on any of up to 99 tracks possible). Also, what app do you use for reading the file 'merged '? (For example, some media players ignore secondary audio tracks as a result of some methods of 'fusion' of files so it is important to know how the files are "merged," whether or not the audio data are "scattered" several tracks, and/or if the Media Player supports playback of multiple, sequential audio popular.)
I checked on the Internet and saw that there might be a problem of "Codecs". To avoid this, I exported the sequence IMovie with Codecs of same as one of my video camera files.
The specific codecs and settings using the specific version of iMovie? (The current Mac OS X operating systems have two X QT and 'classic' Qt integrated structure so it is important to know what structure is used here and how).
Now, if I compare the files exported from I Movie and those of my video camera, they have identical characteristics. However, the soundtrack will always disappear when I merge them.
As a general rule, you should review the file "merged" to determine why it does not play back correctly rather than comparing the characteristics of the source being merged files. The main problem here seems to be in your project workflow. That is, you seem to be when you perform an operation in two steps rather than edit several iMove multimedia files and then export the combined results in a video the video and audio tracks have been flattened and exported in standard compression formats with unified settings, features and the.
-
You have Firefox OS for Windows 7-64 bit? If so can you please post clear and label Firefox OS? I sincerely thank you.
BONES of Firefox is a new operating system for mobile devices. As far as I know, it cannot replace Windows on a PC. If you are looking for a simulator get a peek, see this article: https://developer.mozilla.org/docs/Tools/Firefox_OS_Simulator
-
problem with Safari and the opening of sites
problem with Safari and the opening of sites
Please describe the problem in more detail?
Try to reset the settings of Safari:
1. open Safari
2. click on the Safari menu at the top (to the right of the Apple logo)
3. Select the Preferences/Privacy tab
4. click on remove all data from the Web site
5. close Safari.
Remove cache Safari files:
1. click on finder
2. look for the menu GO to top
3. click on GO and hold down the option key. This will show a user library folder.
4. click library and find the Caches folder
5. in the folder caches com.apple.Safari Ouvrezledossier
6. move the Cache.db file Trash.
This should solve the problem. If it does not help, try to disable the Safari extensions
1. open Safari
2. click on the Safari menu at the top (to the right of the Apple logo)
3. Select Preferences
4. find the Extensions tab
5 disable all extensions of
6. relaunch Safari
-
Create the new profile has solved my problem of crash and I copied files and folders from my old profile to my new but I still can't have my favorites. What I am doing wrong?
You can also restore bookmarks from a JSON backup in the folder bookmarkbackups.
-
I've read about problems with Illustrator and photoshop on EL Capitan, but these seem to be in October 2015. She improved at all? I need to upgrade that I am running an old OS v but I need to run CS5. Can not afford to go to CC. I have a Macbook Pro.
CS5 and 10.11 are not supported and will never be supported by Adobe or Apple.
However it works for some, more actually, but not all. There are sporadic problems with Illustrator, Photoshop seems to be the best. Do not expect an improvement and keep in mind that anyone from Adobe, Apple or anywhere else will fix it.
Do a clean install
Make sure you have the Apple Java
h ttps://support.Apple.com/kb/DL1572?locale=en_US
Make sure you have your serial number and if you are having problems with the serial number or the serialization however adobe of web server will not support your problem.
update the application via photoshop.
-
problem with java and pogo games
I use mozilla, and now with the problems with java and hackers cannot play my pogo, what can I do? I disabled my java I tried java 6 does not work or is not safe, what is a safe way to play games on pogo using java?
Pogo.com is determined as a website SAFE to use Java with Mozilla Firefox?
-
I'm having a lot of problems with firefox and cannot figure out how to get help. It all started when I updated to 13. I get all kinds of advertising popups, I can't play a game on FaceBook called Farm Town at all, and I get a popup of AVG on the cookies that I can't get rid of. These issues are causing me to use Chrome quite often, although I like Fox better. I've searched and searched how to get help and find nothing. How can I get personalized technical help? These problems will not occur in Chrome at all. Thank you.
Do a check with some malware malware, analysis of programs on the Windows computer.
You need to scan with all programs, because each program detects a different malicious program.
Make sure that you update each program to get the latest version of their databases before scanning.- http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
- http://www.superantispyware.com/ - SuperAntispyware
- http://www.microsoft.com/security/scanner/en-us/default.aspx - scan Microsoft Security
- http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
- http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
Alternatively, you can write a check for an infection rootkit TDSSKiller.
See also:
- "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
-
Problem with youtube and other video sites
I have a problem with youtube and other video sites:
Everything is up-to-date (flash, FF, my plug ins.) but I get crashes when loading the video. I can hear the sound but I see only the first frame of the video.
I've reinstalled flash/firefox or tried updating them again for about 4 times now and my cookies/cache has also been errased which i usually don't do. If i enter FF's safe mode it also freezes.
I hope someone can help, I looked for answers on google before and I tried everything I saw, but it did not help.
GRTS,
agrashI had the same problem, I uninstalled the plugin Flash player (Adobe Flash Player 11.0.1 152) and the problem is solved. I installed the plug-in again and the problem came back. So right now I have no flas Player liked-in, but I don't have too much problem. I hope that I will not find another problem, but it seems that everything is OK.
-
My book pro 15 Mac since April 2014 retina does not work because of problem of logicboard, and without any reason. Fact it is passed to one of you so early? Do you know something about any recall for this problem?
There is no repair program from Apple for any 2014 Mbit/s at the moment. Have you taken your MBP to a store for a FREE Apple genius bar?
Ciao.
Maybe you are looking for
-
Description of eBay will not charge
I can load the site eBay and search for items, but when loading pages where this indication should be is a box that is directed upwards 'server not found '.Firefox can't find the server at vi.ebaydesc.co.uk. Any help much appreciated
-
Over time battery life is getting worse?
Since I got this phone, I feel of the continuous battery life to make worse. Last semester with JB, I got about 10 hours before my phone would die in school who is always looking for a signal. Now with school where someplaces have no signal and some
-
I think someone is using my computer without my permission
original title: anomaly I think someone used my computer without my permission, how can I check to see what e-mail and facebook accounts were consulted on my machine.
-
DOES MAKE A DIFFERENCE WHAT ROUTER I BUY IF I PLAN ON WIRED NETWORK
First OFF... Please excuse my lack of computer savvy. I know just enough to get me in trouble. I have two computers in the House that I intend to run the my modem cat6 cable cable on a new router (type advice pending) then on my two computers. I am
-
I need help for a modified file back to an earlier if possible. Someone knows how to do this?