29.10 Loading the Gestures File
Now that the gestures file has been added to the project, the next step is to write some code so that the file is loaded when the activity starts up. For the purposes of this project, the code to achieve this will be added to the MainActivity class located in the MainActivity.java source file as follows:
package com.ebookfrenzy.customgestures;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.gesture.GestureLibraries;
import android.gesture.GestureLibrary;
import android.gesture.GestureOverlayView;
import android.gesture.GestureOverlayView.OnGesturePerformedListener;
public class MainActivity extends AppCompatActivity
implements OnGesturePerformedListener {
private GestureLibrary gLibrary;
@Override
protected void onCreate(Bundle savedInstanceState...