Questions tagged [direction]

The movement or orientation of UI elements in a specific direction. This is limited to the user interface. Some example uses are player movements in games or principal element rotation/animation in UI. Use [directions] for maps navigation.

The movement or orientation of UI elements in a specific direction. This is limited to the user interface.

Some example uses are

  • player movements in games
  • principal direction of element elongation
  • directed animations
  • direction of written characters (ltr, rtl, etc.)
706 questions
8
votes
2 answers

how to get current layout direction in Flutter?

I'm working on an application that should also work with RTL layout direction (Arabic and Hebrew languages). I also need to perform some changes in the layout in case the layout direction is RTL. How can I determine what is the current layout…
Emil Adz
  • 40,709
  • 36
  • 140
  • 187
8
votes
1 answer

Google Map app fails to open web link on mobile devices

I have this link in a web page: https://www.google.com/maps?saddr=Current+Location&daddr=-27.360198,153.017331 It works fine on desktop, but on mobile, I get redirected to the Google Maps app and it displays "Unsupported link" Any idea?
Zorox
  • 2,040
  • 2
  • 21
  • 28
8
votes
1 answer

Draw line on Swiping Finger with Arrow following the Swipe path

I am creating an app, in which when I am swiping my finger on screen, that time I am drawing line using code. - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { CGContextSetLineCap(UIGraphicsGetCurrentContext(),…
vntstudy
  • 2,038
  • 20
  • 24
8
votes
3 answers

IOS -webkit-overflow-scrolling scrolls on wrong axis, or not at all

I'm building a mobile app for IOS, with html5. I'm using "-webkit-overflow-scrolling: touch" to get the native inertia scrolling, but it's very buggy. I've solved the issues with content not rendering until the scrolling stops, but one persistent…
doubledriscoll
  • 1,179
  • 3
  • 12
  • 21
7
votes
4 answers

Excel Interop right to left document

I created a new Excel file with C#. When I open the document all the worksheets are align right to left. How can I align the worksheet/workbook/window to display left to right grammatically?
dubi
  • 2,360
  • 2
  • 22
  • 23
7
votes
2 answers

Google Maps API (JS) Create a route using PlaceId in waypoints

The route create only if I use LatLng or String params but I need create it by PlaceId but it doesn't work example: directionsService.route({ origin: {'placeId': 'ChIJc1lGdwfP20YR3lGOMZD-GTM'}, destination: {'placeId':…
7
votes
3 answers

What is TextView Gravity by default?

It seems TextView text direction (or Gravity) automatically changes in Android when it gets text from RTL resources such as Arabic text or LTR resources like English. What is the default TextView direction (or Gravity) and how to get that? Actually…
Mariox
  • 135
  • 2
  • 11
7
votes
2 answers

HTML select and option mixed directions (ltr & rtl)

I have a select box that I want to be aligned to the right, but I want to keep the options dropdown aligned to the left. Like so: And the CSS: select { direction: rtl; } option { direction: ltr; } But…
Kyle Shike
  • 345
  • 1
  • 4
  • 12
7
votes
4 answers

How to get cardinal mouse direction from mouse coordinates

is it possible to get the mouse direction (Left, Right, Up, Down) based on mouse last position and current position? I have written the code to calculate the angle between two vectors but I am not sure if it is right. Can someone please point me to…
Ioannis
  • 2,985
  • 4
  • 25
  • 19
7
votes
2 answers

Android SimpleOnPageChangeListener - Determine swipe direction

I have a class that extends SimpleOnPageChangeListener and in my onPageScrollStateChanged method I want to be able to determine whether the user has swiped forwards or backwards through the ViewPager. I.e. Whether they have swiped left-to-right or…
mighele
  • 93
  • 1
  • 5
6
votes
3 answers

Rendering

I have an ul with variable element count. When the li are too wide for list to handle them in single line it breaks the line and starts to render the li on lower line so I get something like this: x - stands for element of a list | - stands for list…
S3Mi
  • 491
  • 4
  • 10
6
votes
6 answers

detect mouse direction

I am trying this code to detect if the mouse direction is going up or down:
var mY =…
daniel__
  • 11,633
  • 15
  • 64
  • 91
6
votes
2 answers

How to add multiple arrows to a path according to line direction using ggplot2?

I have a data frame that I want to plot a path from. The data frame also indicates the direction the arrows should have. I have been using the ggplot2 package and the geom_path() function for this, however, I want to add arrows that indicate the…
Daniel Valencia C.
  • 2,159
  • 2
  • 19
  • 38
6
votes
1 answer

how to find wifi signal direction of another device in android?

I am using my android phone as Access Point. Now I want to find the distance and direction of the wifi devices connected with my phone. Please help me through suitable example and code. Thanks in advance.
Osmani
  • 61
  • 1
  • 1
  • 2
6
votes
3 answers

Defining page direction dynamically - Angular 5

I'm trying to set the page direction (RTL or LTR) dynamically on my Angular 5 project. In index.html, if I write statically one or another in body tag or app-root selector, works fine. However, if I…
Atoyansk
  • 233
  • 5
  • 20
1 2
3
47 48