安卓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>