Transaction deletion list
This commit is contained in:
parent
15ead28734
commit
f3e24d2a34
@ -3,7 +3,7 @@ apply plugin: 'com.android.application'
|
||||
android {
|
||||
compileSdkVersion 26
|
||||
defaultConfig {
|
||||
applicationId "com.nauk.coinfoliobeta"
|
||||
applicationId "com.nauk.coinfolio"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 26
|
||||
versionCode 1
|
||||
|
@ -340,6 +340,21 @@ public class HomeActivity extends AppCompatActivity {
|
||||
{
|
||||
loadingDialog.dismiss();
|
||||
}
|
||||
|
||||
runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
toolbarLayout.setTitle("US$0.00");
|
||||
|
||||
toolbarSubtitle.setText("US$0.00");
|
||||
|
||||
toolbarSubtitle.setTextColor(-1275068417);
|
||||
}
|
||||
});
|
||||
|
||||
//toolbarSubtitle.setText("US$0.00");
|
||||
|
||||
Log.d(this.getResources().getString(R.string.debug), "Colors : " + toolbarSubtitle.getTextColors());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -109,6 +109,10 @@ public class CurrencyDataRetriver {
|
||||
{
|
||||
List<CurrencyDataChart> dataChart = new ArrayList<>();
|
||||
|
||||
Log.d("coinfolio", "Result : " + response);
|
||||
|
||||
if(response.length() > 200)
|
||||
{
|
||||
response = response.substring(response.indexOf("Data\":[{") + 7, response.lastIndexOf("}],\"TimeTo"));
|
||||
String[] tab = response.split(Pattern.quote("},{"));
|
||||
for(int i = 0; i < tab.length; i++)
|
||||
@ -138,6 +142,14 @@ public class CurrencyDataRetriver {
|
||||
Log.d(context.getResources().getString(R.string.debug_volley), "API Request error: " + e + " index: " + i);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for(int i = 1; i <= 1440; i++)
|
||||
{
|
||||
dataChart.add(new CurrencyDataChart(i, 1, 1, 1, 1));
|
||||
}
|
||||
}
|
||||
|
||||
return dataChart;
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.db.chart.model.LineSet;
|
||||
import com.db.chart.model.Point;
|
||||
import com.db.chart.renderer.AxisRenderer;
|
||||
import com.db.chart.view.LineChartView;
|
||||
import com.nauk.coinfolio.Activities.CurrencyDetailsActivity;
|
||||
@ -28,6 +29,7 @@ import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
import static java.lang.Math.abs;
|
||||
import static java.lang.Math.floorDiv;
|
||||
|
||||
/**
|
||||
* Created by Tiji on 05/01/2018.
|
||||
@ -259,6 +261,12 @@ public class HomeLayoutGenerator {
|
||||
}
|
||||
}
|
||||
|
||||
if(valMax == valMin)
|
||||
{
|
||||
valMin = 0;
|
||||
valMax *= 2;
|
||||
}
|
||||
|
||||
chartView.setAxisBorderValues((float) valMin, (float) valMax);
|
||||
chartView.setYLabels(AxisRenderer.LabelPosition.NONE);
|
||||
chartView.setYAxis(false);
|
||||
|
@ -9,19 +9,26 @@
|
||||
<ViewFlipper
|
||||
android:id="@+id/vfCurrencyDetails"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginBottom="56dp">
|
||||
|
||||
<ScrollView
|
||||
android:id="@+id/svCharts"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="Charts"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
<ScrollView
|
||||
@ -37,8 +44,8 @@
|
||||
|
||||
</ScrollView>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rlTransactions"
|
||||
<ScrollView
|
||||
android:id="@+id/svTransactions"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
@ -50,7 +57,7 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
</ScrollView>
|
||||
|
||||
<!--<ScrollView
|
||||
android:id="@+id/svTransactions"
|
||||
|
Loading…
Reference in New Issue
Block a user