gpt4 book ai didi

android - 如何在 android textview 中为下一行留一些空间?

转载 作者:搜寻专家 更新时间:2023-11-01 09:39:32 25 4
gpt4 key购买 nike

在我的应用程序中,我有一个测验页面..

它有问题和答案..每个问题都有问题编号..

示例问题:

  1. Which one of the following would make a suitable inert electrode in

the electrolysis of sodium sulfate solution?

但我想为下一行留出一些空间以正确对齐..

  1. Which one of the following would make a suitable inert electrode in

    the electrolysis of sodium sulfate solution?

目前我在线性布局中实现了两个 TextView (一个用于数字,另一个用于问题)。

我的问题:

这种对齐方式可能与相同的 textview 一致吗?

最佳答案

你可以试试 android:gravity="center"。这可能看起来更好。应用它时,文本看起来像

  Q1: This will be the line of your question and 
this will be the second line.

关于android - 如何在 android textview 中为下一行留一些空间?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40652465/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com