简体   繁体   English

你如何在 android 中创建一个按钮来打开一个新的活动,这个活动不仅仅是一个默认活动,它是一个自定义活动

[英]How do you make a button in android that opens a new activity and this activity is not just a default activity its a custom one

I am trying a make notepad app so every time a new note is opened the layout will be the same.我正在尝试制作记事本应用程序,因此每次打开新笔记时布局都是相同的。 also, the number of activity(new note) should not be defined as many possible此外,不应尽可能多地定义活动(新注释)的数量

If the activity is always the same, you should probably create an adapter that allows you to change the texts and images of your activity without the need to create several activities.如果活动始终相同,您可能应该创建一个适配器,允许您更改活动的文本和图像,而无需创建多个活动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM