See getIdentifier
. Basically, you want something like:
for (int i=0; i<100; i++) {
int resId = getResources().getIdentifier("textView" + i, "id", getPackageName());
TextView textView = (TextView) dialog.findViewById(resId);
}
More Related Contents:
- JSON parsing in fragmant [closed]
- Android: how to make text (String type, method addCellText) as a hyperlink?
- Making TextView scrollable on Android
- Android BroadcastReceiver on startup – keep running when Activity is in Background
- How do I set my app as the default SMS app?
- How do you save/store objects in SharedPreferences on Android?
- android.content.ActivityNotFoundException:
- How do I view the SQLite database on an Android device? [duplicate]
- Animate a custom Dialog
- Get Bitmap attached to ImageView
- How do I use SharedPreferences in Xamarin.Android?
- How to write character & in android strings.xml
- Snappy scrolling in RecyclerView
- Android actionbar how to add supporting library v7 appcompat for Eclipse
- Android.app Fragments vs. android.support.v4.app using ViewPager?
- Android NDK: dlopen failed
- Android: How to track down the origin of a InflateException?
- android attaching multiple adapters to one adapter
- How to exclude certain messages by TAG name using Android adb logcat?
- Is it possible to declare git repository as dependency in android gradle?
- Clarify the Firebase connections
- How to import Android Studio project in Eclipse?
- Using WebView setHttpAuthUsernamePassword?
- Get background color of a Layout
- Is there a way to load image as bitmap to Glide
- Android browser bug? div overflow scrolling
- Android – launch google map via web url
- Set layout_column and layout_row in GridLayout programmatically
- How many devices we can pair via Bluetooth of BLE to Android?
- How can I customize the permission dialog in Android?