浏览代码

Add GridLayout

pull/1/head
Malte Schmitz 8 年前
父节点
当前提交
1f2513da70
共有 1 个文件被更改,包括 63 次插入31 次删除
  1. +63
    -31
      app/src/main/res/layout/activity_main.xml

+ 63
- 31
app/src/main/res/layout/activity_main.xml 查看文件

@@ -6,38 +6,70 @@
android:layout_height="match_parent"
tools:context="de.mlte.soundboard.MainActivity">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<FrameLayout
<GridLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">

<ProgressBar
android:id="@+id/progress_bar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:indeterminate="false"
android:progressDrawable="@drawable/progress_bar_states" />

<TextView
android:id="@+id/text_view_button"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:columnCount="1"
android:padding="1dp">

<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="0"
android:layout_columnWeight="1"
android:layout_row="0"
android:layout_rowWeight="1"
android:padding="2dp">

<ProgressBar
android:id="@+id/progress_bar"
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:indeterminate="false"
android:progressDrawable="@drawable/progress_bar_states" />

<TextView
android:id="@+id/text_view_button"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:padding="6dp"
android:text="Enter"
android:textColor="@android:color/white"
android:textSize="16sp"
android:textStyle="bold" />

</FrameLayout>

<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:padding="6dp"
android:text="Enter"
android:textColor="@android:color/white"
android:textSize="16sp"
android:textStyle="bold" />

</FrameLayout>
android:layout_column="0"
android:layout_columnWeight="1"
android:layout_row="1"
android:layout_rowWeight="1"
android:padding="2dp">

<ProgressBar
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:indeterminate="false"
android:progressDrawable="@drawable/progress_bar_states" />

<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:padding="6dp"
android:text="Enter"
android:textColor="@android:color/white"
android:textSize="16sp"
android:textStyle="bold" />

</FrameLayout>

</GridLayout>

</android.support.constraint.ConstraintLayout>

正在加载...
取消
保存