Posts by Francisco Melicias • 161 points
8 posts
-
0
votes1
answer230
viewsA: How to pass the name of Image Dynamically?
You can make a list of all your images like this: list.add(R.drawable.s1); list.add(R.drawable.s2); list.add(R.drawable.s3); list.add(R.drawable.s4); to pick up the R.drawable.sN just make a for…
-
0
votes1
answer596
viewsA: Why doesn’t the app come off the white screen and make no mistakes?
for (int contA = 0; contA < btn.size(); contA++) { int numero = nRand.nextInt(99) + 1; Boolean continuar = true; for (int contB = 0; contB < btn.size(); contB++) { int aux = sorteados[contB];…
-
0
votes1
answer292
viewsA: Switch to Fragment by clicking the button inside the Fragment
I’ll write down what you have to do Send your activity into the fragment, send the this 2nd It is a function in your activity where the fragment ex: public void mudarFragmento(){ //aqui dentro…
-
1
votes1
answer357
viewsA: Save the Shard’s state?
In the fragment, saves the state overriding onSaveInstanceState() and keeps in onActivityCreated(): @Override public void onActivityCreated(Bundle savedInstanceState) {…
-
0
votes3
answers2371
viewsA: How to use one if inside the other?
cout<<"Digite quantos Gol(s) o Brasil fez: "; cin>>b; cout<<"Digite quantos Gol(s) a Argentina fez: "; cin>>a; if (b>a){ cout<<"\nBrasil ganhou com…
-
1
votes1
answer986
viewsA: How to change Activity within a Button Ragment?
Well, starting from the beginning. When click change activity: I’ll go through here the code I used in a program: Code of the fragment: public class frag_mostrar { private Button…
-
1
votes5
answers12363
viewsA: One component on top of the other
Try it this way, it might work!! If Funcina doesn’t tell me to try it another way <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content" > <TextView…
-
0
votes1
answer97
viewsA: Toolbar together with Tabhost
I wish I could comment, because the answer would be short, but I can’t because I don’t have enough rest. My advice to create a TabbedActivity with Action Bar Tabs this activity has a ViewPager and a…
androidanswered Francisco Melicias 161