Posts by AndersonCanteiro • 376 points
13 posts
-
2
votes1
answer55
viewsA: Make Toast disappear while running root command
Go in the settings, mark to always ensure permission and have a setting there to no longer show the alert when to guarantee.
-
0
votes1
answer89
viewsA: Title in Scrolling Activity
Look at this tutorial Toolbar Animation with Android Design At the end there is the Activity code, where it shows that there is a system in appear, when it is expanded you clear the text…
-
0
votes2
answers371
viewsA: Build Gradle Dependencies Version Conflict
In your Radle dependencies put this: //Resolve conflitos da lib support configurations.all { resolutionStrategy.eachDependency { DependencyResolveDetails details -> if (details.requested.group ==…
-
2
votes2
answers532
viewsA: Button to display and/or hide keyboard
etNumerico.setInputType(InputType.TYPE_NULL); Try the above to define that it will not call the virtual keyboard. And to show or hide the keyboard by a button like this: //Mostrar e esconder private…
-
0
votes1
answer317
viewsA: Update recyclerview from another fragment, in the same viewpager
Try to do so, let’s assume that this in the open transaction fragment and will update the transaction fragment performed. In the transaction fragment performed you make an upgrade method private…
-
1
votes1
answer38
viewsA: Calendar returns object with an additional 1 month
The months in java go from 0 to 11. So when you pass the month 11 it returns December, 0 = January, 1 = February and so on.
javaanswered AndersonCanteiro 376 -
0
votes1
answer108
viewsA: Change item color in a listview that contains certain TEXT
I just can’t remember if parseColor will accept the way I did, I believe so. @Override public View getView(int position, View convertView, ViewGroup parent) { View view =…
-
2
votes1
answer315
viewsA: Error inflating menu in navigation Drawer in Nougat and Oreo version
Test in 7.1.1 In this section you can do so: @Override public void onBackPressed() { if(navigationView.isShown()){ drawer.closeDrawers(); } } And this one: public boolean…
-
2
votes1
answer606
viewsA: How to open the virtual keyboard on a Fragment focusing on editText?
In case I use in an Activity private void mostraTeclado() { View v = this.getCurrentFocus(); if (v != null) { InputMethodManager inputManager = (InputMethodManager)…
-
0
votes2
answers130
viewsA: Show Edittext by clicking the Floatingactionbutton
You could do it two ways: Inflate this Framelayout/Inflate and use in a Alertdialog view Put the edt and button in the same layout as floatingbutton and work with visibility…
-
0
votes1
answer193
viewsA: Spinner does not load data from the.xml string
Try switching from prompt to Entries android:entries="@array/tiposPessoa" in the strings.xml put the data <string-array name="tiposPessoa"> <item>Selecione uma opção</item>…
-
2
votes1
answer71
viewsA: Recyclerview Scrolllistener - Animate view visibility
Try to put this in the xml layout, top that part xmlns:app="http://schemas.android.com/apk/res-auto" Then in the layout where the buttons meet app:layout_scrollFlags="scroll|enterAlways" In case I…
androidanswered AndersonCanteiro 376 -
1
votes2
answers306
viewsA: Alertdialog Custom Layout - Nullpointerexception Error
final LayoutInflater inflater = LayoutInflater.from(getActivity()); consultas = new ArrayList<>(); AlertDialog.Builder builder = new AlertDialog.Builder(this.getContext()); //modificação View…