Android Open Source - MatrixTools Single Matrix Input Fragment






From Project

Back to project page MatrixTools.

License

The source code is released under:

Apache License

If you think the Android project MatrixTools listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.sehackers.matrixtools.fragments;
//  www.j av a  2  s  .c  o  m
import android.app.Fragment;
import android.os.Bundle;
import android.text.InputType;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.EditorInfo;
import android.widget.EditText;

import com.sehackers.matrixtools.R;

public class SingleMatrixInputFragment extends Fragment {
  
  public SingleMatrixInputFragment(){}
  
  
  
  @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
 
        View rootView = inflater.inflate(R.layout.fragment_single_matrix_input, container, false);
        EditText matrixEditText = (EditText) rootView.findViewById(R.id.matrix_text_view);
        //matrixEditText.setInputType(InputType.TYPE_TEXT_FLAG_MULTI_LINE|InputType.TYPE_CLASS_NUMBER);
        //matrixEditText.setImeOptions(EditorInfo.IME_ACTION_DONE);
//        Context context = getActivity();
//        CharSequence text = "Please enter your input";
//        int duration = Toast.LENGTH_SHORT;
//
//        Toast toast = Toast.makeText(context, text, duration);
//        toast.show();
        
        return rootView;
    }
}




Java Source Code List

com.sehackers.matrixtools.MainActivity.java
com.sehackers.matrixtools.fragments.AdditionFragment.java
com.sehackers.matrixtools.fragments.HomeFragment.java
com.sehackers.matrixtools.fragments.MMultiplicationFragment.java
com.sehackers.matrixtools.fragments.SMultiplicationFragment.java
com.sehackers.matrixtools.fragments.SingleMatrixInputFragment.java
com.sehackers.matrixtools.fragments.SubtractionFragment.java
com.sehackers.models.Matrix.java