大约有 40,000 项符合查询结果(耗时:0.0320秒) [XML]
Multi-line EditText with Done action button
Is it possible to have an EditText widget with android:inputType="textMultiLine" set, and android:imeOptions="actionDone" at the same time?
...
Android - Launcher Icon Size
...XXHDPI is MDPI x 4.
This is all explained on the Iconography page of the Android Developers website:
http://developer.android.com/design/style/iconography.html
share
|
improve this answer
...
How to set DialogFragment's width and height?
...idth, height);
Then specify match_parent in your layout for the dialog:
android:layout_width="match_parent"
android:layout_height="match_parent"
You only have to worry about one place (place it in your DialogFragment#onResume). Its not perfect, but at least it works for having a RelativeLayout...
How to capture the “virtual keyboard show/hide” event in Android?
...
2020 Update
This is now possible:
On Android 11, you can do
view.setWindowInsetsAnimationCallback(object : WindowInsetsAnimation.Callback {
override fun onEnd(animation: WindowInsetsAnimation) {
super.onEnd(animation)
val showingKeyboard = vi...
How to change fontFamily of TextView in Android
So I'd like to change the android:fontFamily in Android but I don't see any pre-defined fonts in Android. How do I select one of the pre-defined ones? I don't really need to define my own TypeFace but all I need is something different from what it shows right now.
...
How do I handle ImeOptions' done button click?
...ected the Enter key to be highlighted) I wonder what the point is of using android:imeOptions="actionSend" for the EditText XML layout.
– Someone Somewhere
May 15 '11 at 1:53
...
Fragment over another fragment issue
...agment's view is a layout, this would be the code:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true" />
...
Changing the background drawable of the searchview widget
I'm trying to change the drawable that sits in the Android actionbar searchview widget.
12 Answers
...
How to create a drop-down list?
...
Best way to do it is:
Preview:
XML:
<Spinner
android:id="@+id/spinner1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:drawable/btn_dropdown"
android:spinnerMode="dropdown"/>
Java:
//get the sp...
The Android emulator is not starting, showing “invalid command-line parameter”
...ny spaces.
The default installation location is: C:\Programme Files(x86)\Android\android-sdk. They are currently fixing the problem but you can currently work around it by changing the SDK location path in eclipse to C:\PROGRA~2\Android\android-sdk.
If you are running 32-bit Windows, change the p...