Questions tagged [android-compound-view]

This tag is for questions related to building and using compound widgets on the mobile platform Android. A compound view is a type of custom view in Android which is a group of different Views. It is treated in layout XML files as one custom view.

16 questions
3
votes
1 answer

Style Material Checkbox/Compound ripple color

I am trying to style CompoundButton.CheckBox using official material.io tutorial: and in…
3
votes
0 answers

Android, focus goes from a view to another one after orientation change

I created a custom compound view, something like Of course this is a simplified…
1
vote
0 answers

Android-Move view from column 1 to column 2 if column 1 overflows

I have a number of custom views that can expand on a click event and they push down views below them. This may result in some views completely or partially out of screen. I want to detect these occurrences and move them to column two of the…
1
vote
1 answer

Custom/compound view: NoSuchMethodError for LinearLayout constructor

I have an Android library, LabelledSpinner which is essentially a compound view that holds a Spinner with TextViews, all in a LinearLayout. However, when I run the app on Android 4 devices (my library supports Android 4 upwards), I get the following…
0
votes
0 answers

Architecture for creating an android compound view (entity) with its own viewmodel and api calls and triggers

I have a task to create a bottomSheetDialogFragment which allows the user to rate a specific subject. Now this view , this bottom sheet needs to be shown at diffrent situations like subjects , courses , exams etc. And the rating questions which…
0
votes
0 answers

Button is visiable but TextView / ImageView is not visiable in custom compound view

I am trying to create compound CardView using two CardView and extended Framelayout. If I place a button inside custom CardView as a child the button is visible but if i place TextView or ImageView as a child the widget (TextView or ImageView) is…
0
votes
0 answers

How to remove default margin of ConstraintLayout in Compound View?

I had created a custom compound view for which a default padding is appearing on the ConstraintLayout Here is the layout
0
votes
0 answers

Make android compound views show their layout inflation in android studio layout editor

I am creating this view that includes a couple of other views : Located in 'res/layout/view_no_content'
0
votes
1 answer

Compound View : can't change editText color using invalidat()

firstble i apologies for my bad english. I'm fairly new to programming and I'm having trouble with making this compound view work. so i create it's layout with two views EditText: for taking user input ImageView: for setting EditText …
CiDski
  • 1
  • 1
  • 2
0
votes
2 answers

Why it is not possible to use setOnClickListener directly for compound view?

I have simple compound view with ConstraintLayout as a root. Attributes like clickable, focusable are enabled. It is perfectly shown on my layout. I want to handle when it gets clicked. Approach is simple, but it does not work:…
neo
  • 1,314
  • 2
  • 14
  • 34
0
votes
0 answers

Fragment with Listview with different types of rows, where the row is a compound view

I'm doing on a questionnaire which means that one fragment is representing one question. A question contains some fields which can be of different types, e.g. text field, rated field... These fields are rendered as rows in ListView in the fragment.…
0
votes
1 answer

Custom compound view extended from RelativeLayout. Incorrect positioning of child views

I want to make widget which includes EditText and TextView and looks like this: . To achieve this I've created RelativeLayout:
0
votes
0 answers

Android Custom Component is calling onClick and onLongClick twice

I've developed a custom component in which i've implemented onClick, onLongClick and onTouchListener. Everything is working fine except that onLongClick and onClick are called twice even i make action only once. What's wrong please guide towards…
0
votes
0 answers

In Custom Compound view 'TextInputLayout 'is not showing expanded hint

I've created a custom compound view. It contains an imageview, a TextInputLayout, EditText . The thing is that when i set attributes from xml, it sets all values like hint, icon etc but lines are not changed and expanded hint of TextInputLayout is…
0
votes
0 answers

Removing the Text Area from a Switch

How can I remove text area fully from a Switch View ? I do not want the text to take up any space in Switch. Is there anything like View.GONE ? I tried these properties and failed: android:text="" android:textOn="" …
1
2