As a quick note, if you need to get an Android
TableRow to align right, I can confirm that this layout code works:
Google released Android Studio 2.2 yesterday. Here’s a link to the announcement and details on the Android Developers Blog.
I just started writing an RSS Reader application using JavaFX and Scala, and I thought I’d post the initial code here. This code shows several advanced Scala techniques that Scala developers might need to use when writing Scala code to interact with Java, and in this case, JavaFX.
As the Grid by Example website states, it provides “a collection of usage examples for the CSS Grid Layout specification.” Importantly, the Browsers tab on the website discusses current support for the spec in different browsers.
Before I completely delete this code from my current Android application, I want to make a copy of it here. It was intended to show a series of quotes (text phrases) in a “Grid” (
GridView), but (a) I never got it working as desired, and (b) I decided I didn’t want it in my application anyway.
Here’s the source code for the Java controller/fragment class:
This is a collection of notes about what I learned today, February 23, 2015. Most of it is about Android.
I need to refresh my cursor data set before calling notifyDataSetChanged
When (a) adding, editing, or deleting items in a
ListView and (b) using a
CursorAdapter, I need to update my cursor object before calling
notifyDataSetChanged. I created this method, which I call from my fragment’s
64 ways to think about a news homepage is an interesting read. I’m always glad to see when people are searching for new ideas, especially in regards to this topic.
As a note to self, I like the design/layout of this Arduino documentation page. It’s well organized and easy to read. Although the alignment could be better, the use of the orange color for the headings really makes them stand out.
Android FAQ: How do I look up (find) a widget in my Java code that I’ve defined in an XML layout file?
Solution: When you define your Android widgets in XML and then need to find a widget by its
id, the method you need is named
For example, you’ll use code like this to look up a widget by its
id and create it in your Java code: