2016-03-24 3 views
0

CalendarView не отображается правильно при попытке ввода текстов в EditText. (открывается программная клавиатура, сокращается календарное изображение) Как установить фиксированную высоту и ширину calendarView?Календарный пользовательский интерфейс не отображается правильно

Любая пользовательская библиотека для Datepicker, например, 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> 

Проверьте изображение.

enter image description here

ответ

0

обернуть RelativeLayout в ScrollView.

Смежные вопросы