Add loading screen for dev profile
This commit is contained in:
@@ -32,7 +32,9 @@ import com.aurora.store.util.extensions.close
|
|||||||
import com.aurora.store.util.extensions.load
|
import com.aurora.store.util.extensions.load
|
||||||
import com.aurora.store.util.extensions.toast
|
import com.aurora.store.util.extensions.toast
|
||||||
import com.aurora.store.view.epoxy.groups.CarouselHorizontalModel_
|
import com.aurora.store.view.epoxy.groups.CarouselHorizontalModel_
|
||||||
import com.aurora.store.view.epoxy.views.*
|
import com.aurora.store.view.epoxy.views.AppListViewModel_
|
||||||
|
import com.aurora.store.view.epoxy.views.AppViewModel_
|
||||||
|
import com.aurora.store.view.epoxy.views.HeaderViewModel_
|
||||||
import com.aurora.store.view.epoxy.views.details.ScreenshotViewModel_
|
import com.aurora.store.view.epoxy.views.details.ScreenshotViewModel_
|
||||||
import com.aurora.store.view.ui.commons.BaseActivity
|
import com.aurora.store.view.ui.commons.BaseActivity
|
||||||
import nl.komponents.kovenant.task
|
import nl.komponents.kovenant.task
|
||||||
@@ -64,6 +66,8 @@ class DevProfileActivity : BaseActivity() {
|
|||||||
|
|
||||||
attachToolbar()
|
attachToolbar()
|
||||||
|
|
||||||
|
B.viewFlipper.displayedChild = 1
|
||||||
|
|
||||||
onNewIntent(intent)
|
onNewIntent(intent)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -164,6 +168,7 @@ class DevProfileActivity : BaseActivity() {
|
|||||||
task {
|
task {
|
||||||
AppDetailsHelper(authData).getDeveloperStream(devId)
|
AppDetailsHelper(authData).getDeveloperStream(devId)
|
||||||
} successUi {
|
} successUi {
|
||||||
|
B.viewFlipper.displayedChild = 0
|
||||||
updateInfo(it)
|
updateInfo(it)
|
||||||
updateController(it)
|
updateController(it)
|
||||||
} failUi {
|
} failUi {
|
||||||
|
|||||||
@@ -30,6 +30,17 @@
|
|||||||
android:id="@+id/layout_toolbar_action"
|
android:id="@+id/layout_toolbar_action"
|
||||||
layout="@layout/view_toolbar_action" />
|
layout="@layout/view_toolbar_action" />
|
||||||
|
|
||||||
|
|
||||||
|
<ViewFlipper
|
||||||
|
android:id="@+id/view_flipper"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@@ -54,12 +65,12 @@
|
|||||||
android:id="@+id/txt_dev_description"
|
android:id="@+id/txt_dev_description"
|
||||||
style="@style/AuroraTextStyle.Line2"
|
style="@style/AuroraTextStyle.Line2"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:maxLines="6"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_below="@id/txt_dev_name"
|
android:layout_below="@id/txt_dev_name"
|
||||||
android:layout_alignStart="@id/txt_dev_name"
|
android:layout_alignStart="@id/txt_dev_name"
|
||||||
android:layout_alignEnd="@id/txt_dev_name"
|
android:layout_alignEnd="@id/txt_dev_name"
|
||||||
android:layout_marginTop="@dimen/margin_small"
|
android:layout_marginTop="@dimen/margin_small"
|
||||||
|
android:maxLines="6"
|
||||||
tools:text="Developer Name" />
|
tools:text="Developer Name" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
@@ -68,10 +79,22 @@
|
|||||||
android:id="@+id/recycler"
|
android:id="@+id/recycler"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_below="@+id/layout_toolbar_action"
|
|
||||||
android:clipToPadding="true"
|
android:clipToPadding="true"
|
||||||
android:paddingBottom="@dimen/height_bottom_adj"
|
android:paddingBottom="@dimen/height_bottom_adj"
|
||||||
app:itemSpacing="@dimen/margin_normal"
|
app:itemSpacing="@dimen/margin_normal"
|
||||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
||||||
app:stackFromEnd="false" />
|
app:stackFromEnd="false" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<ProgressBar
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_centerInParent="true" />
|
||||||
|
</RelativeLayout>
|
||||||
|
</ViewFlipper>
|
||||||
|
</LinearLayout>
|
||||||
Reference in New Issue
Block a user