Closed hegelsu closed 5 years ago
you can either try to modify it through a custom theme:
<style name="FileChooserPathViewStyle">
<item name="android:textColor">#40ff0000</item>
<item name="android:textSize">16sp</item>
<item name="fileChooserPathViewDisplayRoot">false</item>
</style>
please, check the styles.xml file for an example in the demo app.
another one would be using the public ChooserDialog customizePathView(CustomizePathView callback)
method:
dialog.customizePathView(textView -> {
textView.setCompoundDrawablesWithIntrinsicBounds(icon, null, null, null);
})...
well done. and @Guiorgy have u ever study chinese?
nope, google sensei comes for the rescue :)
thx.
上图中的“Choose a file"的字体大小和颜色可以设置么?
yes, a lot of things can be customized through custom themes:
<style name="FileChooserTitleStyle_Dark" parent="FileChooserTitleStyle">
<item name="android:textAppearance">@style/TextAppearance.AppCompat.Title.Inverse</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
<item name="android:textSize">8sp</item>
</style>
refere to the demo app for an example of a 'Dark' theme
OK