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
86
votes
7 answers

Are Views automatically updated

If I JOIN or CROSS APPLY two tables and create a VIEW, will the view automatically gets updated when I update either of the two tables or I add records to either of them? Will these new records show up in the VIEW?
TheTechGuy
  • 16,560
  • 16
  • 115
  • 136
86
votes
1 answer

Hide Scrollbar of HorizontalScrollView

How can I get rid of the scrollbars on a HorizontalScrollView?
Ostkontentitan
  • 6,930
  • 5
  • 53
  • 71
85
votes
4 answers

Can I make Visual Studio place curly braces on the same line as an if statement (in HTML)?

In Visual Studio while designing MVC views (in .aspx or .ascx files), I often use if statements. When I auto-format (Ctrl+K+D), Visual Studio wraps the braces in this really ugly and hard to read way: <% if (Model.UserIsAuthenticated) { %> …
Mike Comstock
  • 6,640
  • 10
  • 36
  • 41
83
votes
4 answers

What is AttributeSet and how can i use it?

What is AttributeSet in Android? How can i use it for my custom view?
Premier
  • 4,160
  • 6
  • 44
  • 58
83
votes
9 answers

android View with View.GONE still receives onTouch and onClick

This is confusing me: As far as I have read, a view with setVisibility(View.GONE); should not receive any more touch- or click events. My layout has two parts, which will be visible or gone so that only one of them is visible and usable at a time…
ShadowMare
  • 2,087
  • 2
  • 25
  • 27
82
votes
8 answers

Customizing Devise views in Rails

I'm using devise for user auth, but I have nice mockups for the signup, login, etc. pages. I've already done the rails generate devise:views User command and have all of the views in the views folder, however, when I replaced the…
Vasseurth
  • 6,354
  • 12
  • 53
  • 81
80
votes
7 answers

How to find which views are using a certain table in SQL Server (2008)?

I have to add a few columns to a table and I also need to add these columns to all the views that use this table. Is it possible to get a list of all the views in a database that use a certain table?
Peter
  • 14,221
  • 15
  • 70
  • 110
79
votes
7 answers

Android overlay a view ontop of everything?

Can you overlay a view on top of everything in android? In iPhone I would get the new view set its frame.origin to (0,0) and its width and height to the width and height of self.view. Adding it to self.view would then cause it to act as an overlay,…
Thomas Clayson
  • 29,657
  • 26
  • 147
  • 224
78
votes
16 answers

ScrollView and keyboard in Swift

I started creating a simple iOS app that does some operations. But I'm having some problems when the keyboard appears, hiding one of my textfields. I think it's a common problem and I did some research but I couldn't find anything that solved my…
GalinhaVoadora
  • 831
  • 1
  • 7
  • 5
77
votes
2 answers

Is there any graphical representation of Android views lifecycle (a state diagram)?

We all know about the Android Activity's life cycle and Fragment's life cycles. But is there anything equivalent for views ? This could help, for instance, building custom views or give an in-depth look at a very common and often hidden graphic…
Snicolas
  • 37,840
  • 15
  • 114
  • 173
76
votes
7 answers

Overlapping Views in Android

Is it possible to have overlapping views in Android? I would like to have an ImageView with a transparent png in the front and another view in the background. edit: This is what I have at the moment, the problem is that the image in the imageView is…
Alexander Stolz
  • 7,454
  • 12
  • 57
  • 64
76
votes
13 answers

Rotating a view in Android

I have a button that I want to put on a 45 degree angle. For some reason I can't get this to work. Can someone please provide the code to accomplish this?
Matthew
  • 761
  • 1
  • 6
  • 3
76
votes
1 answer

Android View performClick() and callOnClick() difference

What is the difference in usage between performClick() and callOnClick()? It seems that they work the same way, then why does View have two methods?
Romans Stepanovs
  • 847
  • 1
  • 7
  • 10
74
votes
10 answers

Regions In ASP.NET Views?

I am making an ASP.NET MVC application with the razor engine. And I was wondering if it's possible to use Regions in a view. something like: #region blabla

@Model.Name

...

#endregion This does not work. Is there an…
Velter
  • 2,080
  • 1
  • 16
  • 19
73
votes
4 answers

Change Jenkins default view

I have been trying to follow the instructions on how to change the default view in Jenkins here. I've created another view that I would like to be the default, but when I go looking for the Default View setting in Manage Jenkins -> Configure System…
Mike Q
  • 22,839
  • 20
  • 87
  • 129