RelativeLayout-da ekranning pastki qismida joylarni ko'rish mumkin emas

Men ekranning past qismidagi "Ro'yhatdan o'tish" tugmachasini olishni istayman, lekin rasmda ko'rsatiladigan qora chiziqning pastki qismidagi istalgan ko'rinishni qo'yishimga ruxsat bermaydi. Nima uchun kimdir menga ayta oladimi?

Layout Picture

userSignin.xml

 <?xml version="1.0" encoding="utf-8"?>
    

    />
    

    

    

    

    <button
        style="?android:attr/buttonStyleSmall"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="SignUp"
        android:id="@+id/btn_signup"
        android:layout_gravity="center"
        android:layout_alignParentBottom="true"
        android:layout_toEndOf="@+id/CB_chinese" />

    

    

    

    

    

    

    

    

    

    

    

    

    

    




0
fillViewPost = "rost"
qo'shib qo'ydi muallif Avi, manba
Iltimos, mening javobimga e'tibor qarating. Bu sizning muammoingizni hal qilmoqchi.
qo'shib qo'ydi muallif Dharmbir Singh, manba
android o'rnating: fillViewport = "true" scrollview uchun
qo'shib qo'ydi muallif Shrenik Shah, manba

7 javoblar

Remove layout_gravity="center"

Ro'yxatdan o'tish tugmasi uchun ushbu qatorni olib tashlang

android:layout_gravity="center"

Ushbu tugmani o'zgartiring

 <button
    style="?android:attr/buttonStyleSmall"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="SignUp"
    android:id="@+id/btn_signup"
    android:layout_alignParentBottom="true"
    android:layout_toEndOf="@+id/CB_chinese" />

Umid qilamanki, u siz uchun ishlaydi.

1
qo'shib qo'ydi

ushbu kodni sinab ko'ring

   <?xml version="1.0" encoding="utf-8"?>



    

        

        

        

        <button
            style="?android:attr/buttonStyleSmall"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="SignUp"
            android:id="@+id/btn_signup"
            android:layout_gravity="center"
            android:layout_alignParentBottom="true"
            android:layout_toEndOf="@+id/CB_chinese" />

        

        

        

        

        

        

        

        

        

        

        

        

        

        


    

1
qo'shib qo'ydi

android joylashtiring: fillViewport = "rost" va "RelativeLayout" ni scrollView-ning yuqori qismini yaratadi

1
qo'shib qo'ydi
Ha, siz to'g'risi shukur
qo'shib qo'ydi muallif SFAH, manba

Try changing line android:fillViewport="true"

1
qo'shib qo'ydi
Ha, siz to'g'risi shukur
qo'shib qo'ydi muallif SFAH, manba

Scrollview tugmasi tashqarisiga qo'ying.

0
qo'shib qo'ydi
Masalan, Lineer Layout kabi yana bir ota-sahifa tartibini foydalaning va qo'yib qo'yish tugmasidan keyin aylantirishni kiriting
qo'shib qo'ydi muallif Jinal Patel, manba
scrollview bu erda ota-ona bo'lib, uni tashqaridagi scrollview -_- dan qanday qilib saqlab qo'yishi mumkin va shunga o'xshash kichik narsalarni sharhlarda eslatib o'tish kerak
qo'shib qo'ydi muallif Redman, manba
Yo'q, bunday emas, faqat androidni o'zgartirish kerak: fillViewport = "noto'g'ri" dan "rost"
qo'shib qo'ydi muallif SFAH, manba

Scrollview-da ScrollView kontentni o'rash va agar siz fillViewPort = "true" belgisini belgilamasangiz, foydalanilmayotgan joyni qoldirib, noto'g'ri sababga ko'ra, android: fillViewport = "rost" yaratishingiz kerak.

<?xml version="1.0" encoding="utf-8"?>



    />
    

    

    

    

    <button
        style="?android:attr/buttonStyleSmall"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="SignUp"
        android:id="@+id/btn_signup"
        android:layout_gravity="center"
        android:layout_alignParentBottom="true"
        android:layout_toEndOf="@+id/CB_chinese" />

    

    

    

    

    

    

    

    

    

    

    

    

    

    




0
qo'shib qo'ydi
Ha, siz to'g'risi shukur
qo'shib qo'ydi muallif SFAH, manba
<?xml version="1.0" encoding="utf-8"?>

    
    

        

        

        



        

        

        

        

        

        

        

        

        

        

        

        

        

        


    

    

    
    <button
        style="?android:attr/buttonStyleSmall"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="SignUp"
        android:gravity="center"
        android:id="@+id/btn_signup"
        android:layout_gravity="center"
        android:layout_alignParentBottom="true"
        android:layout_toEndOf="@+id/CB_chinese" />
    

0
qo'shib qo'ydi