Migrated repository
Go to file
2023-08-28 11:38:57 +08:00
apps change interface Checkable to std::function 2023-08-18 18:56:01 +08:00
cmake fix r818's compile error(only error in r818,may be its c++version is too lower) 2023-08-18 21:58:52 +08:00
docs update readme and screenshots 2022-07-06 09:58:05 +08:00
scripts fix some xml text issues 2023-08-12 15:42:44 +08:00
src change InputEventSource:ScreanSaver 2023-08-28 11:38:57 +08:00
tests change InputEventSource:ScreanSaver 2023-08-28 11:38:57 +08:00
.gitignore fix view's measure ,and some code style's format 2023-08-12 11:21:26 +08:00
build.sh add some missing drawables'api,modify curldownload 2023-08-17 18:24:04 +08:00
CMakeLists.txt enable googlepinyin 2023-04-21 00:49:04 +00: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-08-11 19:28:32 +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

Screen Shots

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:
    git clone https://github.com/microsoft/vcpkg.git
    cd vcpkg
    ./bootstrap-vcpkg.sh
  • 3.install cdroid deplibs:(Recommand you use dynamic triplet(static is not tested)
    vcpkg install gtest sdl2 libunibreak libjpeg-turbo[jpeg8] libzip cairo --triplet=x64-linux-dynamic
  • 4.download cdroid source code:
    cd ~
    git clone http://www.gitee.com/houstudio/cdroid.git
  • 5.build cdroid:
    cd cdroid
    ./build.sh --build=debug
    cd outX64-Debug
    make -j
  • 6.prepare system and app resource
    cp src/gui/cdroid.pak ./
    cp apps/${app}/${app}.pak ./
  • 7.run samples(in directory outX64-Debug
    apps/samples/helloworld
    apps/uidemo1/uidemo1