Comments (13)
Can you please post your code?
from flexiblecalendar.
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. :(.
from flexiblecalendar.
Are you using this inside a ScrollView
? If so, you need to give it a fixed height.
from flexiblecalendar.
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.
Can you please post your xml which has this issue?
from flexiblecalendar.
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.
I guess this issue is with specific hierarchy, when i used the above layout with separate activity dates are visible.
from flexiblecalendar.
<?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.
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.
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.
Hi, Yeah sure.
Please run the application and navigate to Calendar option in top tabs.
P.F.A
from flexiblecalendar.
Setting FlexibleCalendarView
's height as match_parent
works in your demo.
from flexiblecalendar.
You may reopen the issue if you feel its still there.
from flexiblecalendar.
Related Issues (20)
- Calendar month not show all dates HOT 1
- How to convert month to weekview in the library HOT 1
- Populate event on calendar load - how to get start and end date HOT 1
- On month scroll / moving to next / previous month HOT 1
- Event dot is not showing for Today's event HOT 1
- Date selected remains persistent on month change. HOT 6
- Cannot change color of selected date (text)
- How can I setEvent on current day? HOT 4
- Remove android:label from the Manifest
- Event color issue HOT 1
- Calendar not showing correctly on tablet in landscape mode
- how to unselect selected date by click selected date
- Add event dyanamically
- How to set start and End date for Calender? HOT 1
- Scrolling Issue in Flexible Calender
- designing
- How to get start and End date for Calender?
- How to change calendar number convert arabic?
- Attempt to invoke virtual method 'boolean com.p_v.flexiblecalendar.entity.SelectedDateItem.equals(java.lang.Object)' on a null object reference
- How can i set visible only next 14 days
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flexiblecalendar.