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.

view
8,258 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
22 votes
0 answers
1k views

TYPE_TOAST alternative that will not request permission?

I'm working on an SDK that is putting a popup view on the WindowManager using the TYPE_TOAST LayoutParams type. The last version of Android Nougat (7.1.1) made some change to the WindowManager (I don'...
Emil Adz's user avatar
  • 40.9k
15 votes
1 answer
415 views

stackoverflow error on view drag drop update

I am using ondragListener for view drag . My root is viewgroup with more viewgroup containers into the root and am adding views like imageview/textview inside the containers . If I use the only ...
Night Owl's user avatar
  • 211
12 votes
0 answers
637 views

Model View Presenter nesting

I've run into a scenario which requires nesting of the MVP pattern. It is probably best to explain using a visual example: ------------------------------ | [View] | | | ...
Thick_propheT's user avatar
11 votes
2 answers
3k views

Banner - is there a built-in view?

Is there an existing View in Android for a banner? Or do I need to build one myself using the specs? To be clear, this is not for ads but for the Material-Design concept of Banner.
MikeL's user avatar
  • 2,836
11 votes
1 answer
1k views

How to select and copy text in a view that is not attached to an activity?

I am creating a "floating" WebView like this: public class MyService extends Service { public static WindowManager windowManager; public static LinearLayout mainView; public WebView ...
Chin's user avatar
  • 20.2k
11 votes
0 answers
1k views

View Column Types Not Supported - Entity Framework

UPDATE: This is now a ticket with System.Data.Sqlite.org. Link I have a view like similar to this in my SQLite database SELECT * FROM ( SELECT * FROM ( SELECT fc.FilterCommandId, fc....
wesmantooth's user avatar
11 votes
1 answer
3k views

How does the cloud animation in Weather app work?

I'm building an app in which I'd like to have animations of weather like in the weather app, I mean when it shows the clouds moving and rain falling etc in the background, and also animations like the ...
Jack Kapow's user avatar
9 votes
1 answer
358 views

Get touch events on a dialog that show itself while the finger was already touching the screen

I have a view with a long click listener. This triggers the show of a fullscreen dialog. I need to capture touch events on said dialog (particularly ACTION_UP) but since the ACTION_DOWN was captured ...
Ignacio Guerendiain's user avatar
9 votes
0 answers
1k views

save hardware accelerated android canvas as bitmap

I am currently drawing directly on the Canvas object provided to my view's onDraw method. This canvas is hardware accelerated. In particular, I can draw multiple circles using RadialGradient shaders ...
Daniel Gabriele's user avatar
9 votes
1 answer
3k views

Dynamically adding views to RelativeLayout inside ScrollView

I am trying to add dynamically created several RelativeLayouts into a LinearLayout which is inside a RelativeLayout, which is inside a ScrollView. When the total height of the all views exceed the ...
ecem's user avatar
  • 3,584
8 votes
1 answer
624 views

FocusState Textfield not working within toolbar ToolbarItem

Let me explain, I have a parent view with a SearchBarView, im passing down a focus state binding like this . SearchBarView(searchText:$object.searchQuery, searching: $object.searching, focused: ...
lorenzo gonzalez's user avatar
8 votes
1 answer
12k views

Angular 9 Variable not updating in View

I have a variable in my Component that it is updating while using console.log(variable) although it is not updating in my View using {{ variable }} I have tried several things, my last option was to ...
Rodolfo Contreras's user avatar
8 votes
0 answers
4k views

View to Table Relationship in EF Core 3.1

Using SQL Server with Entity Framework Core 3.1. I have a view that I need to join to a table. This obviously works fine within SQL Server. But I can't get the relationship correctly defined in EF. ...
Lloyd's user avatar
  • 111
8 votes
0 answers
664 views

Sample of Android View display list commands?

I would like to know Android View rendering mechanism better and I know that those high level View is represented by a lower level internal object called display list which will be transferred to GPU ...
Fred Pym's user avatar
  • 2,239
8 votes
3 answers
1k views

MySQL view column name capitalization

I'm in the process of upgrading our in-house applications from MySQL 5.0.45 to 5.1.41. In the old environment we had mirrored some tables using symlinks from one DB to another. For a few reasons, ...
mmalone's user avatar
  • 1,132
7 votes
0 answers
849 views

How to find whether an Android View is obscured by any other View

I want to check whether a particular view (e.g. TextView) is obscured by any other view (e.g. Navigation drawer but not necessarily ). I see, View::GetVisibilty(), View::IsShown() returns true even ...
pardeepk's user avatar
  • 326
7 votes
1 answer
5k views

Android View Lifecycle

I am using the SemiClosedSlidingDrawer in my app. Quick explain: Sliding drawer has handle and content part The content part is partially opened at view creation Problem: When I create view the ...
Mahendran's user avatar
  • 2,729
7 votes
0 answers
2k views

Android keyboard hides itself, showing blank space below, after coming back from screensaver

I am working on an android app and really enjoying it too. But today, I got stuck on a small problem with soft keyboard. I have an EditText at the bottom of the screen and when user clicks on it a ...
Krishnabhadra's user avatar
7 votes
2 answers
9k views

How to use Lottie Animation inside a button instead of a circular progress bar

I want to put a tiny animation inside a button, this animation is in JSON format and has made with After Effect, and normally this type of animations can be compiled and used with the Lottie plugin, ...
Eric's user avatar
  • 490
6 votes
1 answer
2k views

java.lang.IllegalStateException: Unable to create layer for X -- when using hardware layers

I'm using hardware layers on a custom view for better performance when animating its alpha. Seeing this crash on my crash reporter: Fatal Exception: java.lang.IllegalStateException: Unable to create ...
droid256's user avatar
  • 444
6 votes
1 answer
760 views

Very thin line between Collection View Cells

I am seeing a very thin white line in between my collection view cells, even though I have set section insets to 0 and defined the collection view cell to be self.view.bounds.size.width/2 (there ...
AccDa's user avatar
  • 145
6 votes
0 answers
700 views

Dynamically change axis in UIStackView

I have 2 views in a horizontal UIStackView. What I'm trying to achieve is for the stack view to stay in horizontal mode if possible, but if this isn't possible then change to a vertical mode. ...
Ben Easton's user avatar
6 votes
0 answers
101 views

How to start two animations on two different views on API lvl 19

I have a working example for animating two views with two different animations at the same time. But for some reason, this just doesn`t work on Android 4.4.2 (API level 19) devices. The animations ...
Simona Stoyanova's user avatar
6 votes
0 answers
82 views

Custom View not drawn properly

I have a custom indicator view that I have created. as you can see on the first picture everything is drawn correctly, but sometimes when i close the app and start it again it is not drawn correctly (...
Maxim Toyberman's user avatar
6 votes
0 answers
2k views

How to get the Android app's root view from React Native?

Trying to write a react-native native adapter for the Flipboard bottomsheet component. I can instantiate their BottomSheetLayout just fine, but having trouble trying to set it up with views. Per ...
Pedro's user avatar
  • 2,823
6 votes
0 answers
201 views

Code to calculate minimumZoomScale behaves differently on iOS 8 and iOS 9

Some months ago I wrote a code to fit UIImageView in UIScrollView by the smallest side, with the ability to zoom that UIImageView in and out. This code works perfectly in iOS 8, but in iOS 9 it places ...
Paul Semionov's user avatar
6 votes
1 answer
2k views

How to avoid nested query in hibernate with views and filters

I am using hibernate with views (annotation @Subselect and @Synchronize) and filters. The problem is hibernate encapsulate query (defined by 'value' property of @Subselect annotation) and ...
SnakePlissken's user avatar
6 votes
0 answers
224 views

Get new Bitmap of scaled and visible image

I'm currently about to display an image in my custom view: public class CustomImageView extends View To arrange the picture the user has the opportunity to set a key to fullscreen. The image is now ...
JU5T1C3's user avatar
  • 757
6 votes
1 answer
1k views

Elevation + transparency bug on Android Lollipop

Using a background color for a view with some alpha (e.g. #99fe0038) and some elevation on API 21 reveals two circles: one for the view itself and another inside: Elevation and background color are ...
makovkastar's user avatar
  • 5,020
6 votes
0 answers
703 views

Overlay a Full screen Transparent layer in Android 4.4(KitKat)

I want to overlay a transparent view on the entire screen including the bottom most Navigation Bar in Android 4.4. I am able to do so in Android 4.3 by defining the window Manager LayoutParams as ...
sash's user avatar
  • 1,194
6 votes
1 answer
453 views

Swing text API: Override LabelView with different string length?

I've got a StyledDocument instance that contains, among other things, strings that represent numbers. By overriding the attributes of the string's element, I'm using a custom View for them that I ...
fpw's user avatar
  • 801
6 votes
1 answer
1k views

Preventing the Android soft keyboard from moving the view up in a Fragment?

I have an activity with four tabs and every tab is implemented as a fragment. In one of these tabs I would like to prevent the soft keyboard from pushing up the view, while the keyboard should still ...
Apfelsaft's user avatar
  • 5,816
6 votes
0 answers
1k views

android- can you make an object drawn in a canvas clickable

I know that the canvas in android is a lower level drawing surface but currently Im drawing all my objects inside a canvas and I would like a better way to handle clicks for each object on the canvas. ...
James andresakis's user avatar
6 votes
1 answer
5k views

Why doesn't the view use the database table I defined in hook_views_data()?

I have a problem with my module views integration. I need to provide information about user who added video and timestamp. Video field is a CCK Embedded Media Field and it stores in ...
breethe's user avatar
  • 613
6 votes
0 answers
792 views

Android is redrawing all Views when applying animation on one view

I have an Application that contains one layout with sevral views, when i animate one view all views are getting redrawn! is that the normal behavior or i am doing something false ? i would like to ...
alex.koukla's user avatar
6 votes
0 answers
454 views

FrameLayout + bg-image vs. ImageView

Simple question really: for very simple graphics such as dividers, is it cheaper in terms of layouting / rendering costs to use a FrameLayout and set the image as a background instead of using ...
mxk's user avatar
  • 43.3k
6 votes
1 answer
1k views

How do you stop ADT Logcat View from automatically popping up in Eclipse?

It's really annoying and I guess there was an option for this ( How do you stop Console from popping up automatically in Eclipse ) but I don't see that, at least not in ADT. It's really annoying. Btw, ...
Thiago's user avatar
  • 746
5 votes
0 answers
2k views

SwiftUI: resize View to the content size

I have some large view full of some sort of subViews I don't know which size of content of the view How to: Automatically resize view to it's content Set maxSize of window? (If content is larger ...
Andrew_STOP_RU_WAR_IN_UA's user avatar
5 votes
0 answers
179 views

Adding dimming view when tableView cell passes from the middle of scrollView

I have scrollView. In this scrollView I have another view. In this view I have tableView. ScrollView>View>TableView The cells of the tableView are custom and have labels in it. I need when the ...
Bogdan Bogdanov's user avatar
5 votes
0 answers
612 views

Avoid MySQL full table scan with JSON_ARRAYAGG and GROUP BY in a VIEW

I have two tables practice and facility that have a one to many relationship that is established with a linking table facility_practice. I would like a result that aggregates the "many" portion of ...
Nathan Wehr's user avatar
5 votes
0 answers
2k views

Postgresql Select view too slow with where clause

The problem is different between view and table execution time. Why there are so many differences between the two queries ? The Query 2 query is getting faster with the "LIMIT" Clause but it is ...
Cem Tuğut's user avatar
5 votes
1 answer
1k views

React Native MaskedView for Android

React Native has built-in MaskedViewIOS which is for ios, and it's working great. I would like to know if there's also something similar for android. Looking on the source of React Native, there's a ...
olanchuy's user avatar
  • 415
5 votes
1 answer
2k views

SQL Server Management Studio panes setting, always show Diagram Pane, Criteria Pane and SQL Pane

I am regularly working with SQL Server Management Studio and always use the following panes to work with the data: Diagram, Criteria and SQL. SQL Panes that I always use At the moment, I am just ...
SHW's user avatar
  • 471
5 votes
0 answers
389 views

getLocationOnScreen() returns unexpected values

I have a toolbar in my app with a search icon. Tapping the search icon opens a search layout (FrameLayout). I'm trying to add a circular reveal animation that will start at the center of the tapped ...
ox_'s user avatar
  • 785
5 votes
0 answers
1k views

Missing forwarded port in Hierarchy Viewer : Using Android Studio

I am using Android device monitor in Android Studio to use Hierarchy Viewer. I have followed this link. Everything else is verified - adb, environment variable , etc. I get following error: Missing ...
AnswerDroid's user avatar
  • 1,883
5 votes
0 answers
930 views

Get more detail about a view in View Hierarchy object inspector

I'm trying to debug an app where some cells in a table view are getting highlighted depending on the state of one of their member variables. The highlighting is done in the setSelected function, ...
Skwiggs's user avatar
  • 1,388
5 votes
1 answer
706 views

Android - drawing ImageView precisely on top of existing view in deeper layer

This is a difficult situation to describe, so please bear with me. I've been asked to make a 'coach marks' screen a little bit like this: However, in my case I need to 'pull' some of the underlying ...
AndroidDev's user avatar
  • 20.9k
5 votes
2 answers
1k views

data binding; view tag isn't correct, Android

I'm stuck during Data Binding Android tutorial. I figured out that I have problem with binding data to the view. public class DataView extends FrameLayout { private DataViewBinding binding; ...
nextion24's user avatar
5 votes
0 answers
2k views

ButterKnife binding views with inheritance issue

I have already read Some issues on github, but still haven't found solution. My problem is that I cannot bind views in a child activity inherited from BaseActivty Code in my BaseActivity @...
CROSP's user avatar
  • 4,567
5 votes
0 answers
2k views

How to draw drawable on canvas custom view in android

I'm working on audio recording app.During recording i'm using visualizer like normal audio recording apps.But on specific time a want to draw a drawable on canvas visualizer(that is custom class ...
Nisar Ahmad's user avatar
  • 2,047

1
2 3 4 5
166