Created
April 3, 2016 06:08
-
-
Save yccheok/241a0d38d56305a1be24d09b54eb1600 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Whenever you change the margin in this layout, please update code in BuyArrayRecyclerViewAdapter | |
as well. We do have hard coded value in BuyArrayRecyclerViewAdapter. | |
--> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:id="@+id/card_view" | |
android:layout_marginLeft="5dp" | |
android:layout_marginRight="5dp" | |
android:layout_marginTop="10dp" | |
android:layout_marginBottom="0dp" | |
android:stateListAnimator="@anim/lift_up" | |
android:background="?attr/buyPortfolioRowLayoutSelector" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical" | |
android:clickable="true" > | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal" | |
android:layout_marginLeft="5dp" | |
android:layout_marginRight="5dp"> | |
<LinearLayout | |
android:layout_gravity="center_vertical" | |
android:layout_width="0dp" | |
android:layout_weight="1.0" | |
android:layout_height="wrap_content"> | |
<TextView | |
android:id="@+id/symbol_text_view" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:paddingTop="5dp" | |
android:paddingLeft="5dp" | |
android:paddingRight="5dp" | |
android:paddingBottom="5dp" | |
android:text="BANCO SANTANDER CENT" | |
android:textColor="#ffffffff" | |
android:background="#fff44336" | |
android:textSize="16sp" /> | |
</LinearLayout> | |
<TextView | |
android:id="@+id/value_text_view" | |
android:width="0dp" | |
android:layout_width="0dp" | |
android:layout_weight="1.0" | |
android:layout_height="wrap_content" | |
android:paddingTop="5dp" | |
android:gravity="right" | |
android:layout_gravity="center_vertical" | |
android:text="$14,002.23" | |
android:textColor="?attr/buyPortfolioValueTextViewColor" | |
android:textSize="16sp" /> | |
</LinearLayout> | |
<LinearLayout | |
android:layout_marginTop="10dp" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal" | |
android:layout_marginLeft="5dp" | |
android:layout_marginRight="5dp"> | |
<LinearLayout | |
android:orientation="horizontal" | |
android:width="0dp" | |
android:layout_width="0dp" | |
android:layout_weight="1" | |
android:layout_height="wrap_content" > | |
<TextView | |
android:id="@+id/price_label_text_view" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="@string/buy_portfolio_price" | |
android:textColor="?attr/buyPortfolioLabelTextViewColor" | |
android:textSize="14sp" /> | |
<TextView | |
android:visibility="gone" | |
android:id="@+id/currency_text_view" | |
android:gravity="center_vertical" | |
android:layout_gravity="center_vertical" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:textSize="12sp" | |
android:textColor="?attr/buyPortfolioCurrencyTextViewColor" | |
android:background="?attr/buyPortfolioCurrencyTextViewBackgroundSelector" | |
android:layout_marginLeft="5dp" | |
android:paddingLeft="5dp" | |
android:paddingRight="5dp" | |
android:text="USD" /> | |
</LinearLayout> | |
<TextView | |
android:id="@+id/price_text_view" | |
android:width="0dp" | |
android:layout_width="0dp" | |
android:layout_weight="1" | |
android:layout_height="wrap_content" | |
android:gravity="right" | |
android:text="23.45" | |
android:textColor="?attr/buyPortfolioValueTextViewColor" | |
android:textSize="14sp" /> | |
<View | |
android:layout_width="1px" | |
android:layout_height="match_parent" | |
android:background="?attr/buyPortfolioSeperatorBackground" | |
android:layout_marginRight="5dp" | |
android:layout_marginLeft="5dp" /> | |
<TextView | |
android:id="@+id/units_label_text_view" | |
android:width="0dp" | |
android:layout_width="0dp" | |
android:layout_weight="0.5" | |
android:layout_height="wrap_content" | |
android:text="@string/buy_portfolio_units" | |
android:textColor="?attr/buyPortfolioLabelTextViewColor" | |
android:textSize="14sp" /> | |
<TextView | |
android:id="@+id/units_text_view" | |
android:width="0dp" | |
android:layout_width="0dp" | |
android:layout_weight="1.5" | |
android:layout_height="wrap_content" | |
android:gravity="right" | |
android:text="1,275" | |
android:textColor="?attr/buyPortfolioValueTextViewColor" | |
android:textSize="14sp" /> | |
</LinearLayout> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal" | |
android:layout_marginLeft="5dp" | |
android:layout_marginRight="5dp"> | |
<TextView | |
android:id="@+id/buy_price_label_text_view" | |
android:width="0dp" | |
android:layout_width="0dp" | |
android:layout_weight="1" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="5dp" | |
android:text="@string/buy_portfolio_buy_price" | |
android:textColor="?attr/buyPortfolioLabelTextViewColor" | |
android:textSize="14sp" /> | |
<TextView | |
android:id="@+id/buy_price_text_view" | |
android:width="0dp" | |
android:layout_width="0dp" | |
android:layout_weight="1" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="5dp" | |
android:gravity="right" | |
android:text="12.03" | |
android:textColor="?attr/buyPortfolioValueTextViewColor" | |
android:textSize="14sp" /> | |
<View | |
android:layout_width="1px" | |
android:layout_height="match_parent" | |
android:background="?attr/buyPortfolioSeperatorBackground" | |
android:layout_marginRight="5dp" | |
android:layout_marginLeft="5dp" /> | |
<TextView | |
android:id="@+id/cost_label_text_view" | |
android:layout_width="0dp" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="5dp" | |
android:layout_weight="0.5" | |
android:text="@string/buy_portfolio_cost" | |
android:textColor="?attr/buyPortfolioLabelTextViewColor" | |
android:textSize="14sp" | |
android:width="0dp" /> | |
<TextView | |
android:id="@+id/cost_text_view" | |
android:width="0dp" | |
android:layout_width="0dp" | |
android:layout_weight="1.5" | |
android:layout_height="wrap_content" | |
android:layout_marginTop="5dp" | |
android:gravity="right" | |
android:text="12,208.94" | |
android:textColor="?attr/buyPortfolioValueTextViewColor" | |
android:textSize="14sp" /> | |
</LinearLayout> | |
<LinearLayout | |
android:layout_marginTop="10dp" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal" | |
android:layout_marginLeft="5dp" | |
android:layout_marginRight="5dp" | |
android:layout_marginBottom="5dp"> | |
<TextView | |
android:id="@+id/profit_label_text_view" | |
android:width="0dp" | |
android:layout_width="0dp" | |
android:layout_weight="0.5" | |
android:layout_height="wrap_content" | |
android:text="@string/buy_portfolio_profit" | |
android:textColor="?attr/buyPortfolioLabelTextViewColor" | |
android:textSize="14sp" /> | |
<TextView | |
android:id="@+id/profit_text_view" | |
android:width="0dp" | |
android:layout_width="0dp" | |
android:layout_weight="1.5" | |
android:layout_height="wrap_content" | |
android:gravity="right" | |
android:text="+342.03 (+34.32%)" | |
android:textColor="?attr/buyPortfolioPositiveTextViewColor" | |
android:textSize="14sp" /> | |
</LinearLayout> | |
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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="none" | |
android:scrollbars="vertical" | |
android:paddingTop="@dimen/default_tab_layout_height" | |
android:clipToPadding="false" /> | |
<LinearLayout | |
android:paddingTop="@dimen/default_tab_layout_height" | |
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