DJI-Android-SDK-Sample Code 项目结构

阚英睿
2023-12-01

res/layout

actionbar_custom.xml

  • LinearLayout
    • TextView 
      • id = title_tv
      • text = "DJI SDK Sample"

activity_main.xml

  • FrameLayout
    • FrameLayout
      • id = framelayout_content
      • <include layout="@layout/content_main"/>

activity_payload_test_data.xml

  • RelativaLayout
    • LinearLayout
      • RelativeLayout
        • TextView
          • id = payload_name
          • text = "Payload: MyPayload"
        • TextView
          • id = send_total
          • text = "TX:  "
        • TextView
          • id = send_total_size
          • text = "500"
        • TextView
          • text = "Bytes"
        • EditText
          • id = sending_data
        • CheckBox
          • id = repeat_send_checkbox
        • TextView
          • id = repeat_hint
          • text = "Repeat Cycle:"
        • EditText
          • id = period_value
        • TextView
          • text = "Hz"
        • TextView
          • id = send_data_button
          • text = "Send"
      • RelativeLayout
        • TextView
          • id = receive_total
          • text = "RX:  "
        • TextView
          • id = receive_total_size
          • text = "0"
        • TextView
          • text = "Bytes"
        • TextView
          • id = push_info_text
          • text = "Receive Datas"

activity_payload_testing.xml

  • RelativeLayout
    • TextureView
      • id = video_previewer_surface
    • TextView
      • id = payload_name
      • text = "Payload Name: N/A"
    • ScrollView
      • id = buttons
      • LinearLayout
        • Button
          • id = login_sdk
          • text = "Login"
        • Button
          • id = set_index
          • text = "Index:0"
        • Button
          • id = set_value_for_widget
          • text = "SetValueOfWidget"
        • Button
          • id = get_value_for_widget
          • text = "GetValueOfWidget"
        • Button
          • id = sent_data
          • text = "Send Data Activity"
    • LinearLayout
      • TextView
        • text = "UART/CAN Channel:  "
      • TextView
        • id = push_info_text
      • TextView
        • text = "Network Channel: "
      • TextView
        • id = push_info_text_usb

activity_utmiss.xml

  • androidx.constraintlayout.widget.ConstraintLayout
    • RelativeLayout
      • id = title_bar
    • TextView
      • id = txt_db_path
      • text = "dbPath"
    • EditText
      • id = edt_token_key
      • hint = "pls enter tokenKey"
    • Button
      • id = btn_start
      • text = "start"
    • EditText
      • id = edt_manufactureId
      • hint = ”pls enter manufactureId"
    • EditText
      • id = edt_uasId
      • hint = ”pls enter uasId"
    • Button
      • id = btn_stop
      • text = "stop"
    • TextView
      • id = txt_status
    • TextView
      • id = txt_info
      • text = "&1t;-click unInit to reInit"

audio_file_list_item.xml

  • RelativeLayout
    • ImageView
      • id = iv_file_thumbnail
    • TextView
      • id = tv_file_name
      • text = "file name"
    • TextView
      • id = tv_file_storage_location
      • text = "Storage Location"
    • TextView
      • id = tv_file_duration
      • text = "File Duration"
    • TextView
      • id = tv_file_index
      • text = "file index"
    • LinearLayout
      • id = common_btn
      • Button
        • id = btn_rename
        • text = "Rename"
      • Button
        • id = btn_delete
        • text = "Delete"
      • Button
        • id = btn_PlayAudio
        • text = "Play"

content_bluetooth.xml

  • merge
    • LinearLayout
      • Button
        • id = btn_SearchBluetooth
        • text = " SearchBluetooth "
      • Button
        • id = btn_Disconnect
        • text = " Disconnect "
    • LinearLayout
      • Spinner
        • id = spin_Connect
      • Button
        • id = btn_Connect
        • text = " Connect "
    • TextView
      • id = text_Devices
      • text = "Devices"
    • TextView
      • id = text_devicesInformation
      • text = "Devices Information"

content_main.xml

  • com.dji.sdk.sample.internal.view.MainContent
    • ProgressBar
      • id = progress_bar
    • TextView
      • id = text_connection_status
      • text = "Status: No Product Connected"
    • TextView 
      • id = text_product_info
      • text = "Product Information"
    • TextView
      • id = text_model_available
      • text = "Firmware Version:N/A"
    • EditText
      • id = edittext_bridge_ip
      • hint = "WSBridge IP"
    • Button
      • id = btn_bluetooth
      • text = "Bluetooth"
    • Button
      • id = btn_registerApp
      • text = "Register APP"
    • Button
      • id = btn_registerAppForLDM
      • text = "Register APP for LDM"
    • Button
      • id = btn_open
      • text = "Open"
    • TextView 
      • id = text_version
      • text = "DJI SDK Version: %1$s"

demo_list_view.xml

  • merge
    • ExpandableListView
      • id = expandable_list

dialog_username_password.xml

  • LinearLayout
  • TextView
    • id = text_username
    • text = "Username:  "
  • EditText
    • id = et_username
    • hint = "Please enter username"
  • TextView
    • id = tv_password
    • text = "Security Code:  "
  • EditText 
    • id = et_security_code
    • hint = "Please enter security code"
  • TextView
    • id = tv_new_account
    • text = "New Username:  "
  • EditText
    • id = et_new_account
    • hint = "Please enter new username"
  • TextView
    • id = tv_new_security_code
    • text = "New Security Code:  "
  • EditText
    • id = et_new_security_code
    • hint = "Please enter new security code:  "

expandable_list_level_item.xml

  • RelativaLayout
    • TextView
      • id  = expandable_item_down_arrow
    • TextView
      • id = expandable_item_title
      • text = "Item name"
    • TextView
      • id = expandable_item_right_arrow

expandable_second_level_item.xml

  • RelativeLayout
    • TextView
      • id = expandable_item_down_arrow
    • TextView
      • id = expandable_item_title
    • TextView
      • id = expandable_item_right_arrow

media_info_item.xml

  • LinearLayout
    • LinearLayout
    • TextView
      • id = filename
      • text = "file name"
    • Button
      • id = btn_PlayVideo
      • text = "PlayVideo"

media_playback.xml

  • merge
    • RelativeLayout
      • Button
        • id = btnResume
        • text = "Resume"
      • Button
        • id = btnPause
        • text = "Pause"
      • Button
        • id = btnStop
        • text = "Stop"
      • com.dji.sdk.sample.internal.view.BaseCameraView
        • id = camera_live_view
      • Button
        • id = btnStatus
        • text = "Status"
      • Button
        • id = btnSeek
        • text = "Skip"
      • TextView
        • id = tv_mediaPushInfo
        • text = "Playback Status"
    • RelativeLayout
      • ListView
        • id = filelistView

multiple_lens_camera_view.xml

  • merge
    • ScrollView
      • id = multiple_lens_camera_btn
      • LinearLayout
        • Button
          • id = btn_video_stream_source
          • text = "Video Stream Source"
        • Button
          • id = btn_laser_enabled
          • text = "Laser Enabled"
        • Button
          • id = btn_flat_camera_mode
          • text = "Flat Camera Mode"
        • Button
          • id = btn_hybrid_zoom_spec
          • text = "Hybrid Zoom Spec"
        • Button
          • id = btn_infrared_thermal_camera_shutter_enabled
          • text = "Infrared Thermal Camera Shutter Enabled"
      • LinearLayout
        • TextView
          • id = video_stream_source_title
          • text = "Main Lens"
        • TextVIew
          • id = laser_information_title
          • text = "Laser Information"
        • FrameLayout
          • com.dji.sdk.sample.internal.utils.VideoFeedView
            • id = primary_video_feed

numpicker.xml

  • LinearLayout
    • RelativeLayout
      • RelativeLayout
        • id = select_imageButton1_rl
        • ImageButton
          • id = id_select_imageButton1
        • Button
          • id = id_select_otherActionButton
          • text = "Trigger"
      • android.kankan.wheel.widget.WheelView
        • id = id_number_picker1

numpicker_continue_shot.xml

  • LinearLayout
    • RelativeLayout
      • android.kankan.wheel.widget.WheelView
        • id = id_number_picker1
      • android.kankan.wheel.widget.WheelView
        • id = id_number_picker2
      • ImageView
        • id = imageView1
    • RelativeLayout
      • ImageButton
        • id = id_select_imageButton1

numpicker_double.xml

  • LinearLayout
    • RelativeLayout
      • android.kankan.wheel.widget.WheelVIew
        • id = id_number_picker1
      • android.kankan.wheel.widget.WheelVIew
        • id = id_number_picker2
    • RelativeLayout
      • ImageButton
        • id = id_select_imageButton1

numpicker_type_layout.xml

  • LinearLayout
    • ImageVIew
      • id = flag
    • TextView
      • id = type_name
      • text = "value"

prompt_input_number.xml

  • LinearLayout
    • TextView
      • id = textView1
      • text = "Input Message : "
    • EditText
      • id = editTetDialogUserInput

seekbar.xml

  • LinearLayout
    • RelativeLayout
      • SeekBar
        • id = seekBar_continuousValue
      • TextView
        • id = tv_progress
      • Button
        • id = btn_submitValue
        • text = "Submit"

simple_list_item.xml

  • TextView
    • id = text1
    • text = "text"

view_access_locker.xml

  • merge
    • LinearLayout
      • LinearLayout
        • Button
          • id = btn_get_user_account
          • text = "Get User Account"
        • Button
          • id = btn_get_version
          • text = "Get Version"
        • Button
          • id = btn_set_up_user_account
          • text = "Set Up User Account"
        • Button
          • id =btn_login
          • text = "Login"
        • Button
          • id = btn_reset_user_account
          • text = "Reset User Account"
        • Button
          • id = btn_modify_user_account
          • text = "Modify User Account"
        • Button
          • id = btn_format
          • text = "Format"
      • LinearLayout
        • TextVIew
          • id = tv_access_locker_state_title
          • text = "Access Locker State: "
        • Scrollview
          • id = tv_access_locker_state_sv
          • TextView
            • id = tv_access_locker_state
        • TextView
          • tv_access_formatting_state_title
          • text = "Formatting State:"
        • ScrollView
          • id = tv_access_formatting_state_sv
          • TextVIew
            • id = tv_access_formatting_state

view_accessory_aggregation.xml

  • merge
    • RelativeLayout
      • ScrollView
        • id = sv_accessory_aggregation_btns
      • LinearLayout
        • Button
          • id = btn_beacon_enabled
          • text = "Enable Beacon"
        • Button
          • id = btn_spotlight_enabled
          • text = "Enable Spotlight"
        • Button
          • id = btn_set_spotlight_brightness
          • text = "Set Spotlight Brightness"
        • Button
          • id = btn_set_speaker_volume
          • text = "Set Speaker Volume"
        • Button
          • id = btn_set_speaker_volume
          • text = "Set Speaker Volume"
        • Button
          • id = btn_stop_playing
          • text = "Stop Playing"
        • Button
          • id = btn_start_record
          • text = "Start Record"
        • Button
          • id = btn_stop_record
          • text = "Stop Record"
      • LinearLayout
        • TextView
          • id = tv_accessory_aggregation_state_title
          • text = "Accessory Aggregation State:"
        • ScrollView
          • id = tv_accessory_aggregation_state_sv
          • TextView
            • id = tv_accessory_aggregation_state
        • TextView
          • id = tv_spot_light_state_title
          • text = Spot Light State:"
        • ScrollView
          • id = tv_access_formatting_state_sv
          • TextView
            • id = tv_spot_light_state
        • TextView
          • id = tv_transmitting_state_title
          • text = "Transmitting State: "
        • ScrollView
          • id = tv_transmitting_state_sv"
          • TextView
            • id = tv_transmitting_state
        • TextView
          • id = tv_speaker_state_title
          • text = "Speaker State:"
        • ScrollView
          • id = tv_speaker_state_sv
          • TextView
            • id = tv_speaker_state

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 类似资料: