view

Cannot activate View Touch Event After Animation end

I add animation on a Button, use .SetFillAfter(true) to keep the last view on screen. But I find it impossible to call touch event function by touching Button icon on the screen any more (but it can be called by touching original position). <?xml version="1.0" encoding="utf-8"?> <AbsoluteLayout xmlns:android="http://schemas.android.com...

Self-join in PostgreSQL view

Hello! I'm trying to create views that would accumulate all the needed data from joined sources: CREATE OR REPLACE VIEW dir AS SELECT dir_data.id, dir_data.parent_id, dir_data.name, (owner.*)::owner, -- owner_id FROM dir_data LEFT JOIN owner ON owner.id = dir_data.owner_id For example, this allows to select ow...

How to add layers on View?

I'm going to develope a Android program, with a photo display on screen. And there are some text and drawing (circle/Rect) over the photo. The text and drawing will change when use touch on the screen. How can I implement? SurfaceView? ItemizedOverlay? or anything else? Pls. advise. Thx all:) ...

Android visibility issue with checkbox

Hi all! I´m using a checkbox in my code that when its checked it makes a textview and a editText visibles, but if I uncheck de checkbox they continue being visible instead of dissapear. Here is the code: final CheckBox save = (CheckBox) findViewById(R.id.checkbox); save.setOnClickListener(new OnClickListener() { pu...

web2py server-side comments

In a web2py view, how do I comment out server-side code? In ASP.NET, I can surround any HTML or code tags with <%-- and --%> and that block will not be compiled or sent to the client. Velocity does the same thing with #* and *#. Is there an equivalent in web2py? ASP.NET <div> <p><%=foo.bar%></p> <%-- don't print twice! <p><%...

How to load static files from view HTML in web2py?

Given a view with layout, how can I load static files (CSS and JS, essentially) into the <head> from the view file? layout.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{=T.accepted_language or 'en'}...

Retractable button bar using animations

I want to create a button bar that is retractable: when the user clicks on a special "handle" button, the button bar should slide out of view partially so only the handle remains visible. When the bar is in retracted state only the handle is visible. Clicking on the handle should "slide out" the button bar so it is completely visible ag...

keep pagination url on "Edit" view whit codeigniter.

i like to know hoy to keep pagination url on a edit view without sessions variables ??? Thanks. ...

What is the correct way to add a subview to a new window, making it aware of its available window size?

Hi, This is some kind of a basic question: I am adding a new Subview to a window using: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { viewController = [[myViewController alloc] initWithNibName:@"myNib" bundle:nil]; [window addSubview:viewController.view]; This ...

In MVC framworks (such as Ruby on Rails), does usually Model spell as singular and controller and view spell as plural?

I usually see Ruby on Rails books using script/generate model Story name:string link:string which is a singular Story, while when it is controller script/generate controller Stories index then the Story now is Stories, which is plural. Is this a standard on Ruby on Rails? Is it true in other MVC frameworks too, like CakePHP, Symf...

On Ruby on Rails, <%= or <% should only matter whether it is show or no show, but why will it give compile error?

The following code: <div id="vote_form"> <%= form_remote_tag :url => story_votes_path(@story) do %> <%= submit_tag 'shove it' %> <% end %> </div> gives compilation error while if the first <%= is replaced with <%, then everything works. I thought they only differ by "show" or "not show", but why will it actually cause a comp...

What is strongly-typed View in ASP.NET MVC

What is strongly-typed View in ASP.NET MVC? ...

Truncate the underlying table in a view

I'm currently in a situation where we are creating a "facade" database which basically consists of a set of views which are simply a select from an identically named table in another database. The idea is that the application can be repointed to the facade database with minimal changes to the actual code. This seems to work ok for inser...

How do I enable automatic reloading of view files in development mode in JRuby on Rails?

I am developing an app in JRuby on Rails. For some reason, when I edit the view files, the development JRuby Mongrel server doesn't reload them. The perplexing thing is that after editing the controller files, the server reloads them just fine on the next request. This would be annoying even when using MRI Ruby, however starting up JRub...

Yield and default case || do not output default case

Hello Railers, I have a simple yield use case and for some unknown reason the default case is never shown: In my super_admin layout I have: <%= yield :body_id || 'super_admin_main' %> My controller class Superadmin::GolfsController < ApplicationController layout "super_admin" def show end end My show view With or withou...

Dump mysql view as a table with data - version 2

Hello, Q: Is there a way to direct MYSQLDUMP to export VIEW's with data (and not just the CREATE SQL)? I want to use the resulting SQL to create a new table. Thanks! Jon ...

which view/widget can support zooming in android?

Hi everybody, I think my question is fairly clear, I would like to know if every kind of view can support zoom. I know that some have built in zoom controls like the MapView and the WebView, but how about a LinearLayout with some TextViews and ImageViews? I will edit this post to have a list of the answers. ...

MVC - Calling Controller Methods

Hello, My application is following the MVC design pattern. The problem I keep running into is needing to call methods inside a Controller class from outside that Controller class (ex. A View class wants to call a Controller method, or a Manager class wants to call a Controller method). Is calling Controller methods in this way allowed ...

Gantt view or hierarchical grid

Hi, Is there any any free Gantt view grid control or hierarchical grid view available in winforms? I require a grid that looks like an MS project task list. But it should not contain a right side calendar view as in MS project. My requirement is just to maintain hierarchical data with multiple columns. Please suggest where can I get t...

Android - TableLayout to ExpandableListView

Is it possible to switch from a TableLayout to an ExpandableListView? How? I tried using ViewFlipper but the fact that ExpandableListView doesn't use XML threw a wrench in it. Please help! ...