放置类游戏用过的资源存档

安卓dialog相关最全!!!
https://blog.youkuaiyun.com/sakurakider/article/details/80735400

mediaPlayer 安卓音乐播放器
https://blog.youkuaiyun.com/qq_33642117/article/details/51841510

1。游戏对话界面
http://www.cnblogs.com/carlos-vic/p/Carlos_V_Android_14.html

2。 游戏对话自下向上:
android:stackFromBottom=“true”
listView.setselection(listView.getBottom)

3。图片变灰色
https://blog.youkuaiyun.com/chaozhidan/article/details/51482895
ColorMatrix matrix = new ColorMatrix();
matrix.setSaturation(0); // 0 是灰色,1是彩色
ColorMatrixColorFilter filter = new ColorMatrixColorFilter(matrix);
viewHolder.image.setColorFilter(filter);

4。按钮隐藏
https://blog.youkuaiyun.com/ssrrxx111/article/details/8946838
button.setVisibility(View.INVISIBLE);
button.setVisibility(View.VISIBLE);

5。触屏响应

chatListView.setOnTouchListener(new View.OnTouchListener() {
            @Override
            public boolean onTouch(View view, MotionEvent motionEvent) {
                if(motionEvent.getAction()==MotionEvent.ACTION_DOWN) {
                    prograss++;
                    Log.v("按键事件", "Down");}
                return false;
            }
        });

6。从右边显示

<LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:gravity="right">

    <TextView
        android:id="@+id/chatlist_text_other"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:adjustViewBounds="true"
        android:background="@drawable/chat_ed_right"
        android:gravity="left"
        android:paddingBottom="18dp"
        android:paddingTop="13dp" />
</LinearLayout>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值