android


Android XML shows different than live version


I can not figure out what is going on. For awhile everything was perfect, I have the style sheet setup for the application and in the manifest I have each individual activity set to that theme. It was working for awhile but now it is changing all the items that show white to black and I cannot figure out why.Here's a picture of the way it is supposed to have worked and was working for awhile
How it shows in emulator and on phones
Layout file:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="match_parent" android:paddingLeft="#dimen/activity_horizontal_margin"
android:paddingRight="#dimen/activity_horizontal_margin"
android:paddingTop="#dimen/activity_vertical_margin"
android:background="#drawable/signinbg">
<Button
android:id="#+id/login"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignLeft="#+id/password"
android:layout_below="#+id/password"
android:text="login"
android:nestedScrollingEnabled="false"
android:background="#color/Blueish"
android:gravity="center"
android:layout_centerVertical="true"
android:layout_marginTop="40dp" />
<EditText
android:id="#+id/username"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:ems="10"
android:focusable="true"
android:background="#android:drawable/edit_text"
android:imeOptions="actionNext"
android:singleLine="true"
android:gravity="center"
android:layout_centerVertical="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:selectAllOnFocus="true"
android:layout_marginTop="2dp" />
<EditText
android:id="#+id/password"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:background="#android:drawable/edit_text"
android:ems="10"
android:imeOptions="actionDone"
android:password="true"
android:singleLine="true"
android:gravity="center"
android:selectAllOnFocus="true"
android:layout_below="#+id/textView4"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginTop="2dp" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Not registered yet? Sign up!"
android:textSize="20dp"
android:id="#+id/Register"
android:textAlignment="center"
android:clickable="true"
android:gravity="center"
android:textColor="#color/White"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginBottom="10dp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="#+id/imageView"
android:src="#drawable/logo"
android:paddingBottom="50dp"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textSize="40dp"
android:text="Sign in"
android:textColor="#color/White"
android:id="#+id/textView2"
android:layout_above="#+id/textView3"
android:layout_alignLeft="#+id/textView4"
android:layout_alignStart="#+id/textView4" />
<TextView
android:layout_width="wrap_content"
android:layout_height="30dp"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="Username"
android:id="#+id/textView3"
android:textColor="#color/White"
android:textSize="23dp"
android:layout_above="#+id/username"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<TextView
android:layout_width="wrap_content"
android:layout_height="25dp"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="Password"
android:id="#+id/textView4"
android:textColor="#color/White"
android:textSize="23dp"
android:layout_below="#+id/username"
android:layout_alignRight="#+id/textView3"
android:layout_alignEnd="#+id/textView3"
android:layout_marginTop="10dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="Forgot Password?"
android:textColor="#color/White"
android:id="#+id/ForgotPassword"
android:layout_below="#+id/password"
android:layout_alignLeft="#+id/textView4"
android:layout_alignStart="#+id/textView4" />
</RelativeLayout>
Styles:
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">#color/colorPrimary</item>
<item name="colorPrimaryDark">#color/colorPrimaryDark</item>
<item name="colorAccent">#color/colorAccent</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="AppTheme.NoActionBar" parent="AppTheme">
<item name="colorPrimaryDark">#color/colorPrimaryDark</item>
<item name="colorAccent">#color/colorAccent</item>
<item name="colorPrimary">#color/colorPrimary</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
</resources>

Related Links

Full width image in android notification
Using third party library in Eclipse for Android [duplicate]
What happens when you apply a theme to an activity/application and style to a view?
Xamarin - unable to track referrers with Google Analytics
style spinner drop down list
Export database from asset folder to application and replace empty database
Changing SurfaceFlinger source in android
Why am I getting `NoClassDefFoundError: org/codehaus/groovy/runtime/typehandling/ShortTypeHandling` when running `./gradlew tasks`?
Cocos2d-x Crash at setResponseCallback in Android
Find usages of SharedPreference in AndroidStudio
Up navigation with fragments and activities
How to display the results of nearbysearch in android using Google Places API?
whats the error means when use TextureView with the same SurfaceTexture at switch activities?
How to get click and install in user acquisition part in flurry?
Styling tab indicator or background color of selected tab
Camera app activity [duplicate]

Categories

HOME
uml
algorithm
url-redirection
gdb
powerpoint
yahoo-finance
obfuscation
apiblueprint
nsbundle
boto3
qpython
owin
siddhi
event-sourcing
job-scheduling
mvc-mini-profiler
intershop
mathprog
red5
forgot-password
wolframalpha
soci
drive
guzzle
scriptella
zxing
dapper-extensions
itunes
opentk
entity-relationship-model
progress-bar
uitapgesturerecognizer
twiml
calculation
cognos-bi
r-grid
hreflang
twos-complement
baidu-map
engine.io
git-rewrite-history
dm-script
tex
metaprogramming
linqpad
avcapturedevice
plan-9
linter
rserve
datamaps
carrot2
java-bytecode-asm
oracleclient
seq
vibrate
shinobi
renaming
visual-studio-2008-sp1
hadoop-2.7.2
uicolor
expectations
dimension
vorpal.js
pre-build-event
refinerycms
clipboard.js
qiime
deep
php-socket
ikiwiki
rasterize
pax-exam
snoop
jquery-forms-plugin
umlgraph
phpldapadmin
iiop
post-commit-hook
cocos3d
insight.database
xml-namespaces
dot42
spring-remoting
gae-quotas
ecslidingviewcontroller
gwt-openlayers
notorm
gtm-oauth2
isqlquery
hidapi
traceability
tree-balancing
xcode3.2
usertype
wiimote
node-redis
catransform3d
undefined-index
zend-rest
lobo-cobra
windows-identity
xpsdocument

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile