PROBLEM
I want to create 3 rectangles in the vertical. Then, I want the first and the last one transparent. but the result look like the second rectangle height is bigger than it should be (its height big equal 2 rectangle)
PICTURE
Before it…
I have created an XML layout with the name def_list. I have assigned an id for it and that is def_list_textview. I have put a font called bn.ttf in the assets folder.
The XML layout is as follows:
I have the following dilemma. Two elements, one on top of each other. The bottom has wrap_content for height. I want the top element to fill the remaining space without the two elements overlapping (which happens if I use FrameLayout for…
I am using Eclipse on Mac OX (I am new to Mac) and the autocomplete is working normally in the .java files, but it's not working in my .xml layout files.
I checked my "Advanced" Java Editor settings according to this post autocomplete has stopped…
I have designed a menu that consists of a few buttons in several different LinearLayouts all placed over an animated GLSurfaceView within a FrameLayout. When the user clicks a button in the interface, I set the current layout's visibility to GONE…
I'm trying to use some fragments within jetpack compose but I can not import AndroidViewBinding from (androidx.compose.ui.viewinterop) and it is always appearing as an unresolved name
how to import it ??
I have recently started learning Android Development. I am using Android Studio and I created the XML layout file with it. But the layout is looking different on the emulator to the one I created on XML and I have no clue why it is happening.
This…
How does Android think about ScrollViews?
I come from webdev background, so that is my paradigm for implementing a scrolling element.
Yet on Android, official tutorials and docs say, I should use height="wrap_content" for the ScrollView. But…
As shown in image it have recyclerview of list and each recyclerviews item has again new recyclerview which contains list of images. the red area is getting captures click event but from same item nested recyclerview area/item not getting clicked.
…
I have a child LinearLayout inside a LinearLayout
the inner Layout is showing a message saying
Suspicious size this will make the view invisible
I have set the orientation of the layouts the parent layout is Vertical and the inner layout is…
I am making an English education app that has an activity that uses viewPager to return a number of fragments. The app will have additional units which use additional activities that use viewPager to return the same fragments(minus some word changes…