Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private List<String> fontNames;
- private Spinner fontNameSpinner;
- private ArrayAdapter<String> fontPackAdapter;
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_note);
- LayoutInflater inflater = this.getLayoutInflater();
- fontFormat = new AlertDialog.Builder(this);
- fontFormat.setView(inflater.inflate(R.layout.fontformat_layout,(ViewGroup)findViewById(R.id.ffViewGroup)));
- gcode = new Gcode(this);
- Button stt = findViewById(R.id.speech);
- Button write = findViewById(R.id.writetofile);
- Button translate = findViewById(R.id.translate);
- Button format = findViewById(R.id.formatting);
- ffontSize = findViewById(R.id.fontsizefield);
- fontNames = new ArrayList<>();
- myFontPack();
- fontNameSpinner = findViewById(R.id.fonts);
- fontPackAdapter = new ArrayAdapter<String>(this, R.layout.support_simple_spinner_dropdown_item, fontNames);
- fontPackAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);
- fontNameSpinner.setAdapter(fontPackAdapter);
- }
- <p>
Add Comment
Please, Sign In to add comment