Android 月视图控件 MonthView

码农软件 · 软件分类 · Android UI 组件 · 2019-04-26 16:57:54

软件介绍

用于Android开发中自定义的月视图控件,使用简单,可以很方便自定义各种漂亮的风格。

XML中布局:

<com.zcw.widget.MonthView
    android:id="@+id/monthView1"
    android:padding="20dp"
    android:background="@drawable/dialog_full_holo_light"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" >
</com.zcw.widget.MonthView>

java代码:

monthView.setAdapter(new MonthAdapter() {
        @Override
        public View createCellView(ViewGroup viewGroup, int position) {
            TextView textView  = new TextView(getContext());
            textView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
            textView.setGravity(Gravity.CENTER);
            return textView;
        }
        @Override
        public void bindCellView(ViewGroup viewGroup, View child, int position, Calendar calendar) {
            TextView textView  = (TextView) child;
            textView.setText(""+calendar.get(Calendar.DAY_OF_MONTH));
        }
    });

本文地址:https://codercto.com/soft/d/4440.html

A Guide to Monte Carlo Simulations in Statistical Physics

A Guide to Monte Carlo Simulations in Statistical Physics

Landau, David P./ Binder, Kurt / Cambridge Univ Pr / 2005-9 / 786.00元

This new and updated edition deals with all aspects of Monte Carlo simulation of complex physical systems encountered in condensed-matter physics, statistical mechanics, and related fields. After brie......一起来看看 《A Guide to Monte Carlo Simulations in Statistical Physics》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具