Skip to content
Advertisement

Tag: android-studio

Fragment Size overlaps TabLayout

I found some similar problems but none of them solved my problem. But basically it’s exactly the same as on the other threads, that my viewPager fragment overlaps the tabLayout: Here is my source code: GroupBookFragment fragment_groupBook.xml fragment_groupBook_krippe fragment_groupBook_krippe.xml adapter_groupBook The weird thing is, whenever I delete RelativeLayout from the child fragments and used the ConstraintLayout only, the content gets

How can i store uri.toString to my java class?

I want to store a uri to my donation.java class so that ill be able to fetch an image from firebase storage and display it on a cardview. However uri.toString is highlighted red and shows a “Cannot resolve constructor ‘donation(java.lang.String)'” donate.java donation.java I’ve tried storing the uri to a different class which was successful but I had to make another

How to Call function in custom view in android studio activity

MainActivity.java CustomView.java activity_main.xml when I going to run that code in my device it keep closing. Log cat shows error like this. I use physical device to implement this code. I’m beginner android developer also. I follow different kind of tutorials but I could not be able to solve it.I want to use this custom component same as normal widgets

How do I set Text size by emulator setting text size in android studio [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 months ago. Improve this question I wanna change text size not by android:textSize but change in setting emulator front size Answer Use the setTextSize function on the TextView reference.

Advertisement