-1
votes
1answer
32 views

How should i use a jar library in my android layout?

I make the jar library in my code successfully, but in my xml file it calls 06-08 18:55:23.715: E/AndroidRuntime(13218): java.lang.RuntimeException: Unable to start activity ComponentInfo: ...
1
vote
0answers
19 views

Android Studio: xmlns:map not working

After doing a lot of research, and not finding anything... quick question, does anybody has an idea why Android Studio is not taking the Map tag? The code below is a fragment of the maps sample in ...
0
votes
0answers
25 views

Android Checkbox button image doesn't wrap content properly

Hi I'm currently doing a layout for my project and I need a checkbox for the play button which changes into a pause button on click so I use a selector for that part which is this one ...
3
votes
1answer
27 views

RelativeLayout.BELOW not working

I try to make view under other view progmaly my problem is that its dont seems to work. The views not going below they view in my code. The firstText and secondText arent going under the ID's i put. ...
0
votes
1answer
33 views

Not able to align button to the right in xml

How to align button to the right in the linear layout in android. The button just sticks next to the textView in the layout. This is my xml file. <LinearLayout ...
1
vote
0answers
40 views

No resource identifier found for attribute 'preset_size' for any res/

<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:facebook="http://schemas.android.com/apk/res/com.facebook.widget" ...
2
votes
1answer
40 views

Android custom background xml send attribute

I have the following xml file: <?xml version="1.0" encoding="UTF-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="#FFFFFF"/> ...
0
votes
1answer
25 views

Wont find R.Id. in fragment

Im trying to get a text view to link to a site but it wont find the id from xml in android. Any help would be great here's code It wont find the R.id.textviewlink public class Fragment_2 extends ...
1
vote
1answer
23 views

Is there a way to make text, buttons, progress bar stay in around the same area with any resolution

Is there a way to make text, buttons, progress bar stay in around the same area with any resolution. So if you on a nexus 10 and nexus 7 the text, buttons, progress bar will say around the same place. ...
0
votes
0answers
21 views

Android Gradient Banding

I've got a couple splash activity backgrounds that have a shadow around the edges and a faint central highlight circle in the center. On my Droid X2, these background are horribly banded. And for ...
0
votes
3answers
48 views

Round Border LinerLayout

so the question How to add border around linear layout except at the bottom? answers my question partially but i cant seem to figure out how to make the corners round ..
0
votes
1answer
31 views

How to change `solid color` from the code?

I have a Shape defined in xml. Now I need to change a solid color from the code, could you please advice how? <?xml version="1.0" encoding="utf-8"?> <shape ...
0
votes
5answers
60 views

Center Text below an imageview

How would I put a textview below an imageview so that the text is centered? If I use the relative layout, the only way is android:layoutBelow but you can't align to the center of the imageview as you ...
0
votes
0answers
63 views
+50

xmlns:android=“http://schemas.android.com/apk/res/android” gets added to all my layout objects causing errors

At some point after updating all my ADT tools and Eclipse, all my XML files error when I open them xmlns:android="http://schemas.android.com/apk/res/android" gets added to every layout object (root ...
4
votes
3answers
114 views

What's the difference between @android: and ?android: [duplicate]

What's the difference between android:color="@android:color/black" and style="?android:attr/borderlessButtonStyle" What's the difference between the @ and ? ? This is one of those questions ...

1 2 3 4 5 19
15 30 50 per page