2021-06-24 10:12:55 +08:00
|
|
|
|
# **Introduction**
|
|
|
|
|
**CDroid** is a android like GUI toolkit base on C++11,It is a cross-platform GUI engine for embedded system.
|
2023-10-06 16:49:12 +08:00
|
|
|
|
* Main repository: [https://gitee.com/houstudio/cdroid](https://gitee.com/houstudio/cdroid)
|
|
|
|
|
* Mirrored repository: [https://github.com/houstudio/cdroid](https://github.com/houstudio/cdroid)
|
2021-06-24 10:12:55 +08:00
|
|
|
|
# **Features:**
|
|
|
|
|
* Multi Layer/Multi Window
|
2022-07-06 09:58:05 +08:00
|
|
|
|
* Integrated with 40+ UI Components and 20+ Drawables(compatible with android)
|
2022-07-06 10:01:49 +08:00
|
|
|
|
* All UI Components(Layouts,Drawables...)can be designed in **AndroidStudio or Eclipse**
|
|
|
|
|
* Vector Graph supported via **Cairo**
|
2023-10-06 16:49:12 +08:00
|
|
|
|
# **Quick Start**
|
2024-03-27 17:22:16 +08:00
|
|
|
|
* VM(Ware):https://pan.baidu.com/s/1-v-rLcHxo5W5TXvJ2NUWxA fetchcode:spux (VM Ubuntu User:cdroid password:123456)
|
|
|
|
|
* After login pls run git pull to get new version of cdroid
|
|
|
|
|
* You'd better remove outXXX and run build.sh to rebuild makefiles after each git pull.
|
2023-10-06 18:53:54 +08:00
|
|
|
|
# **IDE(AndroidStudio/Eclipse)**
|
|
|
|
|
![IDE](https://gitee.com/jiangcheng/cdroidX64/raw/master/apps/images/asd61236_ide.png)
|
|
|
|
|
|
|
|
|
|
# **ScreenShots**
|
2023-10-06 16:49:12 +08:00
|
|
|
|
![demo0](https://gitee.com/jiangcheng/cdroidX64/raw/master/apps/images/asd61236.gif)
|
2024-03-30 14:55:22 +08:00
|
|
|
|
![输入图片说明](https://foruda.gitee.com/images/1696897258873801535/181bd53c_8310459.png "coffee1.png")
|
|
|
|
|
![输入图片说明](https://foruda.gitee.com/images/1696897274979265997/cb22d7c6_8310459.png "coffee2.png")
|
|
|
|
|
![输入图片说明](https://foruda.gitee.com/images/1696897128191287720/7754542e_8310459.png "kdz10.png")
|
|
|
|
|
![输入图片说明](https://foruda.gitee.com/images/1696897669710472636/454e7f63_8310459.png "asd1.png")
|
|
|
|
|
![输入图片说明](https://foruda.gitee.com/images/1696897695571432137/8f6d2169_8310459.png "asd2.png")
|
|
|
|
|
![输入图片说明](https://foruda.gitee.com/images/1696897705672262478/c8736598_8310459.png "asd3.png")
|
|
|
|
|
![输入图片说明](https://foruda.gitee.com/images/1696897716776731960/47e420c7_8310459.png "asd4.png")
|
2022-01-07 18:08:20 +08:00
|
|
|
|
![Pott](https://gitee.com/houstudio/cdroid/raw/master/docs/images/screenshots/plot.png)
|
2023-10-06 16:49:12 +08:00
|
|
|
|
|
2021-06-24 10:12:55 +08:00
|
|
|
|
# **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
|
2024-01-15 17:01:16 +08:00
|
|
|
|
* ListView
|
|
|
|
|
* GridView
|
|
|
|
|
* RecyclerView
|
2021-06-24 10:12:55 +08:00
|
|
|
|
* 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:**
|
|
|
|
|
|
2023-10-06 16:49:12 +08:00
|
|
|
|
* 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**)
|
2021-06-24 10:12:55 +08:00
|
|
|
|
|
2023-02-03 09:43:18 +08:00
|
|
|
|
# **Building CDROID:**
|
2023-10-06 16:49:12 +08:00
|
|
|
|
### 1.install dependencs:
|
2024-01-15 16:37:55 +08:00
|
|
|
|
sudo apt install autoconf libtool build-essential cmake gdb pkg-config zip gettext libx11-dev bison python>=3.7 pip3-python meson
|
2023-10-06 16:49:12 +08:00
|
|
|
|
### 2.install vcpkg:
|
|
|
|
|
* git clone https://gitee.com/houstudio/vcpkg.git
|
|
|
|
|
* cd vcpkg
|
|
|
|
|
* ./bootstrap-vcpkg.sh
|
|
|
|
|
### 3.install cdroid deplibs:
|
|
|
|
|
* ./cdroid_install_libs.sh --triplet=x64-linux-dynamic<br>
|
|
|
|
|
### 4.download cdroid source code:
|
|
|
|
|
* cd ~
|
|
|
|
|
* git clone http://www.gitee.com/houstudio/cdroid.git<br>
|
|
|
|
|
### 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 ./
|
2024-01-15 16:37:55 +08:00
|
|
|
|
* cp apps/appname/appname.pak ./
|
2023-10-06 16:49:12 +08:00
|
|
|
|
### 7.run samples(in directory outX64-Debug
|
|
|
|
|
* apps/samples/helloworld
|
|
|
|
|
* apps/uidemo1/uidemo1
|
2023-08-08 17:00:51 +08:00
|
|
|
|
|
2023-02-03 09:43:18 +08:00
|
|
|
|
|
2021-06-24 10:12:55 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|