小编Gar*_*yan的帖子

Eclipse ADT意外异常'无法运行程序'

我在笔记本电脑上安装了ADT Bundle.我有ubuntu 13.10,但是当我打开ADT时,我看到了这样的消息:

Unexpected exception 'Cannot run program "/home/.../Descargas/adt-bundle-linux-x86_64 20131030/sdk/platform-tools/adb": 
error=2, No existe el archivo o el directorio' while attempting to get adb version from '/home/.../Descargas/adt-bundle-linux-x86_64-20131030/sdk/platform-tools/adb'

[2013-12-25 16:20:14 - adb] Unexpected exception 'Cannot run program "/home/.../Descargas/adt-bundle-linux-x86_64-20131030/sdk/platform-tools/adb": 
error=2, No existe el archivo o el directorio' while attempting to get adb version from '/home/.../Descargas/adt-bundle-linux-x86_64-20131030/sdk/platform-tools/adb'
Run Code Online (Sandbox Code Playgroud)

这是我第一次在android上安装和开发,所以,我不知道该怎么做.有人能帮我吗?

eclipse linux android adt ubuntu-13.10

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

膨胀图层 - 在android中的形状列表

我在我的drawable文件夹中有以下文件/drawable/mybkg.xml.我想给它充气,这样我就可以通过编程方式更改颜色.这可能在Android?

<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >

    <item>
        <shape android:shape="oval" >
            <padding
                android:top="5dp"
                android:bottom="2dp"
                android:left="2dp"
                android:right="2dp" />

            <solid
                android:angle="270"
                android:color="#1bd4f6" />

            <stroke
                android:width="2dp"
                android:color="#121ce5" />
        </shape>
    </item>

    <!-- Foreground -->
    <item>
        <shape android:shape="oval" >

            <solid android:color="#1b90f6" />
        </shape>
    </item>

</layer-list>
Run Code Online (Sandbox Code Playgroud)

我刚才看到一个叫做的课 LayerDrawable.有谁知道如何LayerDrawable通过编写代码或膨胀现有的xml 将我的xml文件转换为这样的文件 ?

android android-layout android-inflate layer-list

6
推荐指数
1
解决办法
802
查看次数

从超类调用方法

你好.我试图通过子类从超类调用一个方法,但不断收到错误.我试图调用的方法是setDestination()编译器不断给我错误"找不到符号 - 方法setDestination(java.lang.string)"我的讲师说这是方法调用的参数的简单错过匹配和方法,但我有类型的方法参数,String所以我有点困惑.

我的代码是:

超级车辆:

     public class Vehicle
     {
     // A unique ID for this vehicle
     private String id; 
     // The next destination of this Vehicle.
     private String destination;

     /**
     * Constructor for objects of class Vehicle
     */
     public Vehicle(String id)
     {
         destination = null;
     }

     /**
     * Return the ID of the Vehicle.
     * @return The ID of the Vehicle.
     */
     public String getID()
     {
        return id;
     }

     /**
     * Return the destination of the …
Run Code Online (Sandbox Code Playgroud)

java inheritance

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