Android Material Design button style is making button text to 'CAPITAL' letters. How can I get back the text with whatever cases (non-capital, capital) that I supply via string.xml?
<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>
加:
android:textAllCaps="false"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.