大约有 40,000 项符合查询结果(耗时:0.0182秒) [XML]
What is the difference between gravity and layout_gravity in Android?
I know we can set the following values to the android:gravity and android:layout_gravity properties:
20 Answers
...
How to change color in circular progress bar?
I am using circular progress bar on Android. I wish to change the color of this. I am using
22 Answers
...
Android: how to make keyboard enter button say “Search” and handle its click?
...
In the layout set your input method options to search.
<EditText
android:imeOptions="actionSearch"
android:inputType="text" />
In the java add the editor action listener.
editText.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
public boolean ...
How to change color of Android ListView separator line?
...
You can set this value in a layout xml file using android:divider="#FF0000". If you are changing the colour/drawable, you have to set/reset the height of the divider too.
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="w...
Animate a custom Dialog
...g="utf-8"?>
<resources>
<style name="PauseDialog" parent="@android:style/Theme.Dialog">
<item name="android:windowAnimationStyle">@style/PauseDialogAnimation</item>
</style>
<style name="PauseDialogAnimation">
<item name="android...
Border for an Image view in Android?
How can I set a border for an ImageView and change its color in Android?
16 Answers
...
How to define a circle shape in an Android XML drawable file?
...problems finding the documentation of the definitions of shapes in XML for Android. I would like to define a simple circle filled with a solid color in an XML File to include it into my layout files.
...
Add shadow to custom shape on Android
Is it possible to add a drop shadow to a custom shape in Android? After looking through the documentation, I only see a way to apply a text shadow.
...
Android: java.lang.SecurityException: Permission Denial: start Intent
...
You have to add android:exported="true" in the manifest file in the activity you are trying to start.
From the android:exported documentation:
android:exported
Whether or not the activity can be launched by components of other app...
How can I add the new “Floating Action Button” between two widgets/layouts
I guess you have seen the new Android design guidelines, with the new "Floating Action Button" a.k.a "FAB"
10 Answers
...