SHARE
TWEET

Untitled

a guest Jun 25th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. myRef.child("Oportunidad").child(user.getUid()).addChildEventListener(new ChildEventListener() {
  2.         @Override
  3.         public void onChildAdded(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {
  4.             ListaIDOportunidad.add(dataSnapshot.getKey());
  5.  
  6.             for(int i=0;i<ListaIDOportunidad.size();i++) {
  7.                 modulosActivos.setModulo(ListaIDOportunidad.get(i));
  8.                 if (ListaIDOportunidad.get(i).equals(modulosActivos.getModulo())){
  9.                     System.out.println("Modulo " + i);
  10.  
  11.                 }
  12.                 button.setText(modulosActivos.getModulo());
  13.                 button.setVisibility(View.VISIBLE);
  14.             }
  15.  
  16.         }
  17.      
  18. <LinearLayout
  19.         android:orientation="vertical"
  20.         android:layout_width="match_parent"
  21.         android:layout_height="wrap_content" app:layout_constraintTop_toTopOf="parent"
  22.         app:layout_constraintStart_toStartOf="parent" android:layout_marginStart="8dp"
  23.         android:layout_marginTop="8dp" app:layout_constraintEnd_toEndOf="parent" android:layout_marginEnd="8dp"
  24. >
  25.     <LinearLayout
  26.             android:orientation="horizontal"
  27.             android:layout_width="match_parent"
  28.             android:layout_height="match_parent">
  29.         <Button
  30.                 android:text="Button"
  31.                 android:layout_width="wrap_content"
  32.                 android:layout_height="wrap_content" android:id="@+id/button" android:layout_weight="1"
  33.                 android:visibility="invisible"/>
  34.         <Button
  35.                 android:text="Button"
  36.                 android:layout_width="wrap_content"
  37.                 android:layout_height="wrap_content" android:id="@+id/button2" android:layout_weight="1"
  38.                 android:visibility="invisible"/>
  39.         <Button
  40.                 android:text="Button"
  41.                 android:layout_width="wrap_content"
  42.                 android:layout_height="wrap_content" android:id="@+id/button3" android:layout_weight="1"
  43.                 android:visibility="invisible"/>
  44.     </LinearLayout>
  45. </LinearLayout>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top