Top "Custom-view" questions

How to create custom view programmatically in swift having controls text field, button etc

I am trying to access the MyCustomView from another class using the following code in ViewController.swift .. var view = MyCustomView(…

ios xcode swift custom-view
Camera with Custom View

My Application uses camera, I would like to add overlay over the camera preview. For example, I want to use …

ios objective-c camera uiimagepickercontroller custom-view
Android ImageView size not scaling with source image

I have a few ImageViews inside a LinearLayout. I need to scale down the ImageViews so that they maintain their …

android layout formatting imageview custom-view
Multiple choice list with custom view?

I've seen example com.example.android.apis.view.List11 from ApiDemos. In that example, each row takes the view android.…

android listview user-interface custom-view
How to get an enum which is created in attrs.xml in code

I created a custom View (find it here) with an declare-styleable attribute of type enum. In xml I can now …

android enums android-custom-view attr custom-view
android data binding with a custom view

The Android data binding guide discusses binding values within an activity or fragment, but is there a way to perform …

android data-binding custom-view
Custom View Extending Relative Layout

package com.binod.customviewtest; import android.content.Context; import android.view.LayoutInflater; import android.widget.RelativeLayout; public class CustomView extends …

android custom-view
Android drawing button to canvas with custom view?

How can I draw a button on top of the canvas in a custom view? (Preferably on the mid-right side) …

android button canvas custom-view
How can I get the canvas size of a custom view outside of the onDraw method?

I need to be able to access the size of the view's canvas to perform some calculations. For some reason, …

android view custom-view android-custom-view
Android Custom View Constructor

I'm learning about using Custom Views from the following: http://developer.android.com/guide/topics/ui/custom-components.html#modifying The …

xml android custom-view