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
143
votes
20 answers

How to recognize swipe in all 4 directions

I need to use swipe to recognize swipe gesture down and then right. But on swift UISwipeGestureRecognizer has predeterminate Right direction.. And I don't know how make this for use other directions..
user3739367
  • 4,161
  • 6
  • 20
  • 18
89
votes
7 answers

right-to-left (RTL) in flutter

I was using Flutter more than a week, and wanted to create an Arabic (right-to-left) app. I was reading Internationalizing Flutter Apps, but it didn't mention how to set the layout direction. So, how to show right-to-left (RTL) layout in Flutter?
64
votes
8 answers

How to detect scroll direction

I want to run a function when someone scrolls down on an element. Something like this: $('div').scrollDown(function(){ alert('down') }); $('div').scrollUp(function(){ alert('up') }); But those functions don't exist. Is there a solution to this…
Rik de Vos
  • 3,467
  • 5
  • 28
  • 34
45
votes
10 answers

Android : Change entire app layout directions programmatically

How can I change entire app layout direction to RTL? I am writing an app that user must select it's language in first launch and the layout should change based on user selection to RTL or remains LTR. I used to add android:supportsRtl="true" to the…
35
votes
8 answers

Why words are shuffled when I insert English words in any Arabic/Urdu/Persian text on Notepad or MS Word?

I can write Arabic/Urdu/Persian on MS Word or Notepad just fine, but whenever I insert any English word or number, the sequence is just disturbed and seems like the all the words have been shuffled in the sentence. Look at the example below: یہ ایک…
Arfeen
  • 2,553
  • 5
  • 29
  • 48
26
votes
4 answers

jquery .show('slow') direction?

Is it possible to change direction of $("selector").show('slow') and hide('slow') effects in jQuery? I can define directions for other effects such as slide and clip, but there's no option for show or hide('slow')
Moon
  • 22,195
  • 68
  • 188
  • 269
21
votes
4 answers

Get direction (compass) with two longitude/latitude points

I'm working on a "compass" for a mobile-device. I have the following points: point 1 (current location): Latitude = 47.2246, Longitude = 8.8257 point 2 (target location): Latitude = 50.9246, Longitude = 10.2257 Also I have the following…
eav
  • 2,123
  • 7
  • 25
  • 34
21
votes
10 answers

Swipe Direction in ViewPager

I have an Android app that uses ViewPager and FragmentStatePagerAdapter. I however need to add a new feature in which I have to know the swipe direction to move from one fragment view to another, left or right. (i.e, when I swipe left, I would do…
21
votes
6 answers

Bootstrap - Change direction of the navbar

I've using Twitter bootstrap and trying to align the navbars' text to the right, i.e - that the "brand" will appear on the right, and all else to the left of it. (For right-to-left website). Any ideas how this can be accomplished?
Roman
  • 4,443
  • 14
  • 56
  • 81
20
votes
1 answer

Align items to left while flex direction is row-reverse in Flex

I want to display items in reverse order horizontally with left alignment here is my working fiddle, but items are aligned to right. #main { width: 400px; height: 400px; border: 1px solid #c3c3c3; display: flex; …
satish kumar V
  • 1,695
  • 6
  • 33
  • 47
20
votes
5 answers

show direction button in swift mapView using googleMaps api

I'm developing an app for both android and ios. in android mapview when I tap on marks of the map 2 buttons are shown in the bottom of the view. (directions and googlemaps) see the uploaded image following the instruction from google I setup the…
Lithium
  • 589
  • 2
  • 11
  • 24
20
votes
2 answers

How can I get the direction of movement using an accelerometer?

I'm developing a Android application and I would like to know if is possible detect the direction of movement with one axis fixed. For example, I want put my phone on the table and detect the direction when I move it (left, right, up and down). The…
Marcos Passos
  • 400
  • 1
  • 3
  • 15
19
votes
11 answers

Detecting the scrolling direction in the adapter (up/down)

I am trying to mimic the Google Plus application in my project, as it seems to be the reference now. The listview effect when scrolling is really nice and I would like to do something similar. I have started with the…
Waza_Be
  • 39,407
  • 49
  • 186
  • 260
18
votes
2 answers

Standard .NET side enum

I often use enums like public enum Side { Left, Top, Right, Bottom }; or public enum Direction { Left, Up, Right, Down }; Every time I describe the enum again. Is there a standard enum of this kind in .NET?
AndreyAkinshin
  • 18,603
  • 29
  • 96
  • 155
15
votes
2 answers

XNA 2D vector angles - what's the correct way to calculate?

what is in XNA in 2D the standard way vector angles work ? 0 degrees points right, 90 points up, 180 left, 270 down ? What are the 'standard' implementations of float VectortoAngle(Vector2 vec) and Vector2 AngleToVector(float angle) so that…
Led
  • 2,002
  • 4
  • 23
  • 31
1
2 3
47 48