Skip to content

Commit

Permalink
r102 - test
Browse files Browse the repository at this point in the history
-----------
Fix: Long number in charts
Fix: EUR on top
Fix: icon size
Fix: Crash on list update
Fix: Invalid graph and stat
Fix: Some bull shit
Fix: Refactoring
Fix: Landscape Layout
Fix: NavDrawer touch
Add: PIN protection
Add: Chat
Add: Ability to hide pairs
Add: Auto refresh when maximize or return to app.
Add: Fix some crash
Add: New api key
Add: Amount slider on buy/sell screen
Add: Current balance on buy/sell screen
Add: Color warning if no enough money
-----------
  • Loading branch information
Zorge.R committed Jan 25, 2014
1 parent 41d851a commit dd2c14c
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 46 deletions.
82 changes: 42 additions & 40 deletions BTC-e.com monitor/src/main/java/com/zlab/btcmonitor/bm_Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ public void run() {
public static View pagePairs(ViewGroup container, LayoutInflater inflater){
View rootView;

if(bm_MainState.getResources().getConfiguration().orientation== Configuration.ORIENTATION_PORTRAIT){
if(bm_MainState.getResources().getConfiguration().orientation==Configuration.ORIENTATION_PORTRAIT){
rootView = inflater.inflate(R.layout.pairs, container, false);
} else {
rootView = inflater.inflate(R.layout.pairs_landscape, container, false);
Expand Down Expand Up @@ -1185,49 +1185,51 @@ public void onClick(DialogInterface dialog, int which) {
pairAskList = (ListView) rootView.findViewById(R.id.listAsk);
pairBidsList = (ListView) rootView.findViewById(R.id.listBids);

pairAskList.setOnTouchListener(new ListView.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
int action = event.getAction();
switch (action) {
case MotionEvent.ACTION_DOWN:
// Disallow ScrollView to intercept touch events.
v.getParent().requestDisallowInterceptTouchEvent(true);
break;

case MotionEvent.ACTION_UP:
// Allow ScrollView to intercept touch events.
v.getParent().requestDisallowInterceptTouchEvent(false);
break;
if(bm_MainState.getResources().getConfiguration().orientation==Configuration.ORIENTATION_LANDSCAPE){
pairAskList.setOnTouchListener(new ListView.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
int action = event.getAction();
switch (action) {
case MotionEvent.ACTION_DOWN:
// Disallow ScrollView to intercept touch events.
v.getParent().requestDisallowInterceptTouchEvent(true);
break;

case MotionEvent.ACTION_UP:
// Allow ScrollView to intercept touch events.
v.getParent().requestDisallowInterceptTouchEvent(false);
break;
}

// Handle ListView touch events.
v.onTouchEvent(event);
return true;
}
});

// Handle ListView touch events.
v.onTouchEvent(event);
return true;
}
});
pairBidsList.setOnTouchListener(new ListView.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
int action = event.getAction();
switch (action) {
case MotionEvent.ACTION_DOWN:
// Disallow ScrollView to intercept touch events.
v.getParent().requestDisallowInterceptTouchEvent(true);
break;

case MotionEvent.ACTION_UP:
// Allow ScrollView to intercept touch events.
v.getParent().requestDisallowInterceptTouchEvent(false);
break;
}

pairBidsList.setOnTouchListener(new ListView.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
int action = event.getAction();
switch (action) {
case MotionEvent.ACTION_DOWN:
// Disallow ScrollView to intercept touch events.
v.getParent().requestDisallowInterceptTouchEvent(true);
break;

case MotionEvent.ACTION_UP:
// Allow ScrollView to intercept touch events.
v.getParent().requestDisallowInterceptTouchEvent(false);
break;
// Handle ListView touch events.
v.onTouchEvent(event);
return true;
}

// Handle ListView touch events.
v.onTouchEvent(event);
return true;
}
});
});
}

if(pairAskElements==null){pairAskElements = (List<bm_ListElementsDepth>[]) new List[VARs.pairs_CODE.length];}
if(pairBidsElements==null){pairBidsElements=(List<bm_ListElementsDepth>[]) new List[VARs.pairs_CODE.length];}
Expand Down
5 changes: 0 additions & 5 deletions BTC-e.com monitor/src/main/res/layout/pairs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,6 @@
android:layout_height="match_parent"
android:layout_below="@+id/linearLayout2" android:id="@+id/linearLayout3"
android:layout_above="@+id/linearLayout5" android:layout_weight="1">
<LinearLayout
android:orientation="vertical"
android:layout_width="2px"
android:layout_height="fill_parent">
</LinearLayout>
<ListView
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down
2 changes: 1 addition & 1 deletion BTC-e.com monitor/src/main/res/layout/pairs_landscape.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
>
<LinearLayout
android:orientation="vertical"
android:layout_width="2px"
android:layout_width="4px"
android:layout_height="fill_parent">
</LinearLayout>
<ListView
Expand Down

0 comments on commit dd2c14c

Please sign in to comment.