This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
View v = getCurrentFocus(); // get current view in focus | |
//get x,y coordinates of view | |
int[] scrcoords = new int[2]; | |
v.getLocationOnScreen(scrcoords); | |
float x = ev.getRawX() + v.getLeft() - scrcoords[0]; | |
float y = ev.getRawY() + v.getTop() - scrcoords[1]; | |
//check if the touch was outside the current view | |
if (x < v.getLeft() || x > v.getRight() || y < v.getTop() || y > v.getBottom()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hosting a website on firebase | |
Go to project dir | |
- <b>npm install -g firebase-tools</b> | |
- <b>firebase login</b> | |
- Login successfully before executing any other command | |
- <b>firebase init</b> | |
- Select hosting feature and github deploy actions | |
- Procceed | |
- Select a Project where this will be deployed | |
- Test website on local machine with firebase serve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Connect your mobile device via usb (just this once) | |
2) Establish a port with your mobile device using 'adb tcpip <port number>'. | |
eg. adb tcpip 5555 | |
3) Remove USB and 'adb connect <mobile device ip><above mentioned port number>' . | |
Eg . adb connect 192.160.0.124:5555 | |
4) 'React-native run-android' in your project folder |
OlderNewer