1. drawable/circle_progressbar 을 만들어주자 2. progressbar 설정 android:indeterminateDuration="1000" 원이 돌아가는 속도값 3. View 설정 visible, gone, invisible 을 활용하여 사용 private ProgressBar progressBar; progressBar = v.findViewById(R.id.progress_bar); progressBar.setVisibility(View.VISIBLE);
3. 앞서서 얻은 FILE 을 Retrofit2 를 사용하여 서버에 POST 해보자 public class ApiClient { public static Retrofit getClient() { retrofit = new Retrofit.Builder() .baseUrl("URL") .addConverterFactory(GsonConverterFactory.create()) .build(); return retrofit; } } public interface ApiService { @Multipart @POST("endPoint") Call postImage(@Part("id") RequestBody id, @Part MultipartBody.Part image); } public class ImageR..
1. GLSurfaceView 캡처 → Bitmap 변환 private Bitmap shareBitmap; private Bitmap tempBitmap; private GLSurfaceView mSurfaceView; private ImageView iv_capture; private interface BitmapReadyCallbacks { // callback void onBitmapReady(Bitmap bitmap); } // 얘를 실행하면 캡처 private void captureGLSurface() { captureBitmap(new BitmapReadyCallbacks() { @Override public void onBitmapReady(Bitmap bitmap) { iv_capture...