This file contains hidden or 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
| var program = require('commander'); | |
| var fs = require('fs'); | |
| var path = require('path'); | |
| var conf = {}; | |
| process.chdir("C:\\Users\\Julio\\Desktop\\visitavirtual-android\\automation-tools"); | |
| require('rc')('gen', conf); | |
| program | |
| .version('0.0.1') | |
| .option('-c, --clazz <filename>', 'Java class of the new fragment') |
This file contains hidden or 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
| package /* YOUR PACKAGE HERE */; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import android.app.Activity; | |
| import android.app.AlertDialog; | |
| import android.text.Html; | |
| import android.text.TextUtils; |
This file contains hidden or 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
| package /* YOUR PACKAGE HERE */; | |
| package cc.edinteractive.visitavirtual.fragment; | |
| import android.app.Activity; | |
| import android.os.Bundle; | |
| import android.support.annotation.Nullable; | |
| import android.support.v4.app.Fragment; | |
| import android.view.LayoutInflater; | |
| import android.view.View; |
This file contains hidden or 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
| package /* YOUR PACKAGE HERE */; | |
| import android.app.Activity; | |
| import android.content.Context; | |
| import android.view.KeyEvent; | |
| import android.view.View; | |
| import android.view.View.OnKeyListener; | |
| import android.view.inputmethod.InputMethodManager; | |
| import android.widget.EditText; |
This file contains hidden or 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
| static Map<String, Class<?>> fragmentsClassMap; | |
| static { | |
| fragmentsClassMap = new HashMap<String, Class<?>>(); | |
| Class<?>[] fragmentClassArray = new Class<?>[] { | |
| Fragment1.class, | |
| Fragment2.class | |
| }; | |
NewerOlder