Hello all,
I have a conceptual question to ask:
I created a custom dialog (extends Dialog) and I want to draw a chart (dynamic data, not static) in the top third of the dialog.
What's the best (only?) way to approach this?
A) Get a canvas to the dialog and draw to it? Seems like I need access to the dialog's draw, yes, or can I do th...
I have a small xml file called 'xmlview.xml' which is something like:
<tablelayout>
<tablerow>
<view id="view1" />
I created a class which extends view, and I inflated that xml file and now i have a view obtained due to inflation.
xmlView = layoutInflater.inflate(R.layout.xmlview, this);
I am wondering is there a way to dr...
What would be the best way to go about designing a threaded conversation view like the one we see in the messages app? I'm not that familiar with the layout views in Android so any help is appreciated.
...
I get the fault "CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views."
The problem commes from the onDraw call in TutorialThread. The code works if the call to
startAnimation in onDraw is removed. Why does the code work if startAnimation is removed?
Why is this call different than t...
im getting a weird problem when refreshing my listview it works fine until the device is rotated and then when refreshing it again it goes completely blank. can only be fixed by rotating the device again (as it is also refreshed in onCreate()) but then whenever its refreshed again it goes blank. problem persists until app is restarted.
...
Hi,
I want to have a transparent view, above my application.
I want to do this just knowing the current activity.
I found a way of doing this by adding a new framelayout via the windowManager
I m doing this :
public static void AddViewAbove(Activity activity) {
FrameLayout newLayout = new FrameLayout(activity);
WindowManager.La...
What is the difference between using output cache
in view:
<%@ Page Language="C#"
Inherits="System.Web.Mvc.ViewPage<Mahmure.WebUI.ViewModels.NewsletterVM>" %>
<%@ OutputCache Duration="120" VaryByParam="none" %>
and in controller:
[OutputCache(Duration = 120, VaryByParam = "none")]
public ActionResult Index()
...
I'll start off by saying my terminology might be off, which is why I might be having trouble finding an answer to this question, and apologising for the wall of text.
I have a strongly-typed view that inherits from a custom type called Record. Record has a dictionary of named fields of varying datatypes - some strings, some ints, some D...
I'm trying to provide a modified view for a custom Android keyboard in fullscreen mode. Therefor I'm trying to replace the extract view. In the documentation I found the following method: setExtractView(View view) - so I assume it's a public API call.
However, as you can see from the Android OS source code (snipped pasted below) it lets...
Sorry if this is an annoying question, but I just want to know if it is possible to have an iPad view that is functioning, then load a smaller view on top of that with different content. And then be able to use both at the same time.
I have been trying to look this up, but I don't know what terminology to use. Thanks to anyone who c...
Hello everybody.
I have a list of buildings that I load from my model. Those buildings are showed in a loop within my view as so :
Controller
public function index() {
$data['buildings'] = $this->Base_Model->getUserBuildings();
$this->load->view('game', $data); }
View
<?php foreach($buildings as $b): ?>
<div class="building">...
For a project I am working on, I am trying to do the following thing.
There's a Sharepoint 2010 environment, with a few Custom Lists created in Visual Studio. I am adding some fields to them using background code in the FeatureActivated function in the EventReceiver.
What I am doing there is adding a lookup field to the Sharepoint Lis...
I have a main Contact and ContactViewModel . How do I get contact model and update it to the database ?
[HttpPost]
public ActionResult EditContact(ContactFormViewModel contactView) {
}
I was doing like this before I needed ViewModel
[HttpPost]
public ActionResult EditContact(int id, FormCollection collection) {
...
Question about SQL View. Trying to develop a view from two tables. The two tables have same Primary Keys, execpt the 1st table has all of them, the 2nd has some, but not all. When I INNER Join them, I get a recordset but its not complete, because the 2nd table doesnt have all the records in it. Is there a way in my view to write logic st...
Hey guys,
I have this library in CI that retrieves my latest twitter updates. It has a function that sends my latest updates as objects to my controller.
I would like to show these twitter updates on the footer of my page, so they're visible at all times.
Now my question is how I call these directly from a view? I know this is not a g...
Hi,
I have TabBar app that loads several .xib files. In one of the views I am trying to load a modal view to compose an email in the app over the the view. I am using
- (IBAction)buttonPressed {
MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init];
[controller setSubject:@"Email Subject"];
...
protected void Authorise(object sender, EventArgs e)
{
CheckBox chk;
foreach (GridViewRow rowItem in GridView1.Rows)
{
// gets the Debit Reference number for each row checked
string type = GridView1.DataKeys[rowItem.RowIndex].Values[0].ToString();
// gets t...
I am trying to programatically define my program layout and add a button to it at a certain position. I am not using the layout xml as the content view.
RelativeLayout mainLayout;
mainLayout = new RelativeLayout(this);
mainLayout.setLayoutParams(new
LayoutParams(LayoutParams.FILL_PARENT,android.view.ViewGroup.LayoutParams.FILL_P...
I have multiple action sheets in a view. I use the following code to get them to do an action but it seems to only work for the 1st button, not any of the other buttons.
How can I get it to work with the 2nd and 3rd button, etc.?
Here's the code:
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIn...
I have a Test Application with an empty main layout except for 2 buttons on the screen, next and previous.
I have two custom views called MyView1 and MyView2 that extends View.
They are animated to slide in and out using a custom animation class.
Currently I have been playing with something like the following:
when "previous" is clic...