編輯/注:我真的需要一個答案,我想留在「股票」谷歌Android API。我已經創建了一個+100的賞金,但如果我在未來幾天使用股票API獲得一個簡單的解決方案,我會再添加+100,使其值得200點。箭在哪裏?
我與Android CalendarView控制試驗。我使用NestedScrollView中的按鈕和CalendarView創建了一個小應用程序。我做了按鈕和它的邊緣真的很大,所以我可以驗證滾動工作。在運行Android 6.01的三星Galaxy S5上,它工作正常。但在三星小號二重奏(這是我預期的目標)運行4.2.2有沒有辦法提前一個月(通知沒有旁邊的箭頭月)
下面是三星S5運行Android 6.01
截圖,這裏是一個運行4.2.2
的content_main.xm三星小號二重奏我看起來像這樣。 。
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- This linear layout is because the scrollview can have only 1 direct child -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<Button
android:id="@+id/recordEnd"
android:layout_width="200dp"
android:layout_height="100dp"
android:layout_marginTop="100dp"
android:layout_marginBottom="100dp"
android:gravity="center"
android:text="Record End"/>
<CalendarView
android:id="@+id/thecalendar"
android:layout_width="240dp"
android:layout_height="300dp"
android:minDate="01/01/2016"
android:maxDate="11/30/2016"/>
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
...在Android Studio中的設計視圖不顯示箭頭。我不知道如何調試。
它可能是特定於版本我猜..由於每個版本的變化''CalendarView'的變化..! –
顯然它是特定於版本的,但CalendarView自API 11以來一直不存在,所以在Android 5之前,用戶是如何在不同月份前進的? – user316117
只是交換..我猜.. .. –