Open magx2 opened 10 years ago
hi @magx2
I still don't know the reason of this bug, but if you use android:gravity="center_vertical"
the bug is gone.
like this:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:orientation="horizontal">
<info.hoang8f.widget.FButton
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="1"/>
<info.hoang8f.widget.FButton
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="2"/>
<info.hoang8f.widget.FButton
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="3"/>
</LinearLayout>
I have the same problem
Same problem!
In attached layout I tried to have 3 buttons in one line with the same width. So I used LinearLayout with layout_weight. The problem is when I press one of these buttons all of them moves little down.
Layout: