• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Absolute beginner: Android Studio

I've just started trying to start the Android Fundamental practicals, and am having problems already. Is there anywhere better than here to ask very basic questions? Such as

On the Codelabs fundamentals 1.2, I load buttons and TextView, but then it says
"Set the textStyle to B (bold) and the textAlignment to ALIGNCENTER (center the paragraph).", but nowhere can I see a textAlignment option.
If I use the Gravity settings to align the text centrally, and go to the MainActivity.java screen, I see that the R in setContentView(R.layout.activity_main); has turned red and if I try to run the app, it says "Failed linking file resources".

At this stage, I'm not up to debugging this. What am I likely to be doing wrong?
 
There's a link at the bottom of your Attribute view "View all attributes". Click it, to reveal all possible attributes for the TextView.

In terms of debugging, any errors will be shown in the Build, or Logcat views.

Your "R" variable has gone red because the project didn't build properly. You have an error, probably in your layout file.
 
By doing repeated builds, I seem to have found the error. Where the tutorial says #FFF00 for the color, changing it to #FFFF00 allows the app to run to this stage.

This is where I wish again I could find a forum that I felt was more at my level, so that I didn't feel embarrassed by the question I was asking.

Many, many thanks for the help. It was much appreciated.
 
Back
Top Bottom