"Fossies" - the Fresh Open Source Software Archive

Member "brave-core-1.31.87/android/java/res/layout/activity_buy_send_swap.xml" (19 Oct 2021, 18817 Bytes) of package /linux/www/brave-core-1.31.87.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) XML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "activity_buy_send_swap.xml": 1.30.89_vs_1.31.87.

    1 <?xml version="1.0" encoding="utf-8"?>
    2 <androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    3     xmlns:app="http://schemas.android.com/apk/res-auto"
    4     xmlns:tools="http://schemas.android.com/tools"
    5     tools:ignore="HardcodedText"
    6     android:layout_width="match_parent"
    7     android:layout_height="match_parent"
    8     android:background="@color/wallet_bg"
    9     android:fillViewport="true">
   10 
   11     <LinearLayout
   12         android:layout_width="match_parent"
   13         android:layout_height="wrap_content"
   14         android:orientation="vertical">
   15 
   16         <androidx.appcompat.widget.Toolbar
   17             android:id="@+id/toolbar"
   18             android:layout_width="match_parent"
   19             android:layout_height="?attr/actionBarSize"
   20             android:layout_marginBottom="16dp"
   21             android:background="@color/wallet_toolbar_bg_color"
   22             android:translationZ="10dp"
   23             android:gravity="center_vertical">
   24 
   25             <LinearLayout
   26                 android:layout_width="match_parent"
   27                 android:layout_height="wrap_content"
   28                 android:orientation="horizontal">
   29 
   30                 <Spinner
   31                     android:id="@+id/accounts_spinner"
   32                     android:layout_width="0dp"
   33                     android:layout_height="wrap_content"
   34                     android:layout_weight="3" />
   35 
   36                 <Spinner
   37                     android:id="@+id/network_spinner"
   38                     android:layout_width="0dp"
   39                     android:layout_height="wrap_content"
   40                     android:layout_weight="2"
   41                     android:textSize="12sp"
   42                     android:textColor="@color/wallet_text_color"
   43                     android:layout_gravity="center_vertical"
   44                     android:prompt="@string/mainnet"
   45                     android:paddingStart="8dp"
   46                     android:paddingEnd="8dp"
   47                     android:paddingTop="2dp"
   48                     android:paddingBottom="2dp" />
   49 
   50             </LinearLayout>
   51 
   52         </androidx.appcompat.widget.Toolbar>
   53 
   54         <LinearLayout
   55             android:layout_width="match_parent"
   56             android:layout_height="wrap_content"
   57             android:paddingTop="8dp"
   58             android:paddingBottom="8dp"
   59             android:paddingStart="14dp"
   60             android:paddingEnd="14dp"
   61             android:layout_marginStart="14dp"
   62             android:layout_marginEnd="14dp"
   63             android:layout_marginBottom="8dp"
   64             android:background="@drawable/rounded_filled_bg_radius_12"
   65             android:orientation="horizontal"
   66             android:baselineAligned="false">
   67 
   68             <LinearLayout
   69                 android:layout_width="0dp"
   70                 android:layout_height="wrap_content"
   71                 android:layout_weight="1"
   72                 android:orientation="vertical">
   73 
   74                 <TextView
   75                     android:id="@+id/from_buy_text"
   76                     android:layout_width="wrap_content"
   77                     android:layout_height="wrap_content"
   78                     android:text="@string/from"
   79                     android:textColor="@color/wallet_secondary_text_color"
   80                     android:textSize="14sp"/>
   81 
   82                 <LinearLayout
   83                     android:layout_width="match_parent"
   84                     android:layout_height="wrap_content"
   85                     android:orientation="horizontal">
   86 
   87                   <TextView
   88                       android:id="@+id/currency_sign"
   89                       android:layout_width="wrap_content"
   90                       android:layout_height="wrap_content"
   91                       android:text="$"
   92                       android:textColor="@color/wallet_text_color"
   93                       android:textSize="20sp"/>
   94 
   95                   <EditText
   96                       android:id="@+id/from_value_text"
   97                       android:layout_width="match_parent"
   98                       android:layout_height="wrap_content"
   99                       android:textColor="@color/wallet_text_color"
  100                       android:textSize="20sp"/>
  101 
  102                 </LinearLayout>
  103 
  104                 <RadioGroup
  105                     android:id="@+id/per_percent_radiogroup"
  106                     android:layout_width="match_parent"
  107                     android:layout_height="wrap_content"
  108                     android:layout_marginEnd="16dp"
  109                     android:orientation="horizontal">
  110 
  111                     <RadioButton
  112                         android:id="@+id/per_25_radiobutton"
  113                         android:layout_width="0dp"
  114                         android:layout_height="wrap_content"
  115                         android:layout_weight="1"
  116                         android:layout_margin="4dp"
  117                         android:padding="2dp"
  118                         android:background="@drawable/wallet_radio_button_selector"
  119                         android:gravity="center"
  120                         android:textColor="@color/crypto_wallet_radiobutton_color_selector"
  121                         android:checked="true"
  122                         android:button="@null"
  123                         android:textSize="14sp"
  124                         android:textStyle="bold"
  125                         android:text="@string/percentage_25" />
  126 
  127                     <RadioButton
  128                         android:id="@+id/per_50_radiobutton"
  129                         android:layout_width="0dp"
  130                         android:layout_height="wrap_content"
  131                         android:layout_weight="1"
  132                         android:button="@null"
  133                         android:layout_margin="4dp"
  134                         android:padding="2dp"
  135                         android:background="@drawable/wallet_radio_button_selector"
  136                         android:gravity="center"
  137                         android:textColor="@color/crypto_wallet_radiobutton_color_selector"
  138                         android:textSize="14sp"
  139                         android:textStyle="bold"
  140                         android:text="@string/percentage_50" />
  141 
  142                     <RadioButton
  143                         android:id="@+id/per_75_radiobutton"
  144                         android:layout_width="0dp"
  145                         android:layout_height="wrap_content"
  146                         android:layout_weight="1"
  147                         android:button="@null"
  148                         android:layout_margin="4dp"
  149                         android:padding="2dp"
  150                         android:background="@drawable/wallet_radio_button_selector"
  151                         android:gravity="center"
  152                         android:textSize="14sp"
  153                         android:textStyle="bold"
  154                         android:textColor="@color/crypto_wallet_radiobutton_color_selector"
  155                         android:text="@string/percentage_75" />
  156 
  157                     <RadioButton
  158                         android:id="@+id/all_radiobutton"
  159                         android:layout_width="0dp"
  160                         android:layout_height="wrap_content"
  161                         android:layout_weight="1"
  162                         android:button="@null"
  163                         android:layout_margin="4dp"
  164                         android:padding="2dp"
  165                         android:background="@drawable/wallet_radio_button_selector"
  166                         android:gravity="center"
  167                         android:textSize="14sp"
  168                         android:textStyle="bold"
  169                         android:textColor="@color/crypto_wallet_radiobutton_color_selector"
  170                         android:text="@string/all" />
  171 
  172                 </RadioGroup>
  173 
  174             </LinearLayout>
  175 
  176             <LinearLayout
  177                 android:layout_width="wrap_content"
  178                 android:layout_height="wrap_content"
  179                 android:orientation="vertical">
  180 
  181                 <TextView
  182                     android:id="@+id/from_balance_text"
  183                     android:layout_width="wrap_content"
  184                     android:layout_height="wrap_content"
  185                     android:layout_marginBottom="4dp"
  186                     android:textColor="@color/wallet_secondary_text_color"
  187                     android:textSize="12sp"/>
  188 
  189                 <TextView
  190                     android:id="@+id/from_asset_text"
  191                     android:layout_width="wrap_content"
  192                     android:layout_height="wrap_content"
  193                     android:textColor="@color/wallet_text_color"
  194                     android:textSize="20sp"
  195                     android:gravity="center_vertical"
  196                     android:clickable="true"
  197                     android:focusable="true"
  198                     android:foreground="?android:attr/selectableItemBackgroundBorderless"
  199                     android:drawablePadding="8dp"
  200                     app:drawableStartCompat="@drawable/ic_eth_24"
  201                     app:drawableEndCompat="@drawable/ic_carat_down" />
  202 
  203             </LinearLayout>
  204 
  205         </LinearLayout>
  206 
  207         <ImageView
  208             android:id="@+id/arrow_down"
  209             android:layout_width="wrap_content"
  210             android:layout_height="wrap_content"
  211             android:contentDescription="@null"
  212             android:layout_gravity="center_horizontal"
  213             app:srcCompat="@drawable/ic_arrow_downward"/>
  214 
  215         <LinearLayout
  216             android:id="@+id/to_section"
  217             android:layout_width="match_parent"
  218             android:layout_height="wrap_content"
  219             android:paddingTop="8dp"
  220             android:paddingBottom="8dp"
  221             android:paddingStart="14dp"
  222             android:paddingEnd="14dp"
  223             android:layout_marginStart="14dp"
  224             android:layout_marginEnd="14dp"
  225             android:layout_marginBottom="8dp"
  226             android:layout_marginTop="8dp"
  227             android:background="@drawable/rounded_filled_bg_radius_12"
  228             android:orientation="horizontal"
  229             android:baselineAligned="false">
  230 
  231             <LinearLayout
  232                 android:layout_width="0dp"
  233                 android:layout_height="wrap_content"
  234                 android:layout_weight="1"
  235                 android:orientation="vertical">
  236 
  237                 <TextView
  238                     android:id="@+id/to_estimate_text"
  239                     android:layout_width="wrap_content"
  240                     android:layout_height="wrap_content"
  241                     android:text="@string/to_estimate"
  242                     android:textColor="@color/wallet_secondary_text_color"
  243                     android:textSize="14sp"/>
  244 
  245                 <EditText
  246                     android:id="@+id/to_value_text"
  247                     android:layout_width="match_parent"
  248                     android:layout_height="wrap_content"
  249                     android:textColor="@color/wallet_text_color"
  250                     android:textSize="20sp"/>
  251 
  252             </LinearLayout>
  253 
  254             <LinearLayout
  255                 android:id="@+id/to_balance_section"
  256                 android:layout_width="wrap_content"
  257                 android:layout_height="wrap_content"
  258                 android:orientation="vertical">
  259 
  260                 <TextView
  261                     android:id="@+id/to_balance_text"
  262                     android:layout_width="wrap_content"
  263                     android:layout_height="wrap_content"
  264                     android:layout_marginBottom="4dp"
  265                     android:textColor="@color/wallet_secondary_text_color"
  266                     android:textSize="12sp"/>
  267 
  268                 <TextView
  269                     android:id="@+id/to_asset_text"
  270                     android:layout_width="wrap_content"
  271                     android:layout_height="wrap_content"
  272                     android:textColor="@color/wallet_text_color"
  273                     android:textSize="20sp"
  274                     android:gravity="center_vertical"
  275                     android:clickable="true"
  276                     android:focusable="true"
  277                     android:foreground="?android:attr/selectableItemBackgroundBorderless"
  278                     android:drawablePadding="8dp"
  279                     app:drawableStartCompat="@drawable/ic_eth_24"
  280                     app:drawableEndCompat="@drawable/ic_carat_down" />
  281 
  282             </LinearLayout>
  283 
  284         </LinearLayout>
  285 
  286         <RadioGroup
  287             android:id="@+id/buy_send_swap_type_radio_group"
  288             android:layout_width="match_parent"
  289             android:layout_height="wrap_content"
  290             android:layout_gravity="center_horizontal"
  291             android:background="@drawable/wallet_swap_radio_group_bg"
  292             android:layout_marginStart="16dp"
  293             android:layout_marginEnd="16dp"
  294             android:layout_marginBottom="10dp"
  295             android:layout_marginTop="10dp"
  296             android:orientation="horizontal">
  297 
  298             <RadioButton
  299                 android:id="@+id/market_radio"
  300                 android:layout_width="0dp"
  301                 android:layout_weight="1"
  302                 android:layout_height="wrap_content"
  303                 android:background="@drawable/wallet_swap_radio_button_selector"
  304                 android:gravity="center"
  305                 android:textColor="@color/wallet_text_color"
  306                 android:button="@null"
  307                 android:checked="true"
  308                 android:textSize="16sp"
  309                 android:paddingTop="8dp"
  310                 android:paddingBottom="8dp"
  311                 android:text="@string/market" />
  312 
  313             <RadioButton
  314                 android:id="@+id/limit_radio"
  315                 android:layout_width="0dp"
  316                 android:layout_weight="1"
  317                 android:button="@null"
  318                 android:layout_height="wrap_content"
  319                 android:background="@drawable/wallet_swap_radio_button_selector"
  320                 android:gravity="center"
  321                 android:textSize="16sp"
  322                 android:paddingTop="8dp"
  323                 android:paddingBottom="8dp"
  324                 android:textColor="@color/wallet_text_color"
  325                 android:text="@string/limit" />
  326 
  327         </RadioGroup>
  328 
  329         <LinearLayout
  330             android:id="@+id/market_price_section"
  331             android:layout_width="match_parent"
  332             android:layout_height="wrap_content"
  333             android:paddingTop="8dp"
  334             android:paddingBottom="8dp"
  335             android:paddingStart="14dp"
  336             android:paddingEnd="14dp"
  337             android:layout_marginStart="14dp"
  338             android:layout_marginEnd="14dp"
  339             android:layout_marginBottom="8dp"
  340             android:layout_marginTop="8dp"
  341             android:orientation="horizontal">
  342 
  343             <LinearLayout
  344                 android:layout_width="0dp"
  345                 android:layout_height="wrap_content"
  346                 android:layout_weight="1"
  347                 android:orientation="vertical">
  348 
  349                 <TextView
  350                     android:id="@+id/market_limit_price_text"
  351                     android:layout_width="wrap_content"
  352                     android:layout_height="wrap_content"
  353                     android:text="@string/market_price_in"
  354                     android:textColor="@color/wallet_secondary_text_color"
  355                     android:textSize="14sp"/>
  356 
  357                 <TextView
  358                     android:id="@+id/market_price_value_text"
  359                     android:layout_width="wrap_content"
  360                     android:layout_height="wrap_content"
  361                     android:textColor="@color/wallet_text_color"
  362                     android:textSize="20sp"/>
  363 
  364                 <EditText
  365                     android:id="@+id/limit_price_value"
  366                     android:layout_width="match_parent"
  367                     android:layout_height="wrap_content"
  368                     android:visibility="gone"
  369                     android:hint="0"
  370                     android:textColor="@color/wallet_text_color"
  371                     android:textSize="20sp"/>
  372 
  373             </LinearLayout>
  374 
  375             <ImageView
  376                 android:id="@+id/refresh_price"
  377                 android:layout_width="wrap_content"
  378                 android:layout_height="wrap_content"
  379                 android:clickable="true"
  380                 android:focusable="true"
  381                 android:contentDescription="@null"
  382                 android:layout_gravity="center_vertical"
  383                 app:srcCompat="@drawable/ic_refresh"/>
  384 
  385         </LinearLayout>
  386 
  387         <LinearLayout
  388             android:id="@+id/tolerance_section"
  389             android:layout_width="match_parent"
  390             android:layout_height="wrap_content"
  391             android:paddingTop="8dp"
  392             android:paddingBottom="8dp"
  393             android:paddingStart="14dp"
  394             android:paddingEnd="14dp"
  395             android:layout_marginStart="14dp"
  396             android:layout_marginEnd="14dp"
  397             android:layout_marginBottom="24dp"
  398             android:layout_marginTop="8dp"
  399             android:background="@drawable/rounded_filled_bg_radius_12"
  400             android:orientation="horizontal">
  401 
  402             <TextView
  403                 android:id="@+id/slipping_expires_value_text"
  404                 android:layout_width="0dp"
  405                 android:layout_height="wrap_content"
  406                 android:layout_weight="1"
  407                 android:text="@string/slipping_tolerance"
  408                 android:textColor="@color/wallet_secondary_text_color"
  409                 android:textSize="14sp"/>
  410 
  411             <TextView
  412                 android:id="@+id/slipping_tolerance_value_text"
  413                 android:layout_width="wrap_content"
  414                 android:layout_height="wrap_content"
  415                 android:layout_marginBottom="4dp"
  416                 android:clickable="true"
  417                 android:focusable="true"
  418                 android:textColor="@color/wallet_text_color"
  419                 android:drawablePadding="4dp"
  420                 android:textSize="12sp"
  421                 app:drawableEndCompat="@drawable/ic_carat_down" />
  422 
  423         </LinearLayout>
  424 
  425         <Button
  426             android:id="@+id/btn_buy_send_swap"
  427             android:layout_width="wrap_content"
  428             android:layout_height="wrap_content"
  429             android:layout_gravity="center_horizontal"
  430             android:gravity="center"
  431             android:background="@drawable/crypto_wallet_blue_button"
  432             android:text="@string/swap"
  433             android:textAllCaps="false"
  434             android:textSize="16sp"
  435             android:paddingTop="8dp"
  436             android:paddingBottom="8dp"
  437             android:paddingStart="16dp"
  438             android:paddingEnd="16dp"
  439             android:layout_marginBottom="8dp"
  440             android:textColor="@android:color/white"
  441             style="?android:attr/borderlessButtonStyle"/>
  442 
  443     </LinearLayout>
  444 
  445 </androidx.core.widget.NestedScrollView>