Giter Club home page Giter Club logo

Comments (13)

p-v avatar p-v commented on July 20, 2024

Can you please post your code?

from flexiblecalendar.

naresh-gunda avatar naresh-gunda commented on July 20, 2024

In xml preview it is showing properly but when i run on device dates are not visible. With zero code i'm able to reproduce the issue. Just using com.p_v.flexiblecalendar.FlexibleCalendarView in xml and launching the application giving the following ouptput. :(.
screen shot 2016-05-13 at 5 32 33 pm

from flexiblecalendar.

p-v avatar p-v commented on July 20, 2024

Are you using this inside a ScrollView? If so, you need to give it a fixed height.

from flexiblecalendar.

naresh-gunda avatar naresh-gunda commented on July 20, 2024

No, i'm not using this inside scrollview. The hierarchy is CoordinatorLayout > LinearLayout > FrameLayout > (One Fragment with LinearLayout > com.p_v.flexiblecalendar.FlexibleCalendarView)

from flexiblecalendar.

p-v avatar p-v commented on July 20, 2024

Can you please post your xml which has this issue?

from flexiblecalendar.

naresh-gunda avatar naresh-gunda commented on July 20, 2024

Yeah,

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    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"
    android:orientation="vertical">

    <LinearLayout android:orientation="horizontal"
        android:background="@android:color/white"
        android:padding="5dp"
        android:gravity="center"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <ImageView android:id="@+id/left_arrow"
            android:src="@drawable/calender_left_arrow"
            android:layout_weight="1"
            android:layout_width="20dp"
            android:layout_height="40dp" />

        <TextView android:id="@+id/month_text_view"
            android:padding="5dp"
            android:gravity="center"
            android:textSize="22sp"
            android:textStyle="bold"
            android:textColor="@android:color/secondary_text_dark_nodisable"
            android:layout_width="wrap_content"
            android:layout_height="match_parent" />

        <ImageView android:id="@+id/right_arrow"
            android:src="@drawable/calender_right_arrow"
            android:layout_weight="1"
            android:layout_width="20dp"
            android:layout_height="40dp" />

        <ImageButton
            android:id="@+id/float_btn"
            android:text="Notify"
            android:layout_width="57dp"
            android:layout_height="40dp"
            android:src="@drawable/calender_noti_img" />

        <TextView
            android:id="@+id/alarm_noti"
            android:layout_width="wrap_content"
            android:layout_height="30dp"
            android:background="#689bf2"
            android:textStyle="bold"/>
    </LinearLayout>

    <com.p_v.flexiblecalendar.FlexibleCalendarView
        android:id="@+id/calendar_view"
        android:layout_width="match_parent"
        android:layout_height="300dip"
        android:layout_marginRight="30dip"
        android:layout_marginLeft="30dip"/>
</LinearLayout>

from flexiblecalendar.

naresh-gunda avatar naresh-gunda commented on July 20, 2024

I guess this issue is with specific hierarchy, when i used the above layout with separate activity dates are visible.

from flexiblecalendar.

p-v avatar p-v commented on July 20, 2024
<?xml version="1.0" encoding="utf-8"?> 
<android.support.design.widget.CoordinatorLayout 
android:id="@+id/main_content"
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"
xmlns:tools="http://schemas.android.com/tools">

<LinearLayout
    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"
    android:orientation="vertical"
    xmlns:tools="http://schemas.android.com/tools">

    <LinearLayout android:orientation="horizontal"
        android:background="@android:color/white"
        android:padding="5dp"
        android:gravity="center"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <ImageView android:id="@+id/left_arrow"
            android:src="@drawable/left_arrow"
            android:layout_weight="1"
            android:layout_width="20dp"
            android:layout_height="40dp" />

        <TextView android:id="@+id/month_text_view"
            android:padding="5dp"
            android:gravity="center"
            android:textSize="22sp"
            android:textStyle="bold"
            android:textColor="@android:color/secondary_text_dark_nodisable"
            android:layout_width="wrap_content"
            android:layout_height="match_parent" />

        <ImageView android:id="@+id/right_arrow"
            android:src="@drawable/right_arrow"
            android:layout_weight="1"
            android:layout_width="20dp"
            android:layout_height="40dp" />

        <ImageButton
            android:id="@+id/float_btn"
            android:text="Notify"
            android:layout_width="57dp"
            android:layout_height="40dp"
            android:src="@drawable/left_arrow" />

        <TextView
            android:id="@+id/alarm_noti"
            android:layout_width="wrap_content"
            android:layout_height="30dp"
            android:background="#689bf2"
            android:textStyle="bold"/>
    </LinearLayout>

    <com.p_v.flexiblecalendar.FlexibleCalendarView
        android:id="@+id/calendar_view"
        android:background="@android:color/darker_gray"
        android:layout_height="wrap_content"
        android:layout_width="match_parent"
        android:layout_marginRight="30dip"
        android:layout_marginLeft="30dip"/>
</LinearLayout>
<android.support.design.widget.FloatingActionButton
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="bottom|right"
    android:layout_margin="16dp"
    android:src="@mipmap/ic_launcher"
    app:layout_anchorGravity="bottom|right|end"/>
</android.support.design.widget.CoordinatorLayout>

This works fine for me. May be some other view is taking up the space in your hierarchy. How does the content inside CoordinatorLayout in the xml look like?

from flexiblecalendar.

naresh-gunda avatar naresh-gunda commented on July 20, 2024

Hi, the space is not occupying by any other layouts. For testing i've put some background colour and the output is proper. Im not able to understand why the date view are not visible in the specific hierarchy. Though it not dependent on hierarchy but im not able figure out the problem. Please help.

from flexiblecalendar.

p-v avatar p-v commented on July 20, 2024

It would be very helpful if you could create a demo app for the issue. I'm not yet able to trace the issue.

from flexiblecalendar.

naresh-gunda avatar naresh-gunda commented on July 20, 2024

Hi, Yeah sure.

Please run the application and navigate to Calendar option in top tabs.

P.F.A

DemoCalendarApp.zip

from flexiblecalendar.

p-v avatar p-v commented on July 20, 2024

Setting FlexibleCalendarView's height as match_parent works in your demo.

from flexiblecalendar.

p-v avatar p-v commented on July 20, 2024

You may reopen the issue if you feel its still there.

from flexiblecalendar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.