【问题标题】:Android studio, making a math formula sheet applicationAndroid studio,制作数学公式表应用
【发布时间】:2015-09-30 17:30:42
【问题描述】:

所以在编程方面我仍然是新手,但我很好奇制作公式表的最佳实践是什么。当然,布局中只是简单的单词、字母和数字,但其中一些数学公式有很多字符,textview 无法读取。所以我应该只对我在word上制作的公式进行截图,还是浪费太多内存。还要放大和缩小我该怎么做。

【问题讨论】:

    标签: android android-layout textview imageview zooming


    【解决方案1】:

    在 value 文件夹的 string.xml 文件中使用 HTML 代码。

    <string name="superscript"><html><i>a</i><sup>2</sup>+<i>y</i><sup>2</sup></html></string>
    <string name="subscript"><html>f(x)<sub>1+x</sub></html></string>
    

    在xml布局中

     <TextView
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:text="@string/superscript" />
    
        <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="@string/subscript" />
    

    数学符号和字符的链接:

    http://barzilai.org/math_sym.htm

    http://www.myphysicslab.com/web_math.html

    【讨论】:

    • 谢谢,但这不会很乏味。
    • 添加 HTML 将是我知道的很多工作。但是添加 Textview 将或多或少是复制/粘贴的事情。截屏或在 textview 中书写也是一项繁重的工作。因此,为了更好地查看您的应用程序而做更多的工作我认为还不错:) @user4914918
    【解决方案2】:

    这是真的,一切都与外观有关。但是如果我想做一个像拉普拉斯表一样的表,最好有一个图像

    【讨论】:

    • 请记住,当您使用图像时,您无法再控制字体大小等。并且不要忘记它将消耗的内存空间
    • 所以最好还是按照上面的方法做
    • 我似乎无法将二次方程写成带有水平线的堆积分数
    【解决方案3】:

    如果您喜欢在 android 中使用 webview,那么当然可以!您可以使用 javascript 库 jqMath 在网页上展示任意数量的数学方程。 https://mathscribe.com/author/jqmath.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-06-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多