Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 69 additions & 63 deletions sample/src/main/res/layout/ac_states.xml
Original file line number Diff line number Diff line change
@@ -1,72 +1,78 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp">
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res-auto"
android:layout_height="match_parent"
android:layout_width="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="16dp">

<com.dd.processbutton.iml.ActionProcessButton
android:id="@+id/btnAction"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/Upload"
android:textColor="@android:color/white"
android:textSize="18sp"
custom:pb_textComplete="@string/Done"
custom:pb_textProgress="@string/Uploading"
custom:pb_textError="Error"/>
<com.dd.processbutton.iml.ActionProcessButton
android:id="@+id/btnAction"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/Upload"
android:textColor="@android:color/white"
android:textSize="18sp"
custom:pb_textComplete="@string/Done"
custom:pb_textProgress="@string/Uploading"
custom:pb_textError="Error"/>

<com.dd.processbutton.iml.SubmitProcessButton
android:id="@+id/btnSubmit"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="16dp"
android:text="@string/Upload"
android:textColor="@android:color/white"
android:textSize="18sp"
custom:pb_textComplete="@string/Done"
custom:pb_textProgress="@string/Uploading"
custom:pb_textError="Error"/>
<com.dd.processbutton.iml.SubmitProcessButton
android:id="@+id/btnSubmit"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="16dp"
android:text="@string/Upload"
android:textColor="@android:color/white"
android:textSize="18sp"
custom:pb_textComplete="@string/Done"
custom:pb_textProgress="@string/Uploading"
custom:pb_textError="Error"/>

<com.dd.processbutton.iml.GenerateProcessButton
android:id="@+id/btnGenerate"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="16dp"
android:text="@string/Upload"
android:textColor="@android:color/white"
android:textSize="18sp"
custom:pb_textComplete="@string/Done"
custom:pb_textProgress="@string/Uploading"
custom:pb_textError="Error"/>
<com.dd.processbutton.iml.GenerateProcessButton
android:id="@+id/btnGenerate"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="16dp"
android:text="@string/Upload"
android:textColor="@android:color/white"
android:textSize="18sp"
custom:pb_textComplete="@string/Done"
custom:pb_textProgress="@string/Uploading"
custom:pb_textError="Error"/>

<Button
android:id="@+id/btnProgressError"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="16dp"
android:text="Error State setProgress(-1)" />
<Button
android:id="@+id/btnProgressError"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="16dp"
android:text="Error State setProgress(-1)"/>

<Button
android:id="@+id/btnProgressNormal"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="8dp"
android:text="Normal State setProgress(0)" />
<Button
android:id="@+id/btnProgressNormal"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="8dp"
android:text="Normal State setProgress(0)"/>

<Button
android:id="@+id/btnProgressLoading"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="8dp"
android:text="Progress State setProgress(50)" />
<Button
android:id="@+id/btnProgressLoading"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="8dp"
android:text="Progress State setProgress(50)"/>

<Button
android:id="@+id/btnProgressComplete"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="8dp"
android:text="Complete State setProgress(100)" />
<Button
android:id="@+id/btnProgressComplete"
android:layout_width="match_parent"
android:layout_height="48dp"
android:layout_marginTop="8dp"
android:text="Complete State setProgress(100)"/>


</LinearLayout>
</LinearLayout>
</ScrollView>