Ink is using Epcompt_Wine Library.
In the documentation, says:
[...] AppCompat provides similar behavior on previous versions of Android for a subset of UI widgets:
All items provided by AppCompat's toolbar (action mode, etc.)
- EditText
- Spinner
- Checkbox
- RedButton
- Switch (use new android.support.v7.widget.SwitchCompat)
- CheckedTextView You do not need to do anything special to do this, just copy these controls Luggage Use your layout of the form and AppCompat rest (with some caveats, see the FAQ).
This is my code:
value / styles.xml
& lt; Style name = "appbashtheme" parent = "theme.competit" & gt; & Lt; Item name = "color primary" & gt; @color / content_blue_grey_800 & lt; / Item & gt; & Lt; Item name = "color primary diary" & gt; @ Color / content_blue_grey_950 & lt; / Item & gt; & Lt; Item name = "color clock" & gt; @color / content_dipistyl_200 & lt; / Item & gt; & Lt; / Style & gt;
layout / activity_main.xml
& lt; Relative layout xmlns: android = "http://schemas.android.com/apk/res/android" xmlns: tool = "http://schemas.android.com/tools" Android: layout_width = "match_parent" Android: layout_height Android: paddingBottom = "@ Dimen / activity_vertical_margin" Android: paddingLeft = "@ Dimen / activity_horizontal_margin" Android: paddingRight = "@ Dimen / activity_horizontal_margin" Android: paddingTop = "@ Dimen / activity_vertical_margin" tool: reference = "com .example.lollipoptest.MainActivity "& gt; & Lt; TextView Android: id = "@ + id / textView1" Android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: text = "@ string / hello_world" /> & Lt; Czech box android: id = "@ + id / checkBox1" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: layout_below = "@ + id / textView1" Android: layout_centerHorizontal = "true" Android: layout_marginTop = " 28dp "Android: Text =" Checkbox "/> & Lt; RadioButton android: id = "@ + id / radioButton1" Android: Layout_width = "Wrap_content" Android: Layout_height = "Wrap_content" Android: layout_below = "@ + id / checkBox1" Android: layout_centerHorizontal = "true" android: text = "Rediobutn "/> & Lt; EditText android: id = "@ + id / editText1" Android: Layout_width = "Wrap_content" Android: Layout_height = "Wrap_content" Android: layout_below = "@ + id / radioButton1" Android: layout_centerHorizontal = "true" Android: EMS = "10 "& Gt; & Lt; Requestfocus / & gt; & Lt; / EditText>
There is no change in default MainActivity.java
The actionbar shows the new content style but also the checkboxes and the radiobutton is not doing wrong is?
PIC:
I found a solution:
<> < Code> & lt; east; Czech box android: id = "@ + id / chbDevuelto" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: layout_alignParentLeft = "true" Android: layout_alignParentStart = "true" Android: layout_centerVertical = "true" Android: Layout_marginLeft = "L6dp" android: button = "@ drawable / abc_btn_check_material" Android: buttonTint = "@ color / colorAccent" Android: Layout_marginStart = "L6dp" android: focusable = "false" / & gt;This is the line moves:
Android: button = "@ drawable / Abisi_bitian_chek_matryyr" Android: Btntint = "@ color / Rngswikar"
Works in all editions: 3
Comments
Post a Comment