android - How to replicate Android 10 Settings

63 Views Asked by At

Im currently developing an app which has a Settings menu. My App uses a dark theme as default theme, and i need to change Title and Summary text color. I also want to use icons like the Android 10 Settings menu:

Screenshot taken from Android 10 Settings

How can i replicate this menu and with what component? Is PreferencesMenu a valuable component to do this?

1

There are 1 best solutions below

2
Sana On BEST ANSWER

To do this you can use RecyclerView and adapt a designed row.Design the row with a ImageView and two TextViews.Design as you wish for Text colors.In adapter just pass text and drawables as android 10. You can use SVG drawables.

Set color at layout like this,

android:textColor="@color/colorlightblue"