This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to pass reference of an string to a String array in Values?  RSS feed

Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

I have a String list in values>Strings.xml as

<string name="tax_rules">Tax Rules</string>
<string name="terms_conditions">Terms and Conditions</string>
<string name="academics">Acdemics</string>
<string name="attendance_by_subject">Attendance By Subject</string>
<string name="attendance_by_date">Attendance By Date</string>
<string name="campus_drives">Campus Drives</string>
<string name="placement_news">Placement News</string>
<string name="my_assignments">My Assignments</string>
<string name="accounts">Accounts</string>
<string name="title_activity_faculty_">Faculty_Activity</string>
<string name="title_activity_management">ManagementActivity</string>
<string name="title_activity_accounts">AccountsActivity</string>
<string name="title_activity_student">StudentActivity</string>
<string name="drawer_open">Open navigation drawer</string>
<string name="drawer_close">Close navigation drawer</string>

and I am making different StringArray using these strings

</string array>

is there any way so that I can reuse existing string to as a reference in String Array rather than writing whole strings again and again in array?

Something like

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!