小编UmA*_*orn的帖子

如何在Android Studio上生成类图(UML)(IntelliJ Idea)

我尝试搜索并找到此链接,但Ctrl+ Alt+ Shift+ D不起作用.

我也使用find Action Ctrl+ Shift+ A来查找关于图和uml的动作但却一无所获.

我也搜索了uml插件,但是大多数都没有使用新版本的intelliJ(我没有尝试过,我只是阅读了评论).

ide android class-diagram intellij-idea android-studio

127
推荐指数
7
解决办法
22万
查看次数

Eclipse自动保存

我希望每次编辑文件时Eclipse都会自动保存,就像它自动构建一样.因为我去年一直在使用IntelliJ(默认情况下会自动保存),所以我一直遇到以下问题:

  • 在Eclipse中进行一些更改
  • 忘记按保存
  • 运行构建,单元测试,并注意一些奇怪的行为
  • (一段时间后......)意识到发生意外行为是因为我忘了保存更改

有什么办法可以让Eclipse自动保存吗?

eclipse ide autosave

74
推荐指数
6
解决办法
4万
查看次数

我们何时应该在Kotlin上使用run,let,apply和with的示例

我希望为每个函数运行,let,apply和一个很好的例子

我读过这篇文章但仍缺乏一个例子

kotlin

72
推荐指数
6
解决办法
9775
查看次数

Eclipse自动保存在构建之前?

来自Visual Studio背景......

我怎么告诉Eclipse它应该在我构建时自动保存而不是每次都要求.

VS.NET在"选项"下有它,但我在Eclipse中找不到它.

我用的是Mac.

eclipse ide macos autosave

42
推荐指数
3
解决办法
3万
查看次数

我可以在发布后更改应用的屏幕截图吗?

我制作了一个应用程序并将其放在Playstore上.有没有办法可以更改应用程序的屏幕截图?或者,如果不可能,更新版本会删除以前的版本和屏幕截图吗?

android publish google-maps

32
推荐指数
3
解决办法
2万
查看次数

无法创建jvm错误代码4 android studio

我刚刚更新了我的上一个Android Studio并收到此错误:

无法创建jvm错误代码-4 JVM路径:C:\ Program Files\Java\jdk1.7.0_45\jre如果已经安装了32位JDK,请定义一个未解决的JAVA_HOME变量.

ide android jvm android-studio

23
推荐指数
5
解决办法
2万
查看次数

如何在Kotlin中将intArray转换为ArrayList <Int>?

val array = intArrayOf(5, 3, 0, 2, 4, 1, 0, 5, 2, 3, 1, 4)
Run Code Online (Sandbox Code Playgroud)

我需要转换为 ArrayList<Int>

我试过了 array.toTypedArray()

但它Array<Int>转而改为

java kotlin

23
推荐指数
2
解决办法
1万
查看次数

Android控制台显示:W/art:尝试删除非JNI本地引用

我刚刚设置了我的第一个Cordova项目并安装了OneSignal推送通知.这一切都按照我的预期运行,但Android开发人员工具在控制台中显示:

W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread
W/art: Attempt to remove non-JNI local reference, dumping thread
I/art: WaitForGcToComplete blocked for 6.202ms for cause …
Run Code Online (Sandbox Code Playgroud)

android logcat cordova android-studio

23
推荐指数
3
解决办法
3万
查看次数

Android关闭自定义对话框

我试图按下按钮关闭自定义对话框

        //set up dialog
        Dialog dialog = new Dialog(BrowseActivity.this);
        dialog.setContentView(R.layout.about);
        dialog.setTitle("This is my custom dialog box");
        dialog.setCancelable(true);
        //there are a lot of settings, for dialog, check them all out!

        //set up text
        TextView text = (TextView) dialog.findViewById(R.id.TextView01);
        text.setText(R.string.app_help_message);

        //set up image view
        ImageView img = (ImageView) dialog.findViewById(R.id.ImageView01);
        img.setImageResource(R.drawable.icon);

      //set up button
        Button button = (Button) dialog.findViewById(R.id.Button01);
        button.setOnClickListener(new View.OnClickListener() {
        @Override
            public void onClick(View v) {
            Dialog.dismiss();

            }
        });

        //now that the dialog is set up, it's time to show it …
Run Code Online (Sandbox Code Playgroud)

android android-dialog android-dialogfragment

20
推荐指数
1
解决办法
3万
查看次数

Android对话 - 圆角和透明度

我正在尝试使用圆角制作自定义的android对话框.我目前的尝试给了我这个结果.

圆角对话框

正如您所看到的,角落是圆的,但它仍然保持完整的白色角落.

下面是我放在drawable文件夹中的xml,用于创建带有圆角的红色边框的蓝色对话框.

<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item> 
        <shape 
            android:shape="rectangle">
            <solid android:color="@color/transparent_black" />
            <corners android:radius="@dimen/border_radius"/>
        </shape>
    </item>   
    <item 
        android:left="@dimen/border_width" 
        android:right="@dimen/border_width"  
        android:top="@dimen/border_width"
        android:bottom="@dimen/border_width" >  

        <shape android:shape="rectangle"> 
            <solid android:color="@color/blue" />
            <corners android:radius="@dimen/border_radius"/>
        </shape>
    </item>    
</layer-list>
Run Code Online (Sandbox Code Playgroud)

下面是对话框的布局.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/fill"
android:orientation="vertical"
android:layout_margin="@dimen/spacing_normal"
android:padding="@dimen/spacing_normal"

android:background="@drawable/border_error_dialog" >

<RelativeLayout 
    style="@style/block"
    android:layout_gravity="center" >

    <ImageView
        android:id="@+id/imageView1"
        style="@style/wrap"
        android:layout_alignParentLeft="true"
        android:layout_centerHorizontal="true"
        android:contentDescription="@string/content_description_filler"
        android:src="@drawable/ic_launcher" />

    <TextView
        android:id="@+id/textView1"
        style="@style/error_text"
        android:layout_centerVertical="true"
        android:layout_toRightOf="@+id/imageView1"
        android:text="@string/error_login" />

</RelativeLayout>

<Button
    android:id="@+id/button1"
    style="@style/wrap"
    android:layout_gravity="center"
    android:text="Button" />

</LinearLayout>
Run Code Online (Sandbox Code Playgroud)

以下是我创建对话框的Activity.

@Override
protected void onCreate(Bundle savedInstanceState) { …
Run Code Online (Sandbox Code Playgroud)

android dialog transparent android-layout android-alertdialog

20
推荐指数
4
解决办法
3万
查看次数