Fix bug, Buttons (WIP)

This commit is contained in:
MrLetsplay 2023-06-22 21:29:43 +02:00
parent 7188474bfc
commit a53c8c715a
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import android.content.Context;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import android.os.Bundle; import android.os.Bundle;
import android.os.Handler; import android.os.Handler;
import android.os.Looper;
import android.util.Log; import android.util.Log;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
@ -57,6 +58,7 @@ public class DynamicFragment extends Fragment {
FabUtil.showFabs(getActivity()); FabUtil.showFabs(getActivity());
handler = new Handler(Looper.getMainLooper());
refreshCodes = () -> { refreshCodes = () -> {
for(int i = 0; i < binding.itemList.getChildCount(); i++) { for(int i = 0; i < binding.itemList.getChildCount(); i++) {
View v = binding.itemList.getChildAt(i); View v = binding.itemList.getChildAt(i);

View File

@ -8,5 +8,6 @@
android:id="@+id/button" android:id="@+id/button"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Button"/> android:text="Button"
android:background="@drawable/button_theme_red_blue"/>
</LinearLayout> </LinearLayout>