rahul rahul - 9 days ago 4x
Android Question

display plain text page in android

I want to display a text page in android app, which is having description about my app. This text page will be displayed after clicking upon a button. I have several buttons and I want to display various pages for every button. Could you help me ?
Thanks in advance.



Create one layout in which you show your desired buttons. Set setOnClickListener on Buttons.


Create different Layouts for every button click Page results. Like you have 5 buttons then create 5 Layout containing TextViews.


set Intent call on every Button. Put this code on every Button click Intent calling method.

Intent intent= new Intent(Firstactivity.this,secondactivity.class);