I have a layout problem. In my XML, I have some static buttons: So this is a list of buttons and I would like to add some further buttons dynamically. This is how I do it: And this is how they look like: I am missing the spaces between the dynamic buttons. It looks like the buttons have been added
Tag: android
Fragment Inside a Fragment Not Working with ScrollView
When I am Using Fragment Inside a Fragment with ScrollView It is not working. In My Case the FirstFragment is fine. the fragment that is inside is not showing in full screen and lot of contents in BooksFragment are disappear this is My FirstFragment ‘s XML : </androidx.constraintlayout.widget.Constra…
How can I get a FileChooser to populate a TextView during a TableRow creation?
Problem: I’m having trouble getting a FileChooser class to populate a TextView during a TableRow creation. I receiving a Invocation Exception in the Android created “looper.java” which appears to be caused by a variable tagTrace=0 being read as “!=0”. So, I’m not sure how I…
How to add tiny charts in TableView
I’m relatively new to android and want to know how they add very tiny line charts in table view controls. For example, as shown below: I have tried this so far: implementation ‘com.github.PhilJay:MPAndroidChart:v3.1.0’ But it does not show in LinearLayout Layout without chart: And result wit…
BluetoothAdapter StartDiscovery does not work in Foreground Service
My application starts a service that detects phone shaking. When the service detects a shake, it searches for a BT device within range and if a suitable device is found, it connects to it and sends data to it. To check if the system is killing the service, I turn on the vibration when it detects shaking. Ever…
SetText in fragment from outside class
I have a fragment that displays data from APIs, but i dont want to be calling apis everytime the fragment is called.. so am making api call from a different class and and calling a method in the fragment to update UI (textViews) but am getting null exception for the textViews but data is 100% there and if i t…
Unboxing may produce Null Pointer Exception after checking if key exists in Map
Android Studio gives the warning: Unboxing of ‘idCollisonMap.get(currentId)’ may produce ‘NullPointerException’ even though I am checking if the key exists before I perform the Map.get(). Am I actually in danger of running into a null pointer exception? My understanding is that .contai…
How to open URL from ListView inside fragment?
Wanna make to open website when I click it from ListView. I made it with some youtube videos. Mixed up those youtube videos and of course, It’s not working. What should fix or add more code? I put my every codes to understand it. Need you guys help a lot. Two upper codes are for layout. And last 3 codes
inApp Update, download but not installed
I have a problem with inapp update. A new version window appears, when you press the “Update now” button, unfortunately nothing happens, the application downloads in the background, but nothing happens app is not updated. I would like to add that I am testing it on the “Open Test” in p…
Google Play store continuous rejection due to NOT compliant with the All Files Access Permissions policy [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about programming within the scope defined in the help center. Closed 2 months ago. Improve this question Google’s review team keeps rejecting our App after Target SD…