Questions tagged [view]

This tag is for questions about database view or UI / architectural view. See also the following tags: sql-view, android-view, uiview.

The purpose of almost any computer program is to process data in one form or another. When the program requires user interaction it is often necessary to provide the user with a view of that data to represent it in a useful and comprehensible manner.

View also refers to:

  • A stored query in a relational database that can be accessed as if it were a table.
  • The display or presentation layer of a MVC architecture.

Questions tagged should also be tagged with the relevant language.

25981 questions
5
votes
2 answers

Is it possible to pass an onTouchEvent to multiple views in Android?

I have read a few questions regarding this topic on SO but haven't really found a solid answer to it. I have a framelayout that I stack multiple custom views on, however the onTouch event only works with the top view. (the custom views are all the…
StartingGroovy
  • 2,802
  • 9
  • 47
  • 66
5
votes
3 answers

Android - Why is the TextView shown as having a height?

I've got an odd problem here. Basically I have a TextView with no default set text. I would've expected it to have a height of 0 since it hsas no content but there seems to be a gap between the elements above and below it. If I set the height to 0…
RichardG
  • 445
  • 3
  • 8
  • 17
5
votes
4 answers

Rendering haml partials takes a long time... why?

My Rails 3.0 app on ruby 1.8.7 contains Haml 3.1.3. Most of the views are haml templates, it takes about 0.5-5ms to render them on my machine in production mode. Having said that, a few partials take much longer. 300ms to 900ms for 30-60 lines of…
datenimperator
  • 308
  • 2
  • 9
5
votes
1 answer

razor views in asp.net web project

I am currently researching view engines and Razor Views have become very interesting to me. I am in process of developing an asp.net 4.0 web forms application. Razor views examples from what I could find are predominantly with MVC applications. Is…
amateur
  • 43,371
  • 65
  • 192
  • 320
5
votes
4 answers

SQL View with ID column

I'm working with a SQL view that I created but I want to add in an ID column (identity seed) as the current one has none. How can I accomplish this in SQL View?
GabrielVa
  • 2,353
  • 9
  • 37
  • 59
5
votes
2 answers

Is there any way to rotate a button without using animation in android 2.1

I am in search of methodology for rotating a button. without using animations..! I don't want use animations because of this. if any body has any idea please help me. xml
Noby
  • 6,562
  • 9
  • 40
  • 63
5
votes
2 answers

Method to allow a single child view to overflow the viewgroup bounds?

The following screenshot illustrates a simple example of what I have now: What I'd like to achieve, is that the selected (blue) view not be clipped at the boundary of the red container. My first try was clipChildren="false", which causes the blue…
Mark Renouf
  • 30,697
  • 19
  • 94
  • 123
5
votes
2 answers

Rails 3 - notice and error flash cannot be rendered in a partial

I was trying to clean up application.html.erb, by moving parts of the layout into partials. I had the following code for handling flash errors/notifications:
<% if flash[:notice] %>

<%= flash[:notice]…

Don Leatham
  • 2,694
  • 4
  • 29
  • 41
5
votes
2 answers

Android slide down animation

I have a toolbar aligned at the bottom and a WebView above it, which fill remaining height. Now I want to slide down the toolbar in order to hide it, and while it's animating the webview height should expand. I've tried using TranslateAnimation but…
Sebastian Nowak
  • 5,607
  • 8
  • 67
  • 107
5
votes
2 answers

Action Bar Sherlock action item view

I am trying to show quick action after click on action bar item, so I need to get a parent view to to know where should be quick action shown. Here is my code: @Override public boolean onCreateOptionsMenu(final Menu menu) { …
sealskej
  • 7,281
  • 12
  • 53
  • 64
5
votes
2 answers

invalidate() on custom View does not cause onDraw(Canvas c) to be called

For my activity i use 3 custom views stacked. the lower one is a SurfaceView fullscreen, the middle one is derived from GridView and overrides onDraw to add custom graphic. The top one is derived directly from View, sits in a corner of the screen…
andijcr
  • 427
  • 3
  • 13
5
votes
1 answer

Can I use XSLT in Django?

We use Django for writing our new project. Our designer wants to write templates with XSLT. As you know Django has its own template system, and I don't have any arguments why the designer can't use XSLT. 2 questions: Can I return XML in my…
SkyFox
  • 1,805
  • 4
  • 22
  • 33
5
votes
3 answers

How do you use Linq to connect tables in different databases?

I'm a bit of a Linq newbie, and I couldn't find any documentation to help me with what seems to be a pretty trivial problem - so your help will be much appreciated! I have a table Table1 in database DB1, which has a "pseudo" foreign key Table2ID to…
Shaul Behr
  • 36,951
  • 69
  • 249
  • 387
5
votes
1 answer

Android - getting the width of a button which is set to wrap_content

I am trying to get the width of a button whose android:layout_width is set to wrap_content. When I try to do that in onCreate() using getMeasuredWidth(), I get a value of zero because I think the view is not ready yet. When should I get the width…
jeffreyveon
  • 13,400
  • 18
  • 79
  • 129
5
votes
3 answers

Android: how to make findViewById(R.id.xxx) working in a class inheriting/extending from the View class?

I have the following problem: I want to add a custom view (custom_view.xml and associated CustomView.java class) to my main activity. So, I do the following: 1) In my main activity (linked to main.xml): CustomView customView = new…
toto_tata
  • 14,526
  • 27
  • 108
  • 198