2016-08-15 5 views
0

上に表示し、いくつかの奇妙なことに気づいていません私のアプリケーションに変更され、残念なことにそれが役に立たなくなる。のEditTextビューは、これは簡単な修正であれば、私は最近、<strong>API 23</strong>に私のAVDをアップグレードした</p> <p>..私は謝罪ので、Androidにかなり新しい午前のAndroid API 23

要するに、私の着陸画面のボタンと、登録画面のEditTextの表示が消えてしまった。私はコードを変更していない、APIをアップグレードしただけです。私がSamsung Galaxy S3でアプリをテストするとき、アプリはまだ見え、期待通りに動作します。以下は

EditTextフィールドは更新後のように探しているもののスクリーンショットです:

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="fill_parent" 
android:layout_height="wrap_content" 
android:fillViewport="true"> 

<RelativeLayout 
xmlns:tools="http://schemas.android.com/tools" 
android:layout_width="match_parent" 
android:layout_height="match_parent" 
android:paddingBottom="@dimen/activity_vertical_margin" 
android:paddingLeft="@dimen/activity_horizontal_margin" 
android:paddingRight="@dimen/activity_horizontal_margin" 
android:paddingTop="@dimen/activity_vertical_margin" 
tools:context="coursematch.coursematch.Classes.RegisterActivity"> 

<TextView 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:textAppearance="?android:attr/textAppearanceSmall" 
    android:text="Back" 
    android:id="@+id/backButton2" 
    android:layout_alignParentTop="true" 
    android:layout_alignParentLeft="true" 
    android:layout_alignParentStart="true" 
    android:onClick="backToLanding"/> 

<TextView 
    android:typeface="serif" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:textAppearance="?android:attr/textAppearanceLarge" 
    android:text="Register" 
    android:id="@+id/welcomeNameTextView" 
    android:layout_alignParentTop="true" 
    android:layout_centerHorizontal="true" 
    android:shadowColor="#111111" /> 

<LinearLayout 
    android:orientation="vertical" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:layout_below="@+id/welcomeNameTextView" 
    android:layout_centerHorizontal="true" 
    android:weightSum="1" 
    android:id="@+id/linearLayout"> 

    <android.support.v4.widget.Space 
     android:layout_width="match_parent" 
     android:layout_height="10dp" 
     android:id="@+id/view" 
     android:layout_gravity="center_horizontal" 
     android:layout_weight="0.17" /> 

    <ImageView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:id="@+id/imageView" 
     android:layout_gravity="center_horizontal" 
     android:layout_weight="0.17" 
     android:src="@drawable/mortarboardone" /> 

    <android.support.v4.widget.Space 
     android:layout_width="fill_parent" 
     android:layout_height="30dp" 
     android:id="@+id/view2" 
     android:layout_gravity="center_horizontal" 
     android:layout_weight="0.17" /> 

    <TextView 
     android:typeface="serif" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:textAppearance="?android:attr/textAppearanceSmall" 
     android:text="First Name" 
     android:id="@+id/textView2" 
     android:layout_weight="0.07" /> 

    <EditText 
     android:singleLine="true" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:id="@+id/firstNameTextField" /> 

    <TextView 
     android:typeface="serif" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:textAppearance="?android:attr/textAppearanceSmall" 
     android:text="Last Name" 
     android:id="@+id/textView3" 
     android:layout_weight="0.17" 
     android:shadowColor="#000000" /> 

    <EditText 
     android:singleLine="true" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:id="@+id/lastNameTextField" 
     android:layout_gravity="center_horizontal" /> 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:textAppearance="?android:attr/textAppearanceSmall" 
     android:text="Username (Must be unique, eg JoeBloggsQESchool)" 
     android:id="@+id/textView4" 
     android:layout_below="@+id/linearLayout" 
     android:layout_alignParentLeft="true" 
     android:layout_alignParentStart="true" /> 

    <EditText 
     android:singleLine="true" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:id="@+id/usernameTextField" 
     android:layout_gravity="center_horizontal" 
     android:layout_alignParentBottom="true" 
     android:layout_centerHorizontal="true" /> 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:textAppearance="?android:attr/textAppearanceSmall" 
     android:text="Email" 
     android:id="@+id/textView5" /> 

    <EditText 
     android:singleLine="true" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:inputType="textEmailAddress" 
     android:ems="10" 
     android:id="@+id/emailTextField" /> 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:textAppearance="?android:attr/textAppearanceSmall" 
     android:text="Set Password" 
     android:id="@+id/textView6" /> 

    <EditText 
     android:singleLine="true" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:inputType="textPassword" 
     android:ems="10" 
     android:id="@+id/passwordTextField" /> 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:textAppearance="?android:attr/textAppearanceSmall" 
     android:text="Confirm Password" 
     android:id="@+id/textView7" /> 

    <EditText 
     android:singleLine="true" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:inputType="textPassword" 
     android:ems="10" 
     android:id="@+id/confirmPasswordTextField" /> 

    <Space 
     android:layout_width="match_parent" 
     android:layout_height="30dp" /> 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:textAppearance="?android:attr/textAppearanceSmall" 
     android:text="Passwords must be over 8 characters long, and  contain at least one of the following:" 
     android:id="@+id/textView8" /> 

    <Space 
     android:layout_width="match_parent" 
     android:layout_height="10dp" /> 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:textAppearance="?android:attr/textAppearanceSmall" 
     android:text="- Upper Case Letter" 
     android:id="@+id/textView9" /> 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:textAppearance="?android:attr/textAppearanceSmall" 
     android:text="- Lower Case Letter" 
     android:id="@+id/textView10" /> 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:textAppearance="?android:attr/textAppearanceSmall" 
     android:text="- Number OR Symbol" 
     android:id="@+id/textView11" /> 

    <Space 
     android:layout_width="match_parent" 
     android:layout_height="10dp" /> 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:textAppearance="?android:attr/textAppearanceSmall" 
     android:text="Eg: FidoTheDog1" 
     android:id="@+id/textView12" /> 

    <Space 
     android:layout_width="match_parent" 
     android:layout_height="20dp" /> 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:textAppearance="?android:attr/textAppearanceLarge" 
     android:text="Continue" 
     android:id="@+id/textView13" 
     android:layout_below="@+id/linearLayout" 
     android:layout_centerHorizontal="true" 
     android:onClick="toNextTier" 
     android:layout_gravity="center_horizontal" /> 

    <Space 
     android:layout_width="fill_parent" 
     android:layout_height="10dp" /> 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:textAppearance="?android:attr/textAppearanceMedium" 
     android:text="" 
     android:id="@+id/regErrorView" 
     android:layout_gravity="center_horizontal" 
     android:textColor="#ff0000" 
     android:textAlignment="center" /> 

</LinearLayout> 

</RelativeLayout> 
</ScrollView> 

すべてのヘルプなど:

As you can see, there should be EditText views between each textview, however there are not

ここでは、登録活動のための私のレイアウトファイルでありますなぜこれが起こっているのかは大変に評価され、またそれが些細なことであれば再び謝ります。 (それは基本的に彼らは全体のビューポートを満たすことであるが)

おかげ

+0

変更 'textColor'。メーカーがアンドロイドシステムを次のレベルに更新すると、ビューのテキストカラーなどのデフォルト設定も変更されることがあります。私はこの長い時間前に拍車をかけました...この場合、色がちょうど黒になった可能性があります... – Opiatefuchs

+0

あなたはどのアプリを使っていますか? – Shaishav

+0

@Shaishav AppTheme.NoActionBar – freshwaterjoe

答えて

0

私の友達、

は時々このfillViewportは、このようにあなたが安全に...

ScrollViewタグから削除することができます。..問題を提供します 私のアプリはmashmallowに良いロリポップ下の罰金ではなく、働いていたところ、私は一度、この問題を抱えていた

関連する問題

 関連する問題