I have multiple(4) vertical recycler views which are wrapped up in a constraint layout. The constraint layout is wrapped up in a scroll view. The problem is when items are added to one of the recycler views(let’s say first one), the screen does not scroll to the text views and recycler views below it. It ..
Category : xml
I have this appbar layout; <com.google.android.material.appbar.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/white" android:theme="@style/Theme.Kafein.AppBarOverlay"> <LinearLayout android:id="@+id/search" android:layout_width="match_parent" android:layout_height="wrap_content" android:elevation="2dp" android:gravity="center_vertical" android:orientation="vertical" android:translationZ="3dp"> <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingHorizontal="24dp" android:paddingVertical="16dp"> <ImageView android:layout_width="100dp" android:layout_height="30dp" android:src="@drawable/logo" /> <ImageView android:id="@+id/search_icon" android:layout_width="24dp" android:layout_height="24dp" android:layout_alignParentEnd="true" android:layout_centerVertical="true" android:src="@drawable/icon_search" /> </RelativeLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingBottom="16dp" app:layout_scrollFlags="scroll|enterAlways|snap"> <EditText android:id="@+id/top_search" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginHorizontal="24dp" android:background="@drawable/bg_search" android:textColor="@color/gray_dark" android:textColorHint="@color/gray" android:drawableStart="@drawable/icon_search" android:drawablePadding="12dp" android:focusable="false" android:fontFamily="@font/inter" ..
I’m trying to include shimmer effect in recycler view before images are loaded from firebase but it doesn’t show anything after a few sec the app close,before including shimmer images are loading properly Here is the log when app closes java.lang.NullPointerException: Attempt to invoke virtual method ‘void com.facebook.shimmer.ShimmerFrameLayout.stopShimmer()’ on a null object reference at com.example.myappnotfinal.Fragments.Search.Search_Fragment$1.onDataChange(Search_Fragment.java:60) ..
I have editText in my layout <EditText android:id="@+id/etMarks1" style="@style/Marks"/> and theme.xml <style name="Marks" parent="Theme.MaterialComponents.DayNight.DarkActionBar"> <item name="android:layout_weight">15</item> <item name="android:ems">1</item> <item name="android:layout_width">wrap_content</item> <item name="android:layout_height">wrap_content</item> <item name="android:inputType">number</item> <item name="android:textSize">18sp</item> <item name="android:gravity">center</item> </style> The tint line color is black by default and it is changing to white in night mode when I tested in Samsung and Pixel devices (Android ..
short clip of the issue In the clip above you will be able to see the problem better. Switching between Fragments user can see on the icon on the material button a grey box shaped element for short time. I tried using both the emulator and a real device. Since im using Lottie in my ..
I’m trying to include shimmer effect in recycler view before images are loaded from firebase but it doesn’t show anything, before applying shimmer effect images are showing Java Files Search_Fragment.java // Search Fragment public class Search_Fragment extends Fragment { public List<Upload> mUploads; PostAdapter postsAdapter; @Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable ..
My app is perfectly running on Huawei Y9 prime which has android 10 and it crashes on Redmi Note 4 which has android 6. I made the project with Android 5…While I am installing the app on Redmi note 4 it isn’t starting…A white screen comes for a very short time and the floats down…No ..

I’m trying to use scroll view with constraint layout and bottom navigation, I want the bottom navigation to stay still when I use the scroll view, just the inside of constraint layout(buttons)move, but bottom navigation needs to stay frozen, I have no idea how to solve this when i try to put bottom navigation’s xml ..
Im currently working on a personal project for my mom because she loves plants/flowers so I decided to make an app and I got into a problem in the process of making a toolbar/actionbar/topbar (I dont really know which name to refer because I researched a lot and everyone gives different names I guess) So ..
I’m using Android Studio 3.4.2 and trying to implement some basic navigation features in my app. I am following the official documentation to setup a NavHostFragement (via a FragmentContainerView) and linking the appropriate graph to it. However, when I do this, I get an error on the app:navGraph attribute stating: Unexpected resource type: ‘navigation’ expected: ..
Recent Comments