-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/origin/development-fronten…
…d' into dev-gmx
- Loading branch information
Showing
21 changed files
with
464 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...nd/Movie_Pigeon/app/src/main/java/org/example/team_pigeon/movie_pigeon/LoadingDialog.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package org.example.team_pigeon.movie_pigeon; | ||
|
||
import android.app.ProgressDialog; | ||
import android.content.Context; | ||
import android.os.Bundle; | ||
import android.view.WindowManager; | ||
|
||
/** | ||
* Created by SHENGX on 2017/3/15. | ||
*/ | ||
|
||
public class LoadingDialog extends ProgressDialog { | ||
private Context mContext; | ||
public LoadingDialog(Context context){ | ||
super(context); | ||
mContext = context; | ||
} | ||
public LoadingDialog(Context context, int theme){ | ||
super(context,theme); | ||
mContext = context; | ||
} | ||
@Override | ||
protected void onCreate(Bundle save){ | ||
super.onCreate(save); | ||
init(mContext); | ||
} | ||
private void init (Context context){ | ||
setCancelable(false); | ||
setCanceledOnTouchOutside(false); | ||
setContentView(R.layout.loading_dialog); | ||
WindowManager.LayoutParams params = getWindow().getAttributes(); | ||
params.width = WindowManager.LayoutParams.WRAP_CONTENT; | ||
params.height = WindowManager.LayoutParams.WRAP_CONTENT; | ||
getWindow().setAttributes(params); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.