# RTplayStudy **Repository Path**: RTplay/RTplayStudy ## Basic Information - **Project Name**: RTplayStudy - **Description**: No description available - **Primary Language**: Android - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-02-18 - **Last Updated**: 2023-06-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: android原创应用 ## README productX.png制作方法 1、ps抠图(魔棒工具),设置合适大小 2、修改:图像-》图像大小-》200像素x200像素 3、新建图层在图片下层,油漆桶工具选择合适颜色 4、全选图层:选择-》修改-》边界-》4 5、选择-》修改-》平滑-》4-》delete选取 6、图层右侧不透明度60% 7、https://tinypng.com/ product_backX.png制作方法 1、矩形选框工具-》固定比例100:150,将合适的选框框出,新建图片 2、图像-》图像大小-》像素大小300:450 3、ctrl+t-》保持长宽比-》95% 4、ctrl+图层缩览图,选择图片 5、选择-》修改-》平滑-》4 6、右键选取-》描边-》局外6像素 7、ctrl+图层缩览图,选择图片 8、右键选取-》描边-》局外2像素白色 9、https://tinypng.com/ 添加新商品方法 1、Product2DB.java->updateTable()中添加新增加的数据,如果下次版本中没有数据需要增加则删除 insertProductData("stationery", "3", 2, 80); 需要把之前的updateTable()中的数据复制到initTable()中。 2、ProductRecyclerAdapter.java-》onBindViewHolder()添加image类型 if (mList.get(position).getImage().equals("1")) { holder.image.setImageResource(R.drawable.product1); } else if (mList.get(position).getImage().equals("2")) { holder.image.setImageResource(R.drawable.product2); } else if (mList.get(position).getImage().equals("3")) { holder.image.setImageResource(R.drawable.product3); }