Skip to content

Commit

Permalink
Display Field Cell Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni Möckel committed Mar 14, 2017
1 parent ebdceb2 commit a5c1cae
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);

Entry entry = new Entry();
entry.display = "Its me";
entry.title = "Hello";
entry.description = "World";
entry.date = new Date();
Expand Down
8 changes: 8 additions & 0 deletions app/src/main/java/com/quemb/qmbform/sample/model/Entry.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@
*/
public class Entry implements FormElementDelegate {

@FormElement(
label = R.string.lb_display,
rowDescriptorType = RowDescriptor.FormRowDescriptorTypeDetail,
sortId = 0,
section = R.string.section_general
)
public String display;

@FormElement(
label = R.string.lb_title,
rowDescriptorType = RowDescriptor.FormRowDescriptorTypeText,
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
<string name="lb_multi_value">Multiple Value</string>
<string name="section_multiValue">Multiple Value</string>
<string name="lb_add_new_tag">Add new tag</string>
<string name="lb_display">Display</string>

</resources>
4 changes: 2 additions & 2 deletions lib/QMBForm/src/main/res/layout/detail_text_field_cell.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@


<TextView
android:layout_width="0dp"
android:layout_marginBottom="6dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_width="wrap_content"
android:id="@+id/textView"/>

<TextView
Expand Down

0 comments on commit a5c1cae

Please sign in to comment.