私は簡単な方法を探していた私のアプリケーション全体のすべてのボタンは角が丸くなっています。テーマ内のすべてのボタンの丸い角 - オーバーライド方法は?
私のAndroidManifest.xml)=私は成功していないので、私は私が尋ねると思った:
<application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/BlackTheme" android:alwaysRetainTaskState="true" android:name="MyApplication">
は私のstyles.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="ButtonHeader" parent="@android:style/Widget.Button">
<item name="android:textSize">18dip</item>
<item name="android:minWidth">70dip</item>
<item name="android:minHeight">20dip</item>
<item name="android:maxHeight">30dip</item>
</style>
<style name="JobViewHeader" parent="@android:style/TextAppearance.Small">
<item name="android:textStyle">bold</item>
<item name="android:textColor">#FFFFFF</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
</style>
<style name="BlackTheme" parent="@android:style/Theme.Black">
<item name="android:button">@drawable/button_rounded</item>
</style>
<style name="DialogTheme" parent="@android:style/Theme.Dialog">
</style>
</resources>
My button_rounded.xml(ドロワーブル内):
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="10dp" />
</shape>
これらをすべて「ImageButtons」に変更し、PowerPointで作成した角の丸いボックスの9パッチドローブ可能なものを使用できます。 :) –
だから、あなたはどんな問題を抱えていますか? –
@LalitPoptani問題はボタンが変更されておらず、まったく丸められていないということです。 – Ted