R
R
run1822017-04-18 11:25:08
Android
run182, 2017-04-18 11:25:08

How to add a link to the name of the Activity in the TextView?

The application has an Activity with a layout, it has a TextView with the android:text="Profile" parameter.
How can I make sure that when the same layout is called from another Activity, the name of that Activity is added instead of "Profile"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Serkov, 2017-04-18
@Hutaab

TextView textView = (TextView)findViewById(R.id.textView);
textView.setText(R.string.activityname);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question