dji-sdk / Mobile-UXSDK-Android

DJI Mobile UXSDK is a suite of product agnostic UI objects that fast tracks the development of Android applications using the DJI Mobile SDK.
Other
153 stars 110 forks source link

Some widget not showing #140

Open jimmyfraiture opened 2 years ago

jimmyfraiture commented 2 years ago

I'm trying to use some of the available widgets but some of them are not showing while the others do. For example if I put in may RelativeLayout

        <dji.ux.widget.RadarWidget
            android:layout_width="340dp"
            android:layout_height="160dp"
            android:layout_centerHorizontal="true"
            android:layout_alignParentBottom="true"/>

it works like a charm but both BatteryWidget and RemainingFlightTimeWidget are not showing:

    <dji.ux.widget.RemainingFlightTimeWidget
        android:id="@+id/mission_flight_time"
        android:layout_width="match_parent"
        android:layout_height="100dp"
        android:layout_marginTop="6dp"
        android:layout_marginLeft="6dp"
        android:layout_marginRight="30dp"
        android:layout_toLeftOf="@id/mission_battery_widget"/>

    <dji.ux.widget.BatteryWidget
        android:id="@+id/mission_battery_widget"
        android:layout_width="96dp"
        android:layout_height="22dp"
        android:layout_margin="6dp"
        android:layout_alignParentRight="true"
        custom:excludeView="singleVoltage"/>

I use version 4.16 (but same issue on 4.14.1)

    implementation 'com.dji:dji-uxsdk:4.16'`
    compileOnly 'com.dji:dji-sdk-provided:4.16'`

and my colors needed are all defined. Is it a bug or would you have any ideas?

dji-dev commented 2 years ago

Agent comment from DJI SDK in Zendesk ticket #61423:

尊敬的开发者,感谢您联系DJI 大疆创新 由于github不是我们主要的咨询渠道,您的问题可能跟进不及时。我们建议您通过填写表单( https://djisdksupport.zendesk.com/hc/zh-cn/requests/new )向我们反馈问题。或者您也可以在论坛发帖,与其它开发者交流。论坛链接:https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

Dear developer, thank you for contacting DJI. Since github is not our main consultation channel, your questions may not be followed up in time. We recommend that you fill in the form (https://djisdksupport.zendesk.com/hc/en-us/requests/new) to report problems to us. Or you can post in the forum to communicate with other developers. Forum link: https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

°°°

dji-dev commented 2 years ago

Agent comment from yating.liao in Zendesk ticket #61423:

Can the UXSDK samples be displayed properly?UXSDK:https://github.com/dji-sdk/Mobile-UXSDK-Android

°°°