4,216 questions
202 votes
3 answers
64k views
What is the difference between a User Control Library and a Custom Control Library?
I am just coming up to speed on WPF and would like to create a reusable WPF control. When I look at the options for creating projects in Visual Studio, I see "WPF User Control Library" and "WPF ...
144 votes
19 answers
91k views
How can I get clickable hyperlinks in AlertDialog from a string resource?
What I am trying to accomplish is to have clickable hyperlinks in the message text displayed by an AlertDialog. While the AlertDialog implementation happily underlines and colors any hyperlinks (...
118 votes
3 answers
71k views
Android - custom UI with custom attributes
I know it is possible to create custom UI element (by way of View or specific UI element extension). But is it possible to define new properties or attributes to newly created UI elements (I mean not ...
82 votes
9 answers
76k views
How to make an expandable/collapsable section widget in Qt
I would like to create a custom widget in Qt with the following features: It is a container It may be populated with any Qt layout It may be inside any Qt layout A button allows to collapse/fold ...
77 votes
7 answers
68k views
Custom vs User control
I've been reading some explanations about the difference between User and Custom Controls, for example this: http://www.wpftutorial.net/CustomVsUserControl.html I want to create, for example, a ...
73 votes
17 answers
30k views
Interface Builder - Failed to load designables from path (null)
I have some custom controls I have created and I'm them using in a new project. However, I keep getting errors in interface builder: Failed to update auto layout status: Failed to load designables ...
72 votes
2 answers
24k views
How to use standard attribute android:text in my custom view?
I wrote a custom view that extends RelativeLayout. My view has text, so I want to use the standard android:text without the need to specify a <declare-styleable> and without using a custom ...
60 votes
8 answers
47k views
How do we create a bigger center UITabBar Item
I am wondering how do we create a bigger center UITabBar like the shot below? Its really beautiful!!!!
53 votes
2 answers
68k views
How to set a custom view's intrinsic content size in Swift?
Background I am making a vertical label to use with traditional Mongolian script. Before I was just rotating a UILabel but there were some performance issues and other complications with this. Now I ...
48 votes
7 answers
58k views
How to make a Scroll Listener for WebView in Android
How to implement the Scroll Listener for WebView in Android i tried this but its not calling my Log.i on scrolling the webview. package com.example.webview.full.width; import android.content.Context;...
48 votes
5 answers
71k views
ASP.NET Custom Control - Unknown server tag
I've made a custom control that inherits from a Literal control. When I try and use my control on a page a parsing error is thrown. I've added this to my web.config <configuration> <system....
47 votes
3 answers
110k views
Custom UITableViewCell programmatically using Swift
Hey all I am trying to create a custom UITableViewCell, but I see nothing on the simulator. Can you help me please. I can see the label only if I var labUserName = UILabel(frame: CGRectMake(0.0, 0.0, ...
42 votes
8 answers
9k views
Change color of inset area in UITableView separator
I have a customized UITableView, the cells have a different background color (set in a custom backgroundView). However, the background color is only applied within the cell, but not extended to the ...
35 votes
5 answers
72k views
IE & Firefox - custom drop down could not remove native arrows
I'm trying create a custom drop down control and I need to hide the arrows from the native controls. I'm using the following CSS, which is working for Chrome and Safari, but not in Mozilla and IE. ...
34 votes
7 answers
43k views
Disable changes on seekbar by client
I have a SeekBar that will change the progress when I require it to, but I don't want the user to be able to change it manually. I tried to set the SeekBar as this: <SeekBar android:id="@+...