When I am trying to put text in a textView, which is inside of a button it does not show up when I run the app, what should I do? Below is an example:
This image shows an example of my problem
CodePudding user response:
Because the layout element you are using is FrameLayout, which will make your element be covered by the next element, you can use LinearLayout or ConstraintLayout instead.
CodePudding user response:
There is FrameLayout which can show a single view at a time because the most recent view will be overlap on the other view. You can use another layout like as RelativeLayout, LinearLayout or ContraintLayout to achieve the desired output.
If you have only few views which you want to show horizontally/vertically then use LinearLayout else use Relative/Constraint Layout.