Posts by Gabriel Orlando • 58 points
4 posts
-
1
votes1
answer36
viewsA: Why is first-Child selecting the <p> element?
You will need to identify to which element first-Child will be applied. In this case, as you did not specify, he applied to the body. Try the following code: p:first-child { border: 1px solid red; }…
-
1
votes2
answers603
viewsA: How do I remove and replace files from the master branch with files from another branch? (Github)
Do a search on merge. You’ll need something like git merge [branch name] to upload all files to your master branch.
-
1
votes3
answers5196
viewsA: How to set up a timer in Android Studio to perform tasks at constant intervals?
import java.util.Timer; import java.util.TimerTask; public class Main extends AppCompatActivity { public void Timer(){ Timer timer = new Timer(); Task task = new Task(); timer.schedule(task, 1000,…
-
1
votes3
answers5196
viewsQ: How to set up a timer in Android Studio to perform tasks at constant intervals?
I am developing a simple application with Android Studio and need to create a timer to run some methods every 1 second. I tried it this way but it didn’t work: int delay = 1000; int interval = 1000;…