Posts by underfilho • 600 points
34 posts
-
1
votes2
answers2198
viewsA: Program Ignoring the Scanf
Sometimes there is a kind of "garbage" in the keyboard buffer that is when you press enter, then when you enter the next scanf it receives this enter again and for it is as if it had already…
-
0
votes1
answer73
viewsA: Error When Compiling Xamarin Project
If you put in the Activity code it would be easier to find out, but most likely you are inheriting your Activity(s) from the class AppCompatActivity, so the theme of that(s) Activity(s) needs to be…
xamarinanswered underfilho 600 -
1
votes2
answers116
viewsA: Guys, does anyone know what call or perform this technique in the studio Android?
This "technique" is the AlertDialog, it comes on Android itself and is quite easy to be implemented, by default it only allows title, text and three types of buttons (positive, negative and…
-
0
votes2
answers219
viewsQ: Is it possible to call a method within another instance?
I have a Activity which shows a AlertDialog customized, as the class of Activity I put the call of this Alert in another class in a static method. When clicking a certain Alert button (or when…
-
4
votes2
answers192
viewsQ: Why is there no String.Toint() method?
String in C# is an object, right? From what I saw to string is a class, different from int and other primitive types that are simple types, (I’ve seen on another site too, that they are all objects…
-
0
votes1
answer38
viewsA: It is possible to request a specific file for the user
I was able to solve, but it wasn’t through MIME type nor standard managers, I downloaded the aFileDialog library (https://github.com/jfmdev/aFileDialog) and in it you can send the type of extension…
-
0
votes1
answer38
viewsQ: It is possible to request a specific file for the user
I want to get a special file from the user. It has how to put the name of this file as type in Intent? For an image for example, use: Intent intent = new Intent(Intent.ACTION_PICK)…
-
3
votes1
answer77
viewsQ: Why do the app files remain after uninstallation?
I was reading about storage on Android, I realized that there is the internal app (/data/data/package/files) and the external (that needs permission). On the outside, we have the public and private…
androidasked underfilho 600 -
0
votes1
answer87
viewsQ: Edittext losing focus on Listview header
I put a header in my ListView because I wanted him to roll along with her. In this header there are two EditText, When I click on the second, the focus goes back to the first one in less than a…
-
2
votes2
answers565
viewsA: Select in Xamarin Forms, how would it be?
In the Android and in the Xamarin.droid is known as Spinner, in the ios I found nothing on. Here is a discussion about the Spinner in the Forms:…
-
0
votes1
answer98
viewsA: How to change the file menu that is being used in Android Menu Navigation Drawer?
There is a way, but depending on what you intend to do I do not know if it would be usable, because it also closes the Navigation Drawer, but going on... It is possible to change the file that is…
-
0
votes1
answer169
viewsA: How to instantiate views of another layout?
If anyone needs an answer in the future, also: the NavigationView (where you define the main header) has a method called getHeaderView(), after instantiating the NavigationView you "save" his header…
androidanswered underfilho 600 -
0
votes2
answers2358
viewsA: Show only the last word of a string
The logic is a little different from the one proposed by you, but it works and (I think it is) simpler (although it reads the whole sentence, through the other method would only read the word…
-
0
votes0
answers117
viewsQ: I am unable to modify the layout when opening the keyboard
I’m trying to "decrease" the layout when opening the keyboard, but I’m not getting it, it’s inside a ScrollView and I realized that he ignores the free space below the views (where there are no…
-
0
votes1
answer239
viewsQ: How to make different versions of an image for different screen densities?
I have an image that will be placed inside my app (just an example), how can I make a version hdpi, xhdpi, xxhdpi, etc of it? I know I should put in the respective folders, but when I only have one…
-
1
votes2
answers1481
viewsA: Change the Navigationdrawer menu color?
You mean the entire menu or only this image that is at the top? To change the color of where the options are NavigationDrawer (where it is in white color currently) you can go on .xml and set the…
androidanswered underfilho 600 -
1
votes1
answer35
viewsA: How to make a Circleprogress in Xamarin Android?
I figured it out, I used the Xamarin Bindings for this, I did not know him very well, but he is very simple and objective. I took this library made in Java Android:…
-
0
votes1
answer169
viewsQ: How to instantiate views of another layout?
I have the layout main and the code that controls it, this layout has a Navigation Drawer (the "slider" on the left) and left the layout of the Main Header (the top of the Navigation Drawer where…
androidasked underfilho 600 -
0
votes1
answer35
viewsQ: How to make a Circleprogress in Xamarin Android?
I’m programming in Xamarin.Android and I need a progressbar (or something like) circular that really shows some progress, I tried to use the ProgressBar really, but it just shows progress…
-
1
votes1
answer185
viewsQ: How to create a split between views?
I’m creating an app that uses a ListView to show items and wanted to know the best and most customized way to create splitters between them, also wanted to know how to use another splitter between…
-
4
votes1
answer1554
viewsA: Delete repeated words in a string
Your code is very simple for its function, you are wrong because you are comparing characters and not strings, a char does not mean a string, but even if it meant the code would still be missing…
canswered underfilho 600 -
0
votes0
answers31
viewsQ: What is the difference between a {get; set;} property and a public variable?
I’m programming in C# and I always see them use propriedades allowing to take and set the value of the variable, but what is the sense of this? When you let it just take the value or something I…
c#asked underfilho 600 -
1
votes3
answers3861
viewsA: How to replace the comma
You can use the method String.Replace(string1, string2) or String.Replace(char1, char2), in 1 you put what you want to remove, and in 2 what you want to add, example: string num = 2,32 num =…
-
2
votes2
answers749
viewsQ: How to use Android Studio Interface Editor only?
I program for Android with Xamarin in the Visual Studio, but I don’t like his design editor at all, I can only use his editor Android Studio when I need it? I changed the design extension from .axml…
-
2
votes2
answers397
viewsA: Edittext Spacing Help
How do you already use the LayoutParams when adding the new view, is simpler to explain. Before calling the layout.addView there on the last line, you must declare the Layoutparams before (as you…
-
3
votes1
answer153
viewsA: How do I make Button work only if Edittext is filled in?
Thinking here I managed to find two ways to do this. The first (which I think best by explaining the "error", but not exactly what you asked for) is to leave the clickable button and click to make a…
androidanswered underfilho 600 -
3
votes1
answer68
viewsQ: What is the difference between a Toolbar and another view?
I’m learning to use the toolbar on Android development and saw that the use of it is very similar to other views, I saw that you can put it without being at the top, that you can put items inside it…
-
2
votes1
answer738
viewsA: image view and text view side by side in linear layout
Exchange the orientation of LinearLayout for horizontal (android:orientation="horizontal"), if you want each item to take up half the screen android:layout_weight of both with the value 1 (sets the…
-
0
votes2
answers452
viewsA: String comparison in C
First, you are declaring only one char there at the beginning and using it as a vetor, you need to declare the amount of characters you will use in his statement, you can make a base of how many you…
-
0
votes1
answer74
viewsA: Where is my mistake?
To my knowledge you must instantiate the views in the method OnCreate() since he’s with the layout of xml, try to put all the findViewById in the OnCreate() (can leave it out as is, so other methods…
-
-1
votes1
answer110
viewsQ: How to edit items in sqlite.net with Xamarin
I’m learning to use sqlite.net in the Xamarin, but when editing an item is not working, I debug the code and gave a breakpoint in the EditItens() and saw that the values passed to…
-
3
votes3
answers608
viewsQ: Lists repeating last added item
was studying about the lists in C# and I couldn’t understand what was wrong with my code (probably going to be very basic), all the items are the same as the last item added. I simplified the code…
-
0
votes1
answer472
viewsQ: Error creating project in Eclipse
I downloaded Android Studio for Android programming, but it takes almost 10min just to open/create a project, so I tried to see other media and found the eclipse with android SDK , well, I…
-
-1
votes1
answer255
viewsQ: Bug in a C code
I know, this code is very simple and this bit ugly tbm, I am beginner and I am trying to facilitate this function, someone can tell me what the mistake? Screenshot of the bug: #include…