MathView
MathView copied to clipboard
Text alignment left
Text alignment left is not working with either with xml or java set. Can you help me?
@mikelantzelo Can you please share the code snippet and also the relevant screenshot.
@Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View view = inflater.inflate(R.layout.dialog_show_answer, container, false); context = getActivity(); getDialog().setTitle(R.string.apantisi); MathView mathView = view.findViewById(R.id.html_text); Button button = view.findViewById(R.id.button_apantisi_ok); mathView.setTextAlignment(View.TEXT_ALIGNMENT_TEXT_START); mathView.setText(answer); button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { getDialog().dismiss(); } });
return view;
}
Thanks @mikelantzelo to raise this concern. Do you mind having a look to MathView.java class and figure out the fix. I will be happy to see pull request for this.
Hello! I think it may related to the MathJax which display everything in center by default. (I'm not familiar with it so i am just gussing) and maybe you can check here: https://stackoverflow.com/questions/11296415/how-to-left-align-mathjax-elements