[Android] Access widget layout of a custom preference

I wanted to use the widget layout of a custom card picker settings preference to show the selected cards, but it was quite difficult to do so. First, the layout file has to be created. My file just contains an image view, which I want to update according to the chosen settings. It has to … Read more

[Android] Adding a toolbar to a settings activity

I want to describe how i added a toolbar to a settings activity. First approach: Add a new Style My app used navigation drawer activities, which add a custom toolbar to the activity in the layout.xml. The settings activity doesn’t have a layout file by default. A look in the res/values/styles.xml file showed that the … Read more