Migrated repository
Go to file
2023-10-06 16:49:12 +08:00
apps fix viewstub's inflatedId 2023-09-22 08:31:25 +08:00
cmake add ingenic's x2600 porting 2023-10-04 15:36:35 +08:00
docs update readme and screenshots 2022-07-06 09:58:05 +08:00
scripts fix idgen.py's exception in window's python 2023-09-15 08:09:53 +08:00
src fix View::HorizontalFadingEdge 2023-10-06 15:57:44 +08:00
tests make variant compatibale with C++17 2023-10-05 11:45:53 +08:00
.gitignore add gitmodules for apps 2023-09-18 11:27:10 +08:00
build.sh add ingenic's x2600 porting 2023-10-04 15:36:35 +08:00
CMakeLists.txt input device add hotplug support 2023-09-20 09:33:16 +08:00
CMakeSettings.json add CMakeSettings.json for visual studio 2023-09-14 19:01:28 +08:00
Doxyfile.in CDROID's First commit 2021-06-24 10:12:55 +08:00
LICENSE CDROID's First commit 2021-06-24 10:12:55 +08:00
README.md modify README 2023-10-06 16:49:12 +08:00

Introduction

CDroid is a android like GUI toolkit base on C++11,It is a cross-platform GUI engine for embedded system.

Features:

  • Multi Layer/Multi Window
  • Integrated with 40+ UI Components and 20+ Drawables(compatible with android)
  • All UI Components(Layouts,Drawables...)can be designed in AndroidStudio or Eclipse
  • Vector Graph supported via Cairo

Quick Start

Screen Shots

demo0 demo1 demo2 Pott ListView+Progress

UI Components:

  • View
  • TextView
  • EditText
  • Button
  • ImageView
  • ImageButton,
  • CompoundButton
  • ToggleButton
  • CheckBox
  • RadioButton
  • ProgressBar
  • SeekBar
  • Chronometer
  • AnalogClock,
  • SimpleMonthView
  • ViewGroup
  • RadioGroup
  • ScrollView
  • HorizontalScrollView
  • CalendarView
  • ViewPager
  • TabWidget
  • NumberPicker
  • AdapterView
  • AbsListView
  • Spinner
  • ListView (with both vertical and horizontal layout support)
  • GridView (with both vertical and horizontal layout support)
  • YearPickerView

Supported Layouts:

  • FrameLayout
  • LinearLayout
  • TableRow
  • TableLayout
  • AbsoluteLayout
  • GridLayout

Supported Drawables:

  • ColorDrawable
  • BitmapDrawable
  • NinepatchDrawable
  • InsetDrawable
  • ShapeDrawable
  • TransitionDrawable
  • LayerDrawable
  • StateListDrawable
  • LevelListDrawable
  • ClipDrawable
  • GradientDrawable
  • RotateDrawable
  • ScaleDrawable
  • AnimatedRotateDrawable
  • AnimatedImageDrawable
  • TransitionDrawable

Porting guide:

  • 1 A new product porting should be placed to src/porting/xxx(where xxx is you chipset name)
  • 2 implement your porting api to xxx directory
  • 3 modify build.sh to support your port(you should configure sysroot toolchain...).
  • 4 call build.sh --product=xxx
  • 5 make you project(SeeAlso Building CDROID)

Building CDROID:

1.install dependencs:

sudo apt install autoconf libtool build-essential cmake gdb pkg-config zip gettext libx11-dev bison python>=3.7

2.install vcpkg:

3.install cdroid deplibs:

  • ./cdroid_install_libs.sh --triplet=x64-linux-dynamic

4.download cdroid source code:

5.build cdroid:

  • cd cdroid
  • ./build.sh --build=debug
  • cd outX64-Debug
  • make -j

6.prepare system and app resource

The cdroid.pak and yourapp's pak must be in your working directory

  • cp src/gui/cdroid.pak ./
  • cp apps/${your_app}/${your_app}.pak ./

7.run samples(in directory outX64-Debug

  • apps/samples/helloworld
  • apps/uidemo1/uidemo1