Tagged Questions
1
vote
0answers
31 views
Two Circle Custom View
Hi i want to create a custom view which has two circles . The bigger circle should hold an image and the smaller circle to hold text. Refer to the image below , i am very new to custom views plz help. ...
0
votes
0answers
19 views
Android: Touch events not firing for children of a custom view
I have created a custom view which extends ViewGroup.
In that custom view, I have added multiple Buttons.
I have tried giving the buttons both OnTouchListeners and OnClickListeners but neither is ...
0
votes
1answer
37 views
Create Custom View
I am trying to achieve the effect of creating a view with a custom shape(almost rectangular).
Here is what i tried to do:
public class CustomHeaderview extends View {
public ...
0
votes
2answers
22 views
Create Custom Compound View in Android with Attributes
I have created a custom compound view inside a library application and everything was OK. When I add custom attributes to view, I always get default values. I followed this steps with only one ...
0
votes
1answer
34 views
Sliding View from bottom
I haven't seen any discussion on Google's latest slew of Application updates on this new paradigm of sliding a view up from the bottom of the screen and having it overlay the current UI.
For example ...
1
vote
0answers
55 views
Android Custom KeyBoardView clear default keys
I have custom MyKBV class which extends KeyBoardView.I created this custom view to use custom font for the keys. I am able to see the changed font on the keys but the problem is each key overlap's ...
0
votes
1answer
22 views
Only the first of three custom views draws properly
I have a custom ScoreView that consists of two lines of text (a name and a score). Behind that text, I am drawing a bar representing the score.
I have a fragment that contains three such ScoreViews. ...
5
votes
4answers
203 views
How to reference one control from another during inflation?
I am trying to reference a sibling control through XML.
To declare an attribute to reference an id from MyTextView:
<?xml version="1.0" encoding="utf-8"?>
<resources>
...
0
votes
1answer
23 views
Getting Height and Width for a View Failure
I am implementing a new class that extends CheckBox
In the constructor I am giving it a specific dimensions like this:
setHeight(size);
setWidth(size);
measure(size, size);
But whenever I call ...
0
votes
1answer
24 views
Clear the previous selected View Background and change the background of newly selected View in Onclick - Android
I want to change the background view when it's pressed (its working). My problem is, If i press the other view (not the same one) in the list, i want to set my background to Black of the newly ...
0
votes
1answer
90 views
How to know which contact is selected in listview with their relationship ? See Image
I loaded all contacts in my custom listview adapter with three checkboxes. Each checkboxes related to relationship between selected contact and user. It may be Family, Friends and Co-Worker or any two ...
0
votes
1answer
380 views
Android custom view: Set canvas size to wrap bitmap
I have a custom view that has Canvas in it. I'm using this canvas to show a bitmap on it and then I can draw over the bitmap on touch. When I load the bitmap it is a lot bigger then the view size and ...
-2
votes
2answers
112 views
Android aviary like image re-size and scaling [closed]
I am currently working on Image editor and i want to implement the image re-size and rotate tool like aviary.
The screenshot is as below
and I can not get any Idea or example for creating such ...
0
votes
1answer
60 views
Drawing a border around a custom LinearLayout
here is a quick description of my screen layout.
<CustomLayout>
<CardView>
<CustomTextView />
<CustomTextView />
<CustomTextView />
...
1
vote
1answer
559 views
Custom view inside Horizontal scroll view not scrolling
i am working on a custom view. when i put custom view inside Horizontal scroll view the Horizontal scroll is not working.I think i have made mistake in writing MeasureSpec but i dont know how to ...