Reputation: 588
I am new to android programming.I have started building an app using eclipse.In the layout file the app icon and App name comes there by default. How do I change it. A relative layout is there by default. Whatever I add say--image view textview get added below the main title bar. How do I change this?
Upvotes: 5
Views: 42176
Reputation:
try This
For Logo
android:icon="@drawable/icon"
For Application Name android:label="@string/app_name"
Upvotes: 8
Reputation: 2436
Simply U have to change in Androidmanifest File in application tag which include property like For change logo use android:icon="@drawable/icon"
property and change drawable image as per your requirement and for change application name use android:label="@string/app_name"
property and write at string.xml file in app_name label put appropriate name for that.
Upvotes: 0
Reputation: 27748
As already pointed out by Egor, you must change the appropriate string in your strings.xml
. Typically, the key name in the strings.xml
is by default app_name
. Change this to whatever you wish to change your App's name to.
For your App's icon, I would recommend using this website to create the appropriate resources: http://android-ui-utils.googlecode.com/hg/asset-studio/dist/icons-launcher.html. This saves the trouble of creating different size resources. It gives you all of them in on go. Once you have downloaded the new set of icons, just replace the old set of icons with the new set. Take care of the name though. Again, typically, the app icon has the name ic_launcher
.
Upvotes: 1
Reputation: 40193
Links to app name and icon are placed in the AndroidManifest.xml
inside the application
tag. String resources, like @string/app_name
, are placed inside the strings.xml
file in the res/values
directory. Drawable resources, like @drawable/ic_launcher
, are inside the res/drawable
set of directories. Good luck!
Upvotes: 16