Android 材料设计:如何让按钮文本成为常规案例(非大写)?
Android材质设计按钮样式将按钮文本转换为大写字母。通过string.xml提供的任何大小写(非大写、大写)如何返回文本Android 材料设计:如何让按钮文本成为常规案例(非大写)?,android,material-design,Android,Material Design,Android材质设计按钮样式将按钮文本转换为大写字母。通过string.xml提供的任何大小写(非大写、大写)如何返回文本 <Button android:id="@+id/product_add_button" style="?android:attr/buttonBarButtonStyle" android:layout_width="0dp" android:layout_height="wrap_content" android:layo
<Button
android:id="@+id/product_add_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:onClick="onAddItemButtonClick"
android:paddingLeft="@dimen/row_padding"
android:paddingRight="@dimen/row_padding"
android:text="@string/add_item"
android:textSize="18sp"
android:textColor="@color/blueberry" />
string.xml
<string name="add_item">Add Item</string>
添加项目
添加:
刚刚测试,与AppCompact、Holo和Material配合使用
android:textAllCaps="false"