Top "Android-xml" questions

Android projects use XML in several ways: defining the project and components, building layouts, defining animations, creating menus and specifying resources (static and dynamic) for the project.

how to make a relative layout scrollable when it has many children views?

my xml goes as shown below <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/…

android android-layout android-xml android-scrollview
No resource identifier found for attribute 'showAsAction' in package 'android'

as the title suggest, I'm getting that error in at least 3 of the XML layout files, however, I dont see …

java android android-xml android-menu
How do I use obtainStyledAttributes(int []) with internal Themes of Android

So I have looked around and found out that android.R.styleable is no longer part of the SDK even …

android android-xml android-resources android-styles
how to change color of the actual scroll in ScrollView android?

I'm wondering if it's possible to change the color of the ScrollView. I'm not referring to the background color or …

android android-layout scrollview android-xml
Heterogeneous GridLayout

I am trying to implement the layout below: I guess GridLayout is suitable for my needs but after 2 hours of …

android android-layout android-widget android-xml grid-layout
Add custom layout to toolbar

I followed this tutorial to give my app a regular toolbar with some tabs. I want to change the toolbar …

android android-layout android-xml
How to get accent color programmatically?

How would one fetch the accent color set in styles, like below, programmatically? <item name="android:colorAccent">@color/…

android android-xml android-styles
How to use specified weights for fonts in XML

Using the Fonts in XML feature you can specify various font weights for a font family. For example: <?xml …

android android-xml android-styles android-fonts
How rotate line in Android XML?

I'm trying to draw a diagonal line in an Android app with the XML, but it is not working. It …

android android-layout android-manifest android-xml android-drawable
Android textview not supporting line break

I'm creating a custom view programmatically that is displaying text that is parsed from an XML file. The text is …

android textview android-xml