mCalendarView icon indicating copy to clipboard operation
mCalendarView copied to clipboard

expCalendarView.shrink() not working

Open twlawrenceko opened this issue 6 years ago • 2 comments

I tried to implement expCalendarView to shrink or expand, but nothing happens. Is there a special way to do it?

` <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity">

<sun.bob.mcalendarview.views.ExpCalendarView
    android:id="@+id/calendarView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginStart="8dp"
    android:layout_marginLeft="8dp"
    android:layout_marginEnd="8dp"
    android:layout_marginRight="8dp"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHorizontal_bias="0.0"
    app:layout_constraintStart_toStartOf="parent"
    tools:ignore="MissingConstraints" />

<Button
    android:id="@+id/button"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="Button"
    tools:layout_editor_absoluteX="161dp"
    tools:layout_editor_absoluteY="627dp" />

</android.support.constraint.ConstraintLayout>`

`public class MainActivity extends AppCompatActivity {

public ExpCalendarView calendarView;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

     calendarView = findViewById(R.id.calendarView);


    Button button = findViewById(R.id.button);
    button.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {

            calendarView.shrink();
            Log.i("button", "clicked");
        }
    });
}

} `

Thanks.

twlawrenceko avatar Feb 03 '19 18:02 twlawrenceko

Maybe you can download the code and use the Debug to find it

mBigFlower avatar Feb 13 '19 00:02 mBigFlower

Would you mind to provide a zip file with working shrink expcalendarview? I tried to investigate the issue with creating a new app, but it has never been working for me. Thanks

twlawrenceko avatar Mar 09 '19 16:03 twlawrenceko