Posts by Demetrius • 105 points
21 posts
-
1
votes1
answer247
viewsQ: What is the right way to import css and javascript in a project view?
I saw on the internet that puts the files in the public folder and calls in the view the Asset function of Blade... but this is currently correct ? why I see that in the project the js and css files…
-
0
votes0
answers716
viewsQ: CPF mask with pure Avascript
I have the following mask code using javascript regular expressions <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title> simple document</title>…
javascriptasked Demetrius 105 -
1
votes1
answer2564
viewsQ: Justify-content-center is not centering content on my bootstrap
I have the following code structure <div id="container" class="container-fluid"> <div class="row align-items-center justify-content-center"> <div class="col-2"> <figure…
-
0
votes0
answers263
viewsQ: How to highlight a date in the Calendarview widget?
XML of the project <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"…
-
1
votes1
answer66
viewsA: Error using Mainactivity method in Fragment
try to run your code inside the onActivityCreated event @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); try { int tamanho=…
-
0
votes1
answer113
viewsQ: Error when creating a Trigger
I’m creating this Rigger DELIMITER // CREATE TRIGGER reposta3A AFTER INSERT ON utilizacao_veiculo FOR EACH ROW BEGIN SELECT emite_mensagem(); END// DELIMITER ; but when I execute the show triggers…
-
-1
votes1
answer38
viewsQ: I can’t find the error of this Stored Procedure
delimiter $$ create procedure reposta(out mensagem varchar(100)) begin if new.codigo_veiculo != null then set mensagem = "Algum veículo está sendo utilizado"; end $$ delimiter ; error that appears…
-
0
votes2
answers460
viewsQ: How to update Listview after deleting item?
I am deleting the Listview item and it works normal, only the notifyDataSetChanged() method is not working in my Listview and the item keeps appearing even after deleting. What can I do in this case…
-
0
votes1
answer68
viewsQ: Method setEmptyView is not working on my listview
I am setting the setEmptyView method in my listview but when it is empty it does not show the desired view, and also does not give any error in the log. public class ListaNotificacoes extends…
-
1
votes1
answer453
viewsQ: How to call a method in Fragment via listview Adapter
I have a fragment that has a listview inside it and inside lisview has a button. The button has to delete the listview item I have already made a method within onactivitycreated, but gives error…
-
0
votes1
answer34
viewsA: Include "Select All Vendors" in Spinner’s first position?
You can create an array file within the values folder with the spinner options and then pass this array in the Arrayadapter constructor array_gender.xml code <?xml version="1.0"…
-
0
votes2
answers731
viewsQ: How to run the click event on an image that is in Activity’s Fragment?
I want to run the function that is Fragment - remove task() - on an image that is in Fragment being added in Activity at runtime, and I’m not getting, help me !!! Code of the Activity public class…
-
1
votes1
answer57
viewsQ: Change the appearance of Alertdialog to the old one
I have this code that creates a Alertdialog public void mostrar_popup(){ AlertDialog.Builder dlg = new AlertDialog.Builder(getActivity()); dlg.setCancelable(false); //impede que a janela seja…
-
0
votes1
answer54
viewsQ: Listview does not respond with background effects when clicking on item
listview code <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"…
-
1
votes0
answers104
viewsQ: Textview does not align below with the android property:layout_gravity="bottom"
I have two Texts views that will appear in a Listview and I want one to be aligned above and one below, but it’s not working the way I’m doing.…
-
1
votes2
answers507
viewsQ: Error entering data in Sqlite database
Class creating the bank public class CriaBanco extends SQLiteOpenHelper { private static final String NOME_BANCO = "lista.db"; private static final int VERSAO_BANCO = 1; public CriaBanco(Context…
-
0
votes0
answers55
viewsQ: How to set the timepicker "timePickerMode" attribute to "spinner" via java?
class that creates the timepicker public class TimePickerFragment extends DialogFragment implements TimePickerDialog.OnTimeSetListener { @Override public Dialog onCreateDialog(Bundle…
-
0
votes1
answer50
viewsA: Transparency effect on components
try adding this attribute to your button android:background="@android:color/transparent"
-
0
votes1
answer146
viewsQ: How to show the old android timePicker ? the one that appears only the numbers
I’m using a code from the own documentation of android to create the timepicker as dialog, but it is appearing like this And I want him to show up like this Class that creates timepicker public…
-
0
votes0
answers102
viewsQ: Error starting Activity in Api 17
I have a code that is working perfectly in api 25, but when I run it in api 17 it gives this error below: 03-25 13:26:59.750 1895-1895/? E/AndroidRuntime: FATAL EXCEPTION: main…
-
1
votes2
answers1372
viewsQ: When changing Fragment, the previous one is visible below the new one
I’m using Fragments instead of Activity, only when I call the second Fragment with the replace method, it doesn’t completely overlap the previous Fragment, it’s on top, but the drawing of the other…