Posts by Eduardo Bonfa • 149 points
19 posts
-
2
votes1
answer52
viewsQ: How to continue selecting after onItemLongClick?
I have a listView,who has a method onItemLongClick that when clicking selects the clicked item. I would like to know how to continue selecting with just one click. If anyone can post an example I’d…
androidasked Eduardo Bonfa 149 -
2
votes0
answers377
viewsQ: Drawable isn’t picking up images
Guys, I’m making an app that has a Drawer, and the menu that appears laterally is a navigationView. So far so good, but in the code . xml I want to add icons, is not picking up the images. The code…
-
1
votes2
answers841
viewsQ: What exceptions should I capture in a Try-catch?
I have some doubt in try catch in relation to which types of exceptions put. In this example either would be the best option? try { String folerPath = Environment.getExternalStorageDirectory() +…
-
0
votes1
answer185
viewsA: Method onAttach Android
I found a way, I’ll post it if anyone needs it after running the code in Fragment put this code: Activity act = getActivity(); if (act == null) return; View layoutProgress =…
-
0
votes1
answer185
viewsQ: Method onAttach Android
Guys, I’m having trouble using the onattach. I have a view that is set Visible when a button is triggered. I would like this View to disappear at the end of an operation of a Fragment. Look at the…
-
0
votes3
answers2523
viewsQ: Progressbar does not change color
I have this problem of changing colors. Code: <ProgressBar android:layout_width="wrap_content" android:layout_height="wrap_content" android:indeterminateTint="#00bfff"/> Appears to have…
-
1
votes1
answer406
viewsQ: Circular Progress Bar Android
Guys, having trouble making a circular Progress bar, would anyone like to explain me and show me some example?. Thank you very much.
-
0
votes1
answer68
viewsA: Help with Scroll Android
I changed the code and it went like this. @Override public void onScrollStateChanged(AbsListView view, int scrollState) { if (takingPictures && scrollState ==…
-
0
votes1
answer68
viewsQ: Help with Scroll Android
Guys, I have a floating button in my view that prints all the items on my listview. What happens is that when I click on the floating button it takes a picture of the first 3 items and does not take…
-
0
votes1
answer93
viewsQ: Listview is not updating, Android
Guys, I have the code below. I created a FloatingActionButton who takes pictures of all the items that are on ListView, but the method list.getChildAt(i). isEnable is returning nullpointer. Some…
-
1
votes0
answers107
viewsQ: Update UI during print screen process
I have a Activity and several Fragments in it and, in a Fragment, I have a list of images. I want it, through a floating button, to print all the images without having to change the image that…
-
0
votes1
answer50
viewsQ: How can I tell which viewpager this is when I try to take a print with a floating boot?
I have a view with several Ragments, I added a floating button to print the screen, but I would like to know how to differentiate each Ragment to put different names in the photos. I have the code…
-
1
votes5
answers2115
viewsQ: How to make the keyboard disappear when click out of it? Swift
I have a normal Textfield, but I’d like to know how to make the textField keyboard disappear when I click off it. I know how to make it disappear by clicking on Return using the delegate…
-
-1
votes1
answer48
viewsQ: Error with switch in Swift
Guys, I’m having an error in the following code. The error is on the switch, the following error appears: expected declaration. What to do? import UIKit class ViewControllerAnalseOP1:…
-
1
votes2
answers219
viewsA: Sending data from one tableView to another
Vlw Galera for the answers, but in some situations in Swift I prefer not to use init. So I solved it this way. override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { var…
-
1
votes2
answers219
viewsQ: Sending data from one tableView to another
I would like to pass values from one tableView to another. I took a value through indexPath.Row, I would like to send the value to another tableView so that it can make a switch to appear different…
-
1
votes1
answer58
viewsQ: How to use didSelectRowAtIndex?
I would like to know how to use didSelectRowAtIndex, more specifically I would like to know how each Row of my UITableView calls a ViewController specifies. In my code below, in case would like each…
-
0
votes2
answers106
viewsA: Xcode cannot find button
This error occurs when what is on the storyboard is not properly linked to viewcontroller. Click the right mouse button on the button and see where it is pointing. This will be in Sent Events. You…
-
1
votes2
answers239
viewsQ: How do I see a view inside the Viewcontroller after pressing a button?
I’m starting to program in Swift and would like to know how do I hide and show a view which is inserted in ViewController after pressing a button. In the app, the user will pass some data and click…