Questions tagged as 'android-fragment'

2
answers

How to put an imageView in Circular format inside an Android fragment?

I found several English tutorials on the net with examples of methods for rounding a bitmap image. But I could not implement them within a fragment. How to proceed in this case?     
asked by 27.06.2016 / 21:34
2
answers

Choose which fragment will be shown in the activity

I have Activity that the email is requested and if the email exists it shows a Activity with a Fragment to enter the password. If this email does not exist, I want to display a Fragment , in the same Activity , f...
asked by 13.09.2016 / 21:34
2
answers

What kind of database to use and how not to create many activities? [closed]

I want to create an application, which will use barcode recognition, this bar code will lead to a screen on the medicine, the part of the database I do not know which to use, because I have never used it, the screen I intend to create one reuse,...
asked by 25.12.2018 / 22:22
1
answer

Start an activity from an item in the bottom navigation (menu bar)

I have the activity main and a bottom bar navigation with 4 items. When I start the application, it starts, it shows the activity of the first item. I wanted to get it "started" from item 3. Is it possible to do this? How?     
asked by 18.02.2018 / 05:03
1
answer

Insert ScrollView throughout Activity

Hello, I need to insert a ScrollView into the entire layout . But I can not. Here's my code. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http:/...
asked by 16.05.2017 / 18:53
1
answer

bug in Fragments setArguments and getArguments

I'm trying to pass some information from ActivityMain to a fragement but the android is complaining, in ActivityMain I pass values like this: if (f_caixaTexto== null) { f_caixaTexto = new PageCaixaTextoFragment(); f_caixaTexto....
asked by 09.03.2017 / 00:10
1
answer

Recovering information passed in a Bundle

I have a Fragment that calls another fragment passing login information to the other. I do this with the following code through the Bundle. Here is the code: ImageView editarBt = (ImageView) view.findViewById(R.id.editar); editarBt...
asked by 26.06.2017 / 17:44
1
answer

Return string in a query in SQLITE

I need to return a user's name in an SQLITE query: I'm using the following code: public String verificarUsuario(String login) { try { String selectQuery = "select nome from usuarios where login = " + login;...
asked by 26.06.2017 / 20:44
1
answer

How to call an alertDialog within a fragment?

I can not call an alertDialog inside a fragment. At the time of setting the builder (this) it returns error. Here is the code: public void mostrarMsg(String titulo, String mensagem) { AlertDialog.Builder builder = new AlertDialog.Builder(t...
asked by 28.06.2016 / 14:09
1
answer

How to call a method that is inside my Fragment through the onclick of a button that is also inside the fragment?

How to call a method that is inside my fragment by java through the onclick of a button contained in the same fragment? Here is the code: public class FragmentMinet extends Fragment { @Override public View onCreateView(LayoutInflater inflate...
asked by 28.06.2016 / 14:59