How to edit default layout files in Android app

I've created a ListView in an activity in a java file. For this LIstView I call the android.R.layout.simple_list_item_1 layout view which is a default layout that I did not create myself. I want to create a custom layout in place of simple_list_item_1, but I don't want to have to start from scratch. How can I find this default layout so I can make slight edits to it? The reason I don't want to start from scratch is because all I really want to do is make the text size a bit smaller. If this is possible without editing the file (rather programmatically), then that answer would be fine too. Thanks!

Answers


The layout file you're looking for is located in

<android-sdk>/platforms/android-7/data/res/layout/simple_list_item_1.xml

Where <android-sdk> is where you installed the SDK.


Need Your Help

Server API PostgreSQL: how to find the path to the database?

c++ c postgresql

OK, maybe doing wrong. But want to teach PostgreSQL to distribute the files with extension functions in C++. The project works in the local network and may by about ten connections. I do not want t...

How to keep a <div> constant in size as the user zooms in and out on the page?

javascript html css resize size

Is there an html / css / javascipt way to maintain a &lt;div> at a constant size in the face of the user's zooming the page in and out? That is, using control-plus to increase text size and control...