var app = angular.module('FragmentGenerator', [])
  .controller('FragmentGeneratorController', ['$scope', '$log', function($scope, $log) {
    $scope.$log = $log;
   
    $scope.argTypes = [
      {name:'Binder', qualifiedName:'android.os.IBinder'},
      {name:'Boolean', qualifiedName:'boolean'},
      {name:'BooleanArray', qualifiedName:'boolean[]'},
      {name:'Bundle', qualifiedName:'android.os.Bundle'},
      {name:'Byte', qualifiedName:'byte'},
      {name:'ByteArray', qualifiedName:'byte[]'},
      {name:'Char', qualifiedName:'char'},
      {name:'CharArray', qualifiedName:'char[]'},
      {name:'CharSequence', qualifiedName:'CharSequence'},
      {name:'CharSequenceArray', qualifiedName:'CharSequence[]'},
      {name:'CharSequenceArrayList', qualifiedName:'java.util.ArrayList<CharSequence>'},
      {name:'Double', qualifiedName:'double'},
      {name:'DoubleArray', qualifiedName:'double[]'},
      {name:'Float', qualifiedName:'float'},
      {name:'FloatArray', qualifiedName:'float[]'},
      {name:'Int', qualifiedName:'int'},
      {name:'IntArray', qualifiedName:'int[]'},
      {name:'Integer', qualifiedName:'Integer'},
      {name:'IntegerArrayList', qualifiedName:'java.util.ArrayList<Integer>'},
      {name:'Long', qualifiedName:'long'},
      {name:'LongArray', qualifiedName:'long[]'},
      {name:'Parcelable', qualifiedName:'android.os.Parcelable'},
      {name:'ParcelableArray', qualifiedName:'android.os.Parcelable[]'},
      {name:'ParcelableArrayList', qualifiedName:'java.util.ArrayList<? extends android.os.Parcelable>'},
      {name:'Serializable', qualifiedName:'Serializable'},
      {name:'Short', qualifiedName:'short'},
      {name:'ShortArray', qualifiedName:'short[]'},
      {name:'SparseParcelableArray', qualifiedName:'android.util.SparseArray<? extends android.os.Parcelable>'},
      {name:'String', qualifiedName:'String'},
      {name:'StringArray', qualifiedName:'String[]'},
      {name:'StringArrayList', qualifiedName:'java.util.ArrayList<String>'}
    ];

    $scope.fragmentArguments = [];

    // default values
    $scope.package = "com.example";
    $scope.className = "MyFragment";
    $scope.layout = "my_fragment_layout.xml";
    $scope.argumentList = "";
    $scope.fragmentArguments.push({
      name:"firstArgument",
      argType: $scope.argTypes[28]
    });

    $scope.$watch('package', function (value) {
        $log.log($scope.package)
    });

    $scope.$watch('className', function (value) {
        $log.log($scope.className)
    });

    $scope.$watch('fragmentArguments', function (values) {
        // create argument list
        $scope.argumentList = "";
        
        angular.forEach(values, function(argument, key) {
          if (argument.argType && argument.name) {
            $scope.argumentList += argument.argType.qualifiedName + " " + argument.name + ", ";
          }
        }, $log);

        length = $scope.argumentList.length;
        $scope.argumentList = $scope.argumentList.substring(0, length-2);
        
        //$log.log($scope.argumentList)
        //$('#inputArgument{{$index}}').focus();
    }, true)

    $scope.addArgument = function($log) {
      $scope.fragmentArguments.push({});
    };

  }]);

app.filter('capitalize', function() {
 return function(input, scope) {
   if (input!=null)
   return input.substring(0,1).toUpperCase()+input.substring(1);
 }
});

app.filter('stripExtension', function() {
 return function(input, scope) {
    if (input!=null) {
      index = input.lastIndexOf(".");
      if (index > -1) {
        input = input.substring(0, index);
      }
    }
   return input;
 }
});
  

@@ -1091,32 +1091,34 @@
 'int%5B%5D'%7D,%0A      
+//
 %7Bname:'Integer',
@@ -2322,17 +2322,81 @@
 es%5B2
-8%5D%0A    %7D)
+7%5D // default value: String%0A    %7D);%0A    $scope.fieldAssignStatements = %5B%5D
 ;%0A%0A 
@@ -2703,24 +2703,16 @@
 t = %22%22;%0A
-        
 %0A       
@@ -2908,16 +2908,23 @@
  + %22, %22;
+       
 %0A       
@@ -3685,8 +3685,174 @@
 %0A%7D);%0A  %0A
+app.filter('asField', function() %7B%0A return function(input, scope) %7B%0A   if (input!=null)%0A   return %22m%22 + input.substring(0,1).toUpperCase()+input.substring(1);%0A %7D%0A%7D);%0A

Update fragment-generator.js