Open suchoX opened 7 years ago
If we place two FButtons in a linearlayout using weights as mentioned below, pressing one button gets creates a minor Button-press animation on the other button as well.
<LinearLayout android:layout_above="@+id/progressbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_marginBottom="30dp"> <info.hoang8f.widget.FButton android:id="@+id/no_button" android:layout_width="0dp" android:layout_height="100dp" android:layout_weight="1" android:text="@string/no" android:textColor="@color/white" android:textSize="30sp" app:buttonColor="@color/button2" android:layout_margin="10dp"/>
<info.hoang8f.widget.FButton android:id="@+id/yes_button" android:layout_width="0dp" android:layout_height="100dp" android:layout_weight="1" android:text="@string/yes" android:textSize="30sp" android:textColor="@color/white" app:buttonColor="@color/button1" android:layout_margin="10dp"/> </LinearLayout>
If we place two FButtons in a linearlayout using weights as mentioned below, pressing one button gets creates a minor Button-press animation on the other button as well.
<LinearLayout android:layout_above="@+id/progressbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:layout_marginBottom="30dp"> <info.hoang8f.widget.FButton android:id="@+id/no_button" android:layout_width="0dp" android:layout_height="100dp" android:layout_weight="1" android:text="@string/no" android:textColor="@color/white" android:textSize="30sp" app:buttonColor="@color/button2" android:layout_margin="10dp"/>