Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Over the current month there is a piece from the previous #456

Open
OM-3kChcBjgFR2COfP opened this issue Apr 29, 2017 · 1 comment
Open

Comments

@OM-3kChcBjgFR2COfP
Copy link

Hi
Thanks for the calendar!
I have a question about the markup.
The calendar is built in scrollview and its height takes all the markup.
Look at the screenshot, over the current month there is a piece from the previous one and it will also be scrolled, how to leave only the current month in the markup?

Thank you

@OM-3kChcBjgFR2COfP
Copy link
Author

OM-3kChcBjgFR2COfP commented Apr 29, 2017

My layout.xml:

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

ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="#FFF"
    android:orientation="vertical">


    <com.synnapps.carouselview.CarouselView
        android:id="@+id/carouselView"
        android:layout_width="match_parent"
        android:layout_height="200dp"/>

    <ImageView
        android:id="@+id/top_content"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="-35dp"
        android:scaleType="fitXY"
        android:src="@drawable/top_content_xml" />



    <LinearLayout
            android:id="@+id/calendar1"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_marginTop="25dp"
            android:orientation="vertical"/>

    <Button
        android:id="@+id/load_button"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="" />

    <TextView
        android:id="@+id/textview"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"/>


/LinearLayout>

/ScrollView>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant