Posts by Boneco Sinforoso • 817 points
61 posts
-
2
votes2
answers56
viewsA: Widening conversions and option Strict on
I’ll get the third conversion of your question as an example. A decimal variable has the accuracy of 28 or 29 digits. A double variable has the precision of 15 or 16 digits. Decimal variables are…
-
-1
votes1
answer49
viewsA: How to make layout not be pushed up when my app keyboard appears?
The solution I found solved the layout problem by distorting, but with that the ad remained below, which I found preferable compared to the previous state. For that I added to…
-
-1
votes1
answer49
viewsQ: How to make layout not be pushed up when my app keyboard appears?
Layout of my application: The bug happens when I click on any of the editTexts to add some value to them: As you can see, the ad and two of the balloons go up. In this case, until The ad rise is not…
-
0
votes1
answer62
viewsQ: How do I get the interfacial ad between an Activity and another?
I think I did everything correctly, but the application jumps to the next Activity without appearing anything. public class... private FirebaseAnalytics mFirebaseAnalytics; private AdView adView01;…
-
1
votes1
answer479
viewsA: Is it normal not to see anything indicating if I have implemented ads correctly in my app?
Adding the following lines, I was able to resolve my question: Mainactivity import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.AdView; public class private AdView…
-
0
votes1
answer77
viewsQ: Do I need to add all ads to the.xml string?
I already know that I should create a block for every actvity of my application that I want to display ads, but I don’t know how do I modify the string.xml (if any) after the first ad block has been…
-
2
votes1
answer479
viewsQ: Is it normal not to see anything indicating if I have implemented ads correctly in my app?
Obviously I don’t expect any real adverts to appear, but some indication that I did the procedure correctly so I know if it’s all right. 1st Image (Preview Android Studio) 2nd image (Application on…
-
0
votes1
answer38
viewsQ: I can’t fix the bug with adUnitId
The command of the line ads:adUnitId="@string/banner_ad_unit_id" of xml is not recognized in any way by Android Studio. I just added import import com.google.android.gms.ads.MobileAds; in the…
androidasked Boneco Sinforoso 817 -
0
votes1
answer260
viewsQ: Error while trying to add an image as a button background
A few days ago, Android Studio indicated that it had updates that were available... I had already finished an application some time ago and it was ready to be published and Talz, only lacked the…
-
1
votes1
answer197
viewsQ: How do you make a Button visible only after an animated Textview has been fully written?
In the protected void onCreate(Bundle savedInstanceState) of Mainactivity eu I serve the button so that it is invisible and also so that it does not occupy space with the following code:…
-
-1
votes1
answer77
viewsA: When I place a main screen, this main screen disables the calculator on the second screen
To solve your problem do the following: On the line public class MainActivity extends AppCompatActivity { add implements View.OnClickListener leaving the line that way: public class MainMenuActivity…
androidanswered Boneco Sinforoso 817 -
0
votes1
answer164
viewsA: How to create Components dynamically, being created in relation to other existing Components?
The solution I found was the following: In the image below you can see that there is a 50x50 (dp) button at the top and left in the Activity layout. Below it has another button with the same…
-
3
votes1
answer147
viewsA: Error when multiplying java null values
Well to solve your problem I will give you a way to set the value 0 both to variable doubleCOUNT for the variable doublePRICE_UNIT when editText has nothing written. Add the method…
androidanswered Boneco Sinforoso 817 -
1
votes1
answer70
viewsQ: How to play a sound only while an animated Textview is playing?
The sound I’m using is from a keyboard being keyboard and was taken from this video => https://www.youtube.com/watch?v=pcNlc0zTMuU Duration => 2,577 seconds I added it to the RAW folder of the…
-
1
votes1
answer168
viewsA: add a listener to editText
In your Edittext you add the method addTextChangedListener() as follows: package genesysgeneration.svg; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import…
-
3
votes1
answer1958
viewsQ: What is the real difference between a button and an imageButton?
The image I used to do the tests is a simple gear of dimensions 100x100 with transparent background. At first I noticed that differently from the Button, by creating a Imagebutton you are bound to…
-
0
votes1
answer164
viewsQ: How to create Components dynamically, being created in relation to other existing Components?
In an android studio project, when clicking on one of the 2 existing Textview on Activity (01 and 101) a Textview displays a corresponding answer to the choice. I would like to know how to make a…
-
0
votes1
answer33
viewsQ: ANIMATEDTEXT eliminating all other Activity Components and how to make it run in Textviews?
I can’t get this Animation to run in my Textviews, and the same (animation) runs without any Textview or anything like that in my Activity: See, even if I add Components to my Activity, they…
-
0
votes1
answer54
viewsA: Typeface does not change the font
You must have created the Assets folder in the wrong location. Change your project’s preview from android to project: Then insert the Assets folder into the folder main (seuapp/app/src/main/Assets):…
androidanswered Boneco Sinforoso 817 -
0
votes1
answer302
viewsQ: How to make a Scrollview with multiple Components?
I am trying to get an Activity of a project of mine to contain a considerable amount of Components. I tried to do this using a Scrollingactivity that contained more than just the "default" textView…
-
1
votes2
answers809
viewsA: How to change background when changing screen orientation on Android
You could use a vector image, but if you don’t want to just do the following: 1º => change the view of your project from "android" to "project". 2º => Then create in the folder "res" the…
-
0
votes1
answer83
viewsA: What is the gml code of MOVE FIXED in the game maker?
Well the solution is really quite simple. When I asked the question I was wanting there to be a randomization in the direction in which the object was (left/right) after colliding with one another,…
gmlanswered Boneco Sinforoso 817 -
1
votes1
answer531
viewsQ: How to create a textView by code in a specific Activity location?
I wonder how to choose the place where the textView created by code will appear, because by default it is created at the top left of the Activity. Activity: package genesysgeneration.classsound;…
-
0
votes2
answers755
viewsQ: How to make a button or a checkbox become inaccessible in android studio?
I would like it to be confirmed that the choices of both Uttons and checkboxes become inaccessible/irresponsive/inactive. I know you can do this using if, but I believe there must be some function…
-
1
votes1
answer1012
viewsA: How to use custom buttons?
To modify the source of a Textview for example: you must first add it to your project in android studio, as follows... 1º => Create the Assets folder in app/src/main/Assets... If you have…
androidanswered Boneco Sinforoso 817 -
4
votes3
answers1946
viewsQ: Animate the text of a textView in order to be displayed progressively?
I would like the text of the textView present in my Activity not to be displayed all at once, but gradually, something like a Power Point transition. An example of what I want to do exactly would be…
-
0
votes1
answer359
viewsQ: Central alignment appears correctly in the Activity preview, but not when running the app?
I put alignment to the center for all textView and in the preview of Activity, still in android studio, all right: But when I run the app the same doesn’t happen: Even if you set the layout_width of…
-
0
votes1
answer464
viewsQ: How to change the color of a Hyperlink in android studio?
I can do Hyperlink perfectly, the problem is that your color is not contrasting well with the background of my application (follows picture): I would like to know how to change your color, since…
-
2
votes1
answer99
viewsQ: Hyperlink that when clicked open a particular application and if it is not installed, open the link of the same in Google Play?
The application in the case is the Telegram and it works with a simple system of reference to users, channels, groups. I would like to click on hyperlink (clickable textView) which has the user link…
-
0
votes1
answer255
viewsQ: Would 15 be the maximum limit of images per Drawable Resource File in Android Studio?
I’d like to make a Animation Drawable with 18 images in Android Studio, but when trying to run it the application stopped out of nowhere and gave this in Android Monitor: 03-16 16:58:26.531…
-
1
votes0
answers44
viewsQ: Error while running new Drawable Animation on Android Stuido
I have a problem. I created a test animation for a Splash Screen of a project of mine. It works well. Now when I made a new animation to subtype this old, out-of-nowhere app. Animation 1 =>…
-
0
votes1
answer55
viewsA: Leave listview item by filling the entire screen
Let the layout_width and layout_height setados with math_parent. In Activity xml delete the following lines of code: android:paddingBottom="16dp" android:paddingLeft="16dp"…
-
0
votes1
answer83
viewsQ: What is the gml code of MOVE FIXED in the game maker?
I wonder how the function moves Fixed in gml (game maker language): I found some similar moves with which I can do some "gambiarras" for them to act the same way as the move Fixed, but if the move…
gmlasked Boneco Sinforoso 817 -
1
votes1
answer2438
viewsA: Open App when booting android
If it was in Android Studio was just you indicate in tag Androidmanifest.xml permission code: android.permission.RECEIVE_BOOT_COMPLETED. This action is a requirement of Android for the application…
-
0
votes1
answer120
viewsQ: How to modify a Listview present in another Activity without using Intent?
I created a listview in the initial Activity of a project, and would like to know how to modify it from other activitys, without having to use the "Intent.". Activity01 (where the listview is):…
-
0
votes0
answers230
viewsQ: Error when trying to add a Fragment to a project in android studio?
I created a project and did not put anything in it, the same is zeroed, only with that textView "Hello World". The problem appeared when I tried to add a Fragment (with a + 1 button) to the project:…
-
2
votes2
answers611
viewsQ: How to delete a particular data from a listview?
The app has two Uttons that when clicked add an item to a listview (bow and sword), but I would like if the item of each button was already present in the listview, the same would be deleted.…
-
0
votes2
answers536
viewsQ: Concatenation of an arrayList into a listview?
I wonder if there’s a way to add "strings" to be exhibited in a listview so that I don’t have to be imposing conditions and more conditions and set again the "strings" already used: package…
-
1
votes1
answer782
viewsQ: How, using java, to bold certain parts of a Textview?
I would like to know how to make a certain part of a text that will be displayed in a TEXTVIEW bold: I would like the text displayed to look like this: Total value => R$ 1100. Activity: package…
-
3
votes1
answer95
viewsQ: Unused images in android studio project are included in APK?
Normally I’m not satisfied with the first image I put up as background, is from Activity, textView, button, etc. Even imageViews at last. It happens that I leave them there in the project, even not…
-
0
votes1
answer174
viewsA: How to assign values to variables through Checkboxes and from there create specific Textviews in another Activity
Another one that I discovered the answer shortly after I asked the question, but even after all this time no one answered. Follow the solution I found and thought it best for my problem: Main1.java:…
-
0
votes3
answers128
viewsA: I would like a Textview to display the amount of Checkboxes that have been marked
I reached the solution shortly after the question, but looked and saw that no one had answered it yet. I decided to show myself how I resolved. Follows the code: package genesysgeneration.cbnumber;…
-
1
votes2
answers1303
viewsQ: Position text in Textviews and Edittexts with an image as background?
I created a simple app that has only one Textview and a Edittext: As you can see changed the background of both, so far no problem: The problem appears when I insert texts, because they are poorly…
-
2
votes1
answer276
viewsQ: I can’t set a vector image as an app icon
As you can see I’ve correctly added a svg. so that it acts in a vector way: The problem happens when I try to put it as app icon: I go to Androidmanifest.xml and normally modify the line…
-
0
votes2
answers821
viewsQ: Error while trying to display a vector (SVG) imageView!
Good guys, in this app I intend to do a test inserting a vector image in the main Activity. I did the integration process all right, as you can see: But even having followed the entire tutorial, the…
-
0
votes1
answer821
viewsQ: When entering data into Edittext, do one Textview and one Edittext start moving?
At first everything is normal: Something really strange happens when I insert some content in Edittext: A Textview and an Edittext start to move to the right, as I insert characters, whatever they…
-
0
votes2
answers877
viewsQ: Textview is not displaying decimal numbers of a long type variable!
I created 3 Textviews and 2 variables of the type long. 2 of the Textviews will display the two long variables separately, while the last one displays the result of a split of the first (N01) long…
-
2
votes2
answers212
viewsQ: When I delete the last Edittext character from the PARA app, what to do?
I type a number sequence normally and Talz, now if for example I type "1234" in any of the 3 Edittexts existing in my Activity... ... and delete until the last character, ie when I delete the last…
-
0
votes1
answer143
viewsQ: Error using Long.parseLong to capture Edittext value for a LONG variable
I created an app that contains only one Activity. In this app there are 3 Edittexts and 1 Textview. I created 3 variables of the type long (l01, l02 e l03) to receive the value of the 3 Edittexts.…
-
0
votes1
answer514
viewsQ: I can’t get a Textview to display the content in an Edittext!
I created an app where in its layout contains a Edittext and a Textview. The initial content of Textview is: "nameless". I would like the content of Textview was changed when I inserted something…