diff --git a/app/src/main/java/com/example/dcav2gui/ui/home/HomeFragment.java b/app/src/main/java/com/example/dcav2gui/ui/home/HomeFragment.java index 1fa5aed..89edcb7 100644 --- a/app/src/main/java/com/example/dcav2gui/ui/home/HomeFragment.java +++ b/app/src/main/java/com/example/dcav2gui/ui/home/HomeFragment.java @@ -30,19 +30,33 @@ public class HomeFragment extends Fragment { // Bind text views TextView pricePair1 = root.findViewById(R.id.pricesCardPrice1); - TextView pricePair1Percentages = root.findViewById(R.id.pricesCardPercentages1); + TextView pricePair124hPercentage = root.findViewById(R.id.pricesCard24hText1); + TextView pricePair17dPercentage = root.findViewById(R.id.pricesCard7dText1); + TextView pricePair130dPercentage = root.findViewById(R.id.pricesCard30dText1); + TextView pricePair2 = root.findViewById(R.id.pricesCardPrice2); - TextView pricePair2Percentages = root.findViewById(R.id.pricesCardPercentages2); + TextView pricePair224hPercentage = root.findViewById(R.id.pricesCard24hText2); + TextView pricePair27dPercentage = root.findViewById(R.id.pricesCard7dText2); + TextView pricePair230dPercentage = root.findViewById(R.id.pricesCard30dText2); + TextView pricePair3 = root.findViewById(R.id.pricesCardPrice3); - TextView pricePair3Percentages = root.findViewById(R.id.pricesCardPercentages3); + TextView pricePair324hPercentage = root.findViewById(R.id.pricesCard24hText3); + TextView pricePair37dPercentage = root.findViewById(R.id.pricesCard7dText3); + TextView pricePair330dPercentage = root.findViewById(R.id.pricesCard30dText3); // Set text values - pricePair1.setText("696969.35"); - pricePair1Percentages.setText("24h +100% 7d +100% 30d +100%"); - pricePair2.setText("69696.93"); - pricePair2Percentages.setText("24h +100% 7d +100% 30d +100%"); - pricePair3.setText("1000.35"); - pricePair3Percentages.setText("24h +100% 7d +100% 30d +100%"); + pricePair1.setText(R.string.default_price_ticker_1); + pricePair124hPercentage.setText("+20.30%"); + pricePair17dPercentage.setText("+20.30%"); + pricePair130dPercentage.setText("+20.30%"); + pricePair2.setText(R.string.default_price_ticker_2); + pricePair224hPercentage.setText("+20.30%"); + pricePair27dPercentage.setText("+20.30%"); + pricePair230dPercentage.setText("+20.30%"); + pricePair3.setText(R.string.default_price_ticker_3); + pricePair324hPercentage.setText("+20.30%"); + pricePair37dPercentage.setText("+20.30%"); + pricePair330dPercentage.setText("+20.30%"); return root; } diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml index 42d2ea6..babd001 100644 --- a/app/src/main/res/layout/fragment_home.xml +++ b/app/src/main/res/layout/fragment_home.xml @@ -44,11 +44,51 @@ android:textSize="12sp" android:textStyle="bold" /> + + + + + @@ -84,11 +124,51 @@ android:textSize="12sp" android:textStyle="bold" /> + + + + + @@ -120,15 +200,55 @@ android:layout_width="32dp" android:layout_height="16dp" android:textAlignment="center" - android:text="@string/quote_price_ticker_2" + android:text="@string/quote_price_ticker_3" android:textSize="12sp" android:textStyle="bold" /> + + + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 20f5d0c..7facde4 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -35,8 +35,11 @@ General settings BTC + 150000.00 ETH + 15000.00 USDT + 1500.00 USDT USDT ARS