安卓_GridView用法示例

1.GridView主页面```javapublic class GridViewActivity extends AppCompatActivity { private String[] address = {“北京”,”上海”,”广州...

安卓_进度条/加载圈progressDialog

1.菊花加载圈```javaprogressDialog = new ProgressDialog(this);progressDialog.setTitle(“菊花转啊转”);progressDialog.setMessage(“正在努力加载中...

安卓_下拉框spinner

1.方式一```javaprivate String[] data = {“AAA”,”BBB”,”CCC”};

安卓_对话弹窗

1.单个按钮对话弹窗private void showTip() { AlertDialog.Builder dialog = new AlertDialog.Builder(this); dialog.setPositiveButt...

安卓_单选/多选对话框

1.单选对话框```javaprivate String[] arr = {“aaa”,”bbb”,”ccc”,”ddd”};

安卓_单独设置页面主题

如何设置让当前页面全透明1.在AndroidManifest.xml中配置单独MyActivity2的页面样式<activity android:name=".MyActivity2" android:theme="@andro...

安卓_偏好设置保存

1.保存值SharedPreferences sharedPreferences = getSharedPreferences("sms", MODE_PRIVATE);SharedPreferences.Editor edit = shared...

安卓_页面传值示例

1.点击跳转页面```swift@Overridepublic void onClick(View v) {

安卓_4种Button点击事件

```swift// 当前Activity implements View.OnClickListenerpublic class MainActivity extends AppCompatActivity implements View.On...