Ah, ok. What you’re looking for is setHint(int)
. Simply pass in a resource id of a string from your xml and you’re good to go.
EDIT
And in XML, it’s simply android:hint="someText"
More Related Contents:
- How to handle notification when app in background in Firebase
- How to read file from res/raw by name
- How to simulate a touch event in Android?
- Android ImageButton with a selected state?
- Creating temporary files in Android
- How to keep/exclude a particular package path when using proguard?
- notifyDataSetChange not working from custom adapter
- ffmpeg for a android (using tutorial: “ffmpeg and Android.mk”)
- Android get image from gallery into ImageView
- Starting an activity from a service after HOME button pressed without the 5 seconds delay
- Android: Activity getting Destroyed after calling Camera Intent
- How do I rotate the Android emulator display? [duplicate]
- How to get available wifi networks and display them in a list in android
- Display badge on top of bottom navigation bar’s icon
- How can I open Android browser with specified POST parameters?
- How to stop a thread?
- Accessing UI thread handler from a service
- Programmatically enter secret code like *#*#4636#*#* on Android
- How can restrict my EditText input to some special character like backslash(/),tild(~) etc by soft keyboard in android programmatically
- Incorrect Coordinates From getLocationOnScreen/getLocationInWindow
- Android Save images to SQLite or SDCard or memory
- Camera in Android, how to get best size, preview size, picture size, view size, image distorted
- Read logs from all apps on android from within an app for android 4.2+
- If I call getMeasuredWidth() or getWidth() for layout in onResume they return 0
- How to get results from an IntentService back into an Activity?
- Android AlarmManager setExact() is not exact
- Android: Intent.ACTION_SEND with EXTRA_STREAM doesn’t attach any image when choosing Gmail app on htc Hero
- Android approach for “Rate my application” [closed]
- How do you implement context menu in a ListActivity on Android?
- Android Studio device list stuck on loading