Posts by Éowyn • 515 points
25 posts
-
0
votes0
answers267
viewsQ: How to set Actionbar height?
I want to put the height of Actionbar as 80dp but the way I did it’s not working: <style name="LargeActionBar" parent="Base.Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme…
-
0
votes0
answers204
viewsQ: Imageview turns white when loading Activity and black when receiving image from gallery
I am saving users with a default image at the time they register in the application and this image is a drawable that is saved as a String in the database: Method of the Controller class: public…
-
1
votes1
answer683
viewsQ: Gson: Jsonobject to Jsonarray conversion error (Jsonprimitive cannot be cast to com.google.gson.Jsonarray)
I am trying to convert a Jsonobject item into an Arraylist and for that I created this function from an example I saw here in the forum: public static ArrayList<Produto> converte(JSONObject…
-
0
votes1
answer134
viewsQ: Can I use JSON to save Arraylists in Shared Preferences?
I’m developing an app on a college project and I’m creating the control part, I won’t mess with the server part for now because I don’t know much about. I’m creating functions to generate some…
-
1
votes1
answer1041
views -
0
votes1
answer163
viewsQ: IO Exception error when trying to manipulate a file
I have already compiled and run the program in Netbeans and it works normally, but when I run it through the terminal always gives the IO Exception error. Is there any other way to read files…
-
6
votes1
answer350
viewsQ: Can you create an Expandablelistview with the Swipe effect?
I have a ListView which is composed of 3 ListView's chained. The first is a list of Year of release, which has a list of genres that in turn stores a list of movies. I wanted to have the option to…
-
0
votes1
answer83
viewsQ: Landscape mode does not work
I already made the layout for the Portrait mode and created the layout-land folder and pasted all the xml files I already have to be able to adjust. From what I read, just do it but it’s not…
-
1
votes1
answer90
viewsQ: Listview and Imagebutton selector does not work
Both the button and Listview do not change when clicked, but the settings when the item is not pressed work. Listview: <ListView android:id="@+id/listaListas" android:layout_width="wrap_content"…
-
2
votes1
answer618
viewsQ: Permission denied when accessing gallery image
I need to allow the user to choose an image from the gallery and for that I am trying to get the application to request the user’s permission. I created the variable ok to give permission to the…
-
2
votes1
answer292
viewsQ: Camera appears with black screen. Error fail to connect to camera service
I would like to open the camera, but without the buttons that appear normally, I would like to add my own buttons and assign functionality to them. I looked it up, but I couldn’t find any answers.…
-
3
votes1
answer126
viewsQ: Design material properties do not appear in API 19 appliance
I added the support library for Apis below 21 and am testing the property elevation in my components. In the layout view, when I click on the design tab, I can see the elevation but when I run to my…
-
1
votes1
answer254
viewsQ: Add empty item at the end of Listview
I have a FloatingActionButton in the lower right corner of my screen and when it comes to the end of ListView, it sits on top of a button. I would like to add an empty item at the end of the…
-
1
votes0
answers66
viewsQ: paintComponent() method deleting images in Jframe
I need to generate a map according to a txt file that I receive as input. Each font of my txt file corresponds to a type of map terrain. I created arrays of Image that will store the images that I…
-
2
votes1
answer88
viewsQ: Create Jlabel under image
I created a 672x750 Jpanel and put a 672x672 image inside it. I need to put texts under the image, in the space that remains. Is there any way to create a Jlabel and position it below the image? I…
-
2
votes1
answer1079
viewsQ: Insert background image in Jpanel
I already checked and the path is correct, but when I run nothing appears on the screen: public class MapaInterface extends JPanel implements ActionListener { private Image fundo; public static…
-
2
votes0
answers642
viewsQ: Display button while sliding Listview item
I need to make two buttons appear when I slide an item from ListView to the left. I even managed to do that, but it’s pretty ugly. I would like them to appear as if they were being "pulled" from the…
-
0
votes1
answer285
viewsQ: Insert button dynamically in Relativelayout
I have a Listview and I want to add a button next to each item in the list, but it has to be dynamically: item_listview.xml <RelativeLayout…
-
1
votes1
answer287
viewsQ: How to give a list of images the behavior of a Radiogroup?
I have 2 image vectors, one for the normal image and another for when it is selected. When selecting an image on ListView I need the others not to be selected. I’ve tried many ways and this was my…
-
0
votes1
answer60
viewsQ: App stops responding when running onStartCommand
I call the service at onPause() And once I leave the app, it stops responding after a while. From what I’ve researched, it may be that the processes are too heavy to execute in the background. I…
-
1
votes1
answer122
viewsQ: Simpleformatdata returning null HH:mm:ss
I need to take only the time informed by the user, but the method I did returns null when I try to change the format to HH:mm:ss public static Date formataData(String data) throws Exception { if…
-
5
votes1
answer9780
viewsQ: How to make application running in the background all the time
I tried to use the Service as they said but it’s not working yet. I don’t know if I got it right, the method onStartCommand() will run all the time? Because I debug and the application only enters…
-
3
votes1
answer300
viewsQ: How do you make sure it’s another day?
I’m making an application where a feature is available until a condition is reached, after that I have to disable the functionality and only enable it the other day. How do I know it’s another day?…
-
0
votes2
answers1630
viewsQ: Limit image size without cropping
How do I limit the size of a Imagebutton within a Linearlayout? I limited the size of Linearlayout and left the image sizes as wrap_content thinking it would fit the size of the layout but the image…
-
0
votes1
answer164
viewsQ: How to make dialog that accesses a view without using setContentView
I am creating a dialog with an Edittext, and I need to take this value in another Edittext, without using setContentView pq do not want to redirect to the dialog xml... Follows the code:…