Skip to content

Instantly share code, notes, and snippets.

@yccheok
Created March 16, 2016 15:57
Show Gist options
  • Save yccheok/da69b317e48af132f54c to your computer and use it in GitHub Desktop.
Save yccheok/da69b317e48af132f54c to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<android.support.v7.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?attr/buyPortfolioListViewBackground"
android:requiresFadingEdge="vertical"
android:scrollbars="vertical"/>
<LinearLayout
android:id="@android:id/empty"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical">
<ProgressBar
android:id="@+id/progress_bar"
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<LinearLayout
android:id="@+id/not_found_linear_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical"
android:visibility="gone" >
<TextView android:textColor="?attr/dimForeground" android:textSize="44sp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/sorry" />
<TextView android:textColor="?attr/dimForeground" android:textSize="16sp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/no_buy_data_found" />
</LinearLayout>
</LinearLayout>
</FrameLayout>
<LinearLayout
android:id="@+id/touch_delegate_linear_layout"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/footer_linear_layout"
android:layout_width="match_parent"
android:layout_height="48dp"
android:background="?attr/buyPortfolioFooterLinearLayoutBackground"
android:gravity="center_vertical"
android:orientation="horizontal" >
<TextView
android:id="@+id/footer_label_text_view"
android:text="@string/buy_portfolio_value"
android:layout_width="0dp"
android:width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:paddingLeft="5dp"
android:textColor="?attr/buyPortfolioFooterTextViewColor"
android:textSize="18sp"
android:gravity="left|center_vertical"
android:background="?attr/buyPortfolioFooterTextViewSelector" />
<View
android:layout_width="1px"
android:layout_height="match_parent"
android:layout_marginTop="12dp"
android:layout_marginBottom="12dp"
android:background="?attr/buyPortfolioFooterDividerColor" />
<TextView
android:id="@+id/footer_value_text_view"
android:layout_width="0dp"
android:width="0dp"
android:layout_weight="1"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
android:paddingRight="8dp"
android:textColor="?attr/buyPortfolioFooterTextViewColor"
android:textSize="18sp"
android:gravity="right|center_vertical" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/buyPortfolioStatusBarBackground"
android:gravity="center_vertical"
android:orientation="horizontal" >
<TextSwitcher
android:id="@+id/status_bar"
android:width="0dp"
android:layout_width="0dp"
android:layout_weight="0.5"
android:layout_height="wrap_content"
android:paddingLeft="5dp"
android:layout_marginTop="2dp"
android:layout_marginBottom="2dp"
android:background="@android:color/transparent" />
<LinearLayout
android:id="@+id/currency_exchange_linear_layout"
android:background="?attr/buyPortfolioCurrencyExchangeLinearLayoutSelector"
android:gravity="right"
android:orientation="horizontal"
android:width="0dp"
android:layout_width="0dp"
android:layout_weight="0.5"
android:paddingRight="5dp"
android:paddingTop="2dp"
android:paddingBottom="2dp"
android:layout_height="wrap_content">
<TextSwitcher
android:id="@+id/currency_exchange_rate_text_switcher"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent" />
<TextView
android:id="@+id/to_currency_text_view"
android:textColor="?attr/buyPortfolioStatusBarTextViewColor"
android:background="@android:color/transparent"
android:textSize="12sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextSwitcher
android:id="@+id/currency_pair_text_switcher"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment