次のように編集テキストの下に小さな行を追加したいのですが、どうすればいいですか?
1 に答える
2
これは、Holo テーマの Edittext のデフォルトの外観です。Holo Theme を適用するだけです。
ホロテーマを適用したい場合。設定
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17" />
およびvalues-v11フォルダー内のstyles.XML
<resources>
<!--
Base application theme for API 11+. This theme completely replaces
AppBaseTheme from res/values/styles.xml on API 11+ devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Holo.Light">
<!-- API 11 theme customizations can go here. -->
</style>
および値フォルダー内のstyles.XML
<resources>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Light.NoTitleBar">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
<style name="progressbar_holo" parent="@android:style/Theme.Light">
</style>
およびAndroidMeanifeast.xmlで
android:theme="@style/AppTheme"
アプリケーションタグで。
于 2013-01-17T11:23:16.663 に答える