Questions tagged [floating]

This tag is related to GUI elements that either should be or appear to be floating above a panel or background, or in case of certain types of general layout.

This tag is related to GUI elements that either should be or appear to be floating above a panel or background, or in case of certain types of general layout.

800 questions
3
votes
1 answer

The meanings of "floating invalid" from ifort compiler

I use intel's ifort compiler for my Fortran code. Sometimes I get an error during running: forrtl: error (65): floating invalid The compiler does not give the exact "invalid" reason. To my understanding, does this suggest one of the…
uPhone
  • 313
  • 4
  • 13
3
votes
2 answers

Floating panels left and right CSS

I need to put two floating panels on a Map but the float: right doesn't work. please help. I tried everything but seems like the position: absolute disable the float: right or something. Is there any way to align the second panel…
Sergio Mendez
  • 1,311
  • 8
  • 33
  • 56
3
votes
2 answers

How to generate virtual touch on screen?

I want to generate a touch event via programming on the screen outside of my app. My app currently has a floating window. I am trying to make something like repetitouch I used the Hover library to create a floating window to display some message and…
Manas
  • 31
  • 5
3
votes
2 answers

How to create "floating TextViews" in Android?

I'm programmatically putting various TextViews into a LinearLayout with a horizontal orientation. After 2h of research I couldn't find out how to tell Android not to squeeze all the TextViews in one line but instead to "float" non-fitting TextViews…
Dennis Winter
  • 2,027
  • 4
  • 32
  • 45
3
votes
1 answer

Android floating window: move it to dismiss

I have a floating window, and now I want to touch and move it to dismiss, whenever I touch on floating window, there is circle shape showed and move floating window toward the circle shape to dismiss itself. Please see the picture below: How to do…
Kanguru
  • 51
  • 4
3
votes
2 answers

Multiplying two IEEE 754 floating point numbers in MIPS

I am trying to multiply two IEEE 754 numbers in MIPS assembly without using floating point operations. I have two floating point numbers stored in $a0 and $a1 multiply_fp: #$s0 = final sign bit, $s1 = final exponent, $s2 = final mantissa …
Kenta
  • 369
  • 1
  • 10
  • 30
3
votes
2 answers

Greater than or equal for floats failed

I was running a small python test I wrote against some data and got some weird results. Boiled it down to this: priceDiff = 219.92 - 219.52 if(priceDiff >= .40): print "YES" else: print "NO" The result is "NO" Why is 0.40 not >= .40?
yellowandy
  • 89
  • 1
  • 1
  • 7
3
votes
1 answer

Why does bitwise-AND with 0xffff achieve in (uint32_t)(((f - (int)f) * 65536.0f))&0xffff?

This question is regarding a code example in Section 7.4 of Beej's Guide to Network Programming. Here is the code example. uint32_t htonf(float f) { uint32_t p; uint32_t sign; if (f < 0) { sign = 1; f = -f; } else { sign = 0; } …
Lone Learner
  • 18,088
  • 20
  • 102
  • 200
3
votes
2 answers

Android floating keyboard

Is it possible to change programmatically the position of the keyboard? I'm developing an app for a totem, and if the keyboard appears docked on the bottom, it's very difficult to use. I tried to create a custom keyboard extending the…
cark
  • 254
  • 2
  • 9
3
votes
1 answer

Python: np.vectorize to return "float"

Running the following code: import matplotlib.pyplot as plt import numpy as np def xon (ton, t): if ton <= t: return (t-ton)/5 else: return 0 vxon = np.vectorize(xon) t = np.linspace(0, 49, 50) xontest = vxon(0,…
user_185051
  • 426
  • 5
  • 19
3
votes
0 answers

Fixed point square root function wrong results for big numbers

Hello friends and enemies I have this square root function from a library called libfixmath which works great, however from 32767.0f and above it starts returning wrong and negative results. The numbers I need square root of are rather big, up to…
monkey
  • 31
  • 2
3
votes
2 answers

FABM: Floating Action Button Menu

I have Floating action menu and I use this library to make it 'com.github.clans:fab:1.6.1' Now I need change my icon when I click on it. I have some icon, and when I click on menu I need to transform it to another icon(icon plus). Is it…
metalink
  • 594
  • 2
  • 8
  • 21
3
votes
4 answers

html/css floating image right of text

I am attempting to float an image to the right of some text currently wrapped in the P tag inside a parent div. using float: right for the image takes it all the way to the right but under the text. I would like to see them aligned side by side,…
Richard Rodgers
  • 617
  • 1
  • 7
  • 17
3
votes
1 answer

'Practical' double rounding in Java

So I've read a lot on this, so please know that I get that a number like 0.6 can not be represented absolutely accurately as a Java double - but I do know that there is a version of a double that represents the number 0.6 closely enough that the…
tsquared
  • 119
  • 6
3
votes
1 answer

Floating button Android Lollipop

I have a style so defined:
user3253955
  • 433
  • 1
  • 8
  • 17