大约有 3,583 项符合查询结果(耗时:0.0291秒) [XML]
How to bring view in front of everything?
...
if I used in manifest android:theme="@android:style/Theme.Light.NoTitleBar" in activity than yourView.bringToFront(); works perfectly, but I used android:theme="@android:style/Theme.AppCompat.Light.NoActionBar" yourView.bringToFront(); doesn't wo...
Is there a way to automate the android sdk installation?
Now I have to download and install the Android SDK and AVD Manager, and then install the APIs, tools through the UI. Is there a way to automate this process?
...
Input text dialog Android
...unds like a good opportunity to use an AlertDialog.
As basic as it seems, Android does not have a built-in dialog to do this (as far as I know). Fortunately, it's just a little extra work on top of creating a standard AlertDialog. You simply need to create an EditText for the user to input data, ...
Auto Scale TextView Text to Fit within Bounds
...
From June 2018 Android officially started supporting this feature for Android 4.0 (API level 14) and higher.
Check it out at: Autosizing TextViews
With Android 8.0 (API level 26) and higher:
<?xml version="1.0" encoding="utf-8"?>
&...
Android add placeholder text to EditText
...ing from your xml and you're good to go.
EDIT
And in XML, it's simply android:hint="someText"
share
|
improve this answer
|
follow
|
...
How to set different label for launcher rather than activity title?
... it depends on the launcher implementation that is used.
http://developer.android.com/guide/topics/manifest/intent-filter-element.html
<activity
android:name=".ui.HomeActivity"
android:label="@string/title_home_activity"
android:icon="@drawable/icon">
<intent-filter android:label=...
Valid values for android:fontFamily and what they map to?
In the answer to this question the user lists values for android:fontFamily and 12 variants (see below). Where do these values come from? The documentation for android:fontFamily does not list this information in any place (I checked here , and here ). The strings are listed in the Android ...
how to remove shared preference while application uninstall in android
I have an android application to save the login details such as user name and password via SharedPreferences thats works fine, but i need to remove all my used SharedPreferences while my application uninstall. How to do it?
...
Get spinner selected items text?
... did not get the actual text. I got a string representing a cursor object: android.database.sqlite.SQLiteCursor@410dfae8probably because I used a cursor adapter. Any idea what I should do to get the right string?
– AdamMc331
Nov 27 '14 at 19:21
...
How to stop EditText from gaining focus at Activity startup in Android
I have an Activity in Android, with two elements:
52 Answers
52
...