customview

Smaller active area for custom UIBarButtonItem

I have a UINavigationBar with a custom UIBarButtonItem (which uses a UIButton as its custom view). The problem is: the active area of the custom button is much too large, if I tap at least 40 pixels outside the button, it still gets registered as a tap on the button. This results in accidental taps. How can I reduce the active area on th...

Cocoa Touch: Creating and Adding Custom View

I create a custom view in cocoa touch that is superclassed by UIView and in my main controller I initialize it and then add it as a subview to the main view, but when I add it to the main view it calls my initializer method again and causes an infinite loop. Am I going about creating my custom view wrong? Here is the mainView - (void)lo...

[NSCustomView isOpaque]: message sent to deallocated instance 0x123456

Hi all I receive that message in debugger console since I added the following arguments for debugging my application with XCode. NSZombieEnabled: YES NSZombieLevel: 16 I was looking for zombie objects... Before doing so, the application failed before I could know where what and why was happening.... Now I´m pretty sure that 'something...

Popup toolbar upon check

Hi, In the default Mail application that ships with Android, each message in your inbox has a checkbox next to it. Clicking this checkbox pops up a toolbar from the bottom of the screen with buttons to mark all checked messages as read/unread, delete a message, and star a message. I want to replicate this popup toolbar for my applicat...

how to inflate a view class in main.xml

How could i inflate my custom view using the main.xml file? I thought it carried the format of <com.blah.project.MainClass.innerClass /> but I cant seem to get the fully qualified name of my inner class right. My customView is inside of my Main.java file, anyone know how I could properly reference it? Thank you. ...

TableView Cell Color

我现在遇到了个问题,如何使uitableview cell 的背景色填满整个cell ,以下是我的代码。但它不能正常工作、、、 Picture shows: http://www.flickr.com/photos/53054715@N05/4898445104/ How can I code that set the color fill in cell view? My code is below, but it does not work well. cell.contentView.backgroundColor =[UIColor groupTableViewBackgroundColor]; cell.backgroundColor=[UIColo...

Adding a Custom ImageView to main layout

here is the deal. i was looking over this code about extending an ImageView: http://marakana.com/forums/android/examples/98.html and i was wondering how can i add the new View to an existing xml layout file, along with some other views. already i did this inside my main linear layout: <FrameLayout android:id="@+id/FrameLayout01" an...

Drawing a border using a custom view Android

I'm trying to draw a custom border by drawing a custom view. Here is a sample of one side of the border: package com.sparkydev.guessaphrase; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.drawable.ShapeDrawable; import android.graphics.drawable.shapes.RectShape; i...

Android custom view causing force close

Hi, I have a custom view in src > myproject.test > HomeView In my main layout xml I have the following: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/home_root" android:orientation="vertical" android:layout_width="fill_parent" android:la...