3

I would like to make a custom layout for a Preference with just a very small change from the default layout.

Where can I get the default layout for a Preference so I can simply make my minor change without having to create a nearly identical layout from scratch?

zholmes1
  • 539
  • 5
  • 21
  • Default preferences for what? There really IS no default as they would be local to YOUR app. There are tutorials all over the place to show you how to do this. – durbnpoisn Jul 31 '14 at 14:04
  • That's not what I'm asking... I know how to make a Preference. What I need is the XML file that Preference uses by default. – zholmes1 Jul 31 '14 at 14:14
  • In Eclipse? (I'm assuming). There is none. You need to create a prefences.xml file. – durbnpoisn Jul 31 '14 at 14:32
  • I just want the xml file that Preference uses by default when there is no custom layout specified. Android is an open source project so it has to be somewhere. I just need this file so that I can make a small edit to it and then put it in my res\layouts folder – zholmes1 Jul 31 '14 at 18:04
  • Oh, I see what you mean. The preference used by the IDE to generate the default layout file. Pfft. No idea. I just use project template I know compiles and works, and start from there... It's easier than trying to modify the default setup. – durbnpoisn Jul 31 '14 at 18:16

1 Answers1

3

I know, it's an old question but in case anyone is looking for this still (like me):

Here is the default preference layout for androidx

This folder contains all the widget xml (like SeekBar) as well.

nulldroid
  • 1,150
  • 8
  • 15