Relative Content

Tag Archive for androidxml

How to apply drawable.xml file in colors in android

<color name=”backgroundColor”>@drawable/bg_rounded_horizontal_gradient_theme</color> When I am trying to apply drawable.xml inside the colors not working. Can any one help we how to apply the below xml file <?xml version=”1.0″ encoding=”UTF-8″?> <shape xmlns:android=”http://schemas.android.com/apk/res/android” android:shape=”rectangle”> <gradient android:angle=”0″ android:endColor=”@color/clr_theme_indigo” android:startColor=”@color/clr_theme_green” android:type=”linear” /> <corners android:radius=”@dimen/_4sdp” /> </shape> android xml 3

I can’t open the file for reading in Android Studio

the test.xml file is in the files folder, which is in the app folder
when calling the method below, 1 2 3 is displayed in the log, after which an error occurs: File not found: /data/user/0/com.example.myapplication/files/test.xml: open failed: ENOENT (No such file or directory)
method :
protected Document buildDoc(Context context, String fileName) throws Exception{
Document doc = null;