android-styles

    1熱度

    4回答

    刪除邊框我有這個按鈕: <Button android:id="@+id/btn_action" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentEnd="true" android:layout_a

    0熱度

    2回答

    將這一段代碼添加到我的styles.xml文件中,將按鈕的主要顏色更改爲colorPrimary的綠色。 <resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme

    0熱度

    1回答

    我正在嘗試做類似下面的樣機。我需要第一個項目與其他項目有不同的背景。我也需要這第一個項目是不可點擊的。我嘗試了enabled =「false」屬性,但是卻弄髒了我不想要的文字。另外我已經嘗試了styles.xml中的itemBackground來更改項目背景顏色,但是這改變了所有這些顏色,我只希望第一個項目具有不同的背景。最後,我希望在最後兩項中有一些縮進(不確定這是否可能,因爲我沒有看到填充和邊

    0熱度

    1回答

    我想改變檢查RadioButton顏色。但我不知道如何改變它。下面有一些代碼和圖片代表。 <RadioButton android:id="@+id/type_cambodia" android:layout_width="match_parent" android:layout_height="30dp" android:button="@null"

    0熱度

    2回答

    我將主應用顏色設置爲白色,之後,展開後的SearchView中的圖標不可見,因爲它們也是白色。對於其他工具欄圖標和溢出的圖標,我可以用style.xml 通過清單文件應用到活動當前樣式設置備用圖標是: <style name="RecyclerAppTheme" parent="BaseTheme" /> <style name="BaseTheme" parent="Theme.Ap

    2熱度

    1回答

    當我開始我的應用程序時,我得到了確切的狀態欄顏色,因爲我需要但當我做活動轉換我的狀態欄顏色變化,我不想要。我使用相同的技術在以前的項目中,這樣做很好,但在這裏我得到了不同的結論。究竟是什麼問題,這個問題怎麼解決? 清單 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.mun

    1熱度

    1回答

    創建自定義樣式按鈕時應用樣式按鈕它是部分。這是樣式代碼片段。 的Manifest.xml <application android:theme="@style:AppTheme"> styles.xml <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="android:bu

    0熱度

    1回答

    android:textAppearance="@android:style/TextAppearance.Small" android:textAppearance="?android:textAppearanceSmall" 兩者都給出了相同的結果。編譯效率有沒有差異?

    0熱度

    1回答

    我有以下的風格我的應用程序: <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light"> <item name="android:windowLightStatusBar">true</item> <item name="colorPrimaryDark">#f

    3熱度

    1回答

    我想在在 http://www.hidroh.com/2015/11/30/building-custom-preferences-v7/ 創建一個微調偏好像一個到目前爲止,我已經擴展偏好這樣的: public class SpinnerPreference extends Preference { protected String[] mEntries = new String[0];