Tag: r

59 votes
12 answers
1.2K views
Web colors in an Android color XML resource file

What do all of the X11/w3c color codes look like in the format of an Android XML resource file? I know thi

avatar
Arline
0 1 0 9
asked 07 September, 2021
62 votes
19 answers
1.2K views
How to handle button clicks using the XML onClick within Fragments

Pre-Honeycomb (Android 3), each Activity was registered to handle button clicks via the onClick tag in a Layo

avatar
Virgil
0 1 0 9
asked 07 September, 2021
53 votes
30 answers
1.4K views
How to pretty print XML from Java?

I have a Java String that contains XML, with no line feeds or indentations. I would like to turn it into a Str

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
45 votes
27 answers
1.4K views
Pretty printing XML in Python

What is the best way (or are the various ways) to pretty print XML in Python?

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
62 votes
6 answers
657 views
Declaring a custom android UI element using XML

How do I declare an Android UI element using XML?

avatar
Trudy
0 1 0 9
asked 07 September, 2021
56 votes
17 answers
610 views
How to Deserialize XML document

How do I Deserialize this XML document: <?xml version="1.0" encoding="utf-8"?> <Cars> <Car&g

avatar
Frederick
0 1 0 9
asked 07 September, 2021
59 votes
4 answers
2.5K views
What&apos;s the difference between text/xml vs application/xml for webservice response

This is more of a general question about the difference between text/xml and application/xml. I am fairly new

avatar
Freida
0 1 0 9
asked 07 September, 2021
58 votes
11 answers
2.9K views
How do I escape ampersands in XML so they are rendered as entities in HTML?

I have some XML text that I wish to render in an HTML page. This text contains an ampersand, which I want to r

avatar
Renaldo
0 1 0 9
asked 07 September, 2021
54 votes
20 answers
1.8K views
How to make layout with rounded corners..?

How can I make a layout with rounded corners? I want to apply rounded corners to my LinearLayout.

avatar
Trudy
0 1 0 9
asked 07 September, 2021
54 votes
20 answers
637 views
Can the Android layout folder contain subfolders?

Right now, I'm storing every XML layout file inside the 'res/layout' folder, so it is feasible

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
49 votes
14 answers
3K views
How can I save application settings in a Windows Forms application?

What I want to achieve is very simple: I have a Windows Forms (.NET 3.5) application that uses a path for read

avatar
Karolyn
0 1 0 9
asked 07 September, 2021
61 votes
9 answers
2.5K views
java.util.Date to XMLGregorianCalendar

Isn't there a convenient way of getting from a java.util.Date to a XMLGregorianCalendar?

avatar
Royal
0 1 0 9
asked 07 September, 2021
48 votes
18 answers
1.3K views
How do I align views at the bottom of the screen?

Here's my layout code; <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
51 votes
9 answers
2.3K views
How To Auto-Format / Indent XML/HTML in Notepad++

Is there a way to re-indent a block of code? I'm looking for something similar to Ctrl+Shift+F in Eclips

avatar
Dario
0 1 0 9
asked 07 September, 2021
58 votes
9 answers
1.8K views
What&apos;s "tools:context" in Android layout files?

Starting with a recent new version of ADT, I've noticed this new attribute on the layout XML files, for e

avatar
Chaya
0 1 0 9
asked 07 September, 2021
62 votes
10 answers
2.1K views
What characters do I need to escape in XML documents?

What characters must be escaped in XML documents, or where could I find such a list?

avatar
Corrin
0 1 0 9
asked 07 September, 2021
58 votes
8 answers
2.1K views
Combining two expressions (Expression<Func<T, bool>>)

I have two expressions of type Expression<Func<T, bool>> and I want to take to OR, AND or NOT of t

avatar
Kisha
0 1 0 9
asked 07 September, 2021
60 votes
8 answers
655 views
LINQ: Not Any vs All Don&apos;t

Often I want to check if a provided value matches one in a list (e.g. when validating): if (!acceptedValues.A

avatar
Don
0 1 0 9
asked 07 September, 2021
60 votes
5 answers
1.6K views
Why does ReSharper tell me "implicitly captured closure"?

I have the following code: public double CalculateDailyProjectPullForceMax(DateTime date, string start = null

avatar
Tana
0 1 0 9
asked 07 September, 2021
54 votes
17 answers
1K views
Entity Framework: There is already an open DataReader associated with this Command

I am using Entity Framework and occasionally i will get this error. EntityCommandExecutionException {"There

avatar
Suzan
0 1 0 9
asked 07 September, 2021