Creating a custom control or making buttons inline

I have a need to create a control similar to UITabBar in iPhone, which is to be present on every activity of my application. UITabBar essentially is a battery of buttons exhibiting a TAB like...

Add ExpandableListView to a tab with other elements

I am developing an app with tabs. On one of the tabs, I have two EditText fields and a couple of buttons. I want to add an ExpandableListView to the tab, below the rest of the elements. My problem...

Custom rails confirm box (with $.rails.confirm override)

I've been tinkering with this for a long long time. I would like to hijack the default JS confirm dialog with something I rolled myself. I'd like to use a completely custom layout (the...

findViewById usage in View

I'm struggling with a problem for a few days already and couldn't find solution to my problem so far. I have two classes: StartActivity extends Activity TimeGraphView extends SurfaceView What I...

XSD to HTML Form

I’ve been tasked with building a web-based interactive SDK to speed up client-side development for our RESPful Web Service APIs. Part of the solution requires an engine that can read an XSD and...

Communicating between a fragment and an activity - best practices

This question is mostly to solicit opinions on the best way to handle my app. I have three fragments being handled by one activity. Fragment A has one clickable element the photo and Fragment B...

Twitter Bootstrap Button Group Control Radio Buttons/Checkboxes

I am trying to use the Twitter Bootstrap button group as an actual set of form input controls. By default, these button groups can be made to function like a radio button or checkbox group, but...

Browser "buffers" mouse events while paint/reflow

I am creating a GWT Application where I am displaying a list of elements, using a CellList and a ListDataProvider. The data I want to display in each Cell consists only of two strings. I created a...

Tables don't layout properly in IE7-9

I have been trying to lay out a table with the following: two or three columns that automatically size to fit the content in them anywhere from 1 to 4 columns that resize according to the width...

Swap draggable element to mouse cursor on drop of another draggable

I've seen several questions about just swapping two draggable elements on drop, but my situation is a little bit different. Basically, I have a bunch of draggable elements laid out in a...

How to change underline thickness of an a-tag without using border?

I often use a-tags for buttons, so they have a padding that makes them button like. How do I change the thickness of the text-decoration underline? People often recommend to use a border-bottom...

ViewPager extends over the bottom of the screen

I'm new to Android development and I'm facing the following issue. This is the layout of my main activity: <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout ...

How do you create custom toolbar buttons in QuillJS?

I'm using QuillJS in my application (1.0.0-beta.8) and I'm trying to extend its functionality by adding two new buttons in the toolbar. Specifically, when the user clicks on either button, an...

How to get a custom toolbar aligned with the action bar?

In order to get action-buttons into my toolbar, I have implemented a custom-toolbar in which the layout with the button images can be defined. In the activity_main layout file, I refer to this...

Cross browser extended native elements, with Polymer

Heya everyone, I try to create a native element extension for < option> elements with polymer. The Idea is, to make more complex descriptive texts for options, stylable for usability. Usability...

RecyclerView handling clicks with some buttons

Ok, here is the deal. I have wasted 13 hours yesterday dealing with the click handling on ListView and then switched to RecyclerView (thanks to a member here) solving my original issue with...

How do I loop through multiple elements and attach a click function on each?

I am trying to loop through a number of elements in a ruby on rails app so that a div can be shown or hidden dependant on which element is selected in a dropdown (or radio buttons or whatever). My...

get position of item in list view with custom GestureDetector.SimpleOnGestureListener

I have a custom list adapter that with ViewHolder pattern sets an OnTouchListener passing the event to my custom gesture listener extending SimpleOnGestureListener public View getView(int...

Angular2 Templates: How to bind keydown.arrow to whole div instead of only control elements?

I have a simple navigator component with some buttons and a date-picker subcomponent. Now the idea is, that I can bind keydown.arrowleft etc. for the whole div (which has css style of 100% height...

What is the right way of Vue.js "extend" usage?

Experimenting with Vue.js 2 I've made a little project and trying to import a component, but there's an empty page in a browser. I want to use "extend" in order to try this example:...

Dynamically add widgets in a cell to represent "tags" in Datagrid

In a GWT web app, I am using a DataGrid to manage elements from a database. I represent a list of elements as rows, the columns being editable fields of their characteristics (id, name,...

Dealing with small variations in CSS?

Whats the best way of dealing with small variations in CSS? For instance say if I have two buttons: .btn-red .btn-blue And I want each of the buttons next to one another but I want .btn-blue to...

AngularJS- how to return multiple buttons? Return a promise that resolves to an array?

I have an AngularJS application, and on one of the pages, there is a button that opens a dialog allowing the user to configure a particular widget. That widget displays a table, and I have...

AngularJS- how to overload a function implemented within a library?

I am currently working on an application that has been developed in AngularJS. The application was developed internally by my company (it has gone through a number of releases, but is still being...

WPF - MVVM - Combobox UserControl + ComboboxItem CustomControl

I am struggling to create a binding from a View + ViewModel to a Custom ComboboxItem. I am not sure it should work, I already had implemented complex UserControls and had to deal with setting the...

Bootstrap 4: Dropdown in card breaks across columns?

I have a problem using bootstrap 4 (specifically, reactstrap but I can recreate the same issue in bootstrap) where I am using 'card-columns' to create a grid of cards, each card having a dropdown...

How to structure the CN1 code for a tablet form layout?

I've been building my Codename One app for the phone screen format so far. There is a separate Form for the main menu, then a second Form with a list of elements, and then a third Form to edit an...

How to remove an index from array in react on specific click

I'm building a quiz/survey builder, kind of CMS interface which will allow users to add as many questions as they want by clicking the type of question they want. To start with, my state is set up...

Wrap or extend Angular Material component to create custom component

I am very new to Angular / coming at this from the UI design side, so my terminology and understanding of basic Angular concepts is limited. My team has started building a site using Angular...

Flutter - best approach to create TabledToggledButtons?

I would like my toggle buttons to be layout in a table, and not as a single row. The number of toggle buttons is not static - that is upon init I load a resource which contains a list of all the...