Skip to content

Commit

Permalink
fix layout
Browse files Browse the repository at this point in the history
  • Loading branch information
takusemba committed Apr 18, 2018
1 parent 7a2d287 commit b322c21
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion hyperion-simple-item/src/main/res/layout/layout_simple_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
app:layout_constraintTop_toTopOf="parent"
app:tint="@color/hype_plugin_color_selector"
tools:src="@android:drawable/alert_light_frame"
tools:visibility="visible"
/>
<TextView
android:id="@+id/title"
Expand All @@ -40,20 +41,28 @@
app:layout_goneMarginLeft="0dp"
app:layout_goneMarginStart="0dp"
tools:text="title"
tools:visibility="visible"
/>
<TextView
android:id="@+id/text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:layout_marginLeft="28dp"
android:layout_marginRight="8dp"
android:layout_marginStart="28dp"
android:duplicateParentState="true"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textColor="@color/hype_plugin_color_selector"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@id/title"
app:layout_constraintHorizontal_chainStyle="spread"
app:layout_constraintStart_toEndOf="@id/image"
app:layout_constraintTop_toBottomOf="@id/title"
app:layout_constraintVertical_chainStyle="packed"
app:layout_goneMarginLeft="0dp"
app:layout_goneMarginStart="0dp"
tools:text="text\nThis can long text.This can long text.This can long text.This can long text.This can long text.This can long text."
tools:visibility="visible"
/>
</android.support.constraint.ConstraintLayout>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class DebugApp extends App {
@Override public void onCreate() {
super.onCreate();
final SimpleItem onlyTitleItem = new SimpleItem.Builder()
.title("only title: title")
.text("this test description")
.clickListener(new View.OnClickListener() {
@Override public void onClick(View v) {
Toast.makeText(DebugApp.this, "click 1",Toast.LENGTH_SHORT).show();
Expand Down

0 comments on commit b322c21

Please sign in to comment.