Cdroid/README.md

107 lines
3.2 KiB
Markdown
Raw Normal View History

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.
# **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**
2021-06-24 10:12:55 +08:00
# **Screen Shots**
2022-07-06 09:46:10 +08:00
![demo1](https://gitee.com/houstudio/cdroid/raw/master/docs/videos/uidemo1.gif)
2022-07-06 09:58:05 +08:00
![demo2](https://gitee.com/houstudio/cdroid/raw/master/docs/videos/uidemo2.gif)
2022-01-07 18:08:20 +08:00
![Pott](https://gitee.com/houstudio/cdroid/raw/master/docs/images/screenshots/plot.png)
2021-08-27 18:41:10 +08:00
![ListView+Progress](https://gitee.com/houstudio/cdroid/raw/master/docs/videos/list_with_progress.gif)
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
2023-08-08 17:00:51 +08:00
* ListView (with both vertical and horizontal layout support)
* GridView (with both vertical and horizontal layout support)
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-03-08 11:26:19 +08:00
* 1, A new product porting should be placed to src/porting/xxx(where xxx is you chipset name)
2021-06-24 10:12:55 +08:00
* 2, implement your porting api to xxx directory
2023-03-08 11:26:19 +08:00
* 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-04-11 18:14:57 +08:00
* 1.install dependencs: sudo apt install autoconf libtool build-essential cmake gdb pkg-config zip gettext libx11-dev bison python>=3.7
2023-08-08 17:00:51 +08:00
* 2.install vcpkg:<br>
&emsp;&emsp; git clone https://github.com/microsoft/vcpkg.git<br>
&emsp;&emsp; cd vcpkg<br>
&emsp;&emsp;./bootstrap-vcpkg.sh
* 3.install cdroid deplibs:(Recommand you use dynamic triplet(static is not tested)<br>
&emsp;&emsp;vcpkg install gtest sdl2 libunibreak libjpeg-turbo[jpeg8] libzip cairo --triplet=x64-linux-dynamic
* 4.download cdroid source code:<br>
&emsp;&emsp;cd ~<br>
&emsp;&emsp;git clone http://www.gitee.com/houstudio/cdroid.git<br>
* 5.build cdroid:<br>
&emsp;&emsp;cd cdroid<br>
&emsp;&emsp;./build.sh --build=debug<br>
&emsp;&emsp;cd outX64-Debug<br>
&emsp;&emsp;make -j
* 6.prepare system and app resource<br>
&emsp;&emsp;cp src/gui/cdroid.pak ./<br>
2023-08-11 19:28:32 +08:00
&emsp;&emsp;cp apps/${app}/${app}.pak ./<br>
2023-08-08 17:00:51 +08:00
* 7.run samples(in directory outX64-Debug<br>
&emsp;&emsp;apps/samples/helloworld<br>
&emsp;&emsp;apps/uidemo1/uidemo1<br>
2023-02-03 09:43:18 +08:00
2021-06-24 10:12:55 +08:00