大约有 3,583 项符合查询结果(耗时:0.0326秒) [XML]

https://stackoverflow.com/ques... 

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...
https://stackoverflow.com/ques... 

Set selected index of an Android RadioGroup

Is there a way to set the selected index of a RadioGroup in android, other than looping through the child radiobuttons and selecting checking the radio button at the selected index? ...
https://stackoverflow.com/ques... 

How to draw border on just one side of a linear layout?

...ne side <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape android:shape="rectangle"> <solid android:color="#FF0000" /> </shape> </item> <item android:left="5dp"&gt...
https://stackoverflow.com/ques... 

Android: combining text & image on a Button or ImageButton

...the background. If you are looking for something similar in xml there is: android:background attribute which works the same way. share | improve this answer | follow ...
https://stackoverflow.com/ques... 

Android custom dropdown/popup menu

... Update: To create a popup menu in android with Kotlin refer my answer here. To create a popup menu in android with Java: Create a layout file activity_main.xml under res/layout directory which contains only one button. Filename: activity_main.xml <Rela...
https://stackoverflow.com/ques... 

How to change title of Activity in Android?

... Just an FYI, you can optionally do it from the XML. In the AndroidManifest.xml, you can set it with android:label="My Activity Title" Or android:label="@string/my_activity_label" Example: <activity android:name=".Splash" android:label="@string/splash_act...
https://stackoverflow.com/ques... 

How do you make a LinearLayout scrollable?

...: <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"> <ScrollView android:layout_width="fill_parent" ...
https://stackoverflow.com/ques... 

Shadow Effect for a Text in Android? [duplicate]

... Perhaps you'd consider using android:shadowColor, android:shadowDx, android:shadowDy, android:shadowRadius; alternatively setShadowLayer() ? share | im...
https://stackoverflow.com/ques... 

Custom ImageView with drop shadow

...nePatch: along with the appropriate padding in XML: <ImageView android:id="@+id/image_test" android:background="@drawable/drop_shadow" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingLeft="6px" android:paddin...
https://stackoverflow.com/ques... 

How to make gradient background in android

...rawable.xml: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient android:type="linear" android:angle="0" android:startColor="#f6ee19" android:endColor="#115ede" /> </shape> ...