Questions: I am trying to update a TextView with text in a method. The primary function of the method is to inflate a layout with a RecyclerView and to update these views with values from firestore. My RecyclerView also has an ItemDecoration attached which has its own layout. In this method I also want to …
Tag: layout
android – WebView in CoordinatorLayout with CollapsingToolbarLayout
Exception or error: I’d like to add a WebView in a CoordinatorLayout, having CollapsingToolbarLayout in AppBarLayout. The problem is that WebView shrinks in height and doesn’t fill the space below the toolbar, making it not usable. I tried also to use WebView as child of NestedScrollView: initially it doesn’t work (it shrinks my WebView in …
html – Bootstrap is messing with my table layout when i use repeater
Exception or error: I have a repeater with a couple nested repeaters. Everythink works fine, except for the layout when I try to use bootstrap. In the first picture I try to make it work inside a div with class=row. Everything is crazy. Even when i try to have it alone second picture same mistakes. …
android – How to group RadioButton from different LinearLayouts?
Exception or error: I was wondering if is possible to group each single RadioButton in a unique RadioGroup maintaining the same structure. My structure look like this: LinearLayout_main LinearLayout_1 RadioButton1 LinearLayout_2 RadioButton2 LinearLayout_3 RadioButton3 As you can see, now each RadioButton is a child of different LinearLayout. I tried using the structure below, but it …
java – Is there a way to disable MotionLayout visiblity changes animation?
Exception or error: In my MotionScene I have transition which lasts for several seconds. In ConstraintSet I have a view that is invisible that I want to make visible when the transition is done. But I don’t want to animate the view going from Visibility.GONE to Visibility.VISIBLE. Is there a way to stop that? If …
Scrolling a Linearlayout (Android App programming)
Exception or error: I already read a lot about scrolling a Linearlayout, but nothing helped yet. It says you can simply put it in a ScrollView, but whenever i do that, my app crashes when i try to start it. Thats my Sourcecode of the xml : <?xml version=”1.0″ encoding=”utf-8″?> <Scrollview xmlns:android=”http://schemas.android.com/apk/res/android” android:id=”@+id/scrollout” android:layout_width=”fill_parent” android:layout_height=”wrap_content”> …
html – Try to find a better way to layout 4 images
Exception or error: I have 4 images and try to layout them as my expections. I know there is a very easy way to layout with table layout like the following snippet. <div> <table> <tr> <td/> <td><img src=”https://en.pimg.jp/015/085/802/1/15085802.jpg” width=”50px” height=”50px”/></td> <td/> </tr> <tr> <td><img src=”https://en.pimg.jp/015/085/802/1/15085802.jpg” width=”50px” height=”50px”/></td> <td><img src=”https://en.pimg.jp/015/085/802/1/15085802.jpg” width=”50px” height=”50px”/></td> <td><img src=”https://en.pimg.jp/015/085/802/1/15085802.jpg” width=”50px” height=”50px”/></td> …
android – Why does included layouts suggestions are not coming while working with Databinding?
Exception or error: Only activity_main binding suggestions coming, but not content_main. can anybody please help what’s going wrong? can anyone give me why it’s not happening? I tried with binding.included.…. not coming Code activity_main: <?xml version=”1.0″ encoding=”utf-8″?> <layout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res-auto” xmlns:tools=”http://schemas.android.com/tools”> <data> <variable name=”UserViewModel” type=”com.lifetrenz.lifetrenz_gcc_doctorapp.viewmodel.UserViewModel” /> </data> <androidx.constraintlayout.widget.ConstraintLayout android:layout_width=”match_parent” android:layout_height=”match_parent”> <include android:id=”@+id/included” layout=”@layout/content_main” tools:layout_editor_absoluteX=”0dp” tools:layout_editor_absoluteY=”0dp” …
android – Weird behavior (bug?) with RecyclerView And LinearLayoutManager with reverseLayout == true
Exception or error: When using RecyclerView with LinearLayoutManager and “reverseLayout” flag set to true, when notifying any item via notifyItemChanged it also calls onBindViewHolder for the first non-visible item. And it doesn’t call onViewRecycled for that item afterwards whatsoever. So in case of a ViewHolder doing some kind of subscription in onBind it will never …
performance – Android studio does not show SwipeRefreshLayout on design screen after migrating to Android X
Exception or error: Android studio does not show SwipeRefreshLayout on design screen after migrating to Android X. How to fix it? How to solve: make sure you are using <androidx.swiperefreshlayout.widget.SwipeRefreshLayout> in the layout, if it still appears build project and refresh layout More exceptions or solve method