<CheckedTextView
android:id="@+id/charge_industry_textView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableTop="@drawable/charge3"
android:gravity="center"
android:text="@string/ChargeIndustry"
android:background="@drawable/checkedtextview_checked"/>
CheckedTextView
中的文本无法居中,当我制作 android:gravity="center"
最佳答案
试试 android:layout_centerHorizontal="true"
或android:textAlignment="center"
关于android - CheckedTextView 中的文本无法居中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37403579/