Guest User

Untitled

a guest
Jan 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. private List<String> fontNames;
  2. private Spinner fontNameSpinner;
  3. private ArrayAdapter<String> fontPackAdapter;
  4. @Override
  5. protected void onCreate(Bundle savedInstanceState) {
  6. super.onCreate(savedInstanceState);
  7. setContentView(R.layout.activity_note);
  8. LayoutInflater inflater = this.getLayoutInflater();
  9. fontFormat = new AlertDialog.Builder(this);
  10. fontFormat.setView(inflater.inflate(R.layout.fontformat_layout,(ViewGroup)findViewById(R.id.ffViewGroup)));
  11. gcode = new Gcode(this);
  12. Button stt = findViewById(R.id.speech);
  13. Button write = findViewById(R.id.writetofile);
  14. Button translate = findViewById(R.id.translate);
  15. Button format = findViewById(R.id.formatting);
  16. ffontSize = findViewById(R.id.fontsizefield);
  17. fontNames = new ArrayList<>();
  18. myFontPack();
  19. fontNameSpinner = findViewById(R.id.fonts);
  20. fontPackAdapter = new ArrayAdapter<String>(this, R.layout.support_simple_spinner_dropdown_item, fontNames);
  21. fontPackAdapter.setDropDownViewResource(R.layout.support_simple_spinner_dropdown_item);
  22. fontNameSpinner.setAdapter(fontPackAdapter);
  23. }
  24.  
  25. <p>
Add Comment
Please, Sign In to add comment