0
Follow
4
View

Same fragment layout different ImageView and text

dwhdwh5 注册会员
2023-01-26 05:02

You can pass a int (or a Enum index) to your destination Fragment as a Bundle and retrieve it in your onCreateView to set your text and image according to the received number.

Check out this answer to see an example: https://stackoverflow.com/a/21486451/11407290

About the Author

Question Info

Publish Time
2023-01-26 05:01
Update Time
2023-01-26 05:01