5
votes
1answer
6k views

New to Android - Drawing a view at runtime

HI all, I'm just getting started with developing for Android. I'm looking to port one of my iPhone applications, but I'm kind of at a loss for how to draw a view at runtime (a view not declared in ...
1
vote
1answer
650 views

How to Set an array as Tag to any View through layout xml in android

I want to bind some extra data with a view. I am using tag in my xml file to add the extra information. If the data is only String (android:tag="extra Info"), i am able to get the extra data by using ...
6
votes
2answers
3k views

How to use own view in layout?

I created a class like this public final class MyView extends View { public MyView(Context context, AttributeSet attrs) { super(context, attrs); [...] } [...] } and ...
4
votes
1answer
3k views

Bind android custom view to a specific layout xml (is this even possible?)

I'd like to put a custom view multiple times in my main.xml which consists of a RelativeLayout, some controls and then my custom view. This custom view should use the following (simplified) xml: ...
8
votes
1answer
9k views

Adding a cutom view into XML layout fails

I'm new to Android development and trying to create my first custom View subclass GraphView and add it to my layout XML file. I found this and tried to apply it to my project, but something seems to ...
5
votes
1answer
283 views

Buttons in a custom view when the custom view is in a tab

THE QUESTION Is it possible to run one tab from a different Activity or Java file than the other three, thus allowing me to connect the second Activity to the server that is running off of the first. ...
2
votes
1answer
5k views

Spring XML View Resolver Conifguration

I am trying to output some model data to a pdf using spring-mvc. It is not working and I was wondering if someone could offer some advice. I have a spring-servlet.xml file that includes the ...
0
votes
1answer
170 views

android tablelayout trouble, adding views

I am having trouble with View leader , I'm not sure what the second parameter is supposed to be TableLayout leaderTable = (TableLayout)findViewById(R.id.leaderTable); ...
0
votes
1answer
364 views

View.Invisible - images stay on the screen

I trying to set visibility of my imageview , button and textview. But they still there when I run the program. I tried the View.GONE but that just remove all the textview, imageview and button. But I ...
0
votes
3answers
498 views

Switch case statements causes fatal error in my Android App

I am building an Android app using a pile of switch statements to switch between views. Everything was going fine until I added a block of cases that cause a fatal error when the app is starting up. ...
0
votes
3answers
3k views

Android programming - How to acces [to draw on] XML view in main.xml layout, using code

Ok I'm a newbie at Android programming, have a hard time with the graphics part. Understand the beauty of creating layout in XML file, but lost how to access various elements, especially a View ...
0
votes
1answer
892 views

Anyway to use XML layout files for specific View/ViewGroups?

I have a custom View that I'd like to specify the layout of in an XML file rather than through code, is there anyway I can take an Android XML layout file and use it to flush out my custom View's ...