2016-03-24 22 views
0

CalendarText uygulamasında metin girmeye çalışırken düzgün görüntülenemiyor. (softkeyboard açılır, takvim görünümü küçültülür) Takvim nasıl ayarlanır Sabit yüksekliği ve genişliğini görüntüleyin?Calendar UI düzgün görüntülenemiyor

Datepicker için ios gibi özel kütüphaneler var mı?

Düzen

<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> 

Kontrol görüntüsü.

enter image description here

cevap

0

senin RelativeLayoutScrollView bir de sarın.

İlgili konular