getResourceEntryName for an array item

前端 未结 2 997
轻奢々
轻奢々 2021-01-26 14:06

I have a string array in strings.xml as detailed below:


    First
    

        
2条回答
  •  感情败类
    2021-01-26 14:36

    Another solution:

    Resources res = getResources();
    TypedArray entriesTypedArray = res.obtainTypedArray(R.array.spinerArray);
    ArrayList entriesName = new ArrayList();
    TypedValue v1 = new TypedValue();
    for (int i1=0; i1

提交回复
热议问题