Cormac Kennedy
Cormac Kennedy

Reputation: 21

Why can't I see text in activity_main.xml when I create a new Android Studio project?

Hi I'm new to Android Studio and am running into some trouble with starting a new project. I want to design an app, but unfortunately I cannot see any of the components I place in the ConstraintLayout.

Has anyone else experienced this? I've tried reinstalling the program and have also watched a few videos without much luck.

Update: 7.1.2018 7:22pm

Design Tab Text Tab

Upvotes: 0

Views: 4053

Answers (1)

ISlimani
ISlimani

Reputation: 1673

This is a common problem in Android Studio.

Just go to styles.xml file and change:

styles

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">

to

<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">

The keyword here is to add Base

base

result

Upvotes: 2

Related Questions