skip to Main Content

Android Studio – Binary XML file line #20: Error inflating class fragment

I want to add an object to LinearLayout, but it throws an error Error line: at me.solo_team.futureleader.ui.news.NewsFragment.onCreateView(NewsFragment.java:62) ( addElement(uris.get(i),names.get(i));) NewsFragment private LayoutInflater inflater; private ViewGroup container; private LinearLayout nw; public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View…

VIEW QUESTION

Android Studio – Change Button color and shape properties

Here is my button appearance : Which is actually defined by : <Button style="@style/Button.Pressed" android:id="@+id/standardRestock" android:layout_width="165dp" android:layout_height="70dp" android:backgroundTint="@color/button_checked_style" android:fontFamily="@font/pragatinarrow" android:text="@string/standard" android:textAllCaps="true" android:textColor="@color/black" android:textSize="24sp" /> My style is defined by : <style name="Button.Pressed" parent="android:Widget.Button"> <item name="android:background">@drawable/dp_button_checked</item> <item name="android:textColor">@color/black</item> </style> My background…

VIEW QUESTION

Android Studio – conflicts with another tag that has the same ID

I'm having a problem updating an XML file Found data binding error(s): [databinding] {"msg":"u003cRelativeLayout idu003du0027@+id/rlSearchu0027u003e conflicts with another tag that has the same ID","file":"app\src\main\res\layout\home_fragment_new.xml","pos":[{"line0":105,"col0":20,"line1":140,"col1":37}]} [databinding] {"msg":"u003ccom.pets.igloopet.utils.CustomEditText idu003du0027@+id/IVsearchu0027u003e conflicts with another tag that has the same ID","file":"app\src\main\res\layout\home_fragment_new.xml","pos":[{"line0":123,"col0":29,"line1":137,"col1":69}]} [databinding] {"msg":"u003cRelativeLayout idu003du0027@+id/rlSearchu0027u003e conflicts…

VIEW QUESTION
Back To Top
Search