Questions tagged [custom-component]

"custom component" is a generic term for a manually developed UI component for a component based UI framework. When using JSF, please don't confuse this with "composite component", where the component is definied by XHTML using cc:xxx tags instead of by a Java class extending UIComponent.

1083 questions
135
votes
2 answers

Android - Writing a custom (compound) component

The Android app I'm currently developing has a main activity that has grown quite large. This is mainly because it contains a TabWidget with 3 tabs. Each tab has quite a few components. The activity has to control of all those components at once. So…
Tom van Zummeren
  • 9,130
  • 12
  • 52
  • 63
110
votes
1 answer

When to use , tag files, composite components and/or custom components?

I started using JSF 2.0 with Facelets recently and got puzzled by new composite components knowing existing and other templating techniques offered by Facelets 1.x. What is the difference between those approaches? Functionally they…
mrembisz
  • 12,722
  • 7
  • 36
  • 32
67
votes
9 answers

Custom FragmentDialog with round corners and not 100% screen width

I am creating a custom fragment dialog with round corners and with layout that would not fill the screen width (I would prefer if it just wrapped its content). this is my rounded_dialog.xml in drawable folder, which is called by my Custom…
vandus
  • 3,248
  • 3
  • 30
  • 44
39
votes
4 answers

Use declare styleable to set custom component input type

I have a CompositeComponent (EditText+ImageButton) When clicking on button the edittext content will be cleared. It is working fine. My problem is setting attributes to my component. I am using declare-styleable to set attributes to my component. I…
Mahendran
  • 2,719
  • 5
  • 28
  • 50
35
votes
3 answers

Sane way to concat string and variable in Handlebars.js helper argument?

I'm trying to build a simple modal component in Ember, but it seems the "logic-less" of Handlebars is too illogical for me. Is there any sane way to achieve a result somewhat this?

Nice block about {{title}}

igorsantos07
  • 4,456
  • 5
  • 43
  • 62
31
votes
3 answers

Creating a custom editText with tag-like feature

I've been searching around but could not find any answers to this. What I'm trying to implement is an EditText similar to the 'To' field found in the composing screen of the ICS gmail app. Here's an image describing what I want: I'm thinking of…
bill-x
  • 569
  • 2
  • 5
  • 13
23
votes
2 answers

What is the relationship between component family, component type and renderer type?

When I am learning custom component development in JSF, I got confused with the relationship between component family, component type and renderer type. For example, I registered a renderer and a custom component as shown…
carawan
  • 508
  • 3
  • 10
22
votes
3 answers

TypeArray in Android - How to store custom objects in xml and retrieve them?

I have a class like public class CountryVO { private String countryCode; private String countryName; private Drawable countryFlag; public String getCountryCode() { return countryCode; } public void…
Ishan
  • 303
  • 2
  • 4
  • 11
22
votes
5 answers

Android Text should appear both side in the Switch

I using custom switch for support of API 8. I am using THIS Libarary for Custom Switch. But I want to make something Like show in figure.I have tried to change the color ,though changing the color in the style but doesn't effect as i want. Please…
Mayur Raval
  • 3,250
  • 6
  • 34
  • 57
20
votes
2 answers

Is there a `ProgressButton`?

I could like to have a button that does double duty as a progress bar. + = ........ E.g. a button that fills up with a green background as the task progresses. I know I can create my own, but if there's something ready made I'd love to use…
Johan
  • 74,508
  • 24
  • 191
  • 319
20
votes
1 answer

How to programmatically set custom attributes of custom components?

I have a custom component called CircleView, and I want to change a custom attribute called fillColor defined in attrs.xml:
mz496
  • 790
  • 1
  • 7
  • 13
19
votes
2 answers

Why do I need call onChange and onTouch in writeValue when implementing ControlValueAccessor in Angular?

I have implemented the following component. It works and behaves as expected. Nevertheless, as the implementation of ControlValueAccessor was new to me, I had to follow a blog without understanding the deeper details of a few sections. So this is a…
DonkeyBanana
  • 3,266
  • 4
  • 26
  • 65
19
votes
3 answers

Using v-model on custom component

When I start typing in the input field I want to get this data in console, but currently it is empty. What am I doing wrong? HTML: JS: Vue.component('products-list', { …
Svetoslav Dimitrov
  • 869
  • 4
  • 16
  • 38
19
votes
4 answers

JSF Lifecycle and Custom components

There are a couple of things that I am having a difficult time understanding with regards to developing custom components in JSF. For the purposes of these questions, you can assume that all of the custom controls are using…
jsight
  • 27,819
  • 25
  • 107
  • 140
19
votes
2 answers

onMeasure(): wrap_content, how do I know the size to wrap?

I have made a custom View with onDraw() overridden that draws a bitmap on the canvas. When I specify that I want it wrap_content in the layout file it still fills up the entire screen. onMeasure() says this: The base class implementation of measure…
Simon Zettervall
  • 1,764
  • 1
  • 15
  • 31
1
2 3
72 73