2016-03-24 5 views
0

CalendarView wird nicht ordnungsgemäß angezeigt, wenn Sie versuchen, Texte in EditText einzugeben. (Softkeyboard wird geöffnet, Kalenderansicht verkleinern) Wie wird die feste Höhe und Breite von CalendarView festgelegt?Kalender-UI wird nicht ordnungsgemäß angezeigt

Jede benutzerdefinierte Bibliothek für Datepicker wie IOS?

Layout-

<RelativeLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:app="http://schemas.android.com/apk/res-auto" 
    android:background="@color/white" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent"> 

    <CalendarView 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:layout_margin="20dp" 
    android:layout_above="@+id/im_date_edt" 
    android:id="@+id/calendarView" 
    android:layout_gravity="center_horizontal"/> 
<EditText 
    android:id="@+id/im_date_edt" 
    android:layout_marginLeft="20dp" 
    android:layout_marginRight="20dp" 
    android:textStyle="bold" 
    android:layout_above="@+id/im_desc_edt" 

    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:background="@drawable/square_gray" 
    android:padding="10dp" 

    /> 
<EditText 
    android:id="@+id/im_desc_edt" 
    android:layout_margin="20dp" 
    android:textStyle="bold" 
    android:layout_alignParentBottom="true" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:hint="@string/Description" 
    android:textColor="@android:color/black" 
    android:textColorHint="@color/md_grey_400" 
    android:background="@drawable/square_gray" 
    android:padding="10dp" 
    /> 
</RelativeLayout> 

Überprüfen Sie das Bild.

enter image description here

Antwort

0

Wickeln Sie Ihre RelativeLayout in eine ScrollView.

Verwandte Themen